patches/clutter-02-m4.diff
author rohinis
Tue, 29 Nov 2011 17:32:55 +0000
branchs11express-2010-11
changeset 22234 c23e64da3e06
parent 18059 38798f418bf9
permissions -rw-r--r--
2011-11-29 Rohini S <[email protected]> * patches/Python26-22-audio.diff: Fixes CVE-2010-1634 * specs/SUNWPython26.spec: Fixes CR 7085446
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18059
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     1
--- /dev/null	2010-06-01 16:18:24.000000000 -0500
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     2
+++ clutter-1.2.6/build/autotools/libtool.m4	2010-04-19 11:34:07.000000000 -0500
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     3
@@ -0,0 +1,7360 @@
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     4
+# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     5
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     6
+#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     7
+#                 2006, 2007, 2008 Free Software Foundation, Inc.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     8
+#   Written by Gordon Matzigkeit, 1996
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     9
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    10
+# This file is free software; the Free Software Foundation gives
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    11
+# unlimited permission to copy and/or distribute it, with or without
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    12
+# modifications, as long as this notice is preserved.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    13
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    14
+m4_define([_LT_COPYING], [dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    15
+#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    16
+#                 2006, 2007, 2008 Free Software Foundation, Inc.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    17
+#   Written by Gordon Matzigkeit, 1996
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    18
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    19
+#   This file is part of GNU Libtool.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    20
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    21
+# GNU Libtool is free software; you can redistribute it and/or
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    22
+# modify it under the terms of the GNU General Public License as
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    23
+# published by the Free Software Foundation; either version 2 of
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    24
+# the License, or (at your option) any later version.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    25
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    26
+# As a special exception to the GNU General Public License,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    27
+# if you distribute this file as part of a program or library that
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    28
+# is built using GNU Libtool, you may include this file under the
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    29
+# same distribution terms that you use for the rest of that program.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    30
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    31
+# GNU Libtool is distributed in the hope that it will be useful,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    32
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    33
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    34
+# GNU General Public License for more details.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    35
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    36
+# You should have received a copy of the GNU General Public License
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    37
+# along with GNU Libtool; see the file COPYING.  If not, a copy
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    38
+# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    39
+# obtained by writing to the Free Software Foundation, Inc.,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    40
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    41
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    42
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    43
+# serial 56 LT_INIT
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    44
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    45
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    46
+# LT_PREREQ(VERSION)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    47
+# ------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    48
+# Complain and exit if this libtool version is less that VERSION.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    49
+m4_defun([LT_PREREQ],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    50
+[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    51
+       [m4_default([$3],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    52
+		   [m4_fatal([Libtool version $1 or higher is required],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    53
+		             63)])],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    54
+       [$2])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    55
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    56
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    57
+# _LT_CHECK_BUILDDIR
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    58
+# ------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    59
+# Complain if the absolute build directory name contains unusual characters
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    60
+m4_defun([_LT_CHECK_BUILDDIR],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    61
+[case `pwd` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    62
+  *\ * | *\	*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    63
+    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    64
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    65
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    66
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    67
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    68
+# LT_INIT([OPTIONS])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    69
+# ------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    70
+AC_DEFUN([LT_INIT],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    71
+[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    72
+AC_BEFORE([$0], [LT_LANG])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    73
+AC_BEFORE([$0], [LT_OUTPUT])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    74
+AC_BEFORE([$0], [LTDL_INIT])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    75
+m4_require([_LT_CHECK_BUILDDIR])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    76
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    77
+dnl Autoconf doesn't catch unexpanded LT_ macros by default:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    78
+m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    79
+m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    80
+dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    81
+dnl unless we require an AC_DEFUNed macro:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    82
+AC_REQUIRE([LTOPTIONS_VERSION])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    83
+AC_REQUIRE([LTSUGAR_VERSION])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    84
+AC_REQUIRE([LTVERSION_VERSION])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    85
+AC_REQUIRE([LTOBSOLETE_VERSION])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    86
+m4_require([_LT_PROG_LTMAIN])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    87
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    88
+dnl Parse OPTIONS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    89
+_LT_SET_OPTIONS([$0], [$1])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    90
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    91
+# This can be used to rebuild libtool when needed
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    92
+LIBTOOL_DEPS="$ltmain"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    93
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    94
+# Always use our own libtool.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    95
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    96
+AC_SUBST(LIBTOOL)dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    97
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    98
+_LT_SETUP
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    99
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   100
+# Only expand once:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   101
+m4_define([LT_INIT])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   102
+])# LT_INIT
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   103
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   104
+# Old names:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   105
+AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   106
+AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   107
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   108
+dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   109
+dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   110
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   111
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   112
+# _LT_CC_BASENAME(CC)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   113
+# -------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   114
+# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   115
+m4_defun([_LT_CC_BASENAME],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   116
+[for cc_temp in $1""; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   117
+  case $cc_temp in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   118
+    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   119
+    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   120
+    \-*) ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   121
+    *) break;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   122
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   123
+done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   124
+cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   125
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   126
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   127
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   128
+# _LT_FILEUTILS_DEFAULTS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   129
+# ----------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   130
+# It is okay to use these file commands and assume they have been set
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   131
+# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   132
+m4_defun([_LT_FILEUTILS_DEFAULTS],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   133
+[: ${CP="cp -f"}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   134
+: ${MV="mv -f"}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   135
+: ${RM="rm -f"}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   136
+])# _LT_FILEUTILS_DEFAULTS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   137
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   138
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   139
+# _LT_SETUP
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   140
+# ---------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   141
+m4_defun([_LT_SETUP],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   142
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   143
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   144
+_LT_DECL([], [host_alias], [0], [The host system])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   145
+_LT_DECL([], [host], [0])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   146
+_LT_DECL([], [host_os], [0])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   147
+dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   148
+_LT_DECL([], [build_alias], [0], [The build system])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   149
+_LT_DECL([], [build], [0])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   150
+_LT_DECL([], [build_os], [0])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   151
+dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   152
+AC_REQUIRE([AC_PROG_CC])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   153
+AC_REQUIRE([LT_PATH_LD])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   154
+AC_REQUIRE([LT_PATH_NM])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   155
+dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   156
+AC_REQUIRE([AC_PROG_LN_S])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   157
+test -z "$LN_S" && LN_S="ln -s"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   158
+_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   159
+dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   160
+AC_REQUIRE([LT_CMD_MAX_LEN])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   161
+_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   162
+_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   163
+dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   164
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   165
+m4_require([_LT_CHECK_SHELL_FEATURES])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   166
+m4_require([_LT_CMD_RELOAD])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   167
+m4_require([_LT_CHECK_MAGIC_METHOD])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   168
+m4_require([_LT_CMD_OLD_ARCHIVE])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   169
+m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   170
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   171
+_LT_CONFIG_LIBTOOL_INIT([
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   172
+# See if we are running on zsh, and set the options which allow our
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   173
+# commands through without removal of \ escapes INIT.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   174
+if test -n "\${ZSH_VERSION+set}" ; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   175
+   setopt NO_GLOB_SUBST
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   176
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   177
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   178
+if test -n "${ZSH_VERSION+set}" ; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   179
+   setopt NO_GLOB_SUBST
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   180
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   181
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   182
+_LT_CHECK_OBJDIR
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   183
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   184
+m4_require([_LT_TAG_COMPILER])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   185
+_LT_PROG_ECHO_BACKSLASH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   186
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   187
+case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   188
+aix3*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   189
+  # AIX sometimes has problems with the GCC collect2 program.  For some
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   190
+  # reason, if we set the COLLECT_NAMES environment variable, the problems
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   191
+  # vanish in a puff of smoke.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   192
+  if test "X${COLLECT_NAMES+set}" != Xset; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   193
+    COLLECT_NAMES=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   194
+    export COLLECT_NAMES
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   195
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   196
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   197
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   198
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   199
+# Sed substitution that helps us do robust quoting.  It backslashifies
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   200
+# metacharacters that are still active within double-quoted strings.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   201
+sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   202
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   203
+# Same as above, but do not quote variable references.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   204
+double_quote_subst='s/\([["`\\]]\)/\\\1/g'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   205
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   206
+# Sed substitution to delay expansion of an escaped shell variable in a
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   207
+# double_quote_subst'ed string.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   208
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   209
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   210
+# Sed substitution to delay expansion of an escaped single quote.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   211
+delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   212
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   213
+# Sed substitution to avoid accidental globbing in evaled expressions
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   214
+no_glob_subst='s/\*/\\\*/g'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   215
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   216
+# Global variables:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   217
+ofile=libtool
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   218
+can_build_shared=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   219
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   220
+# All known linkers require a `.a' archive for static linking (except MSVC,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   221
+# which needs '.lib').
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   222
+libext=a
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   223
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   224
+with_gnu_ld="$lt_cv_prog_gnu_ld"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   225
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   226
+old_CC="$CC"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   227
+old_CFLAGS="$CFLAGS"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   228
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   229
+# Set sane defaults for various variables
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   230
+test -z "$CC" && CC=cc
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   231
+test -z "$LTCC" && LTCC=$CC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   232
+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   233
+test -z "$LD" && LD=ld
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   234
+test -z "$ac_objext" && ac_objext=o
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   235
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   236
+_LT_CC_BASENAME([$compiler])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   237
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   238
+# Only perform the check for file, if the check method requires it
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   239
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   240
+case $deplibs_check_method in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   241
+file_magic*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   242
+  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   243
+    _LT_PATH_MAGIC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   244
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   245
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   246
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   247
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   248
+# Use C for the default configuration in the libtool script
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   249
+LT_SUPPORTED_TAG([CC])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   250
+_LT_LANG_C_CONFIG
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   251
+_LT_LANG_DEFAULT_CONFIG
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   252
+_LT_CONFIG_COMMANDS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   253
+])# _LT_SETUP
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   254
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   255
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   256
+# _LT_PROG_LTMAIN
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   257
+# ---------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   258
+# Note that this code is called both from `configure', and `config.status'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   259
+# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   260
+# `config.status' has no value for ac_aux_dir unless we are using Automake,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   261
+# so we pass a copy along to make sure it has a sensible value anyway.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   262
+m4_defun([_LT_PROG_LTMAIN],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   263
+[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   264
+_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   265
+ltmain="$ac_aux_dir/ltmain.sh"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   266
+])# _LT_PROG_LTMAIN
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   267
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   268
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   269
+## ------------------------------------- ##
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   270
+## Accumulate code for creating libtool. ##
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   271
+## ------------------------------------- ##
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   272
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   273
+# So that we can recreate a full libtool script including additional
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   274
+# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   275
+# in macros and then make a single call at the end using the `libtool'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   276
+# label.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   277
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   278
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   279
+# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   280
+# ----------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   281
+# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   282
+m4_define([_LT_CONFIG_LIBTOOL_INIT],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   283
+[m4_ifval([$1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   284
+          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   285
+                     [$1
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   286
+])])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   287
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   288
+# Initialize.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   289
+m4_define([_LT_OUTPUT_LIBTOOL_INIT])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   290
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   291
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   292
+# _LT_CONFIG_LIBTOOL([COMMANDS])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   293
+# ------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   294
+# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   295
+m4_define([_LT_CONFIG_LIBTOOL],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   296
+[m4_ifval([$1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   297
+          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   298
+                     [$1
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   299
+])])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   300
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   301
+# Initialize.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   302
+m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   303
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   304
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   305
+# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   306
+# -----------------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   307
+m4_defun([_LT_CONFIG_SAVE_COMMANDS],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   308
+[_LT_CONFIG_LIBTOOL([$1])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   309
+_LT_CONFIG_LIBTOOL_INIT([$2])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   310
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   311
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   312
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   313
+# _LT_FORMAT_COMMENT([COMMENT])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   314
+# -----------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   315
+# Add leading comment marks to the start of each line, and a trailing
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   316
+# full-stop to the whole comment if one is not present already.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   317
+m4_define([_LT_FORMAT_COMMENT],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   318
+[m4_ifval([$1], [
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   319
+m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   320
+              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   321
+)])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   322
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   323
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   324
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   325
+## ------------------------ ##
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   326
+## FIXME: Eliminate VARNAME ##
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   327
+## ------------------------ ##
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   328
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   329
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   330
+# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   331
+# -------------------------------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   332
+# CONFIGNAME is the name given to the value in the libtool script.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   333
+# VARNAME is the (base) name used in the configure script.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   334
+# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   335
+# VARNAME.  Any other value will be used directly.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   336
+m4_define([_LT_DECL],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   337
+[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   338
+    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   339
+	[m4_ifval([$1], [$1], [$2])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   340
+    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   341
+    m4_ifval([$4],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   342
+	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   343
+    lt_dict_add_subkey([lt_decl_dict], [$2],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   344
+	[tagged?], [m4_ifval([$5], [yes], [no])])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   345
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   346
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   347
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   348
+# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   349
+# --------------------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   350
+m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   351
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   352
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   353
+# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   354
+# ------------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   355
+m4_define([lt_decl_tag_varnames],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   356
+[_lt_decl_filter([tagged?], [yes], $@)])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   357
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   358
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   359
+# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   360
+# ---------------------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   361
+m4_define([_lt_decl_filter],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   362
+[m4_case([$#],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   363
+  [0], [m4_fatal([$0: too few arguments: $#])],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   364
+  [1], [m4_fatal([$0: too few arguments: $#: $1])],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   365
+  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   366
+  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   367
+  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   368
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   369
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   370
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   371
+# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   372
+# --------------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   373
+m4_define([lt_decl_quote_varnames],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   374
+[_lt_decl_filter([value], [1], $@)])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   375
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   376
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   377
+# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   378
+# ---------------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   379
+m4_define([lt_decl_dquote_varnames],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   380
+[_lt_decl_filter([value], [2], $@)])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   381
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   382
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   383
+# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   384
+# ---------------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   385
+m4_define([lt_decl_varnames_tagged],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   386
+[m4_assert([$# <= 2])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   387
+_$0(m4_quote(m4_default([$1], [[, ]])),
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   388
+    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   389
+    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   390
+m4_define([_lt_decl_varnames_tagged],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   391
+[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   392
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   393
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   394
+# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   395
+# ------------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   396
+m4_define([lt_decl_all_varnames],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   397
+[_$0(m4_quote(m4_default([$1], [[, ]])),
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   398
+     m4_if([$2], [],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   399
+	   m4_quote(lt_decl_varnames),
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   400
+	m4_quote(m4_shift($@))))[]dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   401
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   402
+m4_define([_lt_decl_all_varnames],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   403
+[lt_join($@, lt_decl_varnames_tagged([$1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   404
+			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   405
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   406
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   407
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   408
+# _LT_CONFIG_STATUS_DECLARE([VARNAME])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   409
+# ------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   410
+# Quote a variable value, and forward it to `config.status' so that its
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   411
+# declaration there will have the same value as in `configure'.  VARNAME
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   412
+# must have a single quote delimited value for this to work.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   413
+m4_define([_LT_CONFIG_STATUS_DECLARE],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   414
+[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   415
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   416
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   417
+# _LT_CONFIG_STATUS_DECLARATIONS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   418
+# ------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   419
+# We delimit libtool config variables with single quotes, so when
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   420
+# we write them to config.status, we have to be sure to quote all
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   421
+# embedded single quotes properly.  In configure, this macro expands
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   422
+# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   423
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   424
+#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   425
+m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   426
+[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   427
+    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   428
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   429
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   430
+# _LT_LIBTOOL_TAGS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   431
+# ----------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   432
+# Output comment and list of tags supported by the script
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   433
+m4_defun([_LT_LIBTOOL_TAGS],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   434
+[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   435
+available_tags="_LT_TAGS"dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   436
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   437
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   438
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   439
+# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   440
+# -----------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   441
+# Extract the dictionary values for VARNAME (optionally with TAG) and
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   442
+# expand to a commented shell variable setting:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   443
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   444
+#    # Some comment about what VAR is for.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   445
+#    visible_name=$lt_internal_name
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   446
+m4_define([_LT_LIBTOOL_DECLARE],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   447
+[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   448
+					   [description])))[]dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   449
+m4_pushdef([_libtool_name],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   450
+    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   451
+m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   452
+    [0], [_libtool_name=[$]$1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   453
+    [1], [_libtool_name=$lt_[]$1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   454
+    [2], [_libtool_name=$lt_[]$1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   455
+    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   456
+m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   457
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   458
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   459
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   460
+# _LT_LIBTOOL_CONFIG_VARS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   461
+# -----------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   462
+# Produce commented declarations of non-tagged libtool config variables
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   463
+# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   464
+# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   465
+# section) are produced by _LT_LIBTOOL_TAG_VARS.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   466
+m4_defun([_LT_LIBTOOL_CONFIG_VARS],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   467
+[m4_foreach([_lt_var],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   468
+    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   469
+    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   470
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   471
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   472
+# _LT_LIBTOOL_TAG_VARS(TAG)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   473
+# -------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   474
+m4_define([_LT_LIBTOOL_TAG_VARS],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   475
+[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   476
+    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   477
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   478
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   479
+# _LT_TAGVAR(VARNAME, [TAGNAME])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   480
+# ------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   481
+m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   482
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   483
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   484
+# _LT_CONFIG_COMMANDS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   485
+# -------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   486
+# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   487
+# variables for single and double quote escaping we saved from calls
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   488
+# to _LT_DECL, we can put quote escaped variables declarations
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   489
+# into `config.status', and then the shell code to quote escape them in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   490
+# for loops in `config.status'.  Finally, any additional code accumulated
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   491
+# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   492
+m4_defun([_LT_CONFIG_COMMANDS],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   493
+[AC_PROVIDE_IFELSE([LT_OUTPUT],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   494
+	dnl If the libtool generation code has been placed in $CONFIG_LT,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   495
+	dnl instead of duplicating it all over again into config.status,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   496
+	dnl then we will have config.status run $CONFIG_LT later, so it
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   497
+	dnl needs to know what name is stored there:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   498
+        [AC_CONFIG_COMMANDS([libtool],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   499
+            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   500
+    dnl If the libtool generation code is destined for config.status,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   501
+    dnl expand the accumulated commands and init code now:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   502
+    [AC_CONFIG_COMMANDS([libtool],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   503
+        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   504
+])#_LT_CONFIG_COMMANDS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   505
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   506
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   507
+# Initialize.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   508
+m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   509
+[
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   510
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   511
+# The HP-UX ksh and POSIX shell print the target directory to stdout
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   512
+# if CDPATH is set.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   513
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   514
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   515
+sed_quote_subst='$sed_quote_subst'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   516
+double_quote_subst='$double_quote_subst'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   517
+delay_variable_subst='$delay_variable_subst'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   518
+_LT_CONFIG_STATUS_DECLARATIONS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   519
+LTCC='$LTCC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   520
+LTCFLAGS='$LTCFLAGS'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   521
+compiler='$compiler_DEFAULT'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   522
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   523
+# Quote evaled strings.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   524
+for var in lt_decl_all_varnames([[ \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   525
+]], lt_decl_quote_varnames); do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   526
+    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   527
+    *[[\\\\\\\`\\"\\\$]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   528
+      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   529
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   530
+    *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   531
+      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   532
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   533
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   534
+done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   535
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   536
+# Double-quote double-evaled strings.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   537
+for var in lt_decl_all_varnames([[ \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   538
+]], lt_decl_dquote_varnames); do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   539
+    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   540
+    *[[\\\\\\\`\\"\\\$]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   541
+      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   542
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   543
+    *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   544
+      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   545
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   546
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   547
+done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   548
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   549
+# Fix-up fallback echo if it was mangled by the above quoting rules.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   550
+case \$lt_ECHO in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   551
+*'\\\[$]0 --fallback-echo"')dnl "
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   552
+  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   553
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   554
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   555
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   556
+_LT_OUTPUT_LIBTOOL_INIT
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   557
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   558
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   559
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   560
+# LT_OUTPUT
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   561
+# ---------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   562
+# This macro allows early generation of the libtool script (before
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   563
+# AC_OUTPUT is called), incase it is used in configure for compilation
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   564
+# tests.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   565
+AC_DEFUN([LT_OUTPUT],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   566
+[: ${CONFIG_LT=./config.lt}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   567
+AC_MSG_NOTICE([creating $CONFIG_LT])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   568
+cat >"$CONFIG_LT" <<_LTEOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   569
+#! $SHELL
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   570
+# Generated by $as_me.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   571
+# Run this file to recreate a libtool stub with the current configuration.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   572
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   573
+lt_cl_silent=false
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   574
+SHELL=\${CONFIG_SHELL-$SHELL}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   575
+_LTEOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   576
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   577
+cat >>"$CONFIG_LT" <<\_LTEOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   578
+AS_SHELL_SANITIZE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   579
+_AS_PREPARE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   580
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   581
+exec AS_MESSAGE_FD>&1
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   582
+exec AS_MESSAGE_LOG_FD>>config.log
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   583
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   584
+  echo
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   585
+  AS_BOX([Running $as_me.])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   586
+} >&AS_MESSAGE_LOG_FD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   587
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   588
+lt_cl_help="\
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   589
+\`$as_me' creates a local libtool stub from the current configuration,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   590
+for use in further configure time tests before the real libtool is
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   591
+generated.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   592
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   593
+Usage: $[0] [[OPTIONS]]
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   594
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   595
+  -h, --help      print this help, then exit
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   596
+  -V, --version   print version number, then exit
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   597
+  -q, --quiet     do not print progress messages
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   598
+  -d, --debug     don't remove temporary files
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   599
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   600
+Report bugs to <[email protected]>."
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   601
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   602
+lt_cl_version="\
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   603
+m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   604
+m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   605
+configured by $[0], generated by m4_PACKAGE_STRING.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   606
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   607
+Copyright (C) 2008 Free Software Foundation, Inc.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   608
+This config.lt script is free software; the Free Software Foundation
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   609
+gives unlimited permision to copy, distribute and modify it."
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   610
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   611
+while test $[#] != 0
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   612
+do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   613
+  case $[1] in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   614
+    --version | --v* | -V )
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   615
+      echo "$lt_cl_version"; exit 0 ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   616
+    --help | --h* | -h )
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   617
+      echo "$lt_cl_help"; exit 0 ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   618
+    --debug | --d* | -d )
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   619
+      debug=: ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   620
+    --quiet | --q* | --silent | --s* | -q )
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   621
+      lt_cl_silent=: ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   622
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   623
+    -*) AC_MSG_ERROR([unrecognized option: $[1]
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   624
+Try \`$[0] --help' for more information.]) ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   625
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   626
+    *) AC_MSG_ERROR([unrecognized argument: $[1]
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   627
+Try \`$[0] --help' for more information.]) ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   628
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   629
+  shift
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   630
+done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   631
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   632
+if $lt_cl_silent; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   633
+  exec AS_MESSAGE_FD>/dev/null
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   634
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   635
+_LTEOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   636
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   637
+cat >>"$CONFIG_LT" <<_LTEOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   638
+_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   639
+_LTEOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   640
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   641
+cat >>"$CONFIG_LT" <<\_LTEOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   642
+AC_MSG_NOTICE([creating $ofile])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   643
+_LT_OUTPUT_LIBTOOL_COMMANDS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   644
+AS_EXIT(0)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   645
+_LTEOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   646
+chmod +x "$CONFIG_LT"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   647
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   648
+# configure is writing to config.log, but config.lt does its own redirection,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   649
+# appending to config.log, which fails on DOS, as config.log is still kept
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   650
+# open by configure.  Here we exec the FD to /dev/null, effectively closing
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   651
+# config.log, so it can be properly (re)opened and appended to by config.lt.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   652
+if test "$no_create" != yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   653
+  lt_cl_success=:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   654
+  test "$silent" = yes &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   655
+    lt_config_lt_args="$lt_config_lt_args --quiet"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   656
+  exec AS_MESSAGE_LOG_FD>/dev/null
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   657
+  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   658
+  exec AS_MESSAGE_LOG_FD>>config.log
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   659
+  $lt_cl_success || AS_EXIT(1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   660
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   661
+])# LT_OUTPUT
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   662
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   663
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   664
+# _LT_CONFIG(TAG)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   665
+# ---------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   666
+# If TAG is the built-in tag, create an initial libtool script with a
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   667
+# default configuration from the untagged config vars.  Otherwise add code
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   668
+# to config.status for appending the configuration named by TAG from the
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   669
+# matching tagged config vars.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   670
+m4_defun([_LT_CONFIG],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   671
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   672
+_LT_CONFIG_SAVE_COMMANDS([
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   673
+  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   674
+  m4_if(_LT_TAG, [C], [
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   675
+    # See if we are running on zsh, and set the options which allow our
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   676
+    # commands through without removal of \ escapes.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   677
+    if test -n "${ZSH_VERSION+set}" ; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   678
+      setopt NO_GLOB_SUBST
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   679
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   680
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   681
+    cfgfile="${ofile}T"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   682
+    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   683
+    $RM "$cfgfile"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   684
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   685
+    cat <<_LT_EOF >> "$cfgfile"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   686
+#! $SHELL
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   687
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   688
+# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   689
+# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   690
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   691
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   692
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   693
+_LT_COPYING
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   694
+_LT_LIBTOOL_TAGS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   695
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   696
+# ### BEGIN LIBTOOL CONFIG
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   697
+_LT_LIBTOOL_CONFIG_VARS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   698
+_LT_LIBTOOL_TAG_VARS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   699
+# ### END LIBTOOL CONFIG
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   700
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   701
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   702
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   703
+  case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   704
+  aix3*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   705
+    cat <<\_LT_EOF >> "$cfgfile"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   706
+# AIX sometimes has problems with the GCC collect2 program.  For some
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   707
+# reason, if we set the COLLECT_NAMES environment variable, the problems
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   708
+# vanish in a puff of smoke.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   709
+if test "X${COLLECT_NAMES+set}" != Xset; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   710
+  COLLECT_NAMES=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   711
+  export COLLECT_NAMES
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   712
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   713
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   714
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   715
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   716
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   717
+  _LT_PROG_LTMAIN
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   718
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   719
+  # We use sed instead of cat because bash on DJGPP gets confused if
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   720
+  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   721
+  # text mode, it properly converts lines to CR/LF.  This bash problem
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   722
+  # is reportedly fixed, but why not run on old versions too?
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   723
+  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   724
+    || (rm -f "$cfgfile"; exit 1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   725
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   726
+  _LT_PROG_XSI_SHELLFNS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   727
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   728
+  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   729
+    || (rm -f "$cfgfile"; exit 1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   730
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   731
+  mv -f "$cfgfile" "$ofile" ||
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   732
+    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   733
+  chmod +x "$ofile"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   734
+],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   735
+[cat <<_LT_EOF >> "$ofile"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   736
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   737
+dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   738
+dnl in a comment (ie after a #).
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   739
+# ### BEGIN LIBTOOL TAG CONFIG: $1
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   740
+_LT_LIBTOOL_TAG_VARS(_LT_TAG)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   741
+# ### END LIBTOOL TAG CONFIG: $1
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   742
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   743
+])dnl /m4_if
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   744
+],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   745
+[m4_if([$1], [], [
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   746
+    PACKAGE='$PACKAGE'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   747
+    VERSION='$VERSION'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   748
+    TIMESTAMP='$TIMESTAMP'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   749
+    RM='$RM'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   750
+    ofile='$ofile'], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   751
+])dnl /_LT_CONFIG_SAVE_COMMANDS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   752
+])# _LT_CONFIG
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   753
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   754
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   755
+# LT_SUPPORTED_TAG(TAG)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   756
+# ---------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   757
+# Trace this macro to discover what tags are supported by the libtool
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   758
+# --tag option, using:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   759
+#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   760
+AC_DEFUN([LT_SUPPORTED_TAG], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   761
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   762
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   763
+# C support is built-in for now
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   764
+m4_define([_LT_LANG_C_enabled], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   765
+m4_define([_LT_TAGS], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   766
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   767
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   768
+# LT_LANG(LANG)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   769
+# -------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   770
+# Enable libtool support for the given language if not already enabled.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   771
+AC_DEFUN([LT_LANG],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   772
+[AC_BEFORE([$0], [LT_OUTPUT])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   773
+m4_case([$1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   774
+  [C],			[_LT_LANG(C)],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   775
+  [C++],		[_LT_LANG(CXX)],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   776
+  [Java],		[_LT_LANG(GCJ)],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   777
+  [Fortran 77],		[_LT_LANG(F77)],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   778
+  [Fortran],		[_LT_LANG(FC)],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   779
+  [Windows Resource],	[_LT_LANG(RC)],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   780
+  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   781
+    [_LT_LANG($1)],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   782
+    [m4_fatal([$0: unsupported language: "$1"])])])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   783
+])# LT_LANG
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   784
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   785
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   786
+# _LT_LANG(LANGNAME)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   787
+# ------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   788
+m4_defun([_LT_LANG],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   789
+[m4_ifdef([_LT_LANG_]$1[_enabled], [],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   790
+  [LT_SUPPORTED_TAG([$1])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   791
+  m4_append([_LT_TAGS], [$1 ])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   792
+  m4_define([_LT_LANG_]$1[_enabled], [])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   793
+  _LT_LANG_$1_CONFIG($1)])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   794
+])# _LT_LANG
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   795
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   796
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   797
+# _LT_LANG_DEFAULT_CONFIG
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   798
+# -----------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   799
+m4_defun([_LT_LANG_DEFAULT_CONFIG],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   800
+[AC_PROVIDE_IFELSE([AC_PROG_CXX],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   801
+  [LT_LANG(CXX)],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   802
+  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   803
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   804
+AC_PROVIDE_IFELSE([AC_PROG_F77],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   805
+  [LT_LANG(F77)],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   806
+  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   807
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   808
+AC_PROVIDE_IFELSE([AC_PROG_FC],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   809
+  [LT_LANG(FC)],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   810
+  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   811
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   812
+dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   813
+dnl pulling things in needlessly.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   814
+AC_PROVIDE_IFELSE([AC_PROG_GCJ],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   815
+  [LT_LANG(GCJ)],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   816
+  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   817
+    [LT_LANG(GCJ)],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   818
+    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   819
+      [LT_LANG(GCJ)],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   820
+      [m4_ifdef([AC_PROG_GCJ],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   821
+	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   822
+       m4_ifdef([A][M_PROG_GCJ],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   823
+	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   824
+       m4_ifdef([LT_PROG_GCJ],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   825
+	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   826
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   827
+AC_PROVIDE_IFELSE([LT_PROG_RC],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   828
+  [LT_LANG(RC)],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   829
+  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   830
+])# _LT_LANG_DEFAULT_CONFIG
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   831
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   832
+# Obsolete macros:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   833
+AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   834
+AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   835
+AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   836
+AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   837
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   838
+dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   839
+dnl AC_DEFUN([AC_LIBTOOL_F77], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   840
+dnl AC_DEFUN([AC_LIBTOOL_FC], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   841
+dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   842
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   843
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   844
+# _LT_TAG_COMPILER
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   845
+# ----------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   846
+m4_defun([_LT_TAG_COMPILER],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   847
+[AC_REQUIRE([AC_PROG_CC])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   848
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   849
+_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   850
+_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   851
+_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   852
+_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   853
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   854
+# If no C compiler was specified, use CC.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   855
+LTCC=${LTCC-"$CC"}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   856
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   857
+# If no C compiler flags were specified, use CFLAGS.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   858
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   859
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   860
+# Allow CC to be a program name with arguments.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   861
+compiler=$CC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   862
+])# _LT_TAG_COMPILER
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   863
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   864
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   865
+# _LT_COMPILER_BOILERPLATE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   866
+# ------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   867
+# Check for compiler boilerplate output or warnings with
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   868
+# the simple compiler test code.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   869
+m4_defun([_LT_COMPILER_BOILERPLATE],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   870
+[m4_require([_LT_DECL_SED])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   871
+ac_outfile=conftest.$ac_objext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   872
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   873
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   874
+_lt_compiler_boilerplate=`cat conftest.err`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   875
+$RM conftest*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   876
+])# _LT_COMPILER_BOILERPLATE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   877
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   878
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   879
+# _LT_LINKER_BOILERPLATE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   880
+# ----------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   881
+# Check for linker boilerplate output or warnings with
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   882
+# the simple link test code.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   883
+m4_defun([_LT_LINKER_BOILERPLATE],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   884
+[m4_require([_LT_DECL_SED])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   885
+ac_outfile=conftest.$ac_objext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   886
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   887
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   888
+_lt_linker_boilerplate=`cat conftest.err`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   889
+$RM -r conftest*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   890
+])# _LT_LINKER_BOILERPLATE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   891
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   892
+# _LT_REQUIRED_DARWIN_CHECKS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   893
+# -------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   894
+m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   895
+  case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   896
+    rhapsody* | darwin*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   897
+    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   898
+    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   899
+    AC_CHECK_TOOL([LIPO], [lipo], [:])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   900
+    AC_CHECK_TOOL([OTOOL], [otool], [:])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   901
+    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   902
+    _LT_DECL([], [DSYMUTIL], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   903
+      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   904
+    _LT_DECL([], [NMEDIT], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   905
+      [Tool to change global to local symbols on Mac OS X])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   906
+    _LT_DECL([], [LIPO], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   907
+      [Tool to manipulate fat objects and archives on Mac OS X])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   908
+    _LT_DECL([], [OTOOL], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   909
+      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   910
+    _LT_DECL([], [OTOOL64], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   911
+      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   912
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   913
+    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   914
+      [lt_cv_apple_cc_single_mod=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   915
+      if test -z "${LT_MULTI_MODULE}"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   916
+	# By default we will add the -single_module flag. You can override
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   917
+	# by either setting the environment variable LT_MULTI_MODULE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   918
+	# non-empty at configure time, or by adding -multi_module to the
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   919
+	# link flags.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   920
+	rm -rf libconftest.dylib*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   921
+	echo "int foo(void){return 1;}" > conftest.c
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   922
+	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   923
+-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   924
+	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   925
+	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   926
+        _lt_result=$?
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   927
+	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   928
+	  lt_cv_apple_cc_single_mod=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   929
+	else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   930
+	  cat conftest.err >&AS_MESSAGE_LOG_FD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   931
+	fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   932
+	rm -rf libconftest.dylib*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   933
+	rm -f conftest.*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   934
+      fi])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   935
+    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   936
+      [lt_cv_ld_exported_symbols_list],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   937
+      [lt_cv_ld_exported_symbols_list=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   938
+      save_LDFLAGS=$LDFLAGS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   939
+      echo "_main" > conftest.sym
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   940
+      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   941
+      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   942
+	[lt_cv_ld_exported_symbols_list=yes],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   943
+	[lt_cv_ld_exported_symbols_list=no])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   944
+	LDFLAGS="$save_LDFLAGS"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   945
+    ])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   946
+    case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   947
+    rhapsody* | darwin1.[[012]])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   948
+      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   949
+    darwin1.*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   950
+      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   951
+    darwin*) # darwin 5.x on
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   952
+      # if running on 10.5 or later, the deployment target defaults
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   953
+      # to the OS version, if on x86, and 10.4, the deployment
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   954
+      # target defaults to 10.4. Don't you love it?
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   955
+      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   956
+	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   957
+	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   958
+	10.[[012]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   959
+	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   960
+	10.*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   961
+	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   962
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   963
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   964
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   965
+    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   966
+      _lt_dar_single_mod='$single_module'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   967
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   968
+    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   969
+      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   970
+    else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   971
+      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   972
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   973
+    if test "$DSYMUTIL" != ":"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   974
+      _lt_dsymutil='~$DSYMUTIL $lib || :'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   975
+    else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   976
+      _lt_dsymutil=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   977
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   978
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   979
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   980
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   981
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   982
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   983
+# _LT_DARWIN_LINKER_FEATURES
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   984
+# --------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   985
+# Checks for linker and compiler features on darwin
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   986
+m4_defun([_LT_DARWIN_LINKER_FEATURES],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   987
+[
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   988
+  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   989
+  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   990
+  _LT_TAGVAR(hardcode_direct, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   991
+  _LT_TAGVAR(hardcode_automatic, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   992
+  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   993
+  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   994
+  _LT_TAGVAR(link_all_deplibs, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   995
+  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   996
+  case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   997
+     ifort*) _lt_dar_can_shared=yes ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   998
+     *) _lt_dar_can_shared=$GCC ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
   999
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1000
+  if test "$_lt_dar_can_shared" = "yes"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1001
+    output_verbose_link_cmd=echo
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1002
+    _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}"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1003
+    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1004
+    _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}"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1005
+    _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1006
+    m4_if([$1], [CXX],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1007
+[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1008
+      _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1009
+      _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1010
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1011
+],[])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1012
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1013
+  _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1014
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1015
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1016
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1017
+# _LT_SYS_MODULE_PATH_AIX
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1018
+# -----------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1019
+# Links a minimal program and checks the executable
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1020
+# for the system default hardcoded library path. In most cases,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1021
+# this is /usr/lib:/lib, but when the MPI compilers are used
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1022
+# the location of the communication and MPI libs are included too.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1023
+# If we don't find anything, use the default library path according
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1024
+# to the aix ld manual.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1025
+m4_defun([_LT_SYS_MODULE_PATH_AIX],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1026
+[m4_require([_LT_DECL_SED])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1027
+AC_LINK_IFELSE(AC_LANG_PROGRAM,[
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1028
+lt_aix_libpath_sed='
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1029
+    /Import File Strings/,/^$/ {
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1030
+	/^0/ {
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1031
+	    s/^0  *\(.*\)$/\1/
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1032
+	    p
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1033
+	}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1034
+    }'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1035
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1036
+# Check for a 64-bit object if we didn't find anything.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1037
+if test -z "$aix_libpath"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1038
+  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1039
+fi],[])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1040
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1041
+])# _LT_SYS_MODULE_PATH_AIX
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1042
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1043
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1044
+# _LT_SHELL_INIT(ARG)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1045
+# -------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1046
+m4_define([_LT_SHELL_INIT],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1047
+[ifdef([AC_DIVERSION_NOTICE],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1048
+	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1049
+	 [AC_DIVERT_PUSH(NOTICE)])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1050
+$1
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1051
+AC_DIVERT_POP
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1052
+])# _LT_SHELL_INIT
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1053
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1054
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1055
+# _LT_PROG_ECHO_BACKSLASH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1056
+# -----------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1057
+# Add some code to the start of the generated configure script which
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1058
+# will find an echo command which doesn't interpret backslashes.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1059
+m4_defun([_LT_PROG_ECHO_BACKSLASH],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1060
+[_LT_SHELL_INIT([
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1061
+# Check that we are running under the correct shell.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1062
+SHELL=${CONFIG_SHELL-/bin/sh}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1063
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1064
+case X$lt_ECHO in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1065
+X*--fallback-echo)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1066
+  # Remove one level of quotation (which was required for Make).
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1067
+  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1068
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1069
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1070
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1071
+ECHO=${lt_ECHO-echo}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1072
+if test "X[$]1" = X--no-reexec; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1073
+  # Discard the --no-reexec flag, and continue.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1074
+  shift
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1075
+elif test "X[$]1" = X--fallback-echo; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1076
+  # Avoid inline document here, it may be left over
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1077
+  :
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1078
+elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1079
+  # Yippee, $ECHO works!
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1080
+  :
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1081
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1082
+  # Restart under the correct shell.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1083
+  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1084
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1085
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1086
+if test "X[$]1" = X--fallback-echo; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1087
+  # used as fallback echo
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1088
+  shift
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1089
+  cat <<_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1090
+[$]*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1091
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1092
+  exit 0
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1093
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1094
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1095
+# The HP-UX ksh and POSIX shell print the target directory to stdout
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1096
+# if CDPATH is set.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1097
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1098
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1099
+if test -z "$lt_ECHO"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1100
+  if test "X${echo_test_string+set}" != Xset; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1101
+    # find a string as large as possible, as long as the shell can cope with it
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1102
+    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1103
+      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1104
+      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1105
+	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1106
+      then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1107
+        break
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1108
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1109
+    done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1110
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1111
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1112
+  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1113
+     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1114
+     test "X$echo_testing_string" = "X$echo_test_string"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1115
+    :
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1116
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1117
+    # The Solaris, AIX, and Digital Unix default echo programs unquote
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1118
+    # backslashes.  This makes it impossible to quote backslashes using
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1119
+    #   echo "$something" | sed 's/\\/\\\\/g'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1120
+    #
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1121
+    # So, first we look for a working echo in the user's PATH.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1122
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1123
+    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1124
+    for dir in $PATH /usr/ucb; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1125
+      IFS="$lt_save_ifs"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1126
+      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1127
+         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1128
+         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1129
+         test "X$echo_testing_string" = "X$echo_test_string"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1130
+        ECHO="$dir/echo"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1131
+        break
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1132
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1133
+    done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1134
+    IFS="$lt_save_ifs"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1135
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1136
+    if test "X$ECHO" = Xecho; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1137
+      # We didn't find a better echo, so look for alternatives.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1138
+      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1139
+         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1140
+         test "X$echo_testing_string" = "X$echo_test_string"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1141
+        # This shell has a builtin print -r that does the trick.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1142
+        ECHO='print -r'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1143
+      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1144
+	   test "X$CONFIG_SHELL" != X/bin/ksh; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1145
+        # If we have ksh, try running configure again with it.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1146
+        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1147
+        export ORIGINAL_CONFIG_SHELL
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1148
+        CONFIG_SHELL=/bin/ksh
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1149
+        export CONFIG_SHELL
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1150
+        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1151
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1152
+        # Try using printf.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1153
+        ECHO='printf %s\n'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1154
+        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1155
+	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1156
+	   test "X$echo_testing_string" = "X$echo_test_string"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1157
+	  # Cool, printf works
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1158
+	  :
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1159
+        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1160
+	     test "X$echo_testing_string" = 'X\t' &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1161
+	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1162
+	     test "X$echo_testing_string" = "X$echo_test_string"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1163
+	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1164
+	  export CONFIG_SHELL
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1165
+	  SHELL="$CONFIG_SHELL"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1166
+	  export SHELL
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1167
+	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1168
+        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1169
+	     test "X$echo_testing_string" = 'X\t' &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1170
+	     echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1171
+	     test "X$echo_testing_string" = "X$echo_test_string"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1172
+	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1173
+        else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1174
+	  # maybe with a smaller string...
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1175
+	  prev=:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1176
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1177
+	  for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1178
+	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1179
+	    then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1180
+	      break
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1181
+	    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1182
+	    prev="$cmd"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1183
+	  done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1184
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1185
+	  if test "$prev" != 'sed 50q "[$]0"'; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1186
+	    echo_test_string=`eval $prev`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1187
+	    export echo_test_string
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1188
+	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1189
+	  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1190
+	    # Oops.  We lost completely, so just stick with echo.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1191
+	    ECHO=echo
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1192
+	  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1193
+        fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1194
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1195
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1196
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1197
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1198
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1199
+# Copy echo and quote the copy suitably for passing to libtool from
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1200
+# the Makefile, instead of quoting the original, which is used later.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1201
+lt_ECHO=$ECHO
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1202
+if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1203
+   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1204
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1205
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1206
+AC_SUBST(lt_ECHO)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1207
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1208
+_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1209
+_LT_DECL([], [ECHO], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1210
+    [An echo program that does not interpret backslashes])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1211
+])# _LT_PROG_ECHO_BACKSLASH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1212
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1213
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1214
+# _LT_ENABLE_LOCK
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1215
+# ---------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1216
+m4_defun([_LT_ENABLE_LOCK],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1217
+[AC_ARG_ENABLE([libtool-lock],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1218
+  [AS_HELP_STRING([--disable-libtool-lock],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1219
+    [avoid locking (might break parallel builds)])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1220
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1221
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1222
+# Some flags need to be propagated to the compiler or linker for good
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1223
+# libtool support.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1224
+case $host in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1225
+ia64-*-hpux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1226
+  # Find out which ABI we are using.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1227
+  echo 'int i;' > conftest.$ac_ext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1228
+  if AC_TRY_EVAL(ac_compile); then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1229
+    case `/usr/bin/file conftest.$ac_objext` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1230
+      *ELF-32*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1231
+	HPUX_IA64_MODE="32"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1232
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1233
+      *ELF-64*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1234
+	HPUX_IA64_MODE="64"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1235
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1236
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1237
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1238
+  rm -rf conftest*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1239
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1240
+*-*-irix6*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1241
+  # Find out which ABI we are using.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1242
+  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1243
+  if AC_TRY_EVAL(ac_compile); then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1244
+    if test "$lt_cv_prog_gnu_ld" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1245
+      case `/usr/bin/file conftest.$ac_objext` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1246
+	*32-bit*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1247
+	  LD="${LD-ld} -melf32bsmip"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1248
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1249
+	*N32*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1250
+	  LD="${LD-ld} -melf32bmipn32"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1251
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1252
+	*64-bit*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1253
+	  LD="${LD-ld} -melf64bmip"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1254
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1255
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1256
+    else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1257
+      case `/usr/bin/file conftest.$ac_objext` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1258
+	*32-bit*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1259
+	  LD="${LD-ld} -32"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1260
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1261
+	*N32*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1262
+	  LD="${LD-ld} -n32"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1263
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1264
+	*64-bit*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1265
+	  LD="${LD-ld} -64"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1266
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1267
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1268
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1269
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1270
+  rm -rf conftest*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1271
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1272
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1273
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1274
+s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1275
+  # Find out which ABI we are using.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1276
+  echo 'int i;' > conftest.$ac_ext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1277
+  if AC_TRY_EVAL(ac_compile); then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1278
+    case `/usr/bin/file conftest.o` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1279
+      *32-bit*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1280
+	case $host in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1281
+	  x86_64-*kfreebsd*-gnu)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1282
+	    LD="${LD-ld} -m elf_i386_fbsd"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1283
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1284
+	  x86_64-*linux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1285
+	    LD="${LD-ld} -m elf_i386"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1286
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1287
+	  ppc64-*linux*|powerpc64-*linux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1288
+	    LD="${LD-ld} -m elf32ppclinux"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1289
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1290
+	  s390x-*linux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1291
+	    LD="${LD-ld} -m elf_s390"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1292
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1293
+	  sparc64-*linux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1294
+	    LD="${LD-ld} -m elf32_sparc"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1295
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1296
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1297
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1298
+      *64-bit*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1299
+	case $host in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1300
+	  x86_64-*kfreebsd*-gnu)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1301
+	    LD="${LD-ld} -m elf_x86_64_fbsd"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1302
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1303
+	  x86_64-*linux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1304
+	    LD="${LD-ld} -m elf_x86_64"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1305
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1306
+	  ppc*-*linux*|powerpc*-*linux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1307
+	    LD="${LD-ld} -m elf64ppc"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1308
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1309
+	  s390*-*linux*|s390*-*tpf*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1310
+	    LD="${LD-ld} -m elf64_s390"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1311
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1312
+	  sparc*-*linux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1313
+	    LD="${LD-ld} -m elf64_sparc"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1314
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1315
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1316
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1317
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1318
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1319
+  rm -rf conftest*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1320
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1321
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1322
+*-*-sco3.2v5*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1323
+  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1324
+  SAVE_CFLAGS="$CFLAGS"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1325
+  CFLAGS="$CFLAGS -belf"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1326
+  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1327
+    [AC_LANG_PUSH(C)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1328
+     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1329
+     AC_LANG_POP])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1330
+  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1331
+    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1332
+    CFLAGS="$SAVE_CFLAGS"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1333
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1334
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1335
+sparc*-*solaris*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1336
+  # Find out which ABI we are using.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1337
+  echo 'int i;' > conftest.$ac_ext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1338
+  if AC_TRY_EVAL(ac_compile); then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1339
+    case `/usr/bin/file conftest.o` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1340
+    *64-bit*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1341
+      case $lt_cv_prog_gnu_ld in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1342
+      yes*) LD="${LD-ld} -m elf64_sparc" ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1343
+      *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1344
+	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1345
+	  LD="${LD-ld} -64"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1346
+	fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1347
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1348
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1349
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1350
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1351
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1352
+  rm -rf conftest*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1353
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1354
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1355
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1356
+need_locks="$enable_libtool_lock"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1357
+])# _LT_ENABLE_LOCK
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1358
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1359
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1360
+# _LT_CMD_OLD_ARCHIVE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1361
+# -------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1362
+m4_defun([_LT_CMD_OLD_ARCHIVE],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1363
+[AC_CHECK_TOOL(AR, ar, false)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1364
+test -z "$AR" && AR=ar
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1365
+test -z "$AR_FLAGS" && AR_FLAGS=cru
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1366
+_LT_DECL([], [AR], [1], [The archiver])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1367
+_LT_DECL([], [AR_FLAGS], [1])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1368
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1369
+AC_CHECK_TOOL(STRIP, strip, :)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1370
+test -z "$STRIP" && STRIP=:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1371
+_LT_DECL([], [STRIP], [1], [A symbol stripping program])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1372
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1373
+AC_CHECK_TOOL(RANLIB, ranlib, :)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1374
+test -z "$RANLIB" && RANLIB=:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1375
+_LT_DECL([], [RANLIB], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1376
+    [Commands used to install an old-style archive])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1377
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1378
+# Determine commands to create old-style static archives.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1379
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1380
+old_postinstall_cmds='chmod 644 $oldlib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1381
+old_postuninstall_cmds=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1382
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1383
+if test -n "$RANLIB"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1384
+  case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1385
+  openbsd*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1386
+    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1387
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1388
+  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1389
+    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1390
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1391
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1392
+  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1393
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1394
+_LT_DECL([], [old_postinstall_cmds], [2])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1395
+_LT_DECL([], [old_postuninstall_cmds], [2])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1396
+_LT_TAGDECL([], [old_archive_cmds], [2],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1397
+    [Commands used to build an old-style archive])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1398
+])# _LT_CMD_OLD_ARCHIVE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1399
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1400
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1401
+# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1402
+#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1403
+# ----------------------------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1404
+# Check whether the given compiler option works
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1405
+AC_DEFUN([_LT_COMPILER_OPTION],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1406
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1407
+m4_require([_LT_DECL_SED])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1408
+AC_CACHE_CHECK([$1], [$2],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1409
+  [$2=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1410
+   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1411
+   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1412
+   lt_compiler_flag="$3"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1413
+   # Insert the option either (1) after the last *FLAGS variable, or
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1414
+   # (2) before a word containing "conftest.", or (3) at the end.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1415
+   # Note that $ac_compile itself does not contain backslashes and begins
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1416
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1417
+   # The option is referenced via a variable to avoid confusing sed.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1418
+   lt_compile=`echo "$ac_compile" | $SED \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1419
+   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1420
+   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1421
+   -e 's:$: $lt_compiler_flag:'`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1422
+   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1423
+   (eval "$lt_compile" 2>conftest.err)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1424
+   ac_status=$?
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1425
+   cat conftest.err >&AS_MESSAGE_LOG_FD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1426
+   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1427
+   if (exit $ac_status) && test -s "$ac_outfile"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1428
+     # The compiler can only warn and ignore the option if not recognized
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1429
+     # So say no if there are warnings other than the usual output.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1430
+     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1431
+     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1432
+     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1433
+       $2=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1434
+     fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1435
+   fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1436
+   $RM conftest*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1437
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1438
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1439
+if test x"[$]$2" = xyes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1440
+    m4_if([$5], , :, [$5])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1441
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1442
+    m4_if([$6], , :, [$6])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1443
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1444
+])# _LT_COMPILER_OPTION
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1445
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1446
+# Old name:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1447
+AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1448
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1449
+dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1450
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1451
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1452
+# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1453
+#                  [ACTION-SUCCESS], [ACTION-FAILURE])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1454
+# ----------------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1455
+# Check whether the given linker option works
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1456
+AC_DEFUN([_LT_LINKER_OPTION],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1457
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1458
+m4_require([_LT_DECL_SED])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1459
+AC_CACHE_CHECK([$1], [$2],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1460
+  [$2=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1461
+   save_LDFLAGS="$LDFLAGS"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1462
+   LDFLAGS="$LDFLAGS $3"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1463
+   echo "$lt_simple_link_test_code" > conftest.$ac_ext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1464
+   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1465
+     # The linker can only warn and ignore the option if not recognized
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1466
+     # So say no if there are warnings
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1467
+     if test -s conftest.err; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1468
+       # Append any errors to the config.log.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1469
+       cat conftest.err 1>&AS_MESSAGE_LOG_FD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1470
+       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1471
+       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1472
+       if diff conftest.exp conftest.er2 >/dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1473
+         $2=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1474
+       fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1475
+     else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1476
+       $2=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1477
+     fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1478
+   fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1479
+   $RM -r conftest*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1480
+   LDFLAGS="$save_LDFLAGS"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1481
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1482
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1483
+if test x"[$]$2" = xyes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1484
+    m4_if([$4], , :, [$4])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1485
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1486
+    m4_if([$5], , :, [$5])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1487
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1488
+])# _LT_LINKER_OPTION
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1489
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1490
+# Old name:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1491
+AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1492
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1493
+dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1494
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1495
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1496
+# LT_CMD_MAX_LEN
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1497
+#---------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1498
+AC_DEFUN([LT_CMD_MAX_LEN],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1499
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1500
+# find the maximum length of command line arguments
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1501
+AC_MSG_CHECKING([the maximum length of command line arguments])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1502
+AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1503
+  i=0
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1504
+  teststring="ABCD"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1505
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1506
+  case $build_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1507
+  msdosdjgpp*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1508
+    # On DJGPP, this test can blow up pretty badly due to problems in libc
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1509
+    # (any single argument exceeding 2000 bytes causes a buffer overrun
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1510
+    # during glob expansion).  Even if it were fixed, the result of this
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1511
+    # check would be larger than it should be.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1512
+    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1513
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1514
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1515
+  gnu*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1516
+    # Under GNU Hurd, this test is not required because there is
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1517
+    # no limit to the length of command line arguments.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1518
+    # Libtool will interpret -1 as no limit whatsoever
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1519
+    lt_cv_sys_max_cmd_len=-1;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1520
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1521
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1522
+  cygwin* | mingw* | cegcc*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1523
+    # On Win9x/ME, this test blows up -- it succeeds, but takes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1524
+    # about 5 minutes as the teststring grows exponentially.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1525
+    # Worse, since 9x/ME are not pre-emptively multitasking,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1526
+    # you end up with a "frozen" computer, even though with patience
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1527
+    # the test eventually succeeds (with a max line length of 256k).
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1528
+    # Instead, let's just punt: use the minimum linelength reported by
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1529
+    # all of the supported platforms: 8192 (on NT/2K/XP).
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1530
+    lt_cv_sys_max_cmd_len=8192;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1531
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1532
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1533
+  amigaos*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1534
+    # On AmigaOS with pdksh, this test takes hours, literally.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1535
+    # So we just punt and use a minimum line length of 8192.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1536
+    lt_cv_sys_max_cmd_len=8192;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1537
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1538
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1539
+  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1540
+    # This has been around since 386BSD, at least.  Likely further.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1541
+    if test -x /sbin/sysctl; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1542
+      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1543
+    elif test -x /usr/sbin/sysctl; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1544
+      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1545
+    else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1546
+      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1547
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1548
+    # And add a safety zone
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1549
+    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1550
+    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1551
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1552
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1553
+  interix*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1554
+    # We know the value 262144 and hardcode it with a safety zone (like BSD)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1555
+    lt_cv_sys_max_cmd_len=196608
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1556
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1557
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1558
+  osf*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1559
+    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1560
+    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1561
+    # nice to cause kernel panics so lets avoid the loop below.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1562
+    # First set a reasonable default.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1563
+    lt_cv_sys_max_cmd_len=16384
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1564
+    #
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1565
+    if test -x /sbin/sysconfig; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1566
+      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1567
+        *1*) lt_cv_sys_max_cmd_len=-1 ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1568
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1569
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1570
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1571
+  sco3.2v5*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1572
+    lt_cv_sys_max_cmd_len=102400
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1573
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1574
+  sysv5* | sco5v6* | sysv4.2uw2*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1575
+    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1576
+    if test -n "$kargmax"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1577
+      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[	 ]]//'`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1578
+    else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1579
+      lt_cv_sys_max_cmd_len=32768
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1580
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1581
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1582
+  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1583
+    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1584
+    if test -n "$lt_cv_sys_max_cmd_len"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1585
+      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1586
+      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1587
+    else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1588
+      # Make teststring a little bigger before we do anything with it.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1589
+      # a 1K string should be a reasonable start.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1590
+      for i in 1 2 3 4 5 6 7 8 ; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1591
+        teststring=$teststring$teststring
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1592
+      done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1593
+      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1594
+      # If test is not a shell built-in, we'll probably end up computing a
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1595
+      # maximum length that is only half of the actual maximum length, but
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1596
+      # we can't tell.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1597
+      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1598
+	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1599
+	      test $i != 17 # 1/2 MB should be enough
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1600
+      do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1601
+        i=`expr $i + 1`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1602
+        teststring=$teststring$teststring
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1603
+      done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1604
+      # Only check the string length outside the loop.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1605
+      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1606
+      teststring=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1607
+      # Add a significant safety factor because C++ compilers can tack on
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1608
+      # massive amounts of additional arguments before passing them to the
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1609
+      # linker.  It appears as though 1/2 is a usable value.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1610
+      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1611
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1612
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1613
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1614
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1615
+if test -n $lt_cv_sys_max_cmd_len ; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1616
+  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1617
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1618
+  AC_MSG_RESULT(none)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1619
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1620
+max_cmd_len=$lt_cv_sys_max_cmd_len
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1621
+_LT_DECL([], [max_cmd_len], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1622
+    [What is the maximum length of a command?])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1623
+])# LT_CMD_MAX_LEN
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1624
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1625
+# Old name:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1626
+AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1627
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1628
+dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1629
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1630
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1631
+# _LT_HEADER_DLFCN
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1632
+# ----------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1633
+m4_defun([_LT_HEADER_DLFCN],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1634
+[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1635
+])# _LT_HEADER_DLFCN
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1636
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1637
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1638
+# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1639
+#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1640
+# ----------------------------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1641
+m4_defun([_LT_TRY_DLOPEN_SELF],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1642
+[m4_require([_LT_HEADER_DLFCN])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1643
+if test "$cross_compiling" = yes; then :
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1644
+  [$4]
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1645
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1646
+  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1647
+  lt_status=$lt_dlunknown
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1648
+  cat > conftest.$ac_ext <<_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1649
+[#line __oline__ "configure"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1650
+#include "confdefs.h"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1651
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1652
+#if HAVE_DLFCN_H
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1653
+#include <dlfcn.h>
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1654
+#endif
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1655
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1656
+#include <stdio.h>
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1657
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1658
+#ifdef RTLD_GLOBAL
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1659
+#  define LT_DLGLOBAL		RTLD_GLOBAL
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1660
+#else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1661
+#  ifdef DL_GLOBAL
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1662
+#    define LT_DLGLOBAL		DL_GLOBAL
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1663
+#  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1664
+#    define LT_DLGLOBAL		0
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1665
+#  endif
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1666
+#endif
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1667
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1668
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1669
+   find out it does not work in some platform. */
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1670
+#ifndef LT_DLLAZY_OR_NOW
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1671
+#  ifdef RTLD_LAZY
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1672
+#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1673
+#  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1674
+#    ifdef DL_LAZY
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1675
+#      define LT_DLLAZY_OR_NOW		DL_LAZY
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1676
+#    else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1677
+#      ifdef RTLD_NOW
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1678
+#        define LT_DLLAZY_OR_NOW	RTLD_NOW
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1679
+#      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1680
+#        ifdef DL_NOW
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1681
+#          define LT_DLLAZY_OR_NOW	DL_NOW
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1682
+#        else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1683
+#          define LT_DLLAZY_OR_NOW	0
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1684
+#        endif
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1685
+#      endif
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1686
+#    endif
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1687
+#  endif
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1688
+#endif
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1689
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1690
+void fnord() { int i=42;}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1691
+int main ()
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1692
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1693
+  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1694
+  int status = $lt_dlunknown;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1695
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1696
+  if (self)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1697
+    {
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1698
+      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1699
+      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1700
+      /* dlclose (self); */
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1701
+    }
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1702
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1703
+    puts (dlerror ());
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1704
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1705
+  return status;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1706
+}]
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1707
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1708
+  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1709
+    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1710
+    lt_status=$?
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1711
+    case x$lt_status in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1712
+      x$lt_dlno_uscore) $1 ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1713
+      x$lt_dlneed_uscore) $2 ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1714
+      x$lt_dlunknown|x*) $3 ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1715
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1716
+  else :
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1717
+    # compilation failed
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1718
+    $3
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1719
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1720
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1721
+rm -fr conftest*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1722
+])# _LT_TRY_DLOPEN_SELF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1723
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1724
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1725
+# LT_SYS_DLOPEN_SELF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1726
+# ------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1727
+AC_DEFUN([LT_SYS_DLOPEN_SELF],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1728
+[m4_require([_LT_HEADER_DLFCN])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1729
+if test "x$enable_dlopen" != xyes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1730
+  enable_dlopen=unknown
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1731
+  enable_dlopen_self=unknown
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1732
+  enable_dlopen_self_static=unknown
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1733
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1734
+  lt_cv_dlopen=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1735
+  lt_cv_dlopen_libs=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1736
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1737
+  case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1738
+  beos*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1739
+    lt_cv_dlopen="load_add_on"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1740
+    lt_cv_dlopen_libs=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1741
+    lt_cv_dlopen_self=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1742
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1743
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1744
+  mingw* | pw32* | cegcc*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1745
+    lt_cv_dlopen="LoadLibrary"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1746
+    lt_cv_dlopen_libs=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1747
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1748
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1749
+  cygwin*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1750
+    lt_cv_dlopen="dlopen"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1751
+    lt_cv_dlopen_libs=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1752
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1753
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1754
+  darwin*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1755
+  # if libdl is installed we need to link against it
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1756
+    AC_CHECK_LIB([dl], [dlopen],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1757
+		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1758
+    lt_cv_dlopen="dyld"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1759
+    lt_cv_dlopen_libs=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1760
+    lt_cv_dlopen_self=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1761
+    ])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1762
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1763
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1764
+  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1765
+    AC_CHECK_FUNC([shl_load],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1766
+	  [lt_cv_dlopen="shl_load"],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1767
+      [AC_CHECK_LIB([dld], [shl_load],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1768
+	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1769
+	[AC_CHECK_FUNC([dlopen],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1770
+	      [lt_cv_dlopen="dlopen"],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1771
+	  [AC_CHECK_LIB([dl], [dlopen],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1772
+		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1773
+	    [AC_CHECK_LIB([svld], [dlopen],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1774
+		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1775
+	      [AC_CHECK_LIB([dld], [dld_link],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1776
+		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1777
+	      ])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1778
+	    ])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1779
+	  ])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1780
+	])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1781
+      ])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1782
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1783
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1784
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1785
+  if test "x$lt_cv_dlopen" != xno; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1786
+    enable_dlopen=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1787
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1788
+    enable_dlopen=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1789
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1790
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1791
+  case $lt_cv_dlopen in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1792
+  dlopen)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1793
+    save_CPPFLAGS="$CPPFLAGS"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1794
+    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1795
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1796
+    save_LDFLAGS="$LDFLAGS"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1797
+    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1798
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1799
+    save_LIBS="$LIBS"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1800
+    LIBS="$lt_cv_dlopen_libs $LIBS"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1801
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1802
+    AC_CACHE_CHECK([whether a program can dlopen itself],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1803
+	  lt_cv_dlopen_self, [dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1804
+	  _LT_TRY_DLOPEN_SELF(
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1805
+	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1806
+	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1807
+    ])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1808
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1809
+    if test "x$lt_cv_dlopen_self" = xyes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1810
+      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1811
+      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1812
+	  lt_cv_dlopen_self_static, [dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1813
+	  _LT_TRY_DLOPEN_SELF(
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1814
+	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1815
+	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1816
+      ])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1817
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1818
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1819
+    CPPFLAGS="$save_CPPFLAGS"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1820
+    LDFLAGS="$save_LDFLAGS"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1821
+    LIBS="$save_LIBS"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1822
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1823
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1824
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1825
+  case $lt_cv_dlopen_self in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1826
+  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1827
+  *) enable_dlopen_self=unknown ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1828
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1829
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1830
+  case $lt_cv_dlopen_self_static in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1831
+  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1832
+  *) enable_dlopen_self_static=unknown ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1833
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1834
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1835
+_LT_DECL([dlopen_support], [enable_dlopen], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1836
+	 [Whether dlopen is supported])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1837
+_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1838
+	 [Whether dlopen of programs is supported])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1839
+_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1840
+	 [Whether dlopen of statically linked programs is supported])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1841
+])# LT_SYS_DLOPEN_SELF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1842
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1843
+# Old name:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1844
+AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1845
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1846
+dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1847
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1848
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1849
+# _LT_COMPILER_C_O([TAGNAME])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1850
+# ---------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1851
+# Check to see if options -c and -o are simultaneously supported by compiler.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1852
+# This macro does not hard code the compiler like AC_PROG_CC_C_O.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1853
+m4_defun([_LT_COMPILER_C_O],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1854
+[m4_require([_LT_DECL_SED])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1855
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1856
+m4_require([_LT_TAG_COMPILER])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1857
+AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1858
+  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1859
+  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1860
+   $RM -r conftest 2>/dev/null
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1861
+   mkdir conftest
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1862
+   cd conftest
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1863
+   mkdir out
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1864
+   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1865
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1866
+   lt_compiler_flag="-o out/conftest2.$ac_objext"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1867
+   # Insert the option either (1) after the last *FLAGS variable, or
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1868
+   # (2) before a word containing "conftest.", or (3) at the end.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1869
+   # Note that $ac_compile itself does not contain backslashes and begins
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1870
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1871
+   lt_compile=`echo "$ac_compile" | $SED \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1872
+   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1873
+   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1874
+   -e 's:$: $lt_compiler_flag:'`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1875
+   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1876
+   (eval "$lt_compile" 2>out/conftest.err)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1877
+   ac_status=$?
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1878
+   cat out/conftest.err >&AS_MESSAGE_LOG_FD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1879
+   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1880
+   if (exit $ac_status) && test -s out/conftest2.$ac_objext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1881
+   then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1882
+     # The compiler can only warn and ignore the option if not recognized
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1883
+     # So say no if there are warnings
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1884
+     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1885
+     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1886
+     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1887
+       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1888
+     fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1889
+   fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1890
+   chmod u+w . 2>&AS_MESSAGE_LOG_FD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1891
+   $RM conftest*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1892
+   # SGI C++ compiler will create directory out/ii_files/ for
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1893
+   # template instantiation
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1894
+   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1895
+   $RM out/* && rmdir out
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1896
+   cd ..
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1897
+   $RM -r conftest
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1898
+   $RM conftest*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1899
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1900
+_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1901
+	[Does compiler simultaneously support -c and -o options?])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1902
+])# _LT_COMPILER_C_O
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1903
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1904
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1905
+# _LT_COMPILER_FILE_LOCKS([TAGNAME])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1906
+# ----------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1907
+# Check to see if we can do hard links to lock some files if needed
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1908
+m4_defun([_LT_COMPILER_FILE_LOCKS],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1909
+[m4_require([_LT_ENABLE_LOCK])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1910
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1911
+_LT_COMPILER_C_O([$1])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1912
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1913
+hard_links="nottested"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1914
+if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1915
+  # do not overwrite the value of need_locks provided by the user
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1916
+  AC_MSG_CHECKING([if we can lock with hard links])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1917
+  hard_links=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1918
+  $RM conftest*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1919
+  ln conftest.a conftest.b 2>/dev/null && hard_links=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1920
+  touch conftest.a
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1921
+  ln conftest.a conftest.b 2>&5 || hard_links=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1922
+  ln conftest.a conftest.b 2>/dev/null && hard_links=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1923
+  AC_MSG_RESULT([$hard_links])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1924
+  if test "$hard_links" = no; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1925
+    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1926
+    need_locks=warn
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1927
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1928
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1929
+  need_locks=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1930
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1931
+_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1932
+])# _LT_COMPILER_FILE_LOCKS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1933
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1934
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1935
+# _LT_CHECK_OBJDIR
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1936
+# ----------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1937
+m4_defun([_LT_CHECK_OBJDIR],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1938
+[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1939
+[rm -f .libs 2>/dev/null
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1940
+mkdir .libs 2>/dev/null
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1941
+if test -d .libs; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1942
+  lt_cv_objdir=.libs
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1943
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1944
+  # MS-DOS does not allow filenames that begin with a dot.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1945
+  lt_cv_objdir=_libs
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1946
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1947
+rmdir .libs 2>/dev/null])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1948
+objdir=$lt_cv_objdir
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1949
+_LT_DECL([], [objdir], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1950
+         [The name of the directory that contains temporary libtool files])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1951
+m4_pattern_allow([LT_OBJDIR])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1952
+AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1953
+  [Define to the sub-directory in which libtool stores uninstalled libraries.])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1954
+])# _LT_CHECK_OBJDIR
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1955
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1956
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1957
+# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1958
+# --------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1959
+# Check hardcoding attributes.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1960
+m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1961
+[AC_MSG_CHECKING([how to hardcode library paths into programs])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1962
+_LT_TAGVAR(hardcode_action, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1963
+if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1964
+   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1965
+   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1966
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1967
+  # We can hardcode non-existent directories.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1968
+  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1969
+     # If the only mechanism to avoid hardcoding is shlibpath_var, we
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1970
+     # have to relink, otherwise we might link with an installed library
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1971
+     # when we should be linking with a yet-to-be-installed one
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1972
+     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1973
+     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1974
+    # Linking always hardcodes the temporary library directory.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1975
+    _LT_TAGVAR(hardcode_action, $1)=relink
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1976
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1977
+    # We can link without hardcoding, and we can hardcode nonexisting dirs.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1978
+    _LT_TAGVAR(hardcode_action, $1)=immediate
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1979
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1980
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1981
+  # We cannot hardcode anything, or else we can only hardcode existing
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1982
+  # directories.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1983
+  _LT_TAGVAR(hardcode_action, $1)=unsupported
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1984
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1985
+AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1986
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1987
+if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1988
+   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1989
+  # Fast installation is not supported
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1990
+  enable_fast_install=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1991
+elif test "$shlibpath_overrides_runpath" = yes ||
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1992
+     test "$enable_shared" = no; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1993
+  # Fast installation is not necessary
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1994
+  enable_fast_install=needless
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1995
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1996
+_LT_TAGDECL([], [hardcode_action], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1997
+    [How to hardcode a shared library path into an executable])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1998
+])# _LT_LINKER_HARDCODE_LIBPATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  1999
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2000
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2001
+# _LT_CMD_STRIPLIB
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2002
+# ----------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2003
+m4_defun([_LT_CMD_STRIPLIB],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2004
+[m4_require([_LT_DECL_EGREP])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2005
+striplib=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2006
+old_striplib=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2007
+AC_MSG_CHECKING([whether stripping libraries is possible])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2008
+if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2009
+  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2010
+  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2011
+  AC_MSG_RESULT([yes])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2012
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2013
+# FIXME - insert some real tests, host_os isn't really good enough
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2014
+  case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2015
+  darwin*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2016
+    if test -n "$STRIP" ; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2017
+      striplib="$STRIP -x"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2018
+      old_striplib="$STRIP -S"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2019
+      AC_MSG_RESULT([yes])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2020
+    else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2021
+      AC_MSG_RESULT([no])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2022
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2023
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2024
+  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2025
+    AC_MSG_RESULT([no])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2026
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2027
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2028
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2029
+_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2030
+_LT_DECL([], [striplib], [1])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2031
+])# _LT_CMD_STRIPLIB
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2032
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2033
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2034
+# _LT_SYS_DYNAMIC_LINKER([TAG])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2035
+# -----------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2036
+# PORTME Fill in your ld.so characteristics
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2037
+m4_defun([_LT_SYS_DYNAMIC_LINKER],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2038
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2039
+m4_require([_LT_DECL_EGREP])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2040
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2041
+m4_require([_LT_DECL_OBJDUMP])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2042
+m4_require([_LT_DECL_SED])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2043
+AC_MSG_CHECKING([dynamic linker characteristics])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2044
+m4_if([$1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2045
+	[], [
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2046
+if test "$GCC" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2047
+  case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2048
+    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2049
+    *) lt_awk_arg="/^libraries:/" ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2050
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2051
+  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2052
+  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2053
+    # if the path contains ";" then we assume it to be the separator
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2054
+    # otherwise default to the standard path separator (i.e. ":") - it is
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2055
+    # assumed that no part of a normal pathname contains ";" but that should
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2056
+    # okay in the real world where ";" in dirpaths is itself problematic.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2057
+    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2058
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2059
+    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2060
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2061
+  # Ok, now we have the path, separated by spaces, we can step through it
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2062
+  # and add multilib dir if necessary.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2063
+  lt_tmp_lt_search_path_spec=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2064
+  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2065
+  for lt_sys_path in $lt_search_path_spec; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2066
+    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2067
+      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2068
+    else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2069
+      test -d "$lt_sys_path" && \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2070
+	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2071
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2072
+  done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2073
+  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2074
+BEGIN {RS=" "; FS="/|\n";} {
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2075
+  lt_foo="";
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2076
+  lt_count=0;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2077
+  for (lt_i = NF; lt_i > 0; lt_i--) {
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2078
+    if ($lt_i != "" && $lt_i != ".") {
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2079
+      if ($lt_i == "..") {
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2080
+        lt_count++;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2081
+      } else {
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2082
+        if (lt_count == 0) {
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2083
+          lt_foo="/" $lt_i lt_foo;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2084
+        } else {
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2085
+          lt_count--;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2086
+        }
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2087
+      }
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2088
+    }
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2089
+  }
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2090
+  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2091
+  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2092
+}'`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2093
+  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2094
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2095
+  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2096
+fi])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2097
+library_names_spec=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2098
+libname_spec='lib$name'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2099
+soname_spec=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2100
+shrext_cmds=".so"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2101
+postinstall_cmds=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2102
+postuninstall_cmds=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2103
+finish_cmds=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2104
+finish_eval=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2105
+shlibpath_var=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2106
+shlibpath_overrides_runpath=unknown
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2107
+version_type=none
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2108
+dynamic_linker="$host_os ld.so"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2109
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2110
+need_lib_prefix=unknown
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2111
+hardcode_into_libs=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2112
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2113
+# when you set need_version to no, make sure it does not cause -set_version
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2114
+# flags to be left without arguments
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2115
+need_version=unknown
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2116
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2117
+case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2118
+aix3*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2119
+  version_type=linux
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2120
+  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2121
+  shlibpath_var=LIBPATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2122
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2123
+  # AIX 3 has no versioning support, so we append a major version to the name.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2124
+  soname_spec='${libname}${release}${shared_ext}$major'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2125
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2126
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2127
+aix[[4-9]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2128
+  version_type=linux
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2129
+  need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2130
+  need_version=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2131
+  hardcode_into_libs=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2132
+  if test "$host_cpu" = ia64; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2133
+    # AIX 5 supports IA64
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2134
+    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2135
+    shlibpath_var=LD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2136
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2137
+    # With GCC up to 2.95.x, collect2 would create an import file
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2138
+    # for dependence libraries.  The import file would start with
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2139
+    # the line `#! .'.  This would cause the generated library to
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2140
+    # depend on `.', always an invalid library.  This was fixed in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2141
+    # development snapshots of GCC prior to 3.0.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2142
+    case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2143
+      aix4 | aix4.[[01]] | aix4.[[01]].*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2144
+      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2145
+	   echo ' yes '
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2146
+	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2147
+	:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2148
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2149
+	can_build_shared=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2150
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2151
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2152
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2153
+    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2154
+    # soname into executable. Probably we can add versioning support to
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2155
+    # collect2, so additional links can be useful in future.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2156
+    if test "$aix_use_runtimelinking" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2157
+      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2158
+      # instead of lib<name>.a to let people know that these are not
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2159
+      # typical AIX shared libraries.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2160
+      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2161
+    else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2162
+      # We preserve .a as extension for shared libraries through AIX4.2
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2163
+      # and later when we are not doing run time linking.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2164
+      library_names_spec='${libname}${release}.a $libname.a'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2165
+      soname_spec='${libname}${release}${shared_ext}$major'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2166
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2167
+    shlibpath_var=LIBPATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2168
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2169
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2170
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2171
+amigaos*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2172
+  case $host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2173
+  powerpc)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2174
+    # Since July 2007 AmigaOS4 officially supports .so libraries.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2175
+    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2176
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2177
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2178
+  m68k)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2179
+    library_names_spec='$libname.ixlibrary $libname.a'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2180
+    # Create ${libname}_ixlibrary.a entries in /sys/libs.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2181
+    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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2182
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2183
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2184
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2185
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2186
+beos*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2187
+  library_names_spec='${libname}${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2188
+  dynamic_linker="$host_os ld.so"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2189
+  shlibpath_var=LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2190
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2191
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2192
+bsdi[[45]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2193
+  version_type=linux
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2194
+  need_version=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2195
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2196
+  soname_spec='${libname}${release}${shared_ext}$major'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2197
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2198
+  shlibpath_var=LD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2199
+  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2200
+  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2201
+  # the default ld.so.conf also contains /usr/contrib/lib and
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2202
+  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2203
+  # libtool to hard-code these into programs
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2204
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2205
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2206
+cygwin* | mingw* | pw32* | cegcc*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2207
+  version_type=windows
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2208
+  shrext_cmds=".dll"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2209
+  need_version=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2210
+  need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2211
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2212
+  case $GCC,$host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2213
+  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2214
+    library_names_spec='$libname.dll.a'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2215
+    # DLL is installed to $(libdir)/../bin by postinstall_cmds
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2216
+    postinstall_cmds='base_file=`basename \${file}`~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2217
+      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2218
+      dldir=$destdir/`dirname \$dlpath`~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2219
+      test -d \$dldir || mkdir -p \$dldir~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2220
+      $install_prog $dir/$dlname \$dldir/$dlname~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2221
+      chmod a+x \$dldir/$dlname~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2222
+      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2223
+        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2224
+      fi'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2225
+    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2226
+      dlpath=$dir/\$dldll~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2227
+       $RM \$dlpath'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2228
+    shlibpath_overrides_runpath=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2229
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2230
+    case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2231
+    cygwin*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2232
+      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2233
+      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2234
+      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2235
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2236
+    mingw* | cegcc*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2237
+      # MinGW DLLs use traditional 'lib' prefix
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2238
+      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2239
+      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2240
+      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2241
+        # It is most probably a Windows format PATH printed by
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2242
+        # mingw gcc, but we are running on Cygwin. Gcc prints its search
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2243
+        # path with ; separators, and with drive letters. We can handle the
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2244
+        # drive letters (cygwin fileutils understands them), so leave them,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2245
+        # especially as we might pass files found there to a mingw objdump,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2246
+        # which wouldn't understand a cygwinified path. Ahh.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2247
+        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2248
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2249
+        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2250
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2251
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2252
+    pw32*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2253
+      # pw32 DLLs use 'pw' prefix rather than 'lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2254
+      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2255
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2256
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2257
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2258
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2259
+  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2260
+    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2261
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2262
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2263
+  dynamic_linker='Win32 ld.exe'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2264
+  # FIXME: first we should search . and the directory the executable is in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2265
+  shlibpath_var=PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2266
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2267
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2268
+darwin* | rhapsody*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2269
+  dynamic_linker="$host_os dyld"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2270
+  version_type=darwin
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2271
+  need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2272
+  need_version=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2273
+  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2274
+  soname_spec='${libname}${release}${major}$shared_ext'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2275
+  shlibpath_overrides_runpath=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2276
+  shlibpath_var=DYLD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2277
+  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2278
+m4_if([$1], [],[
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2279
+  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2280
+  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2281
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2282
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2283
+dgux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2284
+  version_type=linux
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2285
+  need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2286
+  need_version=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2287
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2288
+  soname_spec='${libname}${release}${shared_ext}$major'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2289
+  shlibpath_var=LD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2290
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2291
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2292
+freebsd1*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2293
+  dynamic_linker=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2294
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2295
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2296
+freebsd* | dragonfly*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2297
+  # DragonFly does not have aout.  When/if they implement a new
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2298
+  # versioning mechanism, adjust this.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2299
+  if test -x /usr/bin/objformat; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2300
+    objformat=`/usr/bin/objformat`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2301
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2302
+    case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2303
+    freebsd[[123]]*) objformat=aout ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2304
+    *) objformat=elf ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2305
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2306
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2307
+  version_type=freebsd-$objformat
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2308
+  case $version_type in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2309
+    freebsd-elf*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2310
+      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2311
+      need_version=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2312
+      need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2313
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2314
+    freebsd-*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2315
+      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2316
+      need_version=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2317
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2318
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2319
+  shlibpath_var=LD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2320
+  case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2321
+  freebsd2*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2322
+    shlibpath_overrides_runpath=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2323
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2324
+  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2325
+    shlibpath_overrides_runpath=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2326
+    hardcode_into_libs=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2327
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2328
+  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2329
+  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2330
+    shlibpath_overrides_runpath=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2331
+    hardcode_into_libs=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2332
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2333
+  *) # from 4.6 on, and DragonFly
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2334
+    shlibpath_overrides_runpath=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2335
+    hardcode_into_libs=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2336
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2337
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2338
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2339
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2340
+gnu*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2341
+  version_type=linux
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2342
+  need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2343
+  need_version=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2344
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2345
+  soname_spec='${libname}${release}${shared_ext}$major'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2346
+  shlibpath_var=LD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2347
+  hardcode_into_libs=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2348
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2349
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2350
+hpux9* | hpux10* | hpux11*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2351
+  # Give a soname corresponding to the major version so that dld.sl refuses to
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2352
+  # link against other versions.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2353
+  version_type=sunos
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2354
+  need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2355
+  need_version=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2356
+  case $host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2357
+  ia64*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2358
+    shrext_cmds='.so'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2359
+    hardcode_into_libs=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2360
+    dynamic_linker="$host_os dld.so"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2361
+    shlibpath_var=LD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2362
+    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2363
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2364
+    soname_spec='${libname}${release}${shared_ext}$major'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2365
+    if test "X$HPUX_IA64_MODE" = X32; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2366
+      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2367
+    else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2368
+      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2369
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2370
+    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2371
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2372
+  hppa*64*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2373
+    shrext_cmds='.sl'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2374
+    hardcode_into_libs=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2375
+    dynamic_linker="$host_os dld.sl"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2376
+    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2377
+    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2378
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2379
+    soname_spec='${libname}${release}${shared_ext}$major'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2380
+    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2381
+    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2382
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2383
+  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2384
+    shrext_cmds='.sl'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2385
+    dynamic_linker="$host_os dld.sl"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2386
+    shlibpath_var=SHLIB_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2387
+    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2388
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2389
+    soname_spec='${libname}${release}${shared_ext}$major'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2390
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2391
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2392
+  # HP-UX runs *really* slowly unless shared libraries are mode 555.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2393
+  postinstall_cmds='chmod 555 $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2394
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2395
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2396
+interix[[3-9]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2397
+  version_type=linux
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2398
+  need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2399
+  need_version=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2400
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2401
+  soname_spec='${libname}${release}${shared_ext}$major'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2402
+  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2403
+  shlibpath_var=LD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2404
+  shlibpath_overrides_runpath=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2405
+  hardcode_into_libs=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2406
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2407
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2408
+irix5* | irix6* | nonstopux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2409
+  case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2410
+    nonstopux*) version_type=nonstopux ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2411
+    *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2412
+	if test "$lt_cv_prog_gnu_ld" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2413
+		version_type=linux
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2414
+	else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2415
+		version_type=irix
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2416
+	fi ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2417
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2418
+  need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2419
+  need_version=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2420
+  soname_spec='${libname}${release}${shared_ext}$major'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2421
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2422
+  case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2423
+  irix5* | nonstopux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2424
+    libsuff= shlibsuff=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2425
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2426
+  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2427
+    case $LD in # libtool.m4 will add one of these switches to LD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2428
+    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2429
+      libsuff= shlibsuff= libmagic=32-bit;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2430
+    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2431
+      libsuff=32 shlibsuff=N32 libmagic=N32;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2432
+    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2433
+      libsuff=64 shlibsuff=64 libmagic=64-bit;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2434
+    *) libsuff= shlibsuff= libmagic=never-match;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2435
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2436
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2437
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2438
+  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2439
+  shlibpath_overrides_runpath=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2440
+  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2441
+  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2442
+  hardcode_into_libs=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2443
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2444
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2445
+# No shared lib support for Linux oldld, aout, or coff.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2446
+linux*oldld* | linux*aout* | linux*coff*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2447
+  dynamic_linker=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2448
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2449
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2450
+# This must be Linux ELF.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2451
+linux* | k*bsd*-gnu)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2452
+  version_type=linux
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2453
+  need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2454
+  need_version=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2455
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2456
+  soname_spec='${libname}${release}${shared_ext}$major'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2457
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2458
+  shlibpath_var=LD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2459
+  shlibpath_overrides_runpath=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2460
+  # Some binutils ld are patched to set DT_RUNPATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2461
+  save_LDFLAGS=$LDFLAGS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2462
+  save_libdir=$libdir
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2463
+  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2464
+       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2465
+  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2466
+    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2467
+       [shlibpath_overrides_runpath=yes])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2468
+  LDFLAGS=$save_LDFLAGS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2469
+  libdir=$save_libdir
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2470
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2471
+  # This implies no fast_install, which is unacceptable.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2472
+  # Some rework will be needed to allow for fast_install
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2473
+  # before this can be enabled.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2474
+  hardcode_into_libs=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2475
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2476
+  # Add ABI-specific directories to the system library path.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2477
+  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2478
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2479
+  # Append ld.so.conf contents to the search path
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2480
+  if test -f /etc/ld.so.conf; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2481
+    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' ' '`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2482
+    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2483
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2484
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2485
+  # We used to test for /lib/ld.so.1 and disable shared libraries on
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2486
+  # powerpc, because MkLinux only supported shared libraries with the
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2487
+  # GNU dynamic linker.  Since this was broken with cross compilers,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2488
+  # most powerpc-linux boxes support dynamic linking these days and
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2489
+  # people can always --disable-shared, the test was removed, and we
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2490
+  # assume the GNU/Linux dynamic linker is in use.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2491
+  dynamic_linker='GNU/Linux ld.so'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2492
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2493
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2494
+netbsd*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2495
+  version_type=sunos
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2496
+  need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2497
+  need_version=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2498
+  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2499
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2500
+    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2501
+    dynamic_linker='NetBSD (a.out) ld.so'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2502
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2503
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2504
+    soname_spec='${libname}${release}${shared_ext}$major'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2505
+    dynamic_linker='NetBSD ld.elf_so'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2506
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2507
+  shlibpath_var=LD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2508
+  shlibpath_overrides_runpath=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2509
+  hardcode_into_libs=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2510
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2511
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2512
+newsos6)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2513
+  version_type=linux
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2514
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2515
+  shlibpath_var=LD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2516
+  shlibpath_overrides_runpath=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2517
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2518
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2519
+*nto* | *qnx*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2520
+  version_type=qnx
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2521
+  need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2522
+  need_version=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2523
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2524
+  soname_spec='${libname}${release}${shared_ext}$major'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2525
+  shlibpath_var=LD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2526
+  shlibpath_overrides_runpath=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2527
+  hardcode_into_libs=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2528
+  dynamic_linker='ldqnx.so'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2529
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2530
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2531
+openbsd*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2532
+  version_type=sunos
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2533
+  sys_lib_dlsearch_path_spec="/usr/lib"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2534
+  need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2535
+  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2536
+  case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2537
+    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2538
+    *)				need_version=no  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2539
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2540
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2541
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2542
+  shlibpath_var=LD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2543
+  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2544
+    case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2545
+      openbsd2.[[89]] | openbsd2.[[89]].*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2546
+	shlibpath_overrides_runpath=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2547
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2548
+      *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2549
+	shlibpath_overrides_runpath=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2550
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2551
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2552
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2553
+    shlibpath_overrides_runpath=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2554
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2555
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2556
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2557
+os2*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2558
+  libname_spec='$name'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2559
+  shrext_cmds=".dll"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2560
+  need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2561
+  library_names_spec='$libname${shared_ext} $libname.a'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2562
+  dynamic_linker='OS/2 ld.exe'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2563
+  shlibpath_var=LIBPATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2564
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2565
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2566
+osf3* | osf4* | osf5*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2567
+  version_type=osf
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2568
+  need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2569
+  need_version=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2570
+  soname_spec='${libname}${release}${shared_ext}$major'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2571
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2572
+  shlibpath_var=LD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2573
+  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2574
+  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2575
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2576
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2577
+rdos*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2578
+  dynamic_linker=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2579
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2580
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2581
+solaris*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2582
+  version_type=linux
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2583
+  need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2584
+  need_version=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2585
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2586
+  soname_spec='${libname}${release}${shared_ext}$major'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2587
+  shlibpath_var=LD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2588
+  shlibpath_overrides_runpath=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2589
+  hardcode_into_libs=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2590
+  # ldd complains unless libraries are executable
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2591
+  postinstall_cmds='chmod +x $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2592
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2593
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2594
+sunos4*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2595
+  version_type=sunos
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2596
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2597
+  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2598
+  shlibpath_var=LD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2599
+  shlibpath_overrides_runpath=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2600
+  if test "$with_gnu_ld" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2601
+    need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2602
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2603
+  need_version=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2604
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2605
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2606
+sysv4 | sysv4.3*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2607
+  version_type=linux
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2608
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2609
+  soname_spec='${libname}${release}${shared_ext}$major'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2610
+  shlibpath_var=LD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2611
+  case $host_vendor in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2612
+    sni)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2613
+      shlibpath_overrides_runpath=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2614
+      need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2615
+      runpath_var=LD_RUN_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2616
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2617
+    siemens)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2618
+      need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2619
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2620
+    motorola)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2621
+      need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2622
+      need_version=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2623
+      shlibpath_overrides_runpath=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2624
+      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2625
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2626
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2627
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2628
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2629
+sysv4*MP*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2630
+  if test -d /usr/nec ;then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2631
+    version_type=linux
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2632
+    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2633
+    soname_spec='$libname${shared_ext}.$major'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2634
+    shlibpath_var=LD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2635
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2636
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2637
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2638
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2639
+  version_type=freebsd-elf
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2640
+  need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2641
+  need_version=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2642
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2643
+  soname_spec='${libname}${release}${shared_ext}$major'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2644
+  shlibpath_var=LD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2645
+  shlibpath_overrides_runpath=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2646
+  hardcode_into_libs=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2647
+  if test "$with_gnu_ld" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2648
+    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2649
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2650
+    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2651
+    case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2652
+      sco3.2v5*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2653
+        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2654
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2655
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2656
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2657
+  sys_lib_dlsearch_path_spec='/usr/lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2658
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2659
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2660
+tpf*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2661
+  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2662
+  version_type=linux
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2663
+  need_lib_prefix=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2664
+  need_version=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2665
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2666
+  shlibpath_var=LD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2667
+  shlibpath_overrides_runpath=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2668
+  hardcode_into_libs=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2669
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2670
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2671
+uts4*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2672
+  version_type=linux
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2673
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2674
+  soname_spec='${libname}${release}${shared_ext}$major'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2675
+  shlibpath_var=LD_LIBRARY_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2676
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2677
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2678
+*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2679
+  dynamic_linker=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2680
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2681
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2682
+AC_MSG_RESULT([$dynamic_linker])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2683
+test "$dynamic_linker" = no && can_build_shared=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2684
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2685
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2686
+if test "$GCC" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2687
+  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2688
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2689
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2690
+if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2691
+  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2692
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2693
+if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2694
+  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2695
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2696
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2697
+_LT_DECL([], [variables_saved_for_relink], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2698
+    [Variables whose values should be saved in libtool wrapper scripts and
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2699
+    restored at link time])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2700
+_LT_DECL([], [need_lib_prefix], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2701
+    [Do we need the "lib" prefix for modules?])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2702
+_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2703
+_LT_DECL([], [version_type], [0], [Library versioning type])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2704
+_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2705
+_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2706
+_LT_DECL([], [shlibpath_overrides_runpath], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2707
+    [Is shlibpath searched before the hard-coded library search path?])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2708
+_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2709
+_LT_DECL([], [library_names_spec], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2710
+    [[List of archive names.  First name is the real one, the rest are links.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2711
+    The last name is the one that the linker finds with -lNAME]])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2712
+_LT_DECL([], [soname_spec], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2713
+    [[The coded name of the library, if different from the real name]])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2714
+_LT_DECL([], [postinstall_cmds], [2],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2715
+    [Command to use after installation of a shared archive])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2716
+_LT_DECL([], [postuninstall_cmds], [2],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2717
+    [Command to use after uninstallation of a shared archive])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2718
+_LT_DECL([], [finish_cmds], [2],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2719
+    [Commands used to finish a libtool library installation in a directory])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2720
+_LT_DECL([], [finish_eval], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2721
+    [[As "finish_cmds", except a single script fragment to be evaled but
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2722
+    not shown]])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2723
+_LT_DECL([], [hardcode_into_libs], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2724
+    [Whether we should hardcode library paths into libraries])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2725
+_LT_DECL([], [sys_lib_search_path_spec], [2],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2726
+    [Compile-time system search path for libraries])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2727
+_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2728
+    [Run-time system search path for libraries])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2729
+])# _LT_SYS_DYNAMIC_LINKER
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2730
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2731
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2732
+# _LT_PATH_TOOL_PREFIX(TOOL)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2733
+# --------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2734
+# find a file program which can recognize shared library
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2735
+AC_DEFUN([_LT_PATH_TOOL_PREFIX],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2736
+[m4_require([_LT_DECL_EGREP])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2737
+AC_MSG_CHECKING([for $1])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2738
+AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2739
+[case $MAGIC_CMD in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2740
+[[\\/*] |  ?:[\\/]*])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2741
+  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2742
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2743
+*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2744
+  lt_save_MAGIC_CMD="$MAGIC_CMD"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2745
+  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2746
+dnl $ac_dummy forces splitting on constant user-supplied paths.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2747
+dnl POSIX.2 word splitting is done only on the output of word expansions,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2748
+dnl not every word.  This closes a longstanding sh security hole.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2749
+  ac_dummy="m4_if([$2], , $PATH, [$2])"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2750
+  for ac_dir in $ac_dummy; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2751
+    IFS="$lt_save_ifs"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2752
+    test -z "$ac_dir" && ac_dir=.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2753
+    if test -f $ac_dir/$1; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2754
+      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2755
+      if test -n "$file_magic_test_file"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2756
+	case $deplibs_check_method in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2757
+	"file_magic "*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2758
+	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2759
+	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2760
+	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2761
+	    $EGREP "$file_magic_regex" > /dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2762
+	    :
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2763
+	  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2764
+	    cat <<_LT_EOF 1>&2
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2765
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2766
+*** Warning: the command libtool uses to detect shared libraries,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2767
+*** $file_magic_cmd, produces output that libtool cannot recognize.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2768
+*** The result is that libtool may fail to recognize shared libraries
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2769
+*** as such.  This will affect the creation of libtool libraries that
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2770
+*** depend on shared libraries, but programs linked with such libtool
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2771
+*** libraries will work regardless of this problem.  Nevertheless, you
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2772
+*** may want to report the problem to your system manager and/or to
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2773
+*** [email protected]
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2774
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2775
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2776
+	  fi ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2777
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2778
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2779
+      break
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2780
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2781
+  done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2782
+  IFS="$lt_save_ifs"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2783
+  MAGIC_CMD="$lt_save_MAGIC_CMD"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2784
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2785
+esac])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2786
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2787
+if test -n "$MAGIC_CMD"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2788
+  AC_MSG_RESULT($MAGIC_CMD)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2789
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2790
+  AC_MSG_RESULT(no)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2791
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2792
+_LT_DECL([], [MAGIC_CMD], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2793
+	 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2794
+])# _LT_PATH_TOOL_PREFIX
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2795
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2796
+# Old name:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2797
+AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2798
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2799
+dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2800
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2801
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2802
+# _LT_PATH_MAGIC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2803
+# --------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2804
+# find a file program which can recognize a shared library
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2805
+m4_defun([_LT_PATH_MAGIC],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2806
+[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2807
+if test -z "$lt_cv_path_MAGIC_CMD"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2808
+  if test -n "$ac_tool_prefix"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2809
+    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2810
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2811
+    MAGIC_CMD=:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2812
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2813
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2814
+])# _LT_PATH_MAGIC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2815
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2816
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2817
+# LT_PATH_LD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2818
+# ----------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2819
+# find the pathname to the GNU or non-GNU linker
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2820
+AC_DEFUN([LT_PATH_LD],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2821
+[AC_REQUIRE([AC_PROG_CC])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2822
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2823
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2824
+m4_require([_LT_DECL_SED])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2825
+m4_require([_LT_DECL_EGREP])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2826
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2827
+AC_ARG_WITH([gnu-ld],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2828
+    [AS_HELP_STRING([--with-gnu-ld],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2829
+	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2830
+    [test "$withval" = no || with_gnu_ld=yes],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2831
+    [with_gnu_ld=no])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2832
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2833
+ac_prog=ld
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2834
+if test "$GCC" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2835
+  # Check if gcc -print-prog-name=ld gives a path.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2836
+  AC_MSG_CHECKING([for ld used by $CC])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2837
+  case $host in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2838
+  *-*-mingw*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2839
+    # gcc leaves a trailing carriage return which upsets mingw
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2840
+    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2841
+  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2842
+    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2843
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2844
+  case $ac_prog in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2845
+    # Accept absolute paths.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2846
+    [[\\/]]* | ?:[[\\/]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2847
+      re_direlt='/[[^/]][[^/]]*/\.\./'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2848
+      # Canonicalize the pathname of ld
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2849
+      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2850
+      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2851
+	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2852
+      done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2853
+      test -z "$LD" && LD="$ac_prog"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2854
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2855
+  "")
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2856
+    # If it fails, then pretend we aren't using GCC.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2857
+    ac_prog=ld
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2858
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2859
+  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2860
+    # If it is relative, then search for the first ld in PATH.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2861
+    with_gnu_ld=unknown
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2862
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2863
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2864
+elif test "$with_gnu_ld" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2865
+  AC_MSG_CHECKING([for GNU ld])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2866
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2867
+  AC_MSG_CHECKING([for non-GNU ld])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2868
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2869
+AC_CACHE_VAL(lt_cv_path_LD,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2870
+[if test -z "$LD"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2871
+  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2872
+  for ac_dir in $PATH; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2873
+    IFS="$lt_save_ifs"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2874
+    test -z "$ac_dir" && ac_dir=.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2875
+    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2876
+      lt_cv_path_LD="$ac_dir/$ac_prog"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2877
+      # Check to see if the program is GNU ld.  I'd rather use --version,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2878
+      # but apparently some variants of GNU ld only accept -v.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2879
+      # Break only if it was the GNU/non-GNU ld that we prefer.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2880
+      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2881
+      *GNU* | *'with BFD'*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2882
+	test "$with_gnu_ld" != no && break
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2883
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2884
+      *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2885
+	test "$with_gnu_ld" != yes && break
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2886
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2887
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2888
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2889
+  done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2890
+  IFS="$lt_save_ifs"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2891
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2892
+  lt_cv_path_LD="$LD" # Let the user override the test with a path.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2893
+fi])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2894
+LD="$lt_cv_path_LD"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2895
+if test -n "$LD"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2896
+  AC_MSG_RESULT($LD)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2897
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2898
+  AC_MSG_RESULT(no)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2899
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2900
+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2901
+_LT_PATH_LD_GNU
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2902
+AC_SUBST([LD])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2903
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2904
+_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2905
+])# LT_PATH_LD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2906
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2907
+# Old names:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2908
+AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2909
+AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2910
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2911
+dnl AC_DEFUN([AM_PROG_LD], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2912
+dnl AC_DEFUN([AC_PROG_LD], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2913
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2914
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2915
+# _LT_PATH_LD_GNU
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2916
+#- --------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2917
+m4_defun([_LT_PATH_LD_GNU],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2918
+[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2919
+[# I'd rather use --version here, but apparently some GNU lds only accept -v.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2920
+case `$LD -v 2>&1 </dev/null` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2921
+*GNU* | *'with BFD'*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2922
+  lt_cv_prog_gnu_ld=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2923
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2924
+*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2925
+  lt_cv_prog_gnu_ld=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2926
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2927
+esac])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2928
+with_gnu_ld=$lt_cv_prog_gnu_ld
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2929
+])# _LT_PATH_LD_GNU
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2930
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2931
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2932
+# _LT_CMD_RELOAD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2933
+# --------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2934
+# find reload flag for linker
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2935
+#   -- PORTME Some linkers may need a different reload flag.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2936
+m4_defun([_LT_CMD_RELOAD],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2937
+[AC_CACHE_CHECK([for $LD option to reload object files],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2938
+  lt_cv_ld_reload_flag,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2939
+  [lt_cv_ld_reload_flag='-r'])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2940
+reload_flag=$lt_cv_ld_reload_flag
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2941
+case $reload_flag in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2942
+"" | " "*) ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2943
+*) reload_flag=" $reload_flag" ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2944
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2945
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2946
+case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2947
+  darwin*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2948
+    if test "$GCC" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2949
+      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2950
+    else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2951
+      reload_cmds='$LD$reload_flag -o $output$reload_objs'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2952
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2953
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2954
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2955
+_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2956
+_LT_DECL([], [reload_cmds], [2])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2957
+])# _LT_CMD_RELOAD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2958
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2959
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2960
+# _LT_CHECK_MAGIC_METHOD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2961
+# ----------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2962
+# how to check for library dependencies
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2963
+#  -- PORTME fill in with the dynamic library characteristics
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2964
+m4_defun([_LT_CHECK_MAGIC_METHOD],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2965
+[m4_require([_LT_DECL_EGREP])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2966
+m4_require([_LT_DECL_OBJDUMP])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2967
+AC_CACHE_CHECK([how to recognize dependent libraries],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2968
+lt_cv_deplibs_check_method,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2969
+[lt_cv_file_magic_cmd='$MAGIC_CMD'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2970
+lt_cv_file_magic_test_file=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2971
+lt_cv_deplibs_check_method='unknown'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2972
+# Need to set the preceding variable on all platforms that support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2973
+# interlibrary dependencies.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2974
+# 'none' -- dependencies not supported.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2975
+# `unknown' -- same as none, but documents that we really don't know.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2976
+# 'pass_all' -- all dependencies passed with no checks.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2977
+# 'test_compile' -- check by making test program.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2978
+# 'file_magic [[regex]]' -- check by looking for files in library path
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2979
+# which responds to the $file_magic_cmd with a given extended regex.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2980
+# If you have `file' or equivalent on your system and you're not sure
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2981
+# whether `pass_all' will *always* work, you probably want this one.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2982
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2983
+case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2984
+aix[[4-9]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2985
+  lt_cv_deplibs_check_method=pass_all
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2986
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2987
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2988
+beos*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2989
+  lt_cv_deplibs_check_method=pass_all
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2990
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2991
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2992
+bsdi[[45]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2993
+  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2994
+  lt_cv_file_magic_cmd='/usr/bin/file -L'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2995
+  lt_cv_file_magic_test_file=/shlib/libc.so
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2996
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2997
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2998
+cygwin*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  2999
+  # func_win32_libid is a shell function defined in ltmain.sh
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3000
+  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3001
+  lt_cv_file_magic_cmd='func_win32_libid'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3002
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3003
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3004
+mingw* | pw32*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3005
+  # Base MSYS/MinGW do not provide the 'file' command needed by
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3006
+  # func_win32_libid shell function, so use a weaker test based on 'objdump',
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3007
+  # unless we find 'file', for example because we are cross-compiling.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3008
+  if ( file / ) >/dev/null 2>&1; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3009
+    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3010
+    lt_cv_file_magic_cmd='func_win32_libid'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3011
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3012
+    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3013
+    lt_cv_file_magic_cmd='$OBJDUMP -f'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3014
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3015
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3016
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3017
+cegcc)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3018
+  # use the weaker test based on 'objdump'. See mingw*.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3019
+  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3020
+  lt_cv_file_magic_cmd='$OBJDUMP -f'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3021
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3022
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3023
+darwin* | rhapsody*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3024
+  lt_cv_deplibs_check_method=pass_all
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3025
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3026
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3027
+freebsd* | dragonfly*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3028
+  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3029
+    case $host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3030
+    i*86 )
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3031
+      # Not sure whether the presence of OpenBSD here was a mistake.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3032
+      # Let's accept both of them until this is cleared up.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3033
+      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3034
+      lt_cv_file_magic_cmd=/usr/bin/file
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3035
+      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3036
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3037
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3038
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3039
+    lt_cv_deplibs_check_method=pass_all
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3040
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3041
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3042
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3043
+gnu*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3044
+  lt_cv_deplibs_check_method=pass_all
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3045
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3046
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3047
+hpux10.20* | hpux11*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3048
+  lt_cv_file_magic_cmd=/usr/bin/file
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3049
+  case $host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3050
+  ia64*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3051
+    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3052
+    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3053
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3054
+  hppa*64*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3055
+    [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]']
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3056
+    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3057
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3058
+  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3059
+    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3060
+    lt_cv_file_magic_test_file=/usr/lib/libc.sl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3061
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3062
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3063
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3064
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3065
+interix[[3-9]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3066
+  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3067
+  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3068
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3069
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3070
+irix5* | irix6* | nonstopux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3071
+  case $LD in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3072
+  *-32|*"-32 ") libmagic=32-bit;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3073
+  *-n32|*"-n32 ") libmagic=N32;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3074
+  *-64|*"-64 ") libmagic=64-bit;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3075
+  *) libmagic=never-match;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3076
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3077
+  lt_cv_deplibs_check_method=pass_all
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3078
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3079
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3080
+# This must be Linux ELF.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3081
+linux* | k*bsd*-gnu)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3082
+  lt_cv_deplibs_check_method=pass_all
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3083
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3084
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3085
+netbsd*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3086
+  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3087
+    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3088
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3089
+    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3090
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3091
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3092
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3093
+newos6*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3094
+  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3095
+  lt_cv_file_magic_cmd=/usr/bin/file
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3096
+  lt_cv_file_magic_test_file=/usr/lib/libnls.so
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3097
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3098
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3099
+*nto* | *qnx*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3100
+  lt_cv_deplibs_check_method=pass_all
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3101
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3102
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3103
+openbsd*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3104
+  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3105
+    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3106
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3107
+    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3108
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3109
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3110
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3111
+osf3* | osf4* | osf5*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3112
+  lt_cv_deplibs_check_method=pass_all
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3113
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3114
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3115
+rdos*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3116
+  lt_cv_deplibs_check_method=pass_all
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3117
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3118
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3119
+solaris*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3120
+  lt_cv_deplibs_check_method=pass_all
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3121
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3122
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3123
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3124
+  lt_cv_deplibs_check_method=pass_all
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3125
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3126
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3127
+sysv4 | sysv4.3*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3128
+  case $host_vendor in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3129
+  motorola)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3130
+    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3131
+    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3132
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3133
+  ncr)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3134
+    lt_cv_deplibs_check_method=pass_all
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3135
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3136
+  sequent)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3137
+    lt_cv_file_magic_cmd='/bin/file'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3138
+    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3139
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3140
+  sni)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3141
+    lt_cv_file_magic_cmd='/bin/file'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3142
+    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3143
+    lt_cv_file_magic_test_file=/lib/libc.so
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3144
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3145
+  siemens)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3146
+    lt_cv_deplibs_check_method=pass_all
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3147
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3148
+  pc)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3149
+    lt_cv_deplibs_check_method=pass_all
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3150
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3151
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3152
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3153
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3154
+tpf*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3155
+  lt_cv_deplibs_check_method=pass_all
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3156
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3157
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3158
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3159
+file_magic_cmd=$lt_cv_file_magic_cmd
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3160
+deplibs_check_method=$lt_cv_deplibs_check_method
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3161
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3162
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3163
+_LT_DECL([], [deplibs_check_method], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3164
+    [Method to check whether dependent libraries are shared objects])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3165
+_LT_DECL([], [file_magic_cmd], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3166
+    [Command to use when deplibs_check_method == "file_magic"])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3167
+])# _LT_CHECK_MAGIC_METHOD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3168
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3169
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3170
+# LT_PATH_NM
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3171
+# ----------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3172
+# find the pathname to a BSD- or MS-compatible name lister
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3173
+AC_DEFUN([LT_PATH_NM],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3174
+[AC_REQUIRE([AC_PROG_CC])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3175
+AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3176
+[if test -n "$NM"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3177
+  # Let the user override the test.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3178
+  lt_cv_path_NM="$NM"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3179
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3180
+  lt_nm_to_check="${ac_tool_prefix}nm"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3181
+  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3182
+    lt_nm_to_check="$lt_nm_to_check nm"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3183
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3184
+  for lt_tmp_nm in $lt_nm_to_check; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3185
+    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3186
+    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3187
+      IFS="$lt_save_ifs"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3188
+      test -z "$ac_dir" && ac_dir=.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3189
+      tmp_nm="$ac_dir/$lt_tmp_nm"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3190
+      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3191
+	# Check to see if the nm accepts a BSD-compat flag.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3192
+	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3193
+	#   nm: unknown option "B" ignored
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3194
+	# Tru64's nm complains that /dev/null is an invalid object file
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3195
+	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3196
+	*/dev/null* | *'Invalid file or object type'*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3197
+	  lt_cv_path_NM="$tmp_nm -B"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3198
+	  break
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3199
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3200
+	*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3201
+	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3202
+	  */dev/null*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3203
+	    lt_cv_path_NM="$tmp_nm -p"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3204
+	    break
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3205
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3206
+	  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3207
+	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3208
+	    continue # so that we can try to find one that supports BSD flags
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3209
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3210
+	  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3211
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3212
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3213
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3214
+    done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3215
+    IFS="$lt_save_ifs"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3216
+  done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3217
+  : ${lt_cv_path_NM=no}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3218
+fi])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3219
+if test "$lt_cv_path_NM" != "no"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3220
+  NM="$lt_cv_path_NM"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3221
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3222
+  # Didn't find any BSD compatible name lister, look for dumpbin.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3223
+  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3224
+  AC_SUBST([DUMPBIN])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3225
+  if test "$DUMPBIN" != ":"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3226
+    NM="$DUMPBIN"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3227
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3228
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3229
+test -z "$NM" && NM=nm
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3230
+AC_SUBST([NM])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3231
+_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3232
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3233
+AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3234
+  [lt_cv_nm_interface="BSD nm"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3235
+  echo "int some_variable = 0;" > conftest.$ac_ext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3236
+  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3237
+  (eval "$ac_compile" 2>conftest.err)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3238
+  cat conftest.err >&AS_MESSAGE_LOG_FD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3239
+  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3240
+  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3241
+  cat conftest.err >&AS_MESSAGE_LOG_FD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3242
+  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3243
+  cat conftest.out >&AS_MESSAGE_LOG_FD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3244
+  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3245
+    lt_cv_nm_interface="MS dumpbin"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3246
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3247
+  rm -f conftest*])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3248
+])# LT_PATH_NM
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3249
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3250
+# Old names:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3251
+AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3252
+AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3253
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3254
+dnl AC_DEFUN([AM_PROG_NM], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3255
+dnl AC_DEFUN([AC_PROG_NM], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3256
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3257
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3258
+# LT_LIB_M
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3259
+# --------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3260
+# check for math library
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3261
+AC_DEFUN([LT_LIB_M],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3262
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3263
+LIBM=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3264
+case $host in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3265
+*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3266
+  # These system don't have libm, or don't need it
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3267
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3268
+*-ncr-sysv4.3*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3269
+  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3270
+  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3271
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3272
+*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3273
+  AC_CHECK_LIB(m, cos, LIBM="-lm")
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3274
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3275
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3276
+AC_SUBST([LIBM])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3277
+])# LT_LIB_M
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3278
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3279
+# Old name:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3280
+AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3281
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3282
+dnl AC_DEFUN([AC_CHECK_LIBM], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3283
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3284
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3285
+# _LT_COMPILER_NO_RTTI([TAGNAME])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3286
+# -------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3287
+m4_defun([_LT_COMPILER_NO_RTTI],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3288
+[m4_require([_LT_TAG_COMPILER])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3289
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3290
+_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3291
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3292
+if test "$GCC" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3293
+  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3294
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3295
+  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3296
+    lt_cv_prog_compiler_rtti_exceptions,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3297
+    [-fno-rtti -fno-exceptions], [],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3298
+    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3299
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3300
+_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3301
+	[Compiler flag to turn off builtin functions])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3302
+])# _LT_COMPILER_NO_RTTI
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3303
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3304
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3305
+# _LT_CMD_GLOBAL_SYMBOLS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3306
+# ----------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3307
+m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3308
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3309
+AC_REQUIRE([AC_PROG_CC])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3310
+AC_REQUIRE([LT_PATH_NM])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3311
+AC_REQUIRE([LT_PATH_LD])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3312
+m4_require([_LT_DECL_SED])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3313
+m4_require([_LT_DECL_EGREP])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3314
+m4_require([_LT_TAG_COMPILER])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3315
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3316
+# Check for command to grab the raw symbol name followed by C symbol from nm.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3317
+AC_MSG_CHECKING([command to parse $NM output from $compiler object])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3318
+AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3319
+[
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3320
+# These are sane defaults that work on at least a few old systems.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3321
+# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3322
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3323
+# Character class describing NM global symbol codes.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3324
+symcode='[[BCDEGRST]]'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3325
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3326
+# Regexp to match symbols that can be accessed directly from C.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3327
+sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3328
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3329
+# Define system-specific variables.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3330
+case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3331
+aix*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3332
+  symcode='[[BCDT]]'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3333
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3334
+cygwin* | mingw* | pw32* | cegcc*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3335
+  symcode='[[ABCDGISTW]]'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3336
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3337
+hpux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3338
+  if test "$host_cpu" = ia64; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3339
+    symcode='[[ABCDEGRST]]'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3340
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3341
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3342
+irix* | nonstopux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3343
+  symcode='[[BCDEGRST]]'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3344
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3345
+osf*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3346
+  symcode='[[BCDEGQRST]]'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3347
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3348
+solaris*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3349
+  symcode='[[BDRT]]'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3350
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3351
+sco3.2v5*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3352
+  symcode='[[DT]]'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3353
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3354
+sysv4.2uw2*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3355
+  symcode='[[DT]]'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3356
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3357
+sysv5* | sco5v6* | unixware* | OpenUNIX*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3358
+  symcode='[[ABDT]]'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3359
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3360
+sysv4)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3361
+  symcode='[[DFNSTU]]'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3362
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3363
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3364
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3365
+# If we're using GNU nm, then use its standard symbol codes.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3366
+case `$NM -V 2>&1` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3367
+*GNU* | *'with BFD'*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3368
+  symcode='[[ABCDGIRSTW]]' ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3369
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3370
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3371
+# Transform an extracted symbol line into a proper C declaration.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3372
+# Some systems (esp. on ia64) link data and code symbols differently,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3373
+# so use this general approach.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3374
+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3375
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3376
+# Transform an extracted symbol line into symbol name and symbol address
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3377
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3378
+lt_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'"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3379
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3380
+# Handle CRLF in mingw tool chain
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3381
+opt_cr=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3382
+case $build_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3383
+mingw*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3384
+  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3385
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3386
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3387
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3388
+# Try without a prefix underscore, then with it.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3389
+for ac_symprfx in "" "_"; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3390
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3391
+  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3392
+  symxfrm="\\1 $ac_symprfx\\2 \\2"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3393
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3394
+  # Write the raw and C identifiers.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3395
+  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3396
+    # Fake it for dumpbin and say T for any non-static function
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3397
+    # and D for any global variable.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3398
+    # Also find C++ and __fastcall symbols from MSVC++,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3399
+    # which start with @ or ?.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3400
+    lt_cv_sys_global_symbol_pipe="$AWK ['"\
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3401
+"     {last_section=section; section=\$ 3};"\
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3402
+"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3403
+"     \$ 0!~/External *\|/{next};"\
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3404
+"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3405
+"     {if(hide[section]) next};"\
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3406
+"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3407
+"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3408
+"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3409
+"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3410
+"     ' prfx=^$ac_symprfx]"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3411
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3412
+    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3413
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3414
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3415
+  # Check to see that the pipe works correctly.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3416
+  pipe_works=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3417
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3418
+  rm -f conftest*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3419
+  cat > conftest.$ac_ext <<_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3420
+#ifdef __cplusplus
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3421
+extern "C" {
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3422
+#endif
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3423
+char nm_test_var;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3424
+void nm_test_func(void);
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3425
+void nm_test_func(void){}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3426
+#ifdef __cplusplus
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3427
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3428
+#endif
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3429
+int main(){nm_test_var='a';nm_test_func();return(0);}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3430
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3431
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3432
+  if AC_TRY_EVAL(ac_compile); then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3433
+    # Now try to grab the symbols.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3434
+    nlist=conftest.nm
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3435
+    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3436
+      # Try sorting and uniquifying the output.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3437
+      if sort "$nlist" | uniq > "$nlist"T; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3438
+	mv -f "$nlist"T "$nlist"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3439
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3440
+	rm -f "$nlist"T
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3441
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3442
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3443
+      # Make sure that we snagged all the symbols we need.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3444
+      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3445
+	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3446
+	  cat <<_LT_EOF > conftest.$ac_ext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3447
+#ifdef __cplusplus
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3448
+extern "C" {
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3449
+#endif
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3450
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3451
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3452
+	  # Now generate the symbol file.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3453
+	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3454
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3455
+	  cat <<_LT_EOF >> conftest.$ac_ext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3456
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3457
+/* The mapping between symbol names and symbols.  */
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3458
+const struct {
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3459
+  const char *name;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3460
+  void       *address;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3461
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3462
+lt__PROGRAM__LTX_preloaded_symbols[[]] =
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3463
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3464
+  { "@PROGRAM@", (void *) 0 },
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3465
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3466
+	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3467
+	  cat <<\_LT_EOF >> conftest.$ac_ext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3468
+  {0, (void *) 0}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3469
+};
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3470
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3471
+/* This works around a problem in FreeBSD linker */
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3472
+#ifdef FREEBSD_WORKAROUND
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3473
+static const void *lt_preloaded_setup() {
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3474
+  return lt__PROGRAM__LTX_preloaded_symbols;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3475
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3476
+#endif
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3477
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3478
+#ifdef __cplusplus
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3479
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3480
+#endif
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3481
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3482
+	  # Now try linking the two files.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3483
+	  mv conftest.$ac_objext conftstm.$ac_objext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3484
+	  lt_save_LIBS="$LIBS"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3485
+	  lt_save_CFLAGS="$CFLAGS"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3486
+	  LIBS="conftstm.$ac_objext"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3487
+	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3488
+	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3489
+	    pipe_works=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3490
+	  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3491
+	  LIBS="$lt_save_LIBS"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3492
+	  CFLAGS="$lt_save_CFLAGS"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3493
+	else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3494
+	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3495
+	fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3496
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3497
+	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3498
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3499
+    else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3500
+      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3501
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3502
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3503
+    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3504
+    cat conftest.$ac_ext >&5
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3505
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3506
+  rm -rf conftest* conftst*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3507
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3508
+  # Do not use the global_symbol_pipe unless it works.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3509
+  if test "$pipe_works" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3510
+    break
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3511
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3512
+    lt_cv_sys_global_symbol_pipe=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3513
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3514
+done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3515
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3516
+if test -z "$lt_cv_sys_global_symbol_pipe"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3517
+  lt_cv_sys_global_symbol_to_cdecl=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3518
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3519
+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3520
+  AC_MSG_RESULT(failed)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3521
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3522
+  AC_MSG_RESULT(ok)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3523
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3524
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3525
+_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3526
+    [Take the output of nm and produce a listing of raw symbols and C names])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3527
+_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3528
+    [Transform the output of nm in a proper C declaration])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3529
+_LT_DECL([global_symbol_to_c_name_address],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3530
+    [lt_cv_sys_global_symbol_to_c_name_address], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3531
+    [Transform the output of nm in a C name address pair])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3532
+_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3533
+    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3534
+    [Transform the output of nm in a C name address pair when lib prefix is needed])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3535
+]) # _LT_CMD_GLOBAL_SYMBOLS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3536
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3537
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3538
+# _LT_COMPILER_PIC([TAGNAME])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3539
+# ---------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3540
+m4_defun([_LT_COMPILER_PIC],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3541
+[m4_require([_LT_TAG_COMPILER])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3542
+_LT_TAGVAR(lt_prog_compiler_wl, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3543
+_LT_TAGVAR(lt_prog_compiler_pic, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3544
+_LT_TAGVAR(lt_prog_compiler_static, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3545
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3546
+AC_MSG_CHECKING([for $compiler option to produce PIC])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3547
+m4_if([$1], [CXX], [
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3548
+  # C++ specific cases for pic, static, wl, etc.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3549
+  if test "$GXX" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3550
+    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3551
+    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3552
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3553
+    case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3554
+    aix*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3555
+      # All AIX code is PIC.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3556
+      if test "$host_cpu" = ia64; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3557
+	# AIX 5 now supports IA64 processor
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3558
+	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3559
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3560
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3561
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3562
+    amigaos*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3563
+      case $host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3564
+      powerpc)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3565
+            # see comment about AmigaOS4 .so support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3566
+            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3567
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3568
+      m68k)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3569
+            # FIXME: we need at least 68020 code to build shared libraries, but
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3570
+            # adding the `-m68020' flag to GCC prevents building anything better,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3571
+            # like `-m68040'.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3572
+            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3573
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3574
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3575
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3576
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3577
+    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3578
+      # PIC is the default for these OSes.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3579
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3580
+    mingw* | cygwin* | os2* | pw32* | cegcc*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3581
+      # This hack is so that the source file can tell whether it is being
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3582
+      # built for inclusion in a dll (and should export symbols for example).
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3583
+      # Although the cygwin gcc ignores -fPIC, still need this for old-style
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3584
+      # (--disable-auto-import) libraries
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3585
+      m4_if([$1], [GCJ], [],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3586
+	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3587
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3588
+    darwin* | rhapsody*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3589
+      # PIC is the default on this platform
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3590
+      # Common symbols not allowed in MH_DYLIB files
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3591
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3592
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3593
+    *djgpp*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3594
+      # DJGPP does not support shared libraries at all
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3595
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3596
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3597
+    interix[[3-9]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3598
+      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3599
+      # Instead, we relocate shared libraries at runtime.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3600
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3601
+    sysv4*MP*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3602
+      if test -d /usr/nec; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3603
+	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3604
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3605
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3606
+    hpux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3607
+      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3608
+      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3609
+      # sets the default TLS model and affects inlining.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3610
+      case $host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3611
+      hppa*64*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3612
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3613
+      *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3614
+	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3615
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3616
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3617
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3618
+    *qnx* | *nto*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3619
+      # QNX uses GNU C++, but need to define -shared option too, otherwise
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3620
+      # it will coredump.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3621
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3622
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3623
+    *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3624
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3625
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3626
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3627
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3628
+    case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3629
+      aix[[4-9]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3630
+	# All AIX code is PIC.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3631
+	if test "$host_cpu" = ia64; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3632
+	  # AIX 5 now supports IA64 processor
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3633
+	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3634
+	else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3635
+	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3636
+	fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3637
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3638
+      chorus*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3639
+	case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3640
+	cxch68*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3641
+	  # Green Hills C++ Compiler
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3642
+	  # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3643
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3644
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3645
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3646
+      dgux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3647
+	case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3648
+	  ec++*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3649
+	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3650
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3651
+	  ghcx*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3652
+	    # Green Hills C++ Compiler
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3653
+	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3654
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3655
+	  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3656
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3657
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3658
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3659
+      freebsd* | dragonfly*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3660
+	# FreeBSD uses GNU C++
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3661
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3662
+      hpux9* | hpux10* | hpux11*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3663
+	case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3664
+	  CC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3665
+	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3666
+	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3667
+	    if test "$host_cpu" != ia64; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3668
+	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3669
+	    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3670
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3671
+	  aCC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3672
+	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3673
+	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3674
+	    case $host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3675
+	    hppa*64*|ia64*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3676
+	      # +Z the default
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3677
+	      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3678
+	    *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3679
+	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3680
+	      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3681
+	    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3682
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3683
+	  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3684
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3685
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3686
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3687
+      interix*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3688
+	# This is c89, which is MS Visual C++ (no shared libs)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3689
+	# Anyone wants to do a port?
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3690
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3691
+      irix5* | irix6* | nonstopux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3692
+	case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3693
+	  CC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3694
+	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3695
+	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3696
+	    # CC pic flag -KPIC is the default.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3697
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3698
+	  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3699
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3700
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3701
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3702
+      linux* | k*bsd*-gnu)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3703
+	case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3704
+	  KCC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3705
+	    # KAI C++ Compiler
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3706
+	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3707
+	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3708
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3709
+	  ecpc* )
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3710
+	    # old Intel C++ for x86_64 which still supported -KPIC.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3711
+	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3712
+	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3713
+	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3714
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3715
+	  icpc* )
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3716
+	    # Intel C++, used to be incompatible with GCC.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3717
+	    # ICC 10 doesn't accept -KPIC any more.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3718
+	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3719
+	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3720
+	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3721
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3722
+	  pgCC* | pgcpp*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3723
+	    # Portland Group C++ compiler
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3724
+	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3725
+	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3726
+	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3727
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3728
+	  cxx*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3729
+	    # Compaq C++
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3730
+	    # Make sure the PIC flag is empty.  It appears that all Alpha
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3731
+	    # Linux and Compaq Tru64 Unix objects are PIC.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3732
+	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3733
+	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3734
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3735
+	  xlc* | xlC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3736
+	    # IBM XL 8.0 on PPC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3737
+	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3738
+	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3739
+	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3740
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3741
+	  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3742
+	    case `$CC -V 2>&1 | sed 5q` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3743
+	    *Sun\ C*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3744
+	      # Sun C++ 5.9
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3745
+	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3746
+	      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3747
+	      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3748
+	      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3749
+	    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3750
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3751
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3752
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3753
+      lynxos*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3754
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3755
+      m88k*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3756
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3757
+      mvs*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3758
+	case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3759
+	  cxx*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3760
+	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3761
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3762
+	  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3763
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3764
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3765
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3766
+      netbsd*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3767
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3768
+      *qnx* | *nto*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3769
+        # QNX uses GNU C++, but need to define -shared option too, otherwise
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3770
+        # it will coredump.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3771
+        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3772
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3773
+      osf3* | osf4* | osf5*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3774
+	case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3775
+	  KCC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3776
+	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3777
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3778
+	  RCC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3779
+	    # Rational C++ 2.4.1
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3780
+	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3781
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3782
+	  cxx*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3783
+	    # Digital/Compaq C++
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3784
+	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3785
+	    # Make sure the PIC flag is empty.  It appears that all Alpha
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3786
+	    # Linux and Compaq Tru64 Unix objects are PIC.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3787
+	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3788
+	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3789
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3790
+	  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3791
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3792
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3793
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3794
+      psos*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3795
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3796
+      solaris*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3797
+	case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3798
+	  CC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3799
+	    # Sun C++ 4.2, 5.x and Centerline C++
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3800
+	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3801
+	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3802
+	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3803
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3804
+	  gcx*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3805
+	    # Green Hills C++ Compiler
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3806
+	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3807
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3808
+	  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3809
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3810
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3811
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3812
+      sunos4*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3813
+	case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3814
+	  CC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3815
+	    # Sun C++ 4.x
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3816
+	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3817
+	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3818
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3819
+	  lcc*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3820
+	    # Lucid
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3821
+	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3822
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3823
+	  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3824
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3825
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3826
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3827
+      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3828
+	case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3829
+	  CC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3830
+	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3831
+	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3832
+	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3833
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3834
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3835
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3836
+      tandem*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3837
+	case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3838
+	  NCC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3839
+	    # NonStop-UX NCC 3.20
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3840
+	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3841
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3842
+	  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3843
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3844
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3845
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3846
+      vxworks*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3847
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3848
+      *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3849
+	_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3850
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3851
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3852
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3853
+],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3854
+[
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3855
+  if test "$GCC" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3856
+    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3857
+    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3858
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3859
+    case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3860
+      aix*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3861
+      # All AIX code is PIC.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3862
+      if test "$host_cpu" = ia64; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3863
+	# AIX 5 now supports IA64 processor
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3864
+	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3865
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3866
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3867
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3868
+    amigaos*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3869
+      case $host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3870
+      powerpc)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3871
+            # see comment about AmigaOS4 .so support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3872
+            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3873
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3874
+      m68k)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3875
+            # FIXME: we need at least 68020 code to build shared libraries, but
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3876
+            # adding the `-m68020' flag to GCC prevents building anything better,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3877
+            # like `-m68040'.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3878
+            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3879
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3880
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3881
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3882
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3883
+    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3884
+      # PIC is the default for these OSes.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3885
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3886
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3887
+    mingw* | cygwin* | pw32* | os2* | cegcc*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3888
+      # This hack is so that the source file can tell whether it is being
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3889
+      # built for inclusion in a dll (and should export symbols for example).
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3890
+      # Although the cygwin gcc ignores -fPIC, still need this for old-style
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3891
+      # (--disable-auto-import) libraries
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3892
+      m4_if([$1], [GCJ], [],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3893
+	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3894
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3895
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3896
+    darwin* | rhapsody*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3897
+      # PIC is the default on this platform
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3898
+      # Common symbols not allowed in MH_DYLIB files
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3899
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3900
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3901
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3902
+    hpux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3903
+      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3904
+      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3905
+      # sets the default TLS model and affects inlining.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3906
+      case $host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3907
+      hppa*64*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3908
+	# +Z the default
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3909
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3910
+      *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3911
+	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3912
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3913
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3914
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3915
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3916
+    interix[[3-9]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3917
+      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3918
+      # Instead, we relocate shared libraries at runtime.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3919
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3920
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3921
+    msdosdjgpp*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3922
+      # Just because we use GCC doesn't mean we suddenly get shared libraries
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3923
+      # on systems that don't support them.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3924
+      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3925
+      enable_shared=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3926
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3927
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3928
+    *nto* | *qnx*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3929
+      # QNX uses GNU C++, but need to define -shared option too, otherwise
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3930
+      # it will coredump.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3931
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3932
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3933
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3934
+    sysv4*MP*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3935
+      if test -d /usr/nec; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3936
+	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3937
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3938
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3939
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3940
+    *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3941
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3942
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3943
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3944
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3945
+    # PORTME Check for flag to pass linker flags through the system compiler.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3946
+    case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3947
+    aix*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3948
+      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3949
+      if test "$host_cpu" = ia64; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3950
+	# AIX 5 now supports IA64 processor
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3951
+	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3952
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3953
+	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3954
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3955
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3956
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3957
+    mingw* | cygwin* | pw32* | os2* | cegcc*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3958
+      # This hack is so that the source file can tell whether it is being
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3959
+      # built for inclusion in a dll (and should export symbols for example).
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3960
+      m4_if([$1], [GCJ], [],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3961
+	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3962
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3963
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3964
+    hpux9* | hpux10* | hpux11*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3965
+      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3966
+      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3967
+      # not for PA HP-UX.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3968
+      case $host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3969
+      hppa*64*|ia64*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3970
+	# +Z the default
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3971
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3972
+      *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3973
+	_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3974
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3975
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3976
+      # Is there a better lt_prog_compiler_static that works with the bundled CC?
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3977
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3978
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3979
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3980
+    irix5* | irix6* | nonstopux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3981
+      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3982
+      # PIC (with -KPIC) is the default.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3983
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3984
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3985
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3986
+    linux* | k*bsd*-gnu)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3987
+      case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3988
+      # old Intel for x86_64 which still supported -KPIC.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3989
+      ecc*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3990
+	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3991
+	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3992
+	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3993
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3994
+      # icc used to be incompatible with GCC.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3995
+      # ICC 10 doesn't accept -KPIC any more.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3996
+      icc* | ifort*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3997
+	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3998
+	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  3999
+	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4000
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4001
+      # Lahey Fortran 8.1.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4002
+      lf95*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4003
+	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4004
+	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4005
+	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4006
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4007
+      pgcc* | pgf77* | pgf90* | pgf95*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4008
+        # Portland Group compilers (*not* the Pentium gcc compiler,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4009
+	# which looks to be a dead project)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4010
+	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4011
+	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4012
+	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4013
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4014
+      ccc*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4015
+        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4016
+        # All Alpha code is PIC.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4017
+        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4018
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4019
+      xl*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4020
+	# IBM XL C 8.0/Fortran 10.1 on PPC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4021
+	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4022
+	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4023
+	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4024
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4025
+      *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4026
+	case `$CC -V 2>&1 | sed 5q` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4027
+	*Sun\ C*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4028
+	  # Sun C 5.9
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4029
+	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4030
+	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4031
+	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4032
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4033
+	*Sun\ F*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4034
+	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4035
+	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4036
+	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4037
+	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4038
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4039
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4040
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4041
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4042
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4043
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4044
+    newsos6)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4045
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4046
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4047
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4048
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4049
+    *nto* | *qnx*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4050
+      # QNX uses GNU C++, but need to define -shared option too, otherwise
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4051
+      # it will coredump.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4052
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4053
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4054
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4055
+    osf3* | osf4* | osf5*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4056
+      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4057
+      # All OSF/1 code is PIC.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4058
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4059
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4060
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4061
+    rdos*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4062
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4063
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4064
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4065
+    solaris*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4066
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4067
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4068
+      case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4069
+      f77* | f90* | f95*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4070
+	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4071
+      *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4072
+	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4073
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4074
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4075
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4076
+    sunos4*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4077
+      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4078
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4079
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4080
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4081
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4082
+    sysv4 | sysv4.2uw2* | sysv4.3*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4083
+      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4084
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4085
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4086
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4087
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4088
+    sysv4*MP*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4089
+      if test -d /usr/nec ;then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4090
+	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4091
+	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4092
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4093
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4094
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4095
+    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4096
+      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4097
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4098
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4099
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4100
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4101
+    unicos*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4102
+      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4103
+      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4104
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4105
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4106
+    uts4*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4107
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4108
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4109
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4110
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4111
+    *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4112
+      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4113
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4114
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4115
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4116
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4117
+case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4118
+  # For platforms which do not support PIC, -DPIC is meaningless:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4119
+  *djgpp*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4120
+    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4121
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4122
+  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4123
+    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4124
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4125
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4126
+AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4127
+_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4128
+	[How to pass a linker flag through the compiler])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4129
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4130
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4131
+# Check to make sure the PIC flag actually works.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4132
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4133
+if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4134
+  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4135
+    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4136
+    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4137
+    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4138
+     "" | " "*) ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4139
+     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4140
+     esac],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4141
+    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4142
+     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4143
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4144
+_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4145
+	[Additional compiler flags for building library objects])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4146
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4147
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4148
+# Check to make sure the static flag actually works.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4149
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4150
+wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4151
+_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4152
+  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4153
+  $lt_tmp_static_flag,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4154
+  [],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4155
+  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4156
+_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4157
+	[Compiler flag to prevent dynamic linking])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4158
+])# _LT_COMPILER_PIC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4159
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4160
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4161
+# _LT_LINKER_SHLIBS([TAGNAME])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4162
+# ----------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4163
+# See if the linker supports building shared libraries.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4164
+m4_defun([_LT_LINKER_SHLIBS],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4165
+[AC_REQUIRE([LT_PATH_LD])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4166
+AC_REQUIRE([LT_PATH_NM])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4167
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4168
+m4_require([_LT_DECL_EGREP])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4169
+m4_require([_LT_DECL_SED])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4170
+m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4171
+m4_require([_LT_TAG_COMPILER])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4172
+AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4173
+m4_if([$1], [CXX], [
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4174
+  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4175
+  case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4176
+  aix[[4-9]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4177
+    # If we're using GNU nm, then we don't want the "-C" option.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4178
+    # -C means demangle to AIX nm, but means don't demangle with GNU nm
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4179
+    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4180
+      _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4181
+    else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4182
+      _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4183
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4184
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4185
+  pw32*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4186
+    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4187
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4188
+  cygwin* | mingw* | cegcc*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4189
+    _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4190
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4191
+  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4192
+    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4193
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4194
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4195
+  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4196
+], [
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4197
+  runpath_var=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4198
+  _LT_TAGVAR(allow_undefined_flag, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4199
+  _LT_TAGVAR(always_export_symbols, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4200
+  _LT_TAGVAR(archive_cmds, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4201
+  _LT_TAGVAR(archive_expsym_cmds, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4202
+  _LT_TAGVAR(compiler_needs_object, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4203
+  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4204
+  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4205
+  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4206
+  _LT_TAGVAR(hardcode_automatic, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4207
+  _LT_TAGVAR(hardcode_direct, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4208
+  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4209
+  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4210
+  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4211
+  _LT_TAGVAR(hardcode_libdir_separator, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4212
+  _LT_TAGVAR(hardcode_minus_L, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4213
+  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4214
+  _LT_TAGVAR(inherit_rpath, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4215
+  _LT_TAGVAR(link_all_deplibs, $1)=unknown
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4216
+  _LT_TAGVAR(module_cmds, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4217
+  _LT_TAGVAR(module_expsym_cmds, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4218
+  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4219
+  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4220
+  _LT_TAGVAR(thread_safe_flag_spec, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4221
+  _LT_TAGVAR(whole_archive_flag_spec, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4222
+  # include_expsyms should be a list of space-separated symbols to be *always*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4223
+  # included in the symbol list
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4224
+  _LT_TAGVAR(include_expsyms, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4225
+  # exclude_expsyms can be an extended regexp of symbols to exclude
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4226
+  # it will be wrapped by ` (' and `)$', so one must not match beginning or
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4227
+  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4228
+  # as well as any symbol that contains `d'.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4229
+  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4230
+  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4231
+  # platforms (ab)use it in PIC code, but their linkers get confused if
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4232
+  # the symbol is explicitly referenced.  Since portable code cannot
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4233
+  # rely on this symbol name, it's probably fine to never include it in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4234
+  # preloaded symbol tables.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4235
+  # Exclude shared library initialization/finalization symbols.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4236
+dnl Note also adjust exclude_expsyms for C++ above.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4237
+  extract_expsyms_cmds=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4238
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4239
+  case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4240
+  cygwin* | mingw* | pw32* | cegcc*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4241
+    # FIXME: the MSVC++ port hasn't been tested in a loooong time
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4242
+    # When not using gcc, we currently assume that we are using
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4243
+    # Microsoft Visual C++.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4244
+    if test "$GCC" != yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4245
+      with_gnu_ld=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4246
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4247
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4248
+  interix*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4249
+    # we just hope/assume this is gcc and not c89 (= MSVC++)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4250
+    with_gnu_ld=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4251
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4252
+  openbsd*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4253
+    with_gnu_ld=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4254
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4255
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4256
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4257
+  _LT_TAGVAR(ld_shlibs, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4258
+  if test "$with_gnu_ld" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4259
+    # If archive_cmds runs LD, not CC, wlarc should be empty
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4260
+    wlarc='${wl}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4261
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4262
+    # Set some defaults for GNU ld with shared library support. These
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4263
+    # are reset later if shared libraries are not supported. Putting them
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4264
+    # here allows them to be overridden if necessary.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4265
+    runpath_var=LD_RUN_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4266
+    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4267
+    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4268
+    # ancient GNU ld didn't support --whole-archive et. al.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4269
+    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4270
+      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4271
+    else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4272
+      _LT_TAGVAR(whole_archive_flag_spec, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4273
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4274
+    supports_anon_versioning=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4275
+    case `$LD -v 2>&1` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4276
+      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4277
+      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4278
+      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4279
+      *\ 2.11.*) ;; # other 2.11 versions
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4280
+      *) supports_anon_versioning=yes ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4281
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4282
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4283
+    # See if GNU ld supports shared libraries.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4284
+    case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4285
+    aix[[3-9]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4286
+      # On AIX/PPC, the GNU linker is very broken
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4287
+      if test "$host_cpu" != ia64; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4288
+	_LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4289
+	cat <<_LT_EOF 1>&2
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4290
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4291
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4292
+*** to be unable to reliably create shared libraries on AIX.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4293
+*** Therefore, libtool is disabling shared libraries support.  If you
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4294
+*** really care for shared libraries, you may want to modify your PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4295
+*** so that a non-GNU linker is found, and then restart.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4296
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4297
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4298
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4299
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4300
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4301
+    amigaos*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4302
+      case $host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4303
+      powerpc)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4304
+            # see comment about AmigaOS4 .so support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4305
+            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4306
+            _LT_TAGVAR(archive_expsym_cmds, $1)=''
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4307
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4308
+      m68k)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4309
+            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4310
+            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4311
+            _LT_TAGVAR(hardcode_minus_L, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4312
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4313
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4314
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4315
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4316
+    beos*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4317
+      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4318
+	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4319
+	# Joseph Beckenbach <[email protected]> says some releases of gcc
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4320
+	# support --undefined.  This deserves some investigation.  FIXME
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4321
+	_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4322
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4323
+	_LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4324
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4325
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4326
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4327
+    cygwin* | mingw* | pw32* | cegcc*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4328
+      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4329
+      # as there is no search path for DLLs.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4330
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4331
+      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4332
+      _LT_TAGVAR(always_export_symbols, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4333
+      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4334
+      _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4335
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4336
+      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4337
+        _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4338
+	# If the export-symbols file already is a .def file (1st line
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4339
+	# is EXPORTS), use it as is; otherwise, prepend...
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4340
+	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4341
+	  cp $export_symbols $output_objdir/$soname.def;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4342
+	else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4343
+	  echo EXPORTS > $output_objdir/$soname.def;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4344
+	  cat $export_symbols >> $output_objdir/$soname.def;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4345
+	fi~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4346
+	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4347
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4348
+	_LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4349
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4350
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4351
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4352
+    interix[[3-9]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4353
+      _LT_TAGVAR(hardcode_direct, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4354
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4355
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4356
+      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4357
+      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4358
+      # Instead, shared libraries are loaded at an image base (0x10000000 by
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4359
+      # default) and relocated if they conflict, which is a slow very memory
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4360
+      # consuming and fragmenting process.  To avoid this, we pick a random,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4361
+      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4362
+      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4363
+      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4364
+      _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4365
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4366
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4367
+    gnu* | linux* | tpf* | k*bsd*-gnu)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4368
+      tmp_diet=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4369
+      if test "$host_os" = linux-dietlibc; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4370
+	case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4371
+	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4372
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4373
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4374
+      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4375
+	 && test "$tmp_diet" = no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4376
+      then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4377
+	tmp_addflag=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4378
+	tmp_sharedflag='-shared'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4379
+	case $cc_basename,$host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4380
+        pgcc*)				# Portland Group C compiler
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4381
+	  _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4382
+	  tmp_addflag=' $pic_flag'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4383
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4384
+	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4385
+	  _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4386
+	  tmp_addflag=' $pic_flag -Mnomain' ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4387
+	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4388
+	  tmp_addflag=' -i_dynamic' ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4389
+	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4390
+	  tmp_addflag=' -i_dynamic -nofor_main' ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4391
+	ifc* | ifort*)			# Intel Fortran compiler
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4392
+	  tmp_addflag=' -nofor_main' ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4393
+	lf95*)				# Lahey Fortran 8.1
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4394
+	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4395
+	  tmp_sharedflag='--shared' ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4396
+	xl[[cC]]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4397
+	  tmp_sharedflag='-qmkshrobj'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4398
+	  tmp_addflag= ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4399
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4400
+	case `$CC -V 2>&1 | sed 5q` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4401
+	*Sun\ C*)			# Sun C 5.9
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4402
+	  _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4403
+	  _LT_TAGVAR(compiler_needs_object, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4404
+	  tmp_sharedflag='-G' ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4405
+	*Sun\ F*)			# Sun Fortran 8.3
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4406
+	  tmp_sharedflag='-G' ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4407
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4408
+	_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4409
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4410
+        if test "x$supports_anon_versioning" = xyes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4411
+          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4412
+	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4413
+	    echo "local: *; };" >> $output_objdir/$libname.ver~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4414
+	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4415
+        fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4416
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4417
+	case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4418
+	xlf*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4419
+	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4420
+	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4421
+	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4422
+	  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4423
+	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4424
+	  if test "x$supports_anon_versioning" = xyes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4425
+	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4426
+	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4427
+	      echo "local: *; };" >> $output_objdir/$libname.ver~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4428
+	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4429
+	  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4430
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4431
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4432
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4433
+        _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4434
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4435
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4436
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4437
+    netbsd*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4438
+      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4439
+	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4440
+	wlarc=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4441
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4442
+	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4443
+	_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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4444
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4445
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4446
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4447
+    solaris*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4448
+      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4449
+	_LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4450
+	cat <<_LT_EOF 1>&2
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4451
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4452
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4453
+*** create shared libraries on Solaris systems.  Therefore, libtool
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4454
+*** is disabling shared libraries support.  We urge you to upgrade GNU
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4455
+*** binutils to release 2.9.1 or newer.  Another option is to modify
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4456
+*** your PATH or compiler configuration so that the native linker is
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4457
+*** used, and then restart.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4458
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4459
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4460
+      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4461
+	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4462
+	_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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4463
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4464
+	_LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4465
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4466
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4467
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4468
+    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4469
+      case `$LD -v 2>&1` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4470
+        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4471
+	_LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4472
+	cat <<_LT_EOF 1>&2
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4473
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4474
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4475
+*** reliably create shared libraries on SCO systems.  Therefore, libtool
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4476
+*** is disabling shared libraries support.  We urge you to upgrade GNU
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4477
+*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4478
+*** your PATH or compiler configuration so that the native linker is
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4479
+*** used, and then restart.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4480
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4481
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4482
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4483
+	*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4484
+	  # For security reasons, it is highly recommended that you always
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4485
+	  # use absolute paths for naming shared libraries, and exclude the
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4486
+	  # DT_RUNPATH tag from executables and libraries.  But doing so
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4487
+	  # requires that you compile everything twice, which is a pain.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4488
+	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4489
+	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4490
+	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4491
+	    _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4492
+	  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4493
+	    _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4494
+	  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4495
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4496
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4497
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4498
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4499
+    sunos4*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4500
+      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4501
+      wlarc=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4502
+      _LT_TAGVAR(hardcode_direct, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4503
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4504
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4505
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4506
+    *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4507
+      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4508
+	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4509
+	_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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4510
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4511
+	_LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4512
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4513
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4514
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4515
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4516
+    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4517
+      runpath_var=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4518
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4519
+      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4520
+      _LT_TAGVAR(whole_archive_flag_spec, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4521
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4522
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4523
+    # PORTME fill in a description of your system's linker (not GNU ld)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4524
+    case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4525
+    aix3*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4526
+      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4527
+      _LT_TAGVAR(always_export_symbols, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4528
+      _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4529
+      # Note: this linker hardcodes the directories in LIBPATH if there
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4530
+      # are no directories specified by -L.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4531
+      _LT_TAGVAR(hardcode_minus_L, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4532
+      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4533
+	# Neither direct hardcoding nor static linking is supported with a
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4534
+	# broken collect2.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4535
+	_LT_TAGVAR(hardcode_direct, $1)=unsupported
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4536
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4537
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4538
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4539
+    aix[[4-9]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4540
+      if test "$host_cpu" = ia64; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4541
+	# On IA64, the linker does run time linking by default, so we don't
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4542
+	# have to do anything special.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4543
+	aix_use_runtimelinking=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4544
+	exp_sym_flag='-Bexport'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4545
+	no_entry_flag=""
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4546
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4547
+	# If we're using GNU nm, then we don't want the "-C" option.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4548
+	# -C means demangle to AIX nm, but means don't demangle with GNU nm
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4549
+	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4550
+	  _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4551
+	else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4552
+	  _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4553
+	fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4554
+	aix_use_runtimelinking=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4555
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4556
+	# Test if we are trying to use run time linking or normal
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4557
+	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4558
+	# need to do runtime linking.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4559
+	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4560
+	  for ld_flag in $LDFLAGS; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4561
+	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4562
+	    aix_use_runtimelinking=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4563
+	    break
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4564
+	  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4565
+	  done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4566
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4567
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4568
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4569
+	exp_sym_flag='-bexport'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4570
+	no_entry_flag='-bnoentry'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4571
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4572
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4573
+      # When large executables or shared objects are built, AIX ld can
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4574
+      # have problems creating the table of contents.  If linking a library
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4575
+      # or program results in "error TOC overflow" add -mminimal-toc to
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4576
+      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4577
+      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4578
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4579
+      _LT_TAGVAR(archive_cmds, $1)=''
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4580
+      _LT_TAGVAR(hardcode_direct, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4581
+      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4582
+      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4583
+      _LT_TAGVAR(link_all_deplibs, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4584
+      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4585
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4586
+      if test "$GCC" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4587
+	case $host_os in aix4.[[012]]|aix4.[[012]].*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4588
+	# We only want to do this on AIX 4.2 and lower, the check
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4589
+	# below for broken collect2 doesn't work under 4.3+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4590
+	  collect2name=`${CC} -print-prog-name=collect2`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4591
+	  if test -f "$collect2name" &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4592
+	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4593
+	  then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4594
+	  # We have reworked collect2
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4595
+	  :
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4596
+	  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4597
+	  # We have old collect2
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4598
+	  _LT_TAGVAR(hardcode_direct, $1)=unsupported
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4599
+	  # It fails to find uninstalled libraries when the uninstalled
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4600
+	  # path is not listed in the libpath.  Setting hardcode_minus_L
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4601
+	  # to unsupported forces relinking
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4602
+	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4603
+	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4604
+	  _LT_TAGVAR(hardcode_libdir_separator, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4605
+	  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4606
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4607
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4608
+	shared_flag='-shared'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4609
+	if test "$aix_use_runtimelinking" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4610
+	  shared_flag="$shared_flag "'${wl}-G'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4611
+	fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4612
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4613
+	# not using gcc
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4614
+	if test "$host_cpu" = ia64; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4615
+	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4616
+	# chokes on -Wl,-G. The following line is correct:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4617
+	  shared_flag='-G'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4618
+	else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4619
+	  if test "$aix_use_runtimelinking" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4620
+	    shared_flag='${wl}-G'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4621
+	  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4622
+	    shared_flag='${wl}-bM:SRE'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4623
+	  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4624
+	fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4625
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4626
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4627
+      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4628
+      # It seems that -bexpall does not export symbols beginning with
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4629
+      # underscore (_), so it is better to generate a list of symbols to export.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4630
+      _LT_TAGVAR(always_export_symbols, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4631
+      if test "$aix_use_runtimelinking" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4632
+	# Warning - without using the other runtime loading flags (-brtl),
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4633
+	# -berok will link without error, but may produce a broken library.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4634
+	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4635
+        # Determine the default libpath from the value encoded in an
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4636
+        # empty executable.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4637
+        _LT_SYS_MODULE_PATH_AIX
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4638
+        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4639
+        _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"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4640
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4641
+	if test "$host_cpu" = ia64; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4642
+	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4643
+	  _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4644
+	  _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4645
+	else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4646
+	 # Determine the default libpath from the value encoded in an
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4647
+	 # empty executable.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4648
+	 _LT_SYS_MODULE_PATH_AIX
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4649
+	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4650
+	  # Warning - without using the other run time loading flags,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4651
+	  # -berok will link without error, but may produce a broken library.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4652
+	  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4653
+	  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4654
+	  # Exported symbols can be pulled into shared objects from archives
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4655
+	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4656
+	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4657
+	  # This is similar to how AIX traditionally builds its shared libraries.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4658
+	  _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4659
+	fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4660
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4661
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4662
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4663
+    amigaos*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4664
+      case $host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4665
+      powerpc)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4666
+            # see comment about AmigaOS4 .so support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4667
+            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4668
+            _LT_TAGVAR(archive_expsym_cmds, $1)=''
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4669
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4670
+      m68k)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4671
+            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4672
+            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4673
+            _LT_TAGVAR(hardcode_minus_L, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4674
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4675
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4676
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4677
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4678
+    bsdi[[45]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4679
+      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4680
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4681
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4682
+    cygwin* | mingw* | pw32* | cegcc*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4683
+      # When not using gcc, we currently assume that we are using
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4684
+      # Microsoft Visual C++.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4685
+      # hardcode_libdir_flag_spec is actually meaningless, as there is
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4686
+      # no search path for DLLs.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4687
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4688
+      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4689
+      # Tell ltmain to make .lib files, not .a files.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4690
+      libext=lib
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4691
+      # Tell ltmain to make .dll files, not .so files.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4692
+      shrext_cmds=".dll"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4693
+      # FIXME: Setting linknames here is a bad hack.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4694
+      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4695
+      # The linker will automatically build a .lib file if we build a DLL.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4696
+      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4697
+      # FIXME: Should let the user specify the lib program.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4698
+      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4699
+      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4700
+      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4701
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4702
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4703
+    darwin* | rhapsody*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4704
+      _LT_DARWIN_LINKER_FEATURES($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4705
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4706
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4707
+    dgux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4708
+      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4709
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4710
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4711
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4712
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4713
+    freebsd1*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4714
+      _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4715
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4716
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4717
+    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4718
+    # support.  Future versions do this automatically, but an explicit c++rt0.o
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4719
+    # does not break anything, and helps significantly (at the cost of a little
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4720
+    # extra space).
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4721
+    freebsd2.2*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4722
+      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4723
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4724
+      _LT_TAGVAR(hardcode_direct, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4725
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4726
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4727
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4728
+    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4729
+    freebsd2*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4730
+      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4731
+      _LT_TAGVAR(hardcode_direct, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4732
+      _LT_TAGVAR(hardcode_minus_L, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4733
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4734
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4735
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4736
+    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4737
+    freebsd* | dragonfly*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4738
+      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4739
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4740
+      _LT_TAGVAR(hardcode_direct, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4741
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4742
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4743
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4744
+    hpux9*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4745
+      if test "$GCC" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4746
+	_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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4747
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4748
+	_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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4749
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4750
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4751
+      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4752
+      _LT_TAGVAR(hardcode_direct, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4753
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4754
+      # hardcode_minus_L: Not really in the search PATH,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4755
+      # but as the default location of the library.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4756
+      _LT_TAGVAR(hardcode_minus_L, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4757
+      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4758
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4759
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4760
+    hpux10*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4761
+      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4762
+	_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4763
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4764
+	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4765
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4766
+      if test "$with_gnu_ld" = no; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4767
+	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4768
+	_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4769
+	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4770
+	_LT_TAGVAR(hardcode_direct, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4771
+	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4772
+	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4773
+	# hardcode_minus_L: Not really in the search PATH,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4774
+	# but as the default location of the library.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4775
+	_LT_TAGVAR(hardcode_minus_L, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4776
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4777
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4778
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4779
+    hpux11*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4780
+      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4781
+	case $host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4782
+	hppa*64*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4783
+	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4784
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4785
+	ia64*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4786
+	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4787
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4788
+	*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4789
+	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4790
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4791
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4792
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4793
+	case $host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4794
+	hppa*64*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4795
+	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4796
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4797
+	ia64*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4798
+	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4799
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4800
+	*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4801
+	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4802
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4803
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4804
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4805
+      if test "$with_gnu_ld" = no; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4806
+	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4807
+	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4808
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4809
+	case $host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4810
+	hppa*64*|ia64*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4811
+	  _LT_TAGVAR(hardcode_direct, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4812
+	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4813
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4814
+	*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4815
+	  _LT_TAGVAR(hardcode_direct, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4816
+	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4817
+	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4818
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4819
+	  # hardcode_minus_L: Not really in the search PATH,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4820
+	  # but as the default location of the library.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4821
+	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4822
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4823
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4824
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4825
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4826
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4827
+    irix5* | irix6* | nonstopux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4828
+      if test "$GCC" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4829
+	_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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4830
+	# Try to use the -exported_symbol ld option, if it does not
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4831
+	# work, assume that -exports_file does not work either and
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4832
+	# implicitly export all symbols.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4833
+        save_LDFLAGS="$LDFLAGS"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4834
+        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4835
+        AC_LINK_IFELSE(int foo(void) {},
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4836
+          _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4837
+        )
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4838
+        LDFLAGS="$save_LDFLAGS"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4839
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4840
+	_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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4841
+	_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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4842
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4843
+      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4844
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4845
+      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4846
+      _LT_TAGVAR(inherit_rpath, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4847
+      _LT_TAGVAR(link_all_deplibs, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4848
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4849
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4850
+    netbsd*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4851
+      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4852
+	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4853
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4854
+	_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4855
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4856
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4857
+      _LT_TAGVAR(hardcode_direct, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4858
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4859
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4860
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4861
+    newsos6)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4862
+      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4863
+      _LT_TAGVAR(hardcode_direct, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4864
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4865
+      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4866
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4867
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4868
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4869
+    *nto* | *qnx*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4870
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4871
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4872
+    openbsd*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4873
+      if test -f /usr/libexec/ld.so; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4874
+	_LT_TAGVAR(hardcode_direct, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4875
+	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4876
+	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4877
+	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4878
+	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4879
+	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4880
+	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4881
+	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4882
+	else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4883
+	  case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4884
+	   openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4885
+	     _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4886
+	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4887
+	     ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4888
+	   *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4889
+	     _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4890
+	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4891
+	     ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4892
+	  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4893
+	fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4894
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4895
+	_LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4896
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4897
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4898
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4899
+    os2*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4900
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4901
+      _LT_TAGVAR(hardcode_minus_L, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4902
+      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4903
+      _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4904
+      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4905
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4906
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4907
+    osf3*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4908
+      if test "$GCC" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4909
+	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4910
+	_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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4911
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4912
+	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4913
+	_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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4914
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4915
+      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4916
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4917
+      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4918
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4919
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4920
+    osf4* | osf5*)	# as osf3* with the addition of -msym flag
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4921
+      if test "$GCC" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4922
+	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4923
+	_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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4924
+	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4925
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4926
+	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4927
+	_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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4928
+	_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~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4929
+	$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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4930
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4931
+	# Both c and cxx compiler support -rpath directly
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4932
+	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4933
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4934
+      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4935
+      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4936
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4937
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4938
+    solaris*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4939
+      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4940
+      if test "$GCC" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4941
+	wlarc='${wl}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4942
+	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4943
+	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4944
+	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4945
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4946
+	case `$CC -V 2>&1` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4947
+	*"Compilers 5.0"*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4948
+	  wlarc=''
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4949
+	  _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4950
+	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4951
+	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4952
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4953
+	*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4954
+	  wlarc='${wl}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4955
+	  _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4956
+	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4957
+	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4958
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4959
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4960
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4961
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4962
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4963
+      case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4964
+      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4965
+      *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4966
+	# The compiler driver will combine and reorder linker options,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4967
+	# but understands `-z linker_flag'.  GCC discards it without `$wl',
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4968
+	# but is careful enough not to reorder.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4969
+	# Supported since Solaris 2.6 (maybe 2.5.1?)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4970
+	if test "$GCC" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4971
+	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4972
+	else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4973
+	  _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4974
+	fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4975
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4976
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4977
+      _LT_TAGVAR(link_all_deplibs, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4978
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4979
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4980
+    sunos4*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4981
+      if test "x$host_vendor" = xsequent; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4982
+	# Use $CC to link under sequent, because it throws in some extra .o
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4983
+	# files that make .init and .fini sections work.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4984
+	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4985
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4986
+	_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4987
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4988
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4989
+      _LT_TAGVAR(hardcode_direct, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4990
+      _LT_TAGVAR(hardcode_minus_L, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4991
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4992
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4993
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4994
+    sysv4)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4995
+      case $host_vendor in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4996
+	sni)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4997
+	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4998
+	  _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  4999
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5000
+	siemens)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5001
+	  ## LD is ld it makes a PLAMLIB
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5002
+	  ## CC just makes a GrossModule.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5003
+	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5004
+	  _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5005
+	  _LT_TAGVAR(hardcode_direct, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5006
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5007
+	motorola)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5008
+	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5009
+	  _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5010
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5011
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5012
+      runpath_var='LD_RUN_PATH'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5013
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5014
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5015
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5016
+    sysv4.3*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5017
+      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5018
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5019
+      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5020
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5021
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5022
+    sysv4*MP*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5023
+      if test -d /usr/nec; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5024
+	_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5025
+	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5026
+	runpath_var=LD_RUN_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5027
+	hardcode_runpath_var=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5028
+	_LT_TAGVAR(ld_shlibs, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5029
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5030
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5031
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5032
+    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5033
+      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5034
+      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5035
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5036
+      runpath_var='LD_RUN_PATH'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5037
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5038
+      if test "$GCC" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5039
+	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5040
+	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5041
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5042
+	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5043
+	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5044
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5045
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5046
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5047
+    sysv5* | sco3.2v5* | sco5v6*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5048
+      # Note: We can NOT use -z defs as we might desire, because we do not
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5049
+      # link with -lc, and that would cause any symbols used from libc to
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5050
+      # always be unresolved, which means just about no library would
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5051
+      # ever link correctly.  If we're not using GNU ld we use -z text
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5052
+      # though, which does catch some bad symbols but isn't as heavy-handed
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5053
+      # as -z defs.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5054
+      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5055
+      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5056
+      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5057
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5058
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5059
+      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5060
+      _LT_TAGVAR(link_all_deplibs, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5061
+      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5062
+      runpath_var='LD_RUN_PATH'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5063
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5064
+      if test "$GCC" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5065
+	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5066
+	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5067
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5068
+	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5069
+	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5070
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5071
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5072
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5073
+    uts4*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5074
+      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5075
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5076
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5077
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5078
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5079
+    *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5080
+      _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5081
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5082
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5083
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5084
+    if test x$host_vendor = xsni; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5085
+      case $host in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5086
+      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5087
+	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5088
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5089
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5090
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5091
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5092
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5093
+AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5094
+test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5095
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5096
+_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5097
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5098
+_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5099
+_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5100
+_LT_DECL([], [extract_expsyms_cmds], [2],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5101
+    [The commands to extract the exported symbol list from a shared archive])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5102
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5103
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5104
+# Do we need to explicitly link libc?
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5105
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5106
+case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5107
+x|xyes)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5108
+  # Assume -lc should be added
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5109
+  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5110
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5111
+  if test "$enable_shared" = yes && test "$GCC" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5112
+    case $_LT_TAGVAR(archive_cmds, $1) in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5113
+    *'~'*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5114
+      # FIXME: we may have to deal with multi-command sequences.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5115
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5116
+    '$CC '*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5117
+      # Test whether the compiler implicitly links with -lc since on some
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5118
+      # systems, -lgcc has to come before -lc. If gcc already passes -lc
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5119
+      # to ld, don't add -lc before -lgcc.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5120
+      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5121
+      $RM conftest*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5122
+      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5123
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5124
+      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5125
+        soname=conftest
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5126
+        lib=conftest
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5127
+        libobjs=conftest.$ac_objext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5128
+        deplibs=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5129
+        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5130
+	pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5131
+        compiler_flags=-v
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5132
+        linker_flags=-v
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5133
+        verstring=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5134
+        output_objdir=.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5135
+        libname=conftest
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5136
+        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5137
+        _LT_TAGVAR(allow_undefined_flag, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5138
+        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5139
+        then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5140
+	  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5141
+        else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5142
+	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5143
+        fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5144
+        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5145
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5146
+        cat conftest.err 1>&5
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5147
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5148
+      $RM conftest*
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5149
+      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5150
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5151
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5152
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5153
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5154
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5155
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5156
+_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5157
+    [Whether or not to add -lc for building shared libraries])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5158
+_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5159
+    [enable_shared_with_static_runtimes], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5160
+    [Whether or not to disallow shared libs when runtime libs are static])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5161
+_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5162
+    [Compiler flag to allow reflexive dlopens])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5163
+_LT_TAGDECL([], [whole_archive_flag_spec], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5164
+    [Compiler flag to generate shared objects directly from archives])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5165
+_LT_TAGDECL([], [compiler_needs_object], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5166
+    [Whether the compiler copes with passing no objects directly])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5167
+_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5168
+    [Create an old-style archive from a shared archive])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5169
+_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5170
+    [Create a temporary old-style archive to link instead of a shared archive])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5171
+_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5172
+_LT_TAGDECL([], [archive_expsym_cmds], [2])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5173
+_LT_TAGDECL([], [module_cmds], [2],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5174
+    [Commands used to build a loadable module if different from building
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5175
+    a shared archive.])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5176
+_LT_TAGDECL([], [module_expsym_cmds], [2])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5177
+_LT_TAGDECL([], [with_gnu_ld], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5178
+    [Whether we are building with GNU ld or not])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5179
+_LT_TAGDECL([], [allow_undefined_flag], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5180
+    [Flag that allows shared libraries with undefined symbols to be built])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5181
+_LT_TAGDECL([], [no_undefined_flag], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5182
+    [Flag that enforces no undefined symbols])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5183
+_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5184
+    [Flag to hardcode $libdir into a binary during linking.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5185
+    This must work even if $libdir does not exist])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5186
+_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5187
+    [[If ld is used when linking, flag to hardcode $libdir into a binary
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5188
+    during linking.  This must work even if $libdir does not exist]])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5189
+_LT_TAGDECL([], [hardcode_libdir_separator], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5190
+    [Whether we need a single "-rpath" flag with a separated argument])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5191
+_LT_TAGDECL([], [hardcode_direct], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5192
+    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5193
+    DIR into the resulting binary])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5194
+_LT_TAGDECL([], [hardcode_direct_absolute], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5195
+    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5196
+    DIR into the resulting binary and the resulting library dependency is
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5197
+    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5198
+    library is relocated])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5199
+_LT_TAGDECL([], [hardcode_minus_L], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5200
+    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5201
+    into the resulting binary])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5202
+_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5203
+    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5204
+    into the resulting binary])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5205
+_LT_TAGDECL([], [hardcode_automatic], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5206
+    [Set to "yes" if building a shared library automatically hardcodes DIR
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5207
+    into the library and all subsequent libraries and executables linked
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5208
+    against it])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5209
+_LT_TAGDECL([], [inherit_rpath], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5210
+    [Set to yes if linker adds runtime paths of dependent libraries
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5211
+    to runtime path list])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5212
+_LT_TAGDECL([], [link_all_deplibs], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5213
+    [Whether libtool must link a program against all its dependency libraries])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5214
+_LT_TAGDECL([], [fix_srcfile_path], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5215
+    [Fix the shell variable $srcfile for the compiler])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5216
+_LT_TAGDECL([], [always_export_symbols], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5217
+    [Set to "yes" if exported symbols are required])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5218
+_LT_TAGDECL([], [export_symbols_cmds], [2],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5219
+    [The commands to list exported symbols])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5220
+_LT_TAGDECL([], [exclude_expsyms], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5221
+    [Symbols that should not be listed in the preloaded symbols])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5222
+_LT_TAGDECL([], [include_expsyms], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5223
+    [Symbols that must always be exported])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5224
+_LT_TAGDECL([], [prelink_cmds], [2],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5225
+    [Commands necessary for linking programs (against libraries) with templates])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5226
+_LT_TAGDECL([], [file_list_spec], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5227
+    [Specify filename containing input files])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5228
+dnl FIXME: Not yet implemented
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5229
+dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5230
+dnl    [Compiler flag to generate thread safe objects])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5231
+])# _LT_LINKER_SHLIBS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5232
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5233
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5234
+# _LT_LANG_C_CONFIG([TAG])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5235
+# ------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5236
+# Ensure that the configuration variables for a C compiler are suitably
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5237
+# defined.  These variables are subsequently used by _LT_CONFIG to write
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5238
+# the compiler configuration to `libtool'.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5239
+m4_defun([_LT_LANG_C_CONFIG],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5240
+[m4_require([_LT_DECL_EGREP])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5241
+lt_save_CC="$CC"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5242
+AC_LANG_PUSH(C)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5243
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5244
+# Source file extension for C test sources.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5245
+ac_ext=c
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5246
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5247
+# Object file extension for compiled C test sources.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5248
+objext=o
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5249
+_LT_TAGVAR(objext, $1)=$objext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5250
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5251
+# Code to be used in simple compile tests
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5252
+lt_simple_compile_test_code="int some_variable = 0;"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5253
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5254
+# Code to be used in simple link tests
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5255
+lt_simple_link_test_code='int main(){return(0);}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5256
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5257
+_LT_TAG_COMPILER
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5258
+# Save the default compiler, since it gets overwritten when the other
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5259
+# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5260
+compiler_DEFAULT=$CC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5261
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5262
+# save warnings/boilerplate of simple test code
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5263
+_LT_COMPILER_BOILERPLATE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5264
+_LT_LINKER_BOILERPLATE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5265
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5266
+## CAVEAT EMPTOR:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5267
+## There is no encapsulation within the following macros, do not change
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5268
+## the running order or otherwise move them around unless you know exactly
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5269
+## what you are doing...
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5270
+if test -n "$compiler"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5271
+  _LT_COMPILER_NO_RTTI($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5272
+  _LT_COMPILER_PIC($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5273
+  _LT_COMPILER_C_O($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5274
+  _LT_COMPILER_FILE_LOCKS($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5275
+  _LT_LINKER_SHLIBS($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5276
+  _LT_SYS_DYNAMIC_LINKER($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5277
+  _LT_LINKER_HARDCODE_LIBPATH($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5278
+  LT_SYS_DLOPEN_SELF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5279
+  _LT_CMD_STRIPLIB
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5280
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5281
+  # Report which library types will actually be built
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5282
+  AC_MSG_CHECKING([if libtool supports shared libraries])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5283
+  AC_MSG_RESULT([$can_build_shared])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5284
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5285
+  AC_MSG_CHECKING([whether to build shared libraries])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5286
+  test "$can_build_shared" = "no" && enable_shared=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5287
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5288
+  # On AIX, shared libraries and static libraries use the same namespace, and
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5289
+  # are all built from PIC.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5290
+  case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5291
+  aix3*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5292
+    test "$enable_shared" = yes && enable_static=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5293
+    if test -n "$RANLIB"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5294
+      archive_cmds="$archive_cmds~\$RANLIB \$lib"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5295
+      postinstall_cmds='$RANLIB $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5296
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5297
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5298
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5299
+  aix[[4-9]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5300
+    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5301
+      test "$enable_shared" = yes && enable_static=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5302
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5303
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5304
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5305
+  AC_MSG_RESULT([$enable_shared])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5306
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5307
+  AC_MSG_CHECKING([whether to build static libraries])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5308
+  # Make sure either enable_shared or enable_static is yes.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5309
+  test "$enable_shared" = yes || enable_static=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5310
+  AC_MSG_RESULT([$enable_static])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5311
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5312
+  _LT_CONFIG($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5313
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5314
+AC_LANG_POP
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5315
+CC="$lt_save_CC"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5316
+])# _LT_LANG_C_CONFIG
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5317
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5318
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5319
+# _LT_PROG_CXX
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5320
+# ------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5321
+# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5322
+# compiler, we have our own version here.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5323
+m4_defun([_LT_PROG_CXX],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5324
+[
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5325
+pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5326
+AC_PROG_CXX
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5327
+if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5328
+    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5329
+    (test "X$CXX" != "Xg++"))) ; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5330
+  AC_PROG_CXXCPP
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5331
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5332
+  _lt_caught_CXX_error=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5333
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5334
+popdef([AC_MSG_ERROR])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5335
+])# _LT_PROG_CXX
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5336
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5337
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5338
+dnl AC_DEFUN([_LT_PROG_CXX], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5339
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5340
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5341
+# _LT_LANG_CXX_CONFIG([TAG])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5342
+# --------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5343
+# Ensure that the configuration variables for a C++ compiler are suitably
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5344
+# defined.  These variables are subsequently used by _LT_CONFIG to write
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5345
+# the compiler configuration to `libtool'.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5346
+m4_defun([_LT_LANG_CXX_CONFIG],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5347
+[AC_REQUIRE([_LT_PROG_CXX])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5348
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5349
+m4_require([_LT_DECL_EGREP])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5350
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5351
+AC_LANG_PUSH(C++)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5352
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5353
+_LT_TAGVAR(allow_undefined_flag, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5354
+_LT_TAGVAR(always_export_symbols, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5355
+_LT_TAGVAR(archive_expsym_cmds, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5356
+_LT_TAGVAR(compiler_needs_object, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5357
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5358
+_LT_TAGVAR(hardcode_direct, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5359
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5360
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5361
+_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5362
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5363
+_LT_TAGVAR(hardcode_minus_L, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5364
+_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5365
+_LT_TAGVAR(hardcode_automatic, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5366
+_LT_TAGVAR(inherit_rpath, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5367
+_LT_TAGVAR(module_cmds, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5368
+_LT_TAGVAR(module_expsym_cmds, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5369
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5370
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5371
+_LT_TAGVAR(no_undefined_flag, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5372
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5373
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5374
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5375
+# Source file extension for C++ test sources.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5376
+ac_ext=cpp
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5377
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5378
+# Object file extension for compiled C++ test sources.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5379
+objext=o
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5380
+_LT_TAGVAR(objext, $1)=$objext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5381
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5382
+# No sense in running all these tests if we already determined that
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5383
+# the CXX compiler isn't working.  Some variables (like enable_shared)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5384
+# are currently assumed to apply to all compilers on this platform,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5385
+# and will be corrupted by setting them based on a non-working compiler.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5386
+if test "$_lt_caught_CXX_error" != yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5387
+  # Code to be used in simple compile tests
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5388
+  lt_simple_compile_test_code="int some_variable = 0;"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5389
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5390
+  # Code to be used in simple link tests
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5391
+  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5392
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5393
+  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5394
+  _LT_TAG_COMPILER
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5395
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5396
+  # save warnings/boilerplate of simple test code
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5397
+  _LT_COMPILER_BOILERPLATE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5398
+  _LT_LINKER_BOILERPLATE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5399
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5400
+  # Allow CC to be a program name with arguments.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5401
+  lt_save_CC=$CC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5402
+  lt_save_LD=$LD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5403
+  lt_save_GCC=$GCC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5404
+  GCC=$GXX
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5405
+  lt_save_with_gnu_ld=$with_gnu_ld
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5406
+  lt_save_path_LD=$lt_cv_path_LD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5407
+  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5408
+    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5409
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5410
+    $as_unset lt_cv_prog_gnu_ld
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5411
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5412
+  if test -n "${lt_cv_path_LDCXX+set}"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5413
+    lt_cv_path_LD=$lt_cv_path_LDCXX
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5414
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5415
+    $as_unset lt_cv_path_LD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5416
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5417
+  test -z "${LDCXX+set}" || LD=$LDCXX
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5418
+  CC=${CXX-"c++"}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5419
+  compiler=$CC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5420
+  _LT_TAGVAR(compiler, $1)=$CC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5421
+  _LT_CC_BASENAME([$compiler])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5422
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5423
+  if test -n "$compiler"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5424
+    # We don't want -fno-exception when compiling C++ code, so set the
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5425
+    # no_builtin_flag separately
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5426
+    if test "$GXX" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5427
+      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5428
+    else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5429
+      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5430
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5431
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5432
+    if test "$GXX" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5433
+      # Set up default GNU C++ configuration
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5434
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5435
+      LT_PATH_LD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5436
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5437
+      # Check if GNU C++ uses GNU ld as the underlying linker, since the
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5438
+      # archiving commands below assume that GNU ld is being used.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5439
+      if test "$with_gnu_ld" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5440
+        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5441
+        _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5442
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5443
+        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5444
+        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5445
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5446
+        # If archive_cmds runs LD, not CC, wlarc should be empty
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5447
+        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5448
+        #     investigate it a little bit more. (MM)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5449
+        wlarc='${wl}'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5450
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5451
+        # ancient GNU ld didn't support --whole-archive et. al.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5452
+        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5453
+	  $GREP 'no-whole-archive' > /dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5454
+          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5455
+        else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5456
+          _LT_TAGVAR(whole_archive_flag_spec, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5457
+        fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5458
+      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5459
+        with_gnu_ld=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5460
+        wlarc=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5461
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5462
+        # A generic and very simple default shared library creation
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5463
+        # command for GNU C++ for the case where it uses the native
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5464
+        # linker, instead of GNU ld.  If possible, this setting should
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5465
+        # overridden to take advantage of the native linker features on
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5466
+        # the platform it is being used on.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5467
+        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5468
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5469
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5470
+      # Commands to make compiler produce verbose output that lists
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5471
+      # what "hidden" libraries, object files and flags are used when
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5472
+      # linking a shared library.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5473
+      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5474
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5475
+    else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5476
+      GXX=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5477
+      with_gnu_ld=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5478
+      wlarc=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5479
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5480
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5481
+    # PORTME: fill in a description of your system's C++ link characteristics
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5482
+    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5483
+    _LT_TAGVAR(ld_shlibs, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5484
+    case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5485
+      aix3*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5486
+        # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5487
+        _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5488
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5489
+      aix[[4-9]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5490
+        if test "$host_cpu" = ia64; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5491
+          # On IA64, the linker does run time linking by default, so we don't
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5492
+          # have to do anything special.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5493
+          aix_use_runtimelinking=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5494
+          exp_sym_flag='-Bexport'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5495
+          no_entry_flag=""
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5496
+        else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5497
+          aix_use_runtimelinking=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5498
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5499
+          # Test if we are trying to use run time linking or normal
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5500
+          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5501
+          # need to do runtime linking.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5502
+          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5503
+	    for ld_flag in $LDFLAGS; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5504
+	      case $ld_flag in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5505
+	      *-brtl*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5506
+	        aix_use_runtimelinking=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5507
+	        break
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5508
+	        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5509
+	      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5510
+	    done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5511
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5512
+          esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5513
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5514
+          exp_sym_flag='-bexport'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5515
+          no_entry_flag='-bnoentry'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5516
+        fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5517
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5518
+        # When large executables or shared objects are built, AIX ld can
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5519
+        # have problems creating the table of contents.  If linking a library
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5520
+        # or program results in "error TOC overflow" add -mminimal-toc to
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5521
+        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5522
+        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5523
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5524
+        _LT_TAGVAR(archive_cmds, $1)=''
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5525
+        _LT_TAGVAR(hardcode_direct, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5526
+        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5527
+        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5528
+        _LT_TAGVAR(link_all_deplibs, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5529
+        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5530
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5531
+        if test "$GXX" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5532
+          case $host_os in aix4.[[012]]|aix4.[[012]].*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5533
+          # We only want to do this on AIX 4.2 and lower, the check
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5534
+          # below for broken collect2 doesn't work under 4.3+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5535
+	  collect2name=`${CC} -print-prog-name=collect2`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5536
+	  if test -f "$collect2name" &&
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5537
+	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5538
+	  then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5539
+	    # We have reworked collect2
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5540
+	    :
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5541
+	  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5542
+	    # We have old collect2
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5543
+	    _LT_TAGVAR(hardcode_direct, $1)=unsupported
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5544
+	    # It fails to find uninstalled libraries when the uninstalled
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5545
+	    # path is not listed in the libpath.  Setting hardcode_minus_L
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5546
+	    # to unsupported forces relinking
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5547
+	    _LT_TAGVAR(hardcode_minus_L, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5548
+	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5549
+	    _LT_TAGVAR(hardcode_libdir_separator, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5550
+	  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5551
+          esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5552
+          shared_flag='-shared'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5553
+	  if test "$aix_use_runtimelinking" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5554
+	    shared_flag="$shared_flag "'${wl}-G'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5555
+	  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5556
+        else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5557
+          # not using gcc
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5558
+          if test "$host_cpu" = ia64; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5559
+	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5560
+	  # chokes on -Wl,-G. The following line is correct:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5561
+	  shared_flag='-G'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5562
+          else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5563
+	    if test "$aix_use_runtimelinking" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5564
+	      shared_flag='${wl}-G'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5565
+	    else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5566
+	      shared_flag='${wl}-bM:SRE'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5567
+	    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5568
+          fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5569
+        fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5570
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5571
+        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5572
+        # It seems that -bexpall does not export symbols beginning with
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5573
+        # underscore (_), so it is better to generate a list of symbols to
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5574
+	# export.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5575
+        _LT_TAGVAR(always_export_symbols, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5576
+        if test "$aix_use_runtimelinking" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5577
+          # Warning - without using the other runtime loading flags (-brtl),
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5578
+          # -berok will link without error, but may produce a broken library.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5579
+          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5580
+          # Determine the default libpath from the value encoded in an empty
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5581
+          # executable.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5582
+          _LT_SYS_MODULE_PATH_AIX
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5583
+          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5584
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5585
+          _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"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5586
+        else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5587
+          if test "$host_cpu" = ia64; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5588
+	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5589
+	    _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5590
+	    _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5591
+          else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5592
+	    # Determine the default libpath from the value encoded in an
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5593
+	    # empty executable.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5594
+	    _LT_SYS_MODULE_PATH_AIX
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5595
+	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5596
+	    # Warning - without using the other run time loading flags,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5597
+	    # -berok will link without error, but may produce a broken library.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5598
+	    _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5599
+	    _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5600
+	    # Exported symbols can be pulled into shared objects from archives
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5601
+	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5602
+	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5603
+	    # This is similar to how AIX traditionally builds its shared
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5604
+	    # libraries.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5605
+	    _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5606
+          fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5607
+        fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5608
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5609
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5610
+      beos*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5611
+	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5612
+	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5613
+	  # Joseph Beckenbach <[email protected]> says some releases of gcc
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5614
+	  # support --undefined.  This deserves some investigation.  FIXME
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5615
+	  _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5616
+	else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5617
+	  _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5618
+	fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5619
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5620
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5621
+      chorus*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5622
+        case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5623
+          *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5624
+	  # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5625
+	  _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5626
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5627
+        esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5628
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5629
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5630
+      cygwin* | mingw* | pw32* | cegcc*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5631
+        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5632
+        # as there is no search path for DLLs.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5633
+        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5634
+        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5635
+        _LT_TAGVAR(always_export_symbols, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5636
+        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5637
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5638
+        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5639
+          _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5640
+          # If the export-symbols file already is a .def file (1st line
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5641
+          # is EXPORTS), use it as is; otherwise, prepend...
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5642
+          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5643
+	    cp $export_symbols $output_objdir/$soname.def;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5644
+          else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5645
+	    echo EXPORTS > $output_objdir/$soname.def;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5646
+	    cat $export_symbols >> $output_objdir/$soname.def;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5647
+          fi~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5648
+          $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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5649
+        else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5650
+          _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5651
+        fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5652
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5653
+      darwin* | rhapsody*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5654
+        _LT_DARWIN_LINKER_FEATURES($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5655
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5656
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5657
+      dgux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5658
+        case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5659
+          ec++*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5660
+	    # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5661
+	    _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5662
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5663
+          ghcx*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5664
+	    # Green Hills C++ Compiler
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5665
+	    # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5666
+	    _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5667
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5668
+          *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5669
+	    # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5670
+	    _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5671
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5672
+        esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5673
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5674
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5675
+      freebsd[[12]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5676
+        # C++ shared libraries reported to be fairly broken before
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5677
+	# switch to ELF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5678
+        _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5679
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5680
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5681
+      freebsd-elf*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5682
+        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5683
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5684
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5685
+      freebsd* | dragonfly*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5686
+        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5687
+        # conventions
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5688
+        _LT_TAGVAR(ld_shlibs, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5689
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5690
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5691
+      gnu*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5692
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5693
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5694
+      hpux9*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5695
+        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5696
+        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5697
+        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5698
+        _LT_TAGVAR(hardcode_direct, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5699
+        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5700
+				             # but as the default
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5701
+				             # location of the library.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5702
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5703
+        case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5704
+          CC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5705
+            # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5706
+            _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5707
+            ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5708
+          aCC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5709
+            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5710
+            # Commands to make compiler produce verbose output that lists
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5711
+            # what "hidden" libraries, object files and flags are used when
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5712
+            # linking a shared library.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5713
+            #
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5714
+            # There doesn't appear to be a way to prevent this compiler from
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5715
+            # explicitly linking system object files so we need to strip them
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5716
+            # from the output so that they don't get included in the library
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5717
+            # dependencies.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5718
+            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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5719
+            ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5720
+          *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5721
+            if test "$GXX" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5722
+              _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5723
+            else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5724
+              # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5725
+              _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5726
+            fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5727
+            ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5728
+        esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5729
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5730
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5731
+      hpux10*|hpux11*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5732
+        if test $with_gnu_ld = no; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5733
+	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5734
+	  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5735
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5736
+          case $host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5737
+            hppa*64*|ia64*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5738
+              ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5739
+            *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5740
+	      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5741
+              ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5742
+          esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5743
+        fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5744
+        case $host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5745
+          hppa*64*|ia64*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5746
+            _LT_TAGVAR(hardcode_direct, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5747
+            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5748
+            ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5749
+          *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5750
+            _LT_TAGVAR(hardcode_direct, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5751
+            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5752
+            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5753
+					         # but as the default
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5754
+					         # location of the library.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5755
+            ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5756
+        esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5757
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5758
+        case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5759
+          CC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5760
+	    # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5761
+	    _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5762
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5763
+          aCC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5764
+	    case $host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5765
+	      hppa*64*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5766
+	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5767
+	        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5768
+	      ia64*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5769
+	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5770
+	        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5771
+	      *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5772
+	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5773
+	        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5774
+	    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5775
+	    # Commands to make compiler produce verbose output that lists
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5776
+	    # what "hidden" libraries, object files and flags are used when
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5777
+	    # linking a shared library.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5778
+	    #
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5779
+	    # There doesn't appear to be a way to prevent this compiler from
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5780
+	    # explicitly linking system object files so we need to strip them
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5781
+	    # from the output so that they don't get included in the library
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5782
+	    # dependencies.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5783
+	    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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5784
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5785
+          *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5786
+	    if test "$GXX" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5787
+	      if test $with_gnu_ld = no; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5788
+	        case $host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5789
+	          hppa*64*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5790
+	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5791
+	            ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5792
+	          ia64*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5793
+	            _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5794
+	            ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5795
+	          *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5796
+	            _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5797
+	            ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5798
+	        esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5799
+	      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5800
+	    else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5801
+	      # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5802
+	      _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5803
+	    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5804
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5805
+        esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5806
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5807
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5808
+      interix[[3-9]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5809
+	_LT_TAGVAR(hardcode_direct, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5810
+	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5811
+	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5812
+	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5813
+	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5814
+	# Instead, shared libraries are loaded at an image base (0x10000000 by
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5815
+	# default) and relocated if they conflict, which is a slow very memory
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5816
+	# consuming and fragmenting process.  To avoid this, we pick a random,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5817
+	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5818
+	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5819
+	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5820
+	_LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5821
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5822
+      irix5* | irix6*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5823
+        case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5824
+          CC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5825
+	    # SGI C++
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5826
+	    _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5827
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5828
+	    # Archives containing C++ object files must be created using
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5829
+	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5830
+	    # necessary to make sure instantiated templates are included
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5831
+	    # in the archive.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5832
+	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5833
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5834
+          *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5835
+	    if test "$GXX" = yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5836
+	      if test "$with_gnu_ld" = no; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5837
+	        _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5838
+	      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5839
+	        _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5840
+	      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5841
+	    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5842
+	    _LT_TAGVAR(link_all_deplibs, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5843
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5844
+        esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5845
+        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5846
+        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5847
+        _LT_TAGVAR(inherit_rpath, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5848
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5849
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5850
+      linux* | k*bsd*-gnu)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5851
+        case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5852
+          KCC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5853
+	    # Kuck and Associates, Inc. (KAI) C++ Compiler
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5854
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5855
+	    # KCC will only create a shared library if the output file
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5856
+	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5857
+	    # to its proper name (with version) after linking.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5858
+	    _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5859
+	    _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5860
+	    # Commands to make compiler produce verbose output that lists
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5861
+	    # what "hidden" libraries, object files and flags are used when
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5862
+	    # linking a shared library.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5863
+	    #
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5864
+	    # There doesn't appear to be a way to prevent this compiler from
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5865
+	    # explicitly linking system object files so we need to strip them
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5866
+	    # from the output so that they don't get included in the library
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5867
+	    # dependencies.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5868
+	    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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5869
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5870
+	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5871
+	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5872
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5873
+	    # Archives containing C++ object files must be created using
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5874
+	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5875
+	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5876
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5877
+	  icpc* | ecpc* )
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5878
+	    # Intel C++
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5879
+	    with_gnu_ld=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5880
+	    # version 8.0 and above of icpc choke on multiply defined symbols
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5881
+	    # if we add $predep_objects and $postdep_objects, however 7.1 and
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5882
+	    # earlier do not add the objects themselves.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5883
+	    case `$CC -V 2>&1` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5884
+	      *"Version 7."*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5885
+	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5886
+		_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5887
+		;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5888
+	      *)  # Version 8.0 or newer
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5889
+	        tmp_idyn=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5890
+	        case $host_cpu in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5891
+		  ia64*) tmp_idyn=' -i_dynamic';;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5892
+		esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5893
+	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5894
+		_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5895
+		;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5896
+	    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5897
+	    _LT_TAGVAR(archive_cmds_need_lc, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5898
+	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5899
+	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5900
+	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5901
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5902
+          pgCC* | pgcpp*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5903
+            # Portland Group C++ compiler
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5904
+	    case `$CC -V` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5905
+	    *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5906
+	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5907
+		rm -rf $tpldir~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5908
+		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5909
+		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5910
+	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5911
+		rm -rf $tpldir~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5912
+		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5913
+		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5914
+		$RANLIB $oldlib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5915
+	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5916
+		rm -rf $tpldir~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5917
+		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5918
+		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5919
+	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5920
+		rm -rf $tpldir~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5921
+		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5922
+		$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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5923
+	      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5924
+	    *) # Version 6 will use weak symbols
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5925
+	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5926
+	      _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5927
+	      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5928
+	    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5929
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5930
+	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5931
+	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5932
+	    _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5933
+            ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5934
+	  cxx*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5935
+	    # Compaq C++
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5936
+	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5937
+	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5938
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5939
+	    runpath_var=LD_RUN_PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5940
+	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5941
+	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5942
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5943
+	    # Commands to make compiler produce verbose output that lists
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5944
+	    # what "hidden" libraries, object files and flags are used when
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5945
+	    # linking a shared library.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5946
+	    #
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5947
+	    # There doesn't appear to be a way to prevent this compiler from
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5948
+	    # explicitly linking system object files so we need to strip them
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5949
+	    # from the output so that they don't get included in the library
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5950
+	    # dependencies.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5951
+	    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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5952
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5953
+	  xl*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5954
+	    # IBM XL 8.0 on PPC, with GNU ld
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5955
+	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5956
+	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5957
+	    _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5958
+	    if test "x$supports_anon_versioning" = xyes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5959
+	      _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5960
+		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5961
+		echo "local: *; };" >> $output_objdir/$libname.ver~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5962
+		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5963
+	    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5964
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5965
+	  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5966
+	    case `$CC -V 2>&1 | sed 5q` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5967
+	    *Sun\ C*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5968
+	      # Sun C++ 5.9
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5969
+	      _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5970
+	      _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5971
+	      _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5972
+	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5973
+	      _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5974
+	      _LT_TAGVAR(compiler_needs_object, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5975
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5976
+	      # Not sure whether something based on
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5977
+	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5978
+	      # would be better.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5979
+	      output_verbose_link_cmd='echo'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5980
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5981
+	      # Archives containing C++ object files must be created using
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5982
+	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5983
+	      # necessary to make sure instantiated templates are included
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5984
+	      # in the archive.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5985
+	      _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5986
+	      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5987
+	    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5988
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5989
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5990
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5991
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5992
+      lynxos*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5993
+        # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5994
+	_LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5995
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5996
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5997
+      m88k*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5998
+        # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  5999
+        _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6000
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6001
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6002
+      mvs*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6003
+        case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6004
+          cxx*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6005
+	    # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6006
+	    _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6007
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6008
+	  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6009
+	    # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6010
+	    _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6011
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6012
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6013
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6014
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6015
+      netbsd*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6016
+        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6017
+	  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6018
+	  wlarc=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6019
+	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6020
+	  _LT_TAGVAR(hardcode_direct, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6021
+	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6022
+	fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6023
+	# Workaround some broken pre-1.5 toolchains
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6024
+	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6025
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6026
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6027
+      *nto* | *qnx*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6028
+        _LT_TAGVAR(ld_shlibs, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6029
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6030
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6031
+      openbsd2*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6032
+        # C++ shared libraries are fairly broken
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6033
+	_LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6034
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6035
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6036
+      openbsd*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6037
+	if test -f /usr/libexec/ld.so; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6038
+	  _LT_TAGVAR(hardcode_direct, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6039
+	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6040
+	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6041
+	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6042
+	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6043
+	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6044
+	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6045
+	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6046
+	    _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6047
+	  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6048
+	  output_verbose_link_cmd=echo
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6049
+	else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6050
+	  _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6051
+	fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6052
+	;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6053
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6054
+      osf3* | osf4* | osf5*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6055
+        case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6056
+          KCC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6057
+	    # Kuck and Associates, Inc. (KAI) C++ Compiler
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6058
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6059
+	    # KCC will only create a shared library if the output file
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6060
+	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6061
+	    # to its proper name (with version) after linking.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6062
+	    _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6063
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6064
+	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6065
+	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6066
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6067
+	    # Archives containing C++ object files must be created using
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6068
+	    # the KAI C++ compiler.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6069
+	    case $host in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6070
+	      osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6071
+	      *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6072
+	    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6073
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6074
+          RCC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6075
+	    # Rational C++ 2.4.1
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6076
+	    # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6077
+	    _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6078
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6079
+          cxx*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6080
+	    case $host in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6081
+	      osf3*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6082
+	        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6083
+	        _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6084
+	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6085
+		;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6086
+	      *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6087
+	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6088
+	        _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6089
+	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6090
+	          echo "-hidden">> $lib.exp~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6091
+	          $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~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6092
+	          $RM $lib.exp'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6093
+	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6094
+		;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6095
+	    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6096
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6097
+	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6098
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6099
+	    # Commands to make compiler produce verbose output that lists
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6100
+	    # what "hidden" libraries, object files and flags are used when
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6101
+	    # linking a shared library.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6102
+	    #
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6103
+	    # There doesn't appear to be a way to prevent this compiler from
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6104
+	    # explicitly linking system object files so we need to strip them
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6105
+	    # from the output so that they don't get included in the library
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6106
+	    # dependencies.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6107
+	    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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6108
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6109
+	  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6110
+	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6111
+	      _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6112
+	      case $host in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6113
+	        osf3*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6114
+	          _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6115
+		  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6116
+	        *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6117
+	          _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'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6118
+		  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6119
+	      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6120
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6121
+	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6122
+	      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6123
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6124
+	      # Commands to make compiler produce verbose output that lists
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6125
+	      # what "hidden" libraries, object files and flags are used when
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6126
+	      # linking a shared library.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6127
+	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6128
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6129
+	    else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6130
+	      # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6131
+	      _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6132
+	    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6133
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6134
+        esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6135
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6136
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6137
+      psos*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6138
+        # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6139
+        _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6140
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6141
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6142
+      sunos4*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6143
+        case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6144
+          CC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6145
+	    # Sun C++ 4.x
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6146
+	    # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6147
+	    _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6148
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6149
+          lcc*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6150
+	    # Lucid
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6151
+	    # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6152
+	    _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6153
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6154
+          *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6155
+	    # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6156
+	    _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6157
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6158
+        esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6159
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6160
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6161
+      solaris*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6162
+        case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6163
+          CC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6164
+	    # Sun C++ 4.2, 5.x and Centerline C++
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6165
+            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6166
+	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6167
+	    _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6168
+	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6169
+	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6170
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6171
+	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6172
+	    _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6173
+	    case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6174
+	      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6175
+	      *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6176
+		# The compiler driver will combine and reorder linker options,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6177
+		# but understands `-z linker_flag'.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6178
+	        # Supported since Solaris 2.6 (maybe 2.5.1?)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6179
+		_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6180
+	        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6181
+	    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6182
+	    _LT_TAGVAR(link_all_deplibs, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6183
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6184
+	    output_verbose_link_cmd='echo'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6185
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6186
+	    # Archives containing C++ object files must be created using
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6187
+	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6188
+	    # necessary to make sure instantiated templates are included
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6189
+	    # in the archive.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6190
+	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6191
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6192
+          gcx*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6193
+	    # Green Hills C++ Compiler
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6194
+	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6195
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6196
+	    # The C++ compiler must be used to create the archive.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6197
+	    _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6198
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6199
+          *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6200
+	    # GNU C++ compiler with Solaris linker
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6201
+	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6202
+	      _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6203
+	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6204
+	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6205
+	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6206
+		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6207
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6208
+	        # Commands to make compiler produce verbose output that lists
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6209
+	        # what "hidden" libraries, object files and flags are used when
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6210
+	        # linking a shared library.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6211
+	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6212
+	      else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6213
+	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6214
+	        # platform.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6215
+	        _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6216
+	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6217
+		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6218
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6219
+	        # Commands to make compiler produce verbose output that lists
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6220
+	        # what "hidden" libraries, object files and flags are used when
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6221
+	        # linking a shared library.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6222
+	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6223
+	      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6224
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6225
+	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6226
+	      case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6227
+		solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6228
+		*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6229
+		  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6230
+		  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6231
+	      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6232
+	    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6233
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6234
+        esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6235
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6236
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6237
+    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6238
+      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6239
+      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6240
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6241
+      runpath_var='LD_RUN_PATH'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6242
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6243
+      case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6244
+        CC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6245
+	  _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6246
+	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6247
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6248
+	*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6249
+	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6250
+	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6251
+	  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6252
+      esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6253
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6254
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6255
+      sysv5* | sco3.2v5* | sco5v6*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6256
+	# Note: We can NOT use -z defs as we might desire, because we do not
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6257
+	# link with -lc, and that would cause any symbols used from libc to
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6258
+	# always be unresolved, which means just about no library would
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6259
+	# ever link correctly.  If we're not using GNU ld we use -z text
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6260
+	# though, which does catch some bad symbols but isn't as heavy-handed
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6261
+	# as -z defs.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6262
+	_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6263
+	_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6264
+	_LT_TAGVAR(archive_cmds_need_lc, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6265
+	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6266
+	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6267
+	_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6268
+	_LT_TAGVAR(link_all_deplibs, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6269
+	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6270
+	runpath_var='LD_RUN_PATH'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6271
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6272
+	case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6273
+          CC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6274
+	    _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6275
+	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6276
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6277
+	  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6278
+	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6279
+	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6280
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6281
+	esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6282
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6283
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6284
+      tandem*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6285
+        case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6286
+          NCC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6287
+	    # NonStop-UX NCC 3.20
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6288
+	    # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6289
+	    _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6290
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6291
+          *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6292
+	    # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6293
+	    _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6294
+	    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6295
+        esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6296
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6297
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6298
+      vxworks*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6299
+        # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6300
+        _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6301
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6302
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6303
+      *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6304
+        # FIXME: insert proper C++ library support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6305
+        _LT_TAGVAR(ld_shlibs, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6306
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6307
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6308
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6309
+    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6310
+    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6311
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6312
+    _LT_TAGVAR(GCC, $1)="$GXX"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6313
+    _LT_TAGVAR(LD, $1)="$LD"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6314
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6315
+    ## CAVEAT EMPTOR:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6316
+    ## There is no encapsulation within the following macros, do not change
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6317
+    ## the running order or otherwise move them around unless you know exactly
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6318
+    ## what you are doing...
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6319
+    _LT_SYS_HIDDEN_LIBDEPS($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6320
+    _LT_COMPILER_PIC($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6321
+    _LT_COMPILER_C_O($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6322
+    _LT_COMPILER_FILE_LOCKS($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6323
+    _LT_LINKER_SHLIBS($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6324
+    _LT_SYS_DYNAMIC_LINKER($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6325
+    _LT_LINKER_HARDCODE_LIBPATH($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6326
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6327
+    _LT_CONFIG($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6328
+  fi # test -n "$compiler"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6329
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6330
+  CC=$lt_save_CC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6331
+  LDCXX=$LD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6332
+  LD=$lt_save_LD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6333
+  GCC=$lt_save_GCC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6334
+  with_gnu_ld=$lt_save_with_gnu_ld
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6335
+  lt_cv_path_LDCXX=$lt_cv_path_LD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6336
+  lt_cv_path_LD=$lt_save_path_LD
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6337
+  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6338
+  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6339
+fi # test "$_lt_caught_CXX_error" != yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6340
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6341
+AC_LANG_POP
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6342
+])# _LT_LANG_CXX_CONFIG
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6343
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6344
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6345
+# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6346
+# ---------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6347
+# Figure out "hidden" library dependencies from verbose
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6348
+# compiler output when linking a shared library.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6349
+# Parse the compiler output and extract the necessary
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6350
+# objects, libraries and library flags.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6351
+m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6352
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6353
+# Dependencies to place before and after the object being linked:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6354
+_LT_TAGVAR(predep_objects, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6355
+_LT_TAGVAR(postdep_objects, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6356
+_LT_TAGVAR(predeps, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6357
+_LT_TAGVAR(postdeps, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6358
+_LT_TAGVAR(compiler_lib_search_path, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6359
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6360
+dnl we can't use the lt_simple_compile_test_code here,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6361
+dnl because it contains code intended for an executable,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6362
+dnl not a library.  It's possible we should let each
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6363
+dnl tag define a new lt_????_link_test_code variable,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6364
+dnl but it's only used here...
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6365
+m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6366
+int a;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6367
+void foo (void) { a = 0; }
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6368
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6369
+], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6370
+class Foo
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6371
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6372
+public:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6373
+  Foo (void) { a = 0; }
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6374
+private:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6375
+  int a;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6376
+};
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6377
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6378
+], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6379
+      subroutine foo
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6380
+      implicit none
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6381
+      integer*4 a
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6382
+      a=0
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6383
+      return
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6384
+      end
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6385
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6386
+], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6387
+      subroutine foo
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6388
+      implicit none
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6389
+      integer a
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6390
+      a=0
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6391
+      return
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6392
+      end
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6393
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6394
+], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6395
+public class foo {
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6396
+  private int a;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6397
+  public void bar (void) {
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6398
+    a = 0;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6399
+  }
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6400
+};
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6401
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6402
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6403
+dnl Parse the compiler output and extract the necessary
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6404
+dnl objects, libraries and library flags.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6405
+if AC_TRY_EVAL(ac_compile); then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6406
+  # Parse the compiler output and extract the necessary
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6407
+  # objects, libraries and library flags.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6408
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6409
+  # Sentinel used to keep track of whether or not we are before
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6410
+  # the conftest object file.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6411
+  pre_test_object_deps_done=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6412
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6413
+  for p in `eval "$output_verbose_link_cmd"`; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6414
+    case $p in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6415
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6416
+    -L* | -R* | -l*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6417
+       # Some compilers place space between "-{L,R}" and the path.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6418
+       # Remove the space.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6419
+       if test $p = "-L" ||
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6420
+          test $p = "-R"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6421
+	 prev=$p
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6422
+	 continue
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6423
+       else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6424
+	 prev=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6425
+       fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6426
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6427
+       if test "$pre_test_object_deps_done" = no; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6428
+	 case $p in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6429
+	 -L* | -R*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6430
+	   # Internal compiler library paths should come after those
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6431
+	   # provided the user.  The postdeps already come after the
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6432
+	   # user supplied libs so there is no need to process them.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6433
+	   if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6434
+	     _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6435
+	   else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6436
+	     _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6437
+	   fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6438
+	   ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6439
+	 # The "-l" case would never come before the object being
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6440
+	 # linked, so don't bother handling this case.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6441
+	 esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6442
+       else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6443
+	 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6444
+	   _LT_TAGVAR(postdeps, $1)="${prev}${p}"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6445
+	 else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6446
+	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6447
+	 fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6448
+       fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6449
+       ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6450
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6451
+    *.$objext)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6452
+       # This assumes that the test object file only shows up
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6453
+       # once in the compiler output.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6454
+       if test "$p" = "conftest.$objext"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6455
+	 pre_test_object_deps_done=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6456
+	 continue
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6457
+       fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6458
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6459
+       if test "$pre_test_object_deps_done" = no; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6460
+	 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6461
+	   _LT_TAGVAR(predep_objects, $1)="$p"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6462
+	 else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6463
+	   _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6464
+	 fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6465
+       else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6466
+	 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6467
+	   _LT_TAGVAR(postdep_objects, $1)="$p"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6468
+	 else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6469
+	   _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6470
+	 fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6471
+       fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6472
+       ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6473
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6474
+    *) ;; # Ignore the rest.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6475
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6476
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6477
+  done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6478
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6479
+  # Clean up.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6480
+  rm -f a.out a.exe
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6481
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6482
+  echo "libtool.m4: error: problem compiling $1 test program"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6483
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6484
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6485
+$RM -f confest.$objext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6486
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6487
+# PORTME: override above test on systems where it is broken
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6488
+m4_if([$1], [CXX],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6489
+[case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6490
+interix[[3-9]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6491
+  # Interix 3.5 installs completely hosed .la files for C++, so rather than
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6492
+  # hack all around it, let's just trust "g++" to DTRT.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6493
+  _LT_TAGVAR(predep_objects,$1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6494
+  _LT_TAGVAR(postdep_objects,$1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6495
+  _LT_TAGVAR(postdeps,$1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6496
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6497
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6498
+linux*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6499
+  case `$CC -V 2>&1 | sed 5q` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6500
+  *Sun\ C*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6501
+    # Sun C++ 5.9
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6502
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6503
+    # The more standards-conforming stlport4 library is
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6504
+    # incompatible with the Cstd library. Avoid specifying
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6505
+    # it if it's in CXXFLAGS. Ignore libCrun as
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6506
+    # -library=stlport4 depends on it.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6507
+    case " $CXX $CXXFLAGS " in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6508
+    *" -library=stlport4 "*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6509
+      solaris_use_stlport4=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6510
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6511
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6512
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6513
+    if test "$solaris_use_stlport4" != yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6514
+      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6515
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6516
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6517
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6518
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6519
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6520
+solaris*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6521
+  case $cc_basename in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6522
+  CC*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6523
+    # The more standards-conforming stlport4 library is
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6524
+    # incompatible with the Cstd library. Avoid specifying
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6525
+    # it if it's in CXXFLAGS. Ignore libCrun as
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6526
+    # -library=stlport4 depends on it.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6527
+    case " $CXX $CXXFLAGS " in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6528
+    *" -library=stlport4 "*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6529
+      solaris_use_stlport4=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6530
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6531
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6532
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6533
+    # Adding this requires a known-good setup of shared libraries for
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6534
+    # Sun compiler versions before 5.6, else PIC objects from an old
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6535
+    # archive will be linked into the output, leading to subtle bugs.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6536
+    if test "$solaris_use_stlport4" != yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6537
+      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6538
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6539
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6540
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6541
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6542
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6543
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6544
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6545
+case " $_LT_TAGVAR(postdeps, $1) " in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6546
+*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6547
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6548
+ _LT_TAGVAR(compiler_lib_search_dirs, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6549
+if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6550
+ _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6551
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6552
+_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6553
+    [The directories searched by this compiler when creating a shared library])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6554
+_LT_TAGDECL([], [predep_objects], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6555
+    [Dependencies to place before and after the objects being linked to
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6556
+    create a shared library])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6557
+_LT_TAGDECL([], [postdep_objects], [1])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6558
+_LT_TAGDECL([], [predeps], [1])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6559
+_LT_TAGDECL([], [postdeps], [1])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6560
+_LT_TAGDECL([], [compiler_lib_search_path], [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6561
+    [The library search path used internally by the compiler when linking
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6562
+    a shared library])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6563
+])# _LT_SYS_HIDDEN_LIBDEPS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6564
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6565
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6566
+# _LT_PROG_F77
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6567
+# ------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6568
+# Since AC_PROG_F77 is broken, in that it returns the empty string
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6569
+# if there is no fortran compiler, we have our own version here.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6570
+m4_defun([_LT_PROG_F77],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6571
+[
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6572
+pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6573
+AC_PROG_F77
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6574
+if test -z "$F77" || test "X$F77" = "Xno"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6575
+  _lt_disable_F77=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6576
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6577
+popdef([AC_MSG_ERROR])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6578
+])# _LT_PROG_F77
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6579
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6580
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6581
+dnl AC_DEFUN([_LT_PROG_F77], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6582
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6583
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6584
+# _LT_LANG_F77_CONFIG([TAG])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6585
+# --------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6586
+# Ensure that the configuration variables for a Fortran 77 compiler are
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6587
+# suitably defined.  These variables are subsequently used by _LT_CONFIG
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6588
+# to write the compiler configuration to `libtool'.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6589
+m4_defun([_LT_LANG_F77_CONFIG],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6590
+[AC_REQUIRE([_LT_PROG_F77])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6591
+AC_LANG_PUSH(Fortran 77)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6592
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6593
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6594
+_LT_TAGVAR(allow_undefined_flag, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6595
+_LT_TAGVAR(always_export_symbols, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6596
+_LT_TAGVAR(archive_expsym_cmds, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6597
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6598
+_LT_TAGVAR(hardcode_direct, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6599
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6600
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6601
+_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6602
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6603
+_LT_TAGVAR(hardcode_minus_L, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6604
+_LT_TAGVAR(hardcode_automatic, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6605
+_LT_TAGVAR(inherit_rpath, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6606
+_LT_TAGVAR(module_cmds, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6607
+_LT_TAGVAR(module_expsym_cmds, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6608
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6609
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6610
+_LT_TAGVAR(no_undefined_flag, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6611
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6612
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6613
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6614
+# Source file extension for f77 test sources.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6615
+ac_ext=f
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6616
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6617
+# Object file extension for compiled f77 test sources.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6618
+objext=o
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6619
+_LT_TAGVAR(objext, $1)=$objext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6620
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6621
+# No sense in running all these tests if we already determined that
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6622
+# the F77 compiler isn't working.  Some variables (like enable_shared)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6623
+# are currently assumed to apply to all compilers on this platform,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6624
+# and will be corrupted by setting them based on a non-working compiler.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6625
+if test "$_lt_disable_F77" != yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6626
+  # Code to be used in simple compile tests
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6627
+  lt_simple_compile_test_code="\
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6628
+      subroutine t
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6629
+      return
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6630
+      end
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6631
+"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6632
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6633
+  # Code to be used in simple link tests
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6634
+  lt_simple_link_test_code="\
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6635
+      program t
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6636
+      end
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6637
+"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6638
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6639
+  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6640
+  _LT_TAG_COMPILER
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6641
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6642
+  # save warnings/boilerplate of simple test code
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6643
+  _LT_COMPILER_BOILERPLATE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6644
+  _LT_LINKER_BOILERPLATE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6645
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6646
+  # Allow CC to be a program name with arguments.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6647
+  lt_save_CC="$CC"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6648
+  lt_save_GCC=$GCC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6649
+  CC=${F77-"f77"}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6650
+  compiler=$CC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6651
+  _LT_TAGVAR(compiler, $1)=$CC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6652
+  _LT_CC_BASENAME([$compiler])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6653
+  GCC=$G77
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6654
+  if test -n "$compiler"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6655
+    AC_MSG_CHECKING([if libtool supports shared libraries])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6656
+    AC_MSG_RESULT([$can_build_shared])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6657
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6658
+    AC_MSG_CHECKING([whether to build shared libraries])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6659
+    test "$can_build_shared" = "no" && enable_shared=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6660
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6661
+    # On AIX, shared libraries and static libraries use the same namespace, and
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6662
+    # are all built from PIC.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6663
+    case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6664
+      aix3*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6665
+        test "$enable_shared" = yes && enable_static=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6666
+        if test -n "$RANLIB"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6667
+          archive_cmds="$archive_cmds~\$RANLIB \$lib"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6668
+          postinstall_cmds='$RANLIB $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6669
+        fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6670
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6671
+      aix[[4-9]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6672
+	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6673
+	  test "$enable_shared" = yes && enable_static=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6674
+	fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6675
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6676
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6677
+    AC_MSG_RESULT([$enable_shared])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6678
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6679
+    AC_MSG_CHECKING([whether to build static libraries])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6680
+    # Make sure either enable_shared or enable_static is yes.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6681
+    test "$enable_shared" = yes || enable_static=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6682
+    AC_MSG_RESULT([$enable_static])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6683
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6684
+    _LT_TAGVAR(GCC, $1)="$G77"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6685
+    _LT_TAGVAR(LD, $1)="$LD"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6686
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6687
+    ## CAVEAT EMPTOR:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6688
+    ## There is no encapsulation within the following macros, do not change
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6689
+    ## the running order or otherwise move them around unless you know exactly
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6690
+    ## what you are doing...
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6691
+    _LT_COMPILER_PIC($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6692
+    _LT_COMPILER_C_O($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6693
+    _LT_COMPILER_FILE_LOCKS($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6694
+    _LT_LINKER_SHLIBS($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6695
+    _LT_SYS_DYNAMIC_LINKER($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6696
+    _LT_LINKER_HARDCODE_LIBPATH($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6697
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6698
+    _LT_CONFIG($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6699
+  fi # test -n "$compiler"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6700
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6701
+  GCC=$lt_save_GCC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6702
+  CC="$lt_save_CC"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6703
+fi # test "$_lt_disable_F77" != yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6704
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6705
+AC_LANG_POP
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6706
+])# _LT_LANG_F77_CONFIG
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6707
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6708
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6709
+# _LT_PROG_FC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6710
+# -----------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6711
+# Since AC_PROG_FC is broken, in that it returns the empty string
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6712
+# if there is no fortran compiler, we have our own version here.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6713
+m4_defun([_LT_PROG_FC],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6714
+[
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6715
+pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6716
+AC_PROG_FC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6717
+if test -z "$FC" || test "X$FC" = "Xno"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6718
+  _lt_disable_FC=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6719
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6720
+popdef([AC_MSG_ERROR])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6721
+])# _LT_PROG_FC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6722
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6723
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6724
+dnl AC_DEFUN([_LT_PROG_FC], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6725
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6726
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6727
+# _LT_LANG_FC_CONFIG([TAG])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6728
+# -------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6729
+# Ensure that the configuration variables for a Fortran compiler are
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6730
+# suitably defined.  These variables are subsequently used by _LT_CONFIG
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6731
+# to write the compiler configuration to `libtool'.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6732
+m4_defun([_LT_LANG_FC_CONFIG],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6733
+[AC_REQUIRE([_LT_PROG_FC])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6734
+AC_LANG_PUSH(Fortran)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6735
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6736
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6737
+_LT_TAGVAR(allow_undefined_flag, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6738
+_LT_TAGVAR(always_export_symbols, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6739
+_LT_TAGVAR(archive_expsym_cmds, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6740
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6741
+_LT_TAGVAR(hardcode_direct, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6742
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6743
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6744
+_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6745
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6746
+_LT_TAGVAR(hardcode_minus_L, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6747
+_LT_TAGVAR(hardcode_automatic, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6748
+_LT_TAGVAR(inherit_rpath, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6749
+_LT_TAGVAR(module_cmds, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6750
+_LT_TAGVAR(module_expsym_cmds, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6751
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6752
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6753
+_LT_TAGVAR(no_undefined_flag, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6754
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6755
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6756
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6757
+# Source file extension for fc test sources.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6758
+ac_ext=${ac_fc_srcext-f}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6759
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6760
+# Object file extension for compiled fc test sources.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6761
+objext=o
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6762
+_LT_TAGVAR(objext, $1)=$objext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6763
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6764
+# No sense in running all these tests if we already determined that
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6765
+# the FC compiler isn't working.  Some variables (like enable_shared)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6766
+# are currently assumed to apply to all compilers on this platform,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6767
+# and will be corrupted by setting them based on a non-working compiler.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6768
+if test "$_lt_disable_FC" != yes; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6769
+  # Code to be used in simple compile tests
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6770
+  lt_simple_compile_test_code="\
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6771
+      subroutine t
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6772
+      return
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6773
+      end
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6774
+"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6775
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6776
+  # Code to be used in simple link tests
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6777
+  lt_simple_link_test_code="\
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6778
+      program t
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6779
+      end
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6780
+"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6781
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6782
+  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6783
+  _LT_TAG_COMPILER
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6784
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6785
+  # save warnings/boilerplate of simple test code
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6786
+  _LT_COMPILER_BOILERPLATE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6787
+  _LT_LINKER_BOILERPLATE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6788
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6789
+  # Allow CC to be a program name with arguments.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6790
+  lt_save_CC="$CC"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6791
+  lt_save_GCC=$GCC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6792
+  CC=${FC-"f95"}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6793
+  compiler=$CC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6794
+  GCC=$ac_cv_fc_compiler_gnu
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6795
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6796
+  _LT_TAGVAR(compiler, $1)=$CC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6797
+  _LT_CC_BASENAME([$compiler])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6798
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6799
+  if test -n "$compiler"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6800
+    AC_MSG_CHECKING([if libtool supports shared libraries])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6801
+    AC_MSG_RESULT([$can_build_shared])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6802
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6803
+    AC_MSG_CHECKING([whether to build shared libraries])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6804
+    test "$can_build_shared" = "no" && enable_shared=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6805
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6806
+    # On AIX, shared libraries and static libraries use the same namespace, and
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6807
+    # are all built from PIC.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6808
+    case $host_os in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6809
+      aix3*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6810
+        test "$enable_shared" = yes && enable_static=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6811
+        if test -n "$RANLIB"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6812
+          archive_cmds="$archive_cmds~\$RANLIB \$lib"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6813
+          postinstall_cmds='$RANLIB $lib'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6814
+        fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6815
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6816
+      aix[[4-9]]*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6817
+	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6818
+	  test "$enable_shared" = yes && enable_static=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6819
+	fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6820
+        ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6821
+    esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6822
+    AC_MSG_RESULT([$enable_shared])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6823
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6824
+    AC_MSG_CHECKING([whether to build static libraries])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6825
+    # Make sure either enable_shared or enable_static is yes.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6826
+    test "$enable_shared" = yes || enable_static=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6827
+    AC_MSG_RESULT([$enable_static])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6828
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6829
+    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6830
+    _LT_TAGVAR(LD, $1)="$LD"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6831
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6832
+    ## CAVEAT EMPTOR:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6833
+    ## There is no encapsulation within the following macros, do not change
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6834
+    ## the running order or otherwise move them around unless you know exactly
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6835
+    ## what you are doing...
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6836
+    _LT_SYS_HIDDEN_LIBDEPS($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6837
+    _LT_COMPILER_PIC($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6838
+    _LT_COMPILER_C_O($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6839
+    _LT_COMPILER_FILE_LOCKS($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6840
+    _LT_LINKER_SHLIBS($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6841
+    _LT_SYS_DYNAMIC_LINKER($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6842
+    _LT_LINKER_HARDCODE_LIBPATH($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6843
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6844
+    _LT_CONFIG($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6845
+  fi # test -n "$compiler"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6846
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6847
+  GCC=$lt_save_GCC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6848
+  CC="$lt_save_CC"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6849
+fi # test "$_lt_disable_FC" != yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6850
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6851
+AC_LANG_POP
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6852
+])# _LT_LANG_FC_CONFIG
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6853
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6854
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6855
+# _LT_LANG_GCJ_CONFIG([TAG])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6856
+# --------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6857
+# Ensure that the configuration variables for the GNU Java Compiler compiler
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6858
+# are suitably defined.  These variables are subsequently used by _LT_CONFIG
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6859
+# to write the compiler configuration to `libtool'.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6860
+m4_defun([_LT_LANG_GCJ_CONFIG],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6861
+[AC_REQUIRE([LT_PROG_GCJ])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6862
+AC_LANG_SAVE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6863
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6864
+# Source file extension for Java test sources.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6865
+ac_ext=java
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6866
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6867
+# Object file extension for compiled Java test sources.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6868
+objext=o
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6869
+_LT_TAGVAR(objext, $1)=$objext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6870
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6871
+# Code to be used in simple compile tests
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6872
+lt_simple_compile_test_code="class foo {}"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6873
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6874
+# Code to be used in simple link tests
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6875
+lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6876
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6877
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6878
+_LT_TAG_COMPILER
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6879
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6880
+# save warnings/boilerplate of simple test code
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6881
+_LT_COMPILER_BOILERPLATE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6882
+_LT_LINKER_BOILERPLATE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6883
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6884
+# Allow CC to be a program name with arguments.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6885
+lt_save_CC="$CC"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6886
+lt_save_GCC=$GCC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6887
+GCC=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6888
+CC=${GCJ-"gcj"}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6889
+compiler=$CC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6890
+_LT_TAGVAR(compiler, $1)=$CC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6891
+_LT_TAGVAR(LD, $1)="$LD"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6892
+_LT_CC_BASENAME([$compiler])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6893
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6894
+# GCJ did not exist at the time GCC didn't implicitly link libc in.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6895
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6896
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6897
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6898
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6899
+## CAVEAT EMPTOR:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6900
+## There is no encapsulation within the following macros, do not change
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6901
+## the running order or otherwise move them around unless you know exactly
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6902
+## what you are doing...
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6903
+if test -n "$compiler"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6904
+  _LT_COMPILER_NO_RTTI($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6905
+  _LT_COMPILER_PIC($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6906
+  _LT_COMPILER_C_O($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6907
+  _LT_COMPILER_FILE_LOCKS($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6908
+  _LT_LINKER_SHLIBS($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6909
+  _LT_LINKER_HARDCODE_LIBPATH($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6910
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6911
+  _LT_CONFIG($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6912
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6913
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6914
+AC_LANG_RESTORE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6915
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6916
+GCC=$lt_save_GCC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6917
+CC="$lt_save_CC"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6918
+])# _LT_LANG_GCJ_CONFIG
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6919
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6920
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6921
+# _LT_LANG_RC_CONFIG([TAG])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6922
+# -------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6923
+# Ensure that the configuration variables for the Windows resource compiler
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6924
+# are suitably defined.  These variables are subsequently used by _LT_CONFIG
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6925
+# to write the compiler configuration to `libtool'.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6926
+m4_defun([_LT_LANG_RC_CONFIG],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6927
+[AC_REQUIRE([LT_PROG_RC])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6928
+AC_LANG_SAVE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6929
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6930
+# Source file extension for RC test sources.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6931
+ac_ext=rc
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6932
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6933
+# Object file extension for compiled RC test sources.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6934
+objext=o
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6935
+_LT_TAGVAR(objext, $1)=$objext
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6936
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6937
+# Code to be used in simple compile tests
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6938
+lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6939
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6940
+# Code to be used in simple link tests
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6941
+lt_simple_link_test_code="$lt_simple_compile_test_code"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6942
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6943
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6944
+_LT_TAG_COMPILER
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6945
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6946
+# save warnings/boilerplate of simple test code
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6947
+_LT_COMPILER_BOILERPLATE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6948
+_LT_LINKER_BOILERPLATE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6949
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6950
+# Allow CC to be a program name with arguments.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6951
+lt_save_CC="$CC"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6952
+lt_save_GCC=$GCC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6953
+GCC=
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6954
+CC=${RC-"windres"}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6955
+compiler=$CC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6956
+_LT_TAGVAR(compiler, $1)=$CC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6957
+_LT_CC_BASENAME([$compiler])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6958
+_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6959
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6960
+if test -n "$compiler"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6961
+  :
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6962
+  _LT_CONFIG($1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6963
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6964
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6965
+GCC=$lt_save_GCC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6966
+AC_LANG_RESTORE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6967
+CC="$lt_save_CC"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6968
+])# _LT_LANG_RC_CONFIG
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6969
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6970
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6971
+# LT_PROG_GCJ
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6972
+# -----------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6973
+AC_DEFUN([LT_PROG_GCJ],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6974
+[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6975
+  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6976
+    [AC_CHECK_TOOL(GCJ, gcj,)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6977
+      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6978
+      AC_SUBST(GCJFLAGS)])])[]dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6979
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6980
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6981
+# Old name:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6982
+AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6983
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6984
+dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6985
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6986
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6987
+# LT_PROG_RC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6988
+# ----------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6989
+AC_DEFUN([LT_PROG_RC],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6990
+[AC_CHECK_TOOL(RC, windres,)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6991
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6992
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6993
+# Old name:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6994
+AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6995
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6996
+dnl AC_DEFUN([LT_AC_PROG_RC], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6997
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6998
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  6999
+# _LT_DECL_EGREP
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7000
+# --------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7001
+# If we don't have a new enough Autoconf to choose the best grep
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7002
+# available, choose the one first in the user's PATH.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7003
+m4_defun([_LT_DECL_EGREP],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7004
+[AC_REQUIRE([AC_PROG_EGREP])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7005
+AC_REQUIRE([AC_PROG_FGREP])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7006
+test -z "$GREP" && GREP=grep
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7007
+_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7008
+_LT_DECL([], [EGREP], [1], [An ERE matcher])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7009
+_LT_DECL([], [FGREP], [1], [A literal string matcher])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7010
+dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7011
+AC_SUBST([GREP])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7012
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7013
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7014
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7015
+# _LT_DECL_OBJDUMP
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7016
+# --------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7017
+# If we don't have a new enough Autoconf to choose the best objdump
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7018
+# available, choose the one first in the user's PATH.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7019
+m4_defun([_LT_DECL_OBJDUMP],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7020
+[AC_CHECK_TOOL(OBJDUMP, objdump, false)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7021
+test -z "$OBJDUMP" && OBJDUMP=objdump
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7022
+_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7023
+AC_SUBST([OBJDUMP])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7024
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7025
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7026
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7027
+# _LT_DECL_SED
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7028
+# ------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7029
+# Check for a fully-functional sed program, that truncates
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7030
+# as few characters as possible.  Prefer GNU sed if found.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7031
+m4_defun([_LT_DECL_SED],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7032
+[AC_PROG_SED
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7033
+test -z "$SED" && SED=sed
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7034
+Xsed="$SED -e 1s/^X//"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7035
+_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7036
+_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7037
+    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7038
+])# _LT_DECL_SED
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7039
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7040
+m4_ifndef([AC_PROG_SED], [
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7041
+############################################################
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7042
+# NOTE: This macro has been submitted for inclusion into   #
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7043
+#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7044
+#  a released version of Autoconf we should remove this    #
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7045
+#  macro and use it instead.                               #
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7046
+############################################################
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7047
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7048
+m4_defun([AC_PROG_SED],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7049
+[AC_MSG_CHECKING([for a sed that does not truncate output])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7050
+AC_CACHE_VAL(lt_cv_path_SED,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7051
+[# Loop through the user's path and test for sed and gsed.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7052
+# Then use that list of sed's as ones to test for truncation.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7053
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7054
+for as_dir in $PATH
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7055
+do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7056
+  IFS=$as_save_IFS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7057
+  test -z "$as_dir" && as_dir=.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7058
+  for lt_ac_prog in sed gsed; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7059
+    for ac_exec_ext in '' $ac_executable_extensions; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7060
+      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7061
+        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7062
+      fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7063
+    done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7064
+  done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7065
+done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7066
+IFS=$as_save_IFS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7067
+lt_ac_max=0
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7068
+lt_ac_count=0
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7069
+# Add /usr/xpg4/bin/sed as it is typically found on Solaris
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7070
+# along with /bin/sed that truncates output.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7071
+for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7072
+  test ! -f $lt_ac_sed && continue
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7073
+  cat /dev/null > conftest.in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7074
+  lt_ac_count=0
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7075
+  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7076
+  # Check for GNU sed and select it if it is found.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7077
+  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7078
+    lt_cv_path_SED=$lt_ac_sed
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7079
+    break
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7080
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7081
+  while true; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7082
+    cat conftest.in conftest.in >conftest.tmp
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7083
+    mv conftest.tmp conftest.in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7084
+    cp conftest.in conftest.nl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7085
+    echo >>conftest.nl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7086
+    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7087
+    cmp -s conftest.out conftest.nl || break
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7088
+    # 10000 chars as input seems more than enough
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7089
+    test $lt_ac_count -gt 10 && break
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7090
+    lt_ac_count=`expr $lt_ac_count + 1`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7091
+    if test $lt_ac_count -gt $lt_ac_max; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7092
+      lt_ac_max=$lt_ac_count
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7093
+      lt_cv_path_SED=$lt_ac_sed
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7094
+    fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7095
+  done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7096
+done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7097
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7098
+SED=$lt_cv_path_SED
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7099
+AC_SUBST([SED])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7100
+AC_MSG_RESULT([$SED])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7101
+])#AC_PROG_SED
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7102
+])#m4_ifndef
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7103
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7104
+# Old name:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7105
+AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7106
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7107
+dnl AC_DEFUN([LT_AC_PROG_SED], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7108
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7109
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7110
+# _LT_CHECK_SHELL_FEATURES
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7111
+# ------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7112
+# Find out whether the shell is Bourne or XSI compatible,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7113
+# or has some other useful features.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7114
+m4_defun([_LT_CHECK_SHELL_FEATURES],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7115
+[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7116
+# Try some XSI features
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7117
+xsi_shell=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7118
+( _lt_dummy="a/b/c"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7119
+  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7120
+      = c,a/b,, \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7121
+    && eval 'test $(( 1 + 1 )) -eq 2 \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7122
+    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7123
+  && xsi_shell=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7124
+AC_MSG_RESULT([$xsi_shell])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7125
+_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7126
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7127
+AC_MSG_CHECKING([whether the shell understands "+="])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7128
+lt_shell_append=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7129
+( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7130
+    >/dev/null 2>&1 \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7131
+  && lt_shell_append=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7132
+AC_MSG_RESULT([$lt_shell_append])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7133
+_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7134
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7135
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7136
+  lt_unset=unset
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7137
+else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7138
+  lt_unset=false
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7139
+fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7140
+_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7141
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7142
+# test EBCDIC or ASCII
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7143
+case `echo X|tr X '\101'` in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7144
+ A) # ASCII based system
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7145
+    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7146
+  lt_SP2NL='tr \040 \012'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7147
+  lt_NL2SP='tr \015\012 \040\040'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7148
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7149
+ *) # EBCDIC based system
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7150
+  lt_SP2NL='tr \100 \n'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7151
+  lt_NL2SP='tr \r\n \100\100'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7152
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7153
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7154
+_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7155
+_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7156
+])# _LT_CHECK_SHELL_FEATURES
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7157
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7158
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7159
+# _LT_PROG_XSI_SHELLFNS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7160
+# ---------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7161
+# Bourne and XSI compatible variants of some useful shell functions.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7162
+m4_defun([_LT_PROG_XSI_SHELLFNS],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7163
+[case $xsi_shell in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7164
+  yes)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7165
+    cat << \_LT_EOF >> "$cfgfile"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7166
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7167
+# func_dirname file append nondir_replacement
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7168
+# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7169
+# otherwise set result to NONDIR_REPLACEMENT.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7170
+func_dirname ()
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7171
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7172
+  case ${1} in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7173
+    */*) func_dirname_result="${1%/*}${2}" ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7174
+    *  ) func_dirname_result="${3}" ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7175
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7176
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7177
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7178
+# func_basename file
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7179
+func_basename ()
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7180
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7181
+  func_basename_result="${1##*/}"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7182
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7183
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7184
+# func_dirname_and_basename file append nondir_replacement
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7185
+# perform func_basename and func_dirname in a single function
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7186
+# call:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7187
+#   dirname:  Compute the dirname of FILE.  If nonempty,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7188
+#             add APPEND to the result, otherwise set result
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7189
+#             to NONDIR_REPLACEMENT.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7190
+#             value returned in "$func_dirname_result"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7191
+#   basename: Compute filename of FILE.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7192
+#             value retuned in "$func_basename_result"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7193
+# Implementation must be kept synchronized with func_dirname
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7194
+# and func_basename. For efficiency, we do not delegate to
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7195
+# those functions but instead duplicate the functionality here.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7196
+func_dirname_and_basename ()
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7197
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7198
+  case ${1} in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7199
+    */*) func_dirname_result="${1%/*}${2}" ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7200
+    *  ) func_dirname_result="${3}" ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7201
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7202
+  func_basename_result="${1##*/}"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7203
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7204
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7205
+# func_stripname prefix suffix name
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7206
+# strip PREFIX and SUFFIX off of NAME.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7207
+# PREFIX and SUFFIX must not contain globbing or regex special
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7208
+# characters, hashes, percent signs, but SUFFIX may contain a leading
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7209
+# dot (in which case that matches only a dot).
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7210
+func_stripname ()
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7211
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7212
+  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7213
+  # positional parameters, so assign one to ordinary parameter first.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7214
+  func_stripname_result=${3}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7215
+  func_stripname_result=${func_stripname_result#"${1}"}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7216
+  func_stripname_result=${func_stripname_result%"${2}"}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7217
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7218
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7219
+# func_opt_split
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7220
+func_opt_split ()
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7221
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7222
+  func_opt_split_opt=${1%%=*}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7223
+  func_opt_split_arg=${1#*=}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7224
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7225
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7226
+# func_lo2o object
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7227
+func_lo2o ()
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7228
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7229
+  case ${1} in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7230
+    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7231
+    *)    func_lo2o_result=${1} ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7232
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7233
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7234
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7235
+# func_xform libobj-or-source
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7236
+func_xform ()
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7237
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7238
+  func_xform_result=${1%.*}.lo
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7239
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7240
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7241
+# func_arith arithmetic-term...
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7242
+func_arith ()
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7243
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7244
+  func_arith_result=$(( $[*] ))
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7245
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7246
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7247
+# func_len string
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7248
+# STRING may not start with a hyphen.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7249
+func_len ()
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7250
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7251
+  func_len_result=${#1}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7252
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7253
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7254
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7255
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7256
+  *) # Bourne compatible functions.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7257
+    cat << \_LT_EOF >> "$cfgfile"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7258
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7259
+# func_dirname file append nondir_replacement
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7260
+# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7261
+# otherwise set result to NONDIR_REPLACEMENT.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7262
+func_dirname ()
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7263
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7264
+  # Extract subdirectory from the argument.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7265
+  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7266
+  if test "X$func_dirname_result" = "X${1}"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7267
+    func_dirname_result="${3}"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7268
+  else
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7269
+    func_dirname_result="$func_dirname_result${2}"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7270
+  fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7271
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7272
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7273
+# func_basename file
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7274
+func_basename ()
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7275
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7276
+  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7277
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7278
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7279
+dnl func_dirname_and_basename
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7280
+dnl A portable version of this function is already defined in general.m4sh
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7281
+dnl so there is no need for it here.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7282
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7283
+# func_stripname prefix suffix name
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7284
+# strip PREFIX and SUFFIX off of NAME.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7285
+# PREFIX and SUFFIX must not contain globbing or regex special
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7286
+# characters, hashes, percent signs, but SUFFIX may contain a leading
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7287
+# dot (in which case that matches only a dot).
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7288
+# func_strip_suffix prefix name
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7289
+func_stripname ()
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7290
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7291
+  case ${2} in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7292
+    .*) func_stripname_result=`$ECHO "X${3}" \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7293
+           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7294
+    *)  func_stripname_result=`$ECHO "X${3}" \
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7295
+           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7296
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7297
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7298
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7299
+# sed scripts:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7300
+my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7301
+my_sed_long_arg='1s/^-[[^=]]*=//'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7302
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7303
+# func_opt_split
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7304
+func_opt_split ()
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7305
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7306
+  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7307
+  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7308
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7309
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7310
+# func_lo2o object
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7311
+func_lo2o ()
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7312
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7313
+  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7314
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7315
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7316
+# func_xform libobj-or-source
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7317
+func_xform ()
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7318
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7319
+  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7320
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7321
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7322
+# func_arith arithmetic-term...
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7323
+func_arith ()
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7324
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7325
+  func_arith_result=`expr "$[@]"`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7326
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7327
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7328
+# func_len string
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7329
+# STRING may not start with a hyphen.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7330
+func_len ()
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7331
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7332
+  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7333
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7334
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7335
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7336
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7337
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7338
+case $lt_shell_append in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7339
+  yes)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7340
+    cat << \_LT_EOF >> "$cfgfile"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7341
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7342
+# func_append var value
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7343
+# Append VALUE to the end of shell variable VAR.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7344
+func_append ()
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7345
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7346
+  eval "$[1]+=\$[2]"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7347
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7348
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7349
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7350
+  *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7351
+    cat << \_LT_EOF >> "$cfgfile"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7352
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7353
+# func_append var value
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7354
+# Append VALUE to the end of shell variable VAR.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7355
+func_append ()
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7356
+{
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7357
+  eval "$[1]=\$$[1]\$[2]"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7358
+}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7359
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7360
+_LT_EOF
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7361
+    ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7362
+  esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7363
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7364
--- /dev/null	2010-06-01 16:18:24.000000000 -0500
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7365
+++ clutter-1.2.6/build/autotools/lt~obsolete.m4	2010-04-19 11:34:07.000000000 -0500
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7366
@@ -0,0 +1,92 @@
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7367
+# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7368
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7369
+#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7370
+#   Written by Scott James Remnant, 2004.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7371
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7372
+# This file is free software; the Free Software Foundation gives
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7373
+# unlimited permission to copy and/or distribute it, with or without
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7374
+# modifications, as long as this notice is preserved.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7375
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7376
+# serial 4 lt~obsolete.m4
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7377
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7378
+# These exist entirely to fool aclocal when bootstrapping libtool.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7379
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7380
+# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7381
+# which have later been changed to m4_define as they aren't part of the
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7382
+# exported API, or moved to Autoconf or Automake where they belong.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7383
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7384
+# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7385
+# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7386
+# using a macro with the same name in our local m4/libtool.m4 it'll
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7387
+# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7388
+# and doesn't know about Autoconf macros at all.)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7389
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7390
+# So we provide this file, which has a silly filename so it's always
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7391
+# included after everything else.  This provides aclocal with the
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7392
+# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7393
+# because those macros already exist, or will be overwritten later.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7394
+# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7395
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7396
+# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7397
+# Yes, that means every name once taken will need to remain here until
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7398
+# we give up compatibility with versions before 1.7, at which point
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7399
+# we need to keep only those names which we still refer to.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7400
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7401
+# This is to help aclocal find these macros, as it can't see m4_define.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7402
+AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7403
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7404
+m4_ifndef([AC_LIBTOOL_LINKER_OPTION],	[AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7405
+m4_ifndef([AC_PROG_EGREP],		[AC_DEFUN([AC_PROG_EGREP])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7406
+m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7407
+m4_ifndef([_LT_AC_SHELL_INIT],		[AC_DEFUN([_LT_AC_SHELL_INIT])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7408
+m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],	[AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7409
+m4_ifndef([_LT_PROG_LTMAIN],		[AC_DEFUN([_LT_PROG_LTMAIN])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7410
+m4_ifndef([_LT_AC_TAGVAR],		[AC_DEFUN([_LT_AC_TAGVAR])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7411
+m4_ifndef([AC_LTDL_ENABLE_INSTALL],	[AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7412
+m4_ifndef([AC_LTDL_PREOPEN],		[AC_DEFUN([AC_LTDL_PREOPEN])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7413
+m4_ifndef([_LT_AC_SYS_COMPILER],	[AC_DEFUN([_LT_AC_SYS_COMPILER])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7414
+m4_ifndef([_LT_AC_LOCK],		[AC_DEFUN([_LT_AC_LOCK])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7415
+m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE],	[AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7416
+m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],	[AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7417
+m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],	[AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7418
+m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7419
+m4_ifndef([AC_LIBTOOL_OBJDIR],		[AC_DEFUN([AC_LIBTOOL_OBJDIR])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7420
+m4_ifndef([AC_LTDL_OBJDIR],		[AC_DEFUN([AC_LTDL_OBJDIR])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7421
+m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7422
+m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],	[AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7423
+m4_ifndef([AC_PATH_MAGIC],		[AC_DEFUN([AC_PATH_MAGIC])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7424
+m4_ifndef([AC_PROG_LD_GNU],		[AC_DEFUN([AC_PROG_LD_GNU])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7425
+m4_ifndef([AC_PROG_LD_RELOAD_FLAG],	[AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7426
+m4_ifndef([AC_DEPLIBS_CHECK_METHOD],	[AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7427
+m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7428
+m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7429
+m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7430
+m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],	[AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7431
+m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],	[AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7432
+m4_ifndef([LT_AC_PROG_EGREP],		[AC_DEFUN([LT_AC_PROG_EGREP])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7433
+m4_ifndef([LT_AC_PROG_SED],		[AC_DEFUN([LT_AC_PROG_SED])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7434
+m4_ifndef([_LT_CC_BASENAME],		[AC_DEFUN([_LT_CC_BASENAME])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7435
+m4_ifndef([_LT_COMPILER_BOILERPLATE],	[AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7436
+m4_ifndef([_LT_LINKER_BOILERPLATE],	[AC_DEFUN([_LT_LINKER_BOILERPLATE])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7437
+m4_ifndef([_AC_PROG_LIBTOOL],		[AC_DEFUN([_AC_PROG_LIBTOOL])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7438
+m4_ifndef([AC_LIBTOOL_SETUP],		[AC_DEFUN([AC_LIBTOOL_SETUP])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7439
+m4_ifndef([_LT_AC_CHECK_DLFCN],		[AC_DEFUN([_LT_AC_CHECK_DLFCN])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7440
+m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],	[AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7441
+m4_ifndef([_LT_AC_TAGCONFIG],		[AC_DEFUN([_LT_AC_TAGCONFIG])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7442
+m4_ifndef([AC_DISABLE_FAST_INSTALL],	[AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7443
+m4_ifndef([_LT_AC_LANG_CXX],		[AC_DEFUN([_LT_AC_LANG_CXX])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7444
+m4_ifndef([_LT_AC_LANG_F77],		[AC_DEFUN([_LT_AC_LANG_F77])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7445
+m4_ifndef([_LT_AC_LANG_GCJ],		[AC_DEFUN([_LT_AC_LANG_GCJ])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7446
+m4_ifndef([AC_LIBTOOL_RC],		[AC_DEFUN([AC_LIBTOOL_RC])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7447
+m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7448
+m4_ifndef([_LT_AC_LANG_C_CONFIG],	[AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7449
+m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7450
+m4_ifndef([_LT_AC_LANG_CXX_CONFIG],	[AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7451
+m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7452
+m4_ifndef([_LT_AC_LANG_F77_CONFIG],	[AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7453
+m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7454
+m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],	[AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7455
+m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7456
+m4_ifndef([_LT_AC_LANG_RC_CONFIG],	[AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7457
+m4_ifndef([AC_LIBTOOL_CONFIG],		[AC_DEFUN([AC_LIBTOOL_CONFIG])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7458
+m4_ifndef([_LT_AC_FILE_LTDLL_C],	[AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7459
--- /dev/null	2010-06-01 16:18:24.000000000 -0500
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7460
+++ clutter-1.2.6/build/autotools/ltoptions.m4	2010-04-19 11:34:07.000000000 -0500
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7461
@@ -0,0 +1,368 @@
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7462
+# Helper functions for option handling.                    -*- Autoconf -*-
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7463
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7464
+#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7465
+#   Written by Gary V. Vaughan, 2004
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7466
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7467
+# This file is free software; the Free Software Foundation gives
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7468
+# unlimited permission to copy and/or distribute it, with or without
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7469
+# modifications, as long as this notice is preserved.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7470
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7471
+# serial 6 ltoptions.m4
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7472
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7473
+# This is to help aclocal find these macros, as it can't see m4_define.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7474
+AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7475
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7476
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7477
+# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7478
+# ------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7479
+m4_define([_LT_MANGLE_OPTION],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7480
+[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7481
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7482
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7483
+# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7484
+# ---------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7485
+# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7486
+# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7487
+# saved as a flag.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7488
+m4_define([_LT_SET_OPTION],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7489
+[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7490
+m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7491
+        _LT_MANGLE_DEFUN([$1], [$2]),
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7492
+    [m4_warning([Unknown $1 option `$2'])])[]dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7493
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7494
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7495
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7496
+# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7497
+# ------------------------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7498
+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7499
+m4_define([_LT_IF_OPTION],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7500
+[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7501
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7502
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7503
+# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7504
+# -------------------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7505
+# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7506
+# are set.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7507
+m4_define([_LT_UNLESS_OPTIONS],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7508
+[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7509
+	    [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7510
+		      [m4_define([$0_found])])])[]dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7511
+m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7512
+])[]dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7513
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7514
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7515
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7516
+# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7517
+# ----------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7518
+# OPTION-LIST is a space-separated list of Libtool options associated
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7519
+# with MACRO-NAME.  If any OPTION has a matching handler declared with
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7520
+# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7521
+# the unknown option and exit.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7522
+m4_defun([_LT_SET_OPTIONS],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7523
+[# Set options
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7524
+m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7525
+    [_LT_SET_OPTION([$1], _LT_Option)])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7526
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7527
+m4_if([$1],[LT_INIT],[
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7528
+  dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7529
+  dnl Simply set some default values (i.e off) if boolean options were not
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7530
+  dnl specified:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7531
+  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7532
+  ])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7533
+  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7534
+  ])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7535
+  dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7536
+  dnl If no reference was made to various pairs of opposing options, then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7537
+  dnl we run the default mode handler for the pair.  For example, if neither
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7538
+  dnl `shared' nor `disable-shared' was passed, we enable building of shared
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7539
+  dnl archives by default:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7540
+  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7541
+  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7542
+  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7543
+  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7544
+  		   [_LT_ENABLE_FAST_INSTALL])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7545
+  ])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7546
+])# _LT_SET_OPTIONS
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7547
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7548
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7549
+## --------------------------------- ##
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7550
+## Macros to handle LT_INIT options. ##
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7551
+## --------------------------------- ##
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7552
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7553
+# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7554
+# -----------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7555
+m4_define([_LT_MANGLE_DEFUN],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7556
+[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7557
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7558
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7559
+# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7560
+# -----------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7561
+m4_define([LT_OPTION_DEFINE],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7562
+[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7563
+])# LT_OPTION_DEFINE
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7564
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7565
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7566
+# dlopen
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7567
+# ------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7568
+LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7569
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7570
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7571
+AU_DEFUN([AC_LIBTOOL_DLOPEN],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7572
+[_LT_SET_OPTION([LT_INIT], [dlopen])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7573
+AC_DIAGNOSE([obsolete],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7574
+[$0: Remove this warning and the call to _LT_SET_OPTION when you
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7575
+put the `dlopen' option into LT_INIT's first parameter.])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7576
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7577
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7578
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7579
+dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7580
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7581
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7582
+# win32-dll
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7583
+# ---------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7584
+# Declare package support for building win32 dll's.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7585
+LT_OPTION_DEFINE([LT_INIT], [win32-dll],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7586
+[enable_win32_dll=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7587
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7588
+case $host in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7589
+*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7590
+  AC_CHECK_TOOL(AS, as, false)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7591
+  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7592
+  AC_CHECK_TOOL(OBJDUMP, objdump, false)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7593
+  ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7594
+esac
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7595
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7596
+test -z "$AS" && AS=as
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7597
+_LT_DECL([], [AS],      [0], [Assembler program])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7598
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7599
+test -z "$DLLTOOL" && DLLTOOL=dlltool
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7600
+_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7601
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7602
+test -z "$OBJDUMP" && OBJDUMP=objdump
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7603
+_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7604
+])# win32-dll
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7605
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7606
+AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7607
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7608
+_LT_SET_OPTION([LT_INIT], [win32-dll])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7609
+AC_DIAGNOSE([obsolete],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7610
+[$0: Remove this warning and the call to _LT_SET_OPTION when you
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7611
+put the `win32-dll' option into LT_INIT's first parameter.])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7612
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7613
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7614
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7615
+dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7616
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7617
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7618
+# _LT_ENABLE_SHARED([DEFAULT])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7619
+# ----------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7620
+# implement the --enable-shared flag, and supports the `shared' and
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7621
+# `disable-shared' LT_INIT options.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7622
+# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7623
+m4_define([_LT_ENABLE_SHARED],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7624
+[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7625
+AC_ARG_ENABLE([shared],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7626
+    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7627
+	[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7628
+    [p=${PACKAGE-default}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7629
+    case $enableval in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7630
+    yes) enable_shared=yes ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7631
+    no) enable_shared=no ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7632
+    *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7633
+      enable_shared=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7634
+      # Look at the argument we got.  We use all the common list separators.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7635
+      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7636
+      for pkg in $enableval; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7637
+	IFS="$lt_save_ifs"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7638
+	if test "X$pkg" = "X$p"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7639
+	  enable_shared=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7640
+	fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7641
+      done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7642
+      IFS="$lt_save_ifs"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7643
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7644
+    esac],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7645
+    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7646
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7647
+    _LT_DECL([build_libtool_libs], [enable_shared], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7648
+	[Whether or not to build shared libraries])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7649
+])# _LT_ENABLE_SHARED
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7650
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7651
+LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7652
+LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7653
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7654
+# Old names:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7655
+AC_DEFUN([AC_ENABLE_SHARED],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7656
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7657
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7658
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7659
+AC_DEFUN([AC_DISABLE_SHARED],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7660
+[_LT_SET_OPTION([LT_INIT], [disable-shared])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7661
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7662
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7663
+AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7664
+AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7665
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7666
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7667
+dnl AC_DEFUN([AM_ENABLE_SHARED], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7668
+dnl AC_DEFUN([AM_DISABLE_SHARED], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7669
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7670
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7671
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7672
+# _LT_ENABLE_STATIC([DEFAULT])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7673
+# ----------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7674
+# implement the --enable-static flag, and support the `static' and
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7675
+# `disable-static' LT_INIT options.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7676
+# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7677
+m4_define([_LT_ENABLE_STATIC],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7678
+[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7679
+AC_ARG_ENABLE([static],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7680
+    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7681
+	[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7682
+    [p=${PACKAGE-default}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7683
+    case $enableval in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7684
+    yes) enable_static=yes ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7685
+    no) enable_static=no ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7686
+    *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7687
+     enable_static=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7688
+      # Look at the argument we got.  We use all the common list separators.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7689
+      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7690
+      for pkg in $enableval; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7691
+	IFS="$lt_save_ifs"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7692
+	if test "X$pkg" = "X$p"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7693
+	  enable_static=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7694
+	fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7695
+      done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7696
+      IFS="$lt_save_ifs"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7697
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7698
+    esac],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7699
+    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7700
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7701
+    _LT_DECL([build_old_libs], [enable_static], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7702
+	[Whether or not to build static libraries])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7703
+])# _LT_ENABLE_STATIC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7704
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7705
+LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7706
+LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7707
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7708
+# Old names:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7709
+AC_DEFUN([AC_ENABLE_STATIC],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7710
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7711
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7712
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7713
+AC_DEFUN([AC_DISABLE_STATIC],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7714
+[_LT_SET_OPTION([LT_INIT], [disable-static])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7715
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7716
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7717
+AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7718
+AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7719
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7720
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7721
+dnl AC_DEFUN([AM_ENABLE_STATIC], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7722
+dnl AC_DEFUN([AM_DISABLE_STATIC], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7723
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7724
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7725
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7726
+# _LT_ENABLE_FAST_INSTALL([DEFAULT])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7727
+# ----------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7728
+# implement the --enable-fast-install flag, and support the `fast-install'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7729
+# and `disable-fast-install' LT_INIT options.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7730
+# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7731
+m4_define([_LT_ENABLE_FAST_INSTALL],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7732
+[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7733
+AC_ARG_ENABLE([fast-install],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7734
+    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7735
+    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7736
+    [p=${PACKAGE-default}
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7737
+    case $enableval in
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7738
+    yes) enable_fast_install=yes ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7739
+    no) enable_fast_install=no ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7740
+    *)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7741
+      enable_fast_install=no
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7742
+      # Look at the argument we got.  We use all the common list separators.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7743
+      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7744
+      for pkg in $enableval; do
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7745
+	IFS="$lt_save_ifs"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7746
+	if test "X$pkg" = "X$p"; then
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7747
+	  enable_fast_install=yes
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7748
+	fi
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7749
+      done
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7750
+      IFS="$lt_save_ifs"
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7751
+      ;;
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7752
+    esac],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7753
+    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7754
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7755
+_LT_DECL([fast_install], [enable_fast_install], [0],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7756
+	 [Whether or not to optimize for fast installation])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7757
+])# _LT_ENABLE_FAST_INSTALL
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7758
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7759
+LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7760
+LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7761
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7762
+# Old names:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7763
+AU_DEFUN([AC_ENABLE_FAST_INSTALL],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7764
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7765
+AC_DIAGNOSE([obsolete],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7766
+[$0: Remove this warning and the call to _LT_SET_OPTION when you put
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7767
+the `fast-install' option into LT_INIT's first parameter.])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7768
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7769
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7770
+AU_DEFUN([AC_DISABLE_FAST_INSTALL],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7771
+[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7772
+AC_DIAGNOSE([obsolete],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7773
+[$0: Remove this warning and the call to _LT_SET_OPTION when you put
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7774
+the `disable-fast-install' option into LT_INIT's first parameter.])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7775
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7776
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7777
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7778
+dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7779
+dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7780
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7781
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7782
+# _LT_WITH_PIC([MODE])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7783
+# --------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7784
+# implement the --with-pic flag, and support the `pic-only' and `no-pic'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7785
+# LT_INIT options.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7786
+# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7787
+m4_define([_LT_WITH_PIC],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7788
+[AC_ARG_WITH([pic],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7789
+    [AS_HELP_STRING([--with-pic],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7790
+	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7791
+    [pic_mode="$withval"],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7792
+    [pic_mode=default])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7793
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7794
+test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7795
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7796
+_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7797
+])# _LT_WITH_PIC
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7798
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7799
+LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7800
+LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7801
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7802
+# Old name:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7803
+AU_DEFUN([AC_LIBTOOL_PICMODE],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7804
+[_LT_SET_OPTION([LT_INIT], [pic-only])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7805
+AC_DIAGNOSE([obsolete],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7806
+[$0: Remove this warning and the call to _LT_SET_OPTION when you
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7807
+put the `pic-only' option into LT_INIT's first parameter.])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7808
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7809
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7810
+dnl aclocal-1.4 backwards compatibility:
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7811
+dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7812
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7813
+## ----------------- ##
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7814
+## LTDL_INIT Options ##
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7815
+## ----------------- ##
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7816
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7817
+m4_define([_LTDL_MODE], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7818
+LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7819
+		 [m4_define([_LTDL_MODE], [nonrecursive])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7820
+LT_OPTION_DEFINE([LTDL_INIT], [recursive],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7821
+		 [m4_define([_LTDL_MODE], [recursive])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7822
+LT_OPTION_DEFINE([LTDL_INIT], [subproject],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7823
+		 [m4_define([_LTDL_MODE], [subproject])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7824
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7825
+m4_define([_LTDL_TYPE], [])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7826
+LT_OPTION_DEFINE([LTDL_INIT], [installable],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7827
+		 [m4_define([_LTDL_TYPE], [installable])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7828
+LT_OPTION_DEFINE([LTDL_INIT], [convenience],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7829
+		 [m4_define([_LTDL_TYPE], [convenience])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7830
--- /dev/null	2010-06-01 16:18:24.000000000 -0500
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7831
+++ clutter-1.2.6/build/autotools/ltversion.m4	2010-04-19 11:34:07.000000000 -0500
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7832
@@ -0,0 +1,23 @@
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7833
+# ltversion.m4 -- version numbers			-*- Autoconf -*-
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7834
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7835
+#   Copyright (C) 2004 Free Software Foundation, Inc.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7836
+#   Written by Scott James Remnant, 2004
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7837
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7838
+# This file is free software; the Free Software Foundation gives
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7839
+# unlimited permission to copy and/or distribute it, with or without
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7840
+# modifications, as long as this notice is preserved.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7841
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7842
+# Generated from ltversion.in.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7843
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7844
+# serial 3017 ltversion.m4
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7845
+# This file is part of GNU Libtool
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7846
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7847
+m4_define([LT_PACKAGE_VERSION], [2.2.6b])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7848
+m4_define([LT_PACKAGE_REVISION], [1.3017])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7849
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7850
+AC_DEFUN([LTVERSION_VERSION],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7851
+[macro_version='2.2.6b'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7852
+macro_revision='1.3017'
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7853
+_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7854
+_LT_DECL(, macro_revision, 0)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7855
+])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7856
--- /dev/null	2010-06-01 16:18:24.000000000 -0500
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7857
+++ clutter-1.2.6/build/autotools/ltsugar.m4	2010-04-19 11:34:07.000000000 -0500
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7858
@@ -0,0 +1,123 @@
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7859
+# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7860
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7861
+# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7862
+# Written by Gary V. Vaughan, 2004
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7863
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7864
+# This file is free software; the Free Software Foundation gives
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7865
+# unlimited permission to copy and/or distribute it, with or without
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7866
+# modifications, as long as this notice is preserved.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7867
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7868
+# serial 6 ltsugar.m4
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7869
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7870
+# This is to help aclocal find these macros, as it can't see m4_define.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7871
+AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7872
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7873
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7874
+# lt_join(SEP, ARG1, [ARG2...])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7875
+# -----------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7876
+# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7877
+# associated separator.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7878
+# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7879
+# versions in m4sugar had bugs.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7880
+m4_define([lt_join],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7881
+[m4_if([$#], [1], [],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7882
+       [$#], [2], [[$2]],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7883
+       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7884
+m4_define([_lt_join],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7885
+[m4_if([$#$2], [2], [],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7886
+       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7887
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7888
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7889
+# lt_car(LIST)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7890
+# lt_cdr(LIST)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7891
+# ------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7892
+# Manipulate m4 lists.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7893
+# These macros are necessary as long as will still need to support
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7894
+# Autoconf-2.59 which quotes differently.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7895
+m4_define([lt_car], [[$1]])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7896
+m4_define([lt_cdr],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7897
+[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7898
+       [$#], 1, [],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7899
+       [m4_dquote(m4_shift($@))])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7900
+m4_define([lt_unquote], $1)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7901
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7902
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7903
+# lt_append(MACRO-NAME, STRING, [SEPARATOR])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7904
+# ------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7905
+# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7906
+# Note that neither SEPARATOR nor STRING are expanded; they are appended
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7907
+# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7908
+# No SEPARATOR is output if MACRO-NAME was previously undefined (different
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7909
+# than defined and empty).
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7910
+#
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7911
+# This macro is needed until we can rely on Autoconf 2.62, since earlier
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7912
+# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7913
+m4_define([lt_append],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7914
+[m4_define([$1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7915
+	   m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7916
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7917
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7918
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7919
+# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7920
+# ----------------------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7921
+# Produce a SEP delimited list of all paired combinations of elements of
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7922
+# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7923
+# has the form PREFIXmINFIXSUFFIXn.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7924
+# Needed until we can rely on m4_combine added in Autoconf 2.62.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7925
+m4_define([lt_combine],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7926
+[m4_if(m4_eval([$# > 3]), [1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7927
+       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7928
+[[m4_foreach([_Lt_prefix], [$2],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7929
+	     [m4_foreach([_Lt_suffix],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7930
+		]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7931
+	[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7932
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7933
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7934
+# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7935
+# -----------------------------------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7936
+# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7937
+# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7938
+m4_define([lt_if_append_uniq],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7939
+[m4_ifdef([$1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7940
+	  [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7941
+		 [lt_append([$1], [$2], [$3])$4],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7942
+		 [$5])],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7943
+	  [lt_append([$1], [$2], [$3])$4])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7944
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7945
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7946
+# lt_dict_add(DICT, KEY, VALUE)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7947
+# -----------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7948
+m4_define([lt_dict_add],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7949
+[m4_define([$1($2)], [$3])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7950
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7951
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7952
+# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7953
+# --------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7954
+m4_define([lt_dict_add_subkey],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7955
+[m4_define([$1($2:$3)], [$4])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7956
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7957
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7958
+# lt_dict_fetch(DICT, KEY, [SUBKEY])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7959
+# ----------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7960
+m4_define([lt_dict_fetch],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7961
+[m4_ifval([$3],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7962
+	m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7963
+    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7964
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7965
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7966
+# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7967
+# -----------------------------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7968
+m4_define([lt_if_dict_fetch],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7969
+[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7970
+	[$5],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7971
+    [$6])])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7972
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7973
+
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7974
+# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7975
+# --------------------------------------------------------------
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7976
+m4_define([lt_dict_filter],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7977
+[m4_if([$5], [], [],
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7978
+  [lt_join(m4_quote(m4_default([$4], [[, ]])),
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7979
+           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7980
+		      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
38798f418bf9 2010-06-01 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
  7981
+])