author | Markus Kauppila <markus.kauppila@gmail.com> |
Wed, 25 May 2011 18:53:48 +0300 | |
changeset 5664 | 753b4e38a964 |
child 6454 | f67fcade4e1c |
permissions | -rw-r--r-- |
5664
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1 |
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
2 |
# |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
3 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
4 |
# 2006, 2007, 2008 Free Software Foundation, Inc. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
5 |
# Written by Gordon Matzigkeit, 1996 |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
6 |
# |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
7 |
# This file is free software; the Free Software Foundation gives |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
8 |
# unlimited permission to copy and/or distribute it, with or without |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
9 |
# modifications, as long as this notice is preserved. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
10 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
11 |
m4_define([_LT_COPYING], [dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
12 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
13 |
# 2006, 2007, 2008 Free Software Foundation, Inc. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
14 |
# Written by Gordon Matzigkeit, 1996 |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
15 |
# |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
16 |
# This file is part of GNU Libtool. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
17 |
# |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
18 |
# GNU Libtool is free software; you can redistribute it and/or |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
19 |
# modify it under the terms of the GNU General Public License as |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
20 |
# published by the Free Software Foundation; either version 2 of |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
21 |
# the License, or (at your option) any later version. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
22 |
# |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
23 |
# As a special exception to the GNU General Public License, |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
24 |
# if you distribute this file as part of a program or library that |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
25 |
# is built using GNU Libtool, you may include this file under the |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
26 |
# same distribution terms that you use for the rest of that program. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
27 |
# |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
28 |
# GNU Libtool is distributed in the hope that it will be useful, |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
29 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
30 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
31 |
# GNU General Public License for more details. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
32 |
# |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
33 |
# You should have received a copy of the GNU General Public License |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
34 |
# along with GNU Libtool; see the file COPYING. If not, a copy |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
35 |
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
36 |
# obtained by writing to the Free Software Foundation, Inc., |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
37 |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
38 |
]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
39 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
40 |
# serial 56 LT_INIT |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
41 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
42 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
43 |
# LT_PREREQ(VERSION) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
44 |
# ------------------ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
45 |
# Complain and exit if this libtool version is less that VERSION. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
46 |
m4_defun([LT_PREREQ], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
47 |
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
48 |
[m4_default([$3], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
49 |
[m4_fatal([Libtool version $1 or higher is required], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
50 |
63)])], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
51 |
[$2])]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
52 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
53 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
54 |
# _LT_CHECK_BUILDDIR |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
55 |
# ------------------ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
56 |
# Complain if the absolute build directory name contains unusual characters |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
57 |
m4_defun([_LT_CHECK_BUILDDIR], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
58 |
[case `pwd` in |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
59 |
*\ * | *\ *) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
60 |
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
61 |
esac |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
62 |
]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
63 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
64 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
65 |
# LT_INIT([OPTIONS]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
66 |
# ------------------ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
67 |
AC_DEFUN([LT_INIT], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
68 |
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
69 |
AC_BEFORE([$0], [LT_LANG])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
70 |
AC_BEFORE([$0], [LT_OUTPUT])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
71 |
AC_BEFORE([$0], [LTDL_INIT])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
72 |
m4_require([_LT_CHECK_BUILDDIR])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
73 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
74 |
dnl Autoconf doesn't catch unexpanded LT_ macros by default: |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
75 |
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
76 |
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
77 |
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
78 |
dnl unless we require an AC_DEFUNed macro: |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
79 |
AC_REQUIRE([LTOPTIONS_VERSION])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
80 |
AC_REQUIRE([LTSUGAR_VERSION])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
81 |
AC_REQUIRE([LTVERSION_VERSION])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
82 |
AC_REQUIRE([LTOBSOLETE_VERSION])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
83 |
m4_require([_LT_PROG_LTMAIN])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
84 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
85 |
dnl Parse OPTIONS |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
86 |
_LT_SET_OPTIONS([$0], [$1]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
87 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
88 |
# This can be used to rebuild libtool when needed |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
89 |
LIBTOOL_DEPS="$ltmain" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
90 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
91 |
# Always use our own libtool. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
92 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
93 |
AC_SUBST(LIBTOOL)dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
94 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
95 |
_LT_SETUP |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
96 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
97 |
# Only expand once: |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
98 |
m4_define([LT_INIT]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
99 |
])# LT_INIT |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
100 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
101 |
# Old names: |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
102 |
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
103 |
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
104 |
dnl aclocal-1.4 backwards compatibility: |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
105 |
dnl AC_DEFUN([AC_PROG_LIBTOOL], []) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
106 |
dnl AC_DEFUN([AM_PROG_LIBTOOL], []) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
107 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
108 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
109 |
# _LT_CC_BASENAME(CC) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
110 |
# ------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
111 |
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
112 |
m4_defun([_LT_CC_BASENAME], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
113 |
[for cc_temp in $1""; do |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
114 |
case $cc_temp in |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
115 |
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
116 |
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
117 |
\-*) ;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
118 |
*) break;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
119 |
esac |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
120 |
done |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
121 |
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
122 |
]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
123 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
124 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
125 |
# _LT_FILEUTILS_DEFAULTS |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
126 |
# ---------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
127 |
# It is okay to use these file commands and assume they have been set |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
128 |
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
129 |
m4_defun([_LT_FILEUTILS_DEFAULTS], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
130 |
[: ${CP="cp -f"} |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
131 |
: ${MV="mv -f"} |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
132 |
: ${RM="rm -f"} |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
133 |
])# _LT_FILEUTILS_DEFAULTS |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
134 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
135 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
136 |
# _LT_SETUP |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
137 |
# --------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
138 |
m4_defun([_LT_SETUP], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
139 |
[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
140 |
AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
141 |
_LT_DECL([], [host_alias], [0], [The host system])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
142 |
_LT_DECL([], [host], [0])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
143 |
_LT_DECL([], [host_os], [0])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
144 |
dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
145 |
_LT_DECL([], [build_alias], [0], [The build system])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
146 |
_LT_DECL([], [build], [0])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
147 |
_LT_DECL([], [build_os], [0])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
148 |
dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
149 |
AC_REQUIRE([AC_PROG_CC])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
150 |
AC_REQUIRE([LT_PATH_LD])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
151 |
AC_REQUIRE([LT_PATH_NM])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
152 |
dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
153 |
AC_REQUIRE([AC_PROG_LN_S])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
154 |
test -z "$LN_S" && LN_S="ln -s" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
155 |
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
156 |
dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
157 |
AC_REQUIRE([LT_CMD_MAX_LEN])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
158 |
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
159 |
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
160 |
dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
161 |
m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
162 |
m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
163 |
m4_require([_LT_CMD_RELOAD])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
164 |
m4_require([_LT_CHECK_MAGIC_METHOD])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
165 |
m4_require([_LT_CMD_OLD_ARCHIVE])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
166 |
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
167 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
168 |
_LT_CONFIG_LIBTOOL_INIT([ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
169 |
# See if we are running on zsh, and set the options which allow our |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
170 |
# commands through without removal of \ escapes INIT. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
171 |
if test -n "\${ZSH_VERSION+set}" ; then |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
172 |
setopt NO_GLOB_SUBST |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
173 |
fi |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
174 |
]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
175 |
if test -n "${ZSH_VERSION+set}" ; then |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
176 |
setopt NO_GLOB_SUBST |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
177 |
fi |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
178 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
179 |
_LT_CHECK_OBJDIR |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
180 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
181 |
m4_require([_LT_TAG_COMPILER])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
182 |
_LT_PROG_ECHO_BACKSLASH |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
183 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
184 |
case $host_os in |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
185 |
aix3*) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
186 |
# AIX sometimes has problems with the GCC collect2 program. For some |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
187 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
188 |
# vanish in a puff of smoke. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
189 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
190 |
COLLECT_NAMES= |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
191 |
export COLLECT_NAMES |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
192 |
fi |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
193 |
;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
194 |
esac |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
195 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
196 |
# Sed substitution that helps us do robust quoting. It backslashifies |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
197 |
# metacharacters that are still active within double-quoted strings. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
198 |
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
199 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
200 |
# Same as above, but do not quote variable references. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
201 |
double_quote_subst='s/\([["`\\]]\)/\\\1/g' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
202 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
203 |
# Sed substitution to delay expansion of an escaped shell variable in a |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
204 |
# double_quote_subst'ed string. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
205 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
206 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
207 |
# Sed substitution to delay expansion of an escaped single quote. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
208 |
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
209 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
210 |
# Sed substitution to avoid accidental globbing in evaled expressions |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
211 |
no_glob_subst='s/\*/\\\*/g' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
212 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
213 |
# Global variables: |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
214 |
ofile=libtool |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
215 |
can_build_shared=yes |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
216 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
217 |
# All known linkers require a `.a' archive for static linking (except MSVC, |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
218 |
# which needs '.lib'). |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
219 |
libext=a |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
220 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
221 |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
222 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
223 |
old_CC="$CC" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
224 |
old_CFLAGS="$CFLAGS" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
225 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
226 |
# Set sane defaults for various variables |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
227 |
test -z "$CC" && CC=cc |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
228 |
test -z "$LTCC" && LTCC=$CC |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
229 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
230 |
test -z "$LD" && LD=ld |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
231 |
test -z "$ac_objext" && ac_objext=o |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
232 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
233 |
_LT_CC_BASENAME([$compiler]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
234 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
235 |
# Only perform the check for file, if the check method requires it |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
236 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
237 |
case $deplibs_check_method in |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
238 |
file_magic*) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
239 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
240 |
_LT_PATH_MAGIC |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
241 |
fi |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
242 |
;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
243 |
esac |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
244 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
245 |
# Use C for the default configuration in the libtool script |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
246 |
LT_SUPPORTED_TAG([CC]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
247 |
_LT_LANG_C_CONFIG |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
248 |
_LT_LANG_DEFAULT_CONFIG |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
249 |
_LT_CONFIG_COMMANDS |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
250 |
])# _LT_SETUP |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
251 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
252 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
253 |
# _LT_PROG_LTMAIN |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
254 |
# --------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
255 |
# Note that this code is called both from `configure', and `config.status' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
256 |
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
257 |
# `config.status' has no value for ac_aux_dir unless we are using Automake, |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
258 |
# so we pass a copy along to make sure it has a sensible value anyway. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
259 |
m4_defun([_LT_PROG_LTMAIN], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
260 |
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
261 |
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
262 |
ltmain="$ac_aux_dir/ltmain.sh" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
263 |
])# _LT_PROG_LTMAIN |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
264 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
265 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
266 |
## ------------------------------------- ## |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
267 |
## Accumulate code for creating libtool. ## |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
268 |
## ------------------------------------- ## |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
269 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
270 |
# So that we can recreate a full libtool script including additional |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
271 |
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
272 |
# in macros and then make a single call at the end using the `libtool' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
273 |
# label. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
274 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
275 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
276 |
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
277 |
# ---------------------------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
278 |
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
279 |
m4_define([_LT_CONFIG_LIBTOOL_INIT], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
280 |
[m4_ifval([$1], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
281 |
[m4_append([_LT_OUTPUT_LIBTOOL_INIT], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
282 |
[$1 |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
283 |
])])]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
284 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
285 |
# Initialize. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
286 |
m4_define([_LT_OUTPUT_LIBTOOL_INIT]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
287 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
288 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
289 |
# _LT_CONFIG_LIBTOOL([COMMANDS]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
290 |
# ------------------------------ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
291 |
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
292 |
m4_define([_LT_CONFIG_LIBTOOL], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
293 |
[m4_ifval([$1], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
294 |
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
295 |
[$1 |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
296 |
])])]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
297 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
298 |
# Initialize. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
299 |
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
300 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
301 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
302 |
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
303 |
# ----------------------------------------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
304 |
m4_defun([_LT_CONFIG_SAVE_COMMANDS], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
305 |
[_LT_CONFIG_LIBTOOL([$1]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
306 |
_LT_CONFIG_LIBTOOL_INIT([$2]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
307 |
]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
308 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
309 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
310 |
# _LT_FORMAT_COMMENT([COMMENT]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
311 |
# ----------------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
312 |
# Add leading comment marks to the start of each line, and a trailing |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
313 |
# full-stop to the whole comment if one is not present already. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
314 |
m4_define([_LT_FORMAT_COMMENT], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
315 |
[m4_ifval([$1], [ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
316 |
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
317 |
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
318 |
)]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
319 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
320 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
321 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
322 |
## ------------------------ ## |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
323 |
## FIXME: Eliminate VARNAME ## |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
324 |
## ------------------------ ## |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
325 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
326 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
327 |
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
328 |
# ------------------------------------------------------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
329 |
# CONFIGNAME is the name given to the value in the libtool script. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
330 |
# VARNAME is the (base) name used in the configure script. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
331 |
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
332 |
# VARNAME. Any other value will be used directly. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
333 |
m4_define([_LT_DECL], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
334 |
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
335 |
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
336 |
[m4_ifval([$1], [$1], [$2])]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
337 |
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
338 |
m4_ifval([$4], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
339 |
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
340 |
lt_dict_add_subkey([lt_decl_dict], [$2], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
341 |
[tagged?], [m4_ifval([$5], [yes], [no])])]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
342 |
]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
343 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
344 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
345 |
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
346 |
# -------------------------------------------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
347 |
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
348 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
349 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
350 |
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
351 |
# ------------------------------------------------ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
352 |
m4_define([lt_decl_tag_varnames], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
353 |
[_lt_decl_filter([tagged?], [yes], $@)]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
354 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
355 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
356 |
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
357 |
# --------------------------------------------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
358 |
m4_define([_lt_decl_filter], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
359 |
[m4_case([$#], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
360 |
[0], [m4_fatal([$0: too few arguments: $#])], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
361 |
[1], [m4_fatal([$0: too few arguments: $#: $1])], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
362 |
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
363 |
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
364 |
[lt_dict_filter([lt_decl_dict], $@)])[]dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
365 |
]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
366 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
367 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
368 |
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
369 |
# -------------------------------------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
370 |
m4_define([lt_decl_quote_varnames], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
371 |
[_lt_decl_filter([value], [1], $@)]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
372 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
373 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
374 |
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
375 |
# --------------------------------------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
376 |
m4_define([lt_decl_dquote_varnames], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
377 |
[_lt_decl_filter([value], [2], $@)]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
378 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
379 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
380 |
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
381 |
# --------------------------------------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
382 |
m4_define([lt_decl_varnames_tagged], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
383 |
[m4_assert([$# <= 2])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
384 |
_$0(m4_quote(m4_default([$1], [[, ]])), |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
385 |
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
386 |
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
387 |
m4_define([_lt_decl_varnames_tagged], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
388 |
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
389 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
390 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
391 |
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
392 |
# ------------------------------------------------ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
393 |
m4_define([lt_decl_all_varnames], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
394 |
[_$0(m4_quote(m4_default([$1], [[, ]])), |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
395 |
m4_if([$2], [], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
396 |
m4_quote(lt_decl_varnames), |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
397 |
m4_quote(m4_shift($@))))[]dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
398 |
]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
399 |
m4_define([_lt_decl_all_varnames], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
400 |
[lt_join($@, lt_decl_varnames_tagged([$1], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
401 |
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
402 |
]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
403 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
404 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
405 |
# _LT_CONFIG_STATUS_DECLARE([VARNAME]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
406 |
# ------------------------------------ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
407 |
# Quote a variable value, and forward it to `config.status' so that its |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
408 |
# declaration there will have the same value as in `configure'. VARNAME |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
409 |
# must have a single quote delimited value for this to work. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
410 |
m4_define([_LT_CONFIG_STATUS_DECLARE], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
411 |
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
412 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
413 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
414 |
# _LT_CONFIG_STATUS_DECLARATIONS |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
415 |
# ------------------------------ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
416 |
# We delimit libtool config variables with single quotes, so when |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
417 |
# we write them to config.status, we have to be sure to quote all |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
418 |
# embedded single quotes properly. In configure, this macro expands |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
419 |
# each variable declared with _LT_DECL (and _LT_TAGDECL) into: |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
420 |
# |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
421 |
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
422 |
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
423 |
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
424 |
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
425 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
426 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
427 |
# _LT_LIBTOOL_TAGS |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
428 |
# ---------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
429 |
# Output comment and list of tags supported by the script |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
430 |
m4_defun([_LT_LIBTOOL_TAGS], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
431 |
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
432 |
available_tags="_LT_TAGS"dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
433 |
]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
434 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
435 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
436 |
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
437 |
# ----------------------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
438 |
# Extract the dictionary values for VARNAME (optionally with TAG) and |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
439 |
# expand to a commented shell variable setting: |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
440 |
# |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
441 |
# # Some comment about what VAR is for. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
442 |
# visible_name=$lt_internal_name |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
443 |
m4_define([_LT_LIBTOOL_DECLARE], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
444 |
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
445 |
[description])))[]dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
446 |
m4_pushdef([_libtool_name], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
447 |
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
448 |
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
449 |
[0], [_libtool_name=[$]$1], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
450 |
[1], [_libtool_name=$lt_[]$1], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
451 |
[2], [_libtool_name=$lt_[]$1], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
452 |
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
453 |
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
454 |
]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
455 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
456 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
457 |
# _LT_LIBTOOL_CONFIG_VARS |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
458 |
# ----------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
459 |
# Produce commented declarations of non-tagged libtool config variables |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
460 |
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
461 |
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
462 |
# section) are produced by _LT_LIBTOOL_TAG_VARS. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
463 |
m4_defun([_LT_LIBTOOL_CONFIG_VARS], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
464 |
[m4_foreach([_lt_var], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
465 |
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
466 |
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
467 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
468 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
469 |
# _LT_LIBTOOL_TAG_VARS(TAG) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
470 |
# ------------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
471 |
m4_define([_LT_LIBTOOL_TAG_VARS], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
472 |
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
473 |
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
474 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
475 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
476 |
# _LT_TAGVAR(VARNAME, [TAGNAME]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
477 |
# ------------------------------ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
478 |
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
479 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
480 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
481 |
# _LT_CONFIG_COMMANDS |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
482 |
# ------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
483 |
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
484 |
# variables for single and double quote escaping we saved from calls |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
485 |
# to _LT_DECL, we can put quote escaped variables declarations |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
486 |
# into `config.status', and then the shell code to quote escape them in |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
487 |
# for loops in `config.status'. Finally, any additional code accumulated |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
488 |
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
489 |
m4_defun([_LT_CONFIG_COMMANDS], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
490 |
[AC_PROVIDE_IFELSE([LT_OUTPUT], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
491 |
dnl If the libtool generation code has been placed in $CONFIG_LT, |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
492 |
dnl instead of duplicating it all over again into config.status, |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
493 |
dnl then we will have config.status run $CONFIG_LT later, so it |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
494 |
dnl needs to know what name is stored there: |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
495 |
[AC_CONFIG_COMMANDS([libtool], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
496 |
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
497 |
dnl If the libtool generation code is destined for config.status, |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
498 |
dnl expand the accumulated commands and init code now: |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
499 |
[AC_CONFIG_COMMANDS([libtool], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
500 |
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
501 |
])#_LT_CONFIG_COMMANDS |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
502 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
503 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
504 |
# Initialize. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
505 |
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
506 |
[ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
507 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
508 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
509 |
# if CDPATH is set. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
510 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
511 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
512 |
sed_quote_subst='$sed_quote_subst' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
513 |
double_quote_subst='$double_quote_subst' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
514 |
delay_variable_subst='$delay_variable_subst' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
515 |
_LT_CONFIG_STATUS_DECLARATIONS |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
516 |
LTCC='$LTCC' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
517 |
LTCFLAGS='$LTCFLAGS' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
518 |
compiler='$compiler_DEFAULT' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
519 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
520 |
# Quote evaled strings. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
521 |
for var in lt_decl_all_varnames([[ \ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
522 |
]], lt_decl_quote_varnames); do |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
523 |
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
524 |
*[[\\\\\\\`\\"\\\$]]*) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
525 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
526 |
;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
527 |
*) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
528 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
529 |
;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
530 |
esac |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
531 |
done |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
532 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
533 |
# Double-quote double-evaled strings. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
534 |
for var in lt_decl_all_varnames([[ \ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
535 |
]], lt_decl_dquote_varnames); do |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
536 |
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
537 |
*[[\\\\\\\`\\"\\\$]]*) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
538 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
539 |
;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
540 |
*) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
541 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
542 |
;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
543 |
esac |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
544 |
done |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
545 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
546 |
# Fix-up fallback echo if it was mangled by the above quoting rules. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
547 |
case \$lt_ECHO in |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
548 |
*'\\\[$]0 --fallback-echo"')dnl " |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
549 |
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
550 |
;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
551 |
esac |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
552 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
553 |
_LT_OUTPUT_LIBTOOL_INIT |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
554 |
]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
555 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
556 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
557 |
# LT_OUTPUT |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
558 |
# --------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
559 |
# This macro allows early generation of the libtool script (before |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
560 |
# AC_OUTPUT is called), incase it is used in configure for compilation |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
561 |
# tests. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
562 |
AC_DEFUN([LT_OUTPUT], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
563 |
[: ${CONFIG_LT=./config.lt} |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
564 |
AC_MSG_NOTICE([creating $CONFIG_LT]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
565 |
cat >"$CONFIG_LT" <<_LTEOF |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
566 |
#! $SHELL |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
567 |
# Generated by $as_me. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
568 |
# Run this file to recreate a libtool stub with the current configuration. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
569 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
570 |
lt_cl_silent=false |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
571 |
SHELL=\${CONFIG_SHELL-$SHELL} |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
572 |
_LTEOF |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
573 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
574 |
cat >>"$CONFIG_LT" <<\_LTEOF |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
575 |
AS_SHELL_SANITIZE |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
576 |
_AS_PREPARE |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
577 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
578 |
exec AS_MESSAGE_FD>&1 |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
579 |
exec AS_MESSAGE_LOG_FD>>config.log |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
580 |
{ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
581 |
echo |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
582 |
AS_BOX([Running $as_me.]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
583 |
} >&AS_MESSAGE_LOG_FD |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
584 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
585 |
lt_cl_help="\ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
586 |
\`$as_me' creates a local libtool stub from the current configuration, |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
587 |
for use in further configure time tests before the real libtool is |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
588 |
generated. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
589 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
590 |
Usage: $[0] [[OPTIONS]] |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
591 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
592 |
-h, --help print this help, then exit |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
593 |
-V, --version print version number, then exit |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
594 |
-q, --quiet do not print progress messages |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
595 |
-d, --debug don't remove temporary files |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
596 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
597 |
Report bugs to <bug-libtool@gnu.org>." |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
598 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
599 |
lt_cl_version="\ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
600 |
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
601 |
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
602 |
configured by $[0], generated by m4_PACKAGE_STRING. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
603 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
604 |
Copyright (C) 2008 Free Software Foundation, Inc. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
605 |
This config.lt script is free software; the Free Software Foundation |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
606 |
gives unlimited permision to copy, distribute and modify it." |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
607 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
608 |
while test $[#] != 0 |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
609 |
do |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
610 |
case $[1] in |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
611 |
--version | --v* | -V ) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
612 |
echo "$lt_cl_version"; exit 0 ;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
613 |
--help | --h* | -h ) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
614 |
echo "$lt_cl_help"; exit 0 ;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
615 |
--debug | --d* | -d ) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
616 |
debug=: ;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
617 |
--quiet | --q* | --silent | --s* | -q ) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
618 |
lt_cl_silent=: ;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
619 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
620 |
-*) AC_MSG_ERROR([unrecognized option: $[1] |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
621 |
Try \`$[0] --help' for more information.]) ;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
622 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
623 |
*) AC_MSG_ERROR([unrecognized argument: $[1] |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
624 |
Try \`$[0] --help' for more information.]) ;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
625 |
esac |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
626 |
shift |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
627 |
done |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
628 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
629 |
if $lt_cl_silent; then |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
630 |
exec AS_MESSAGE_FD>/dev/null |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
631 |
fi |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
632 |
_LTEOF |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
633 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
634 |
cat >>"$CONFIG_LT" <<_LTEOF |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
635 |
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
636 |
_LTEOF |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
637 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
638 |
cat >>"$CONFIG_LT" <<\_LTEOF |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
639 |
AC_MSG_NOTICE([creating $ofile]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
640 |
_LT_OUTPUT_LIBTOOL_COMMANDS |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
641 |
AS_EXIT(0) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
642 |
_LTEOF |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
643 |
chmod +x "$CONFIG_LT" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
644 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
645 |
# configure is writing to config.log, but config.lt does its own redirection, |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
646 |
# appending to config.log, which fails on DOS, as config.log is still kept |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
647 |
# open by configure. Here we exec the FD to /dev/null, effectively closing |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
648 |
# config.log, so it can be properly (re)opened and appended to by config.lt. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
649 |
if test "$no_create" != yes; then |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
650 |
lt_cl_success=: |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
651 |
test "$silent" = yes && |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
652 |
lt_config_lt_args="$lt_config_lt_args --quiet" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
653 |
exec AS_MESSAGE_LOG_FD>/dev/null |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
654 |
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
655 |
exec AS_MESSAGE_LOG_FD>>config.log |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
656 |
$lt_cl_success || AS_EXIT(1) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
657 |
fi |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
658 |
])# LT_OUTPUT |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
659 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
660 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
661 |
# _LT_CONFIG(TAG) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
662 |
# --------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
663 |
# If TAG is the built-in tag, create an initial libtool script with a |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
664 |
# default configuration from the untagged config vars. Otherwise add code |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
665 |
# to config.status for appending the configuration named by TAG from the |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
666 |
# matching tagged config vars. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
667 |
m4_defun([_LT_CONFIG], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
668 |
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
669 |
_LT_CONFIG_SAVE_COMMANDS([ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
670 |
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
671 |
m4_if(_LT_TAG, [C], [ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
672 |
# See if we are running on zsh, and set the options which allow our |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
673 |
# commands through without removal of \ escapes. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
674 |
if test -n "${ZSH_VERSION+set}" ; then |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
675 |
setopt NO_GLOB_SUBST |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
676 |
fi |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
677 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
678 |
cfgfile="${ofile}T" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
679 |
trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
680 |
$RM "$cfgfile" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
681 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
682 |
cat <<_LT_EOF >> "$cfgfile" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
683 |
#! $SHELL |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
684 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
685 |
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
686 |
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
687 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
688 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
689 |
# |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
690 |
_LT_COPYING |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
691 |
_LT_LIBTOOL_TAGS |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
692 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
693 |
# ### BEGIN LIBTOOL CONFIG |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
694 |
_LT_LIBTOOL_CONFIG_VARS |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
695 |
_LT_LIBTOOL_TAG_VARS |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
696 |
# ### END LIBTOOL CONFIG |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
697 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
698 |
_LT_EOF |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
699 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
700 |
case $host_os in |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
701 |
aix3*) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
702 |
cat <<\_LT_EOF >> "$cfgfile" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
703 |
# AIX sometimes has problems with the GCC collect2 program. For some |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
704 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
705 |
# vanish in a puff of smoke. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
706 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
707 |
COLLECT_NAMES= |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
708 |
export COLLECT_NAMES |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
709 |
fi |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
710 |
_LT_EOF |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
711 |
;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
712 |
esac |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
713 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
714 |
_LT_PROG_LTMAIN |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
715 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
716 |
# We use sed instead of cat because bash on DJGPP gets confused if |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
717 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
718 |
# text mode, it properly converts lines to CR/LF. This bash problem |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
719 |
# is reportedly fixed, but why not run on old versions too? |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
720 |
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
721 |
|| (rm -f "$cfgfile"; exit 1) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
722 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
723 |
_LT_PROG_XSI_SHELLFNS |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
724 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
725 |
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
726 |
|| (rm -f "$cfgfile"; exit 1) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
727 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
728 |
mv -f "$cfgfile" "$ofile" || |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
729 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
730 |
chmod +x "$ofile" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
731 |
], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
732 |
[cat <<_LT_EOF >> "$ofile" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
733 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
734 |
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
735 |
dnl in a comment (ie after a #). |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
736 |
# ### BEGIN LIBTOOL TAG CONFIG: $1 |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
737 |
_LT_LIBTOOL_TAG_VARS(_LT_TAG) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
738 |
# ### END LIBTOOL TAG CONFIG: $1 |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
739 |
_LT_EOF |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
740 |
])dnl /m4_if |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
741 |
], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
742 |
[m4_if([$1], [], [ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
743 |
PACKAGE='$PACKAGE' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
744 |
VERSION='$VERSION' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
745 |
TIMESTAMP='$TIMESTAMP' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
746 |
RM='$RM' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
747 |
ofile='$ofile'], []) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
748 |
])dnl /_LT_CONFIG_SAVE_COMMANDS |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
749 |
])# _LT_CONFIG |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
750 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
751 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
752 |
# LT_SUPPORTED_TAG(TAG) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
753 |
# --------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
754 |
# Trace this macro to discover what tags are supported by the libtool |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
755 |
# --tag option, using: |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
756 |
# autoconf --trace 'LT_SUPPORTED_TAG:$1' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
757 |
AC_DEFUN([LT_SUPPORTED_TAG], []) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
758 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
759 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
760 |
# C support is built-in for now |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
761 |
m4_define([_LT_LANG_C_enabled], []) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
762 |
m4_define([_LT_TAGS], []) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
763 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
764 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
765 |
# LT_LANG(LANG) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
766 |
# ------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
767 |
# Enable libtool support for the given language if not already enabled. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
768 |
AC_DEFUN([LT_LANG], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
769 |
[AC_BEFORE([$0], [LT_OUTPUT])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
770 |
m4_case([$1], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
771 |
[C], [_LT_LANG(C)], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
772 |
[C++], [_LT_LANG(CXX)], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
773 |
[Java], [_LT_LANG(GCJ)], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
774 |
[Fortran 77], [_LT_LANG(F77)], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
775 |
[Fortran], [_LT_LANG(FC)], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
776 |
[Windows Resource], [_LT_LANG(RC)], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
777 |
[m4_ifdef([_LT_LANG_]$1[_CONFIG], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
778 |
[_LT_LANG($1)], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
779 |
[m4_fatal([$0: unsupported language: "$1"])])])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
780 |
])# LT_LANG |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
781 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
782 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
783 |
# _LT_LANG(LANGNAME) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
784 |
# ------------------ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
785 |
m4_defun([_LT_LANG], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
786 |
[m4_ifdef([_LT_LANG_]$1[_enabled], [], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
787 |
[LT_SUPPORTED_TAG([$1])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
788 |
m4_append([_LT_TAGS], [$1 ])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
789 |
m4_define([_LT_LANG_]$1[_enabled], [])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
790 |
_LT_LANG_$1_CONFIG($1)])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
791 |
])# _LT_LANG |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
792 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
793 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
794 |
# _LT_LANG_DEFAULT_CONFIG |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
795 |
# ----------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
796 |
m4_defun([_LT_LANG_DEFAULT_CONFIG], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
797 |
[AC_PROVIDE_IFELSE([AC_PROG_CXX], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
798 |
[LT_LANG(CXX)], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
799 |
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
800 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
801 |
AC_PROVIDE_IFELSE([AC_PROG_F77], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
802 |
[LT_LANG(F77)], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
803 |
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
804 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
805 |
AC_PROVIDE_IFELSE([AC_PROG_FC], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
806 |
[LT_LANG(FC)], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
807 |
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
808 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
809 |
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
810 |
dnl pulling things in needlessly. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
811 |
AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
812 |
[LT_LANG(GCJ)], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
813 |
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
814 |
[LT_LANG(GCJ)], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
815 |
[AC_PROVIDE_IFELSE([LT_PROG_GCJ], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
816 |
[LT_LANG(GCJ)], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
817 |
[m4_ifdef([AC_PROG_GCJ], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
818 |
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
819 |
m4_ifdef([A][M_PROG_GCJ], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
820 |
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
821 |
m4_ifdef([LT_PROG_GCJ], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
822 |
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
823 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
824 |
AC_PROVIDE_IFELSE([LT_PROG_RC], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
825 |
[LT_LANG(RC)], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
826 |
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
827 |
])# _LT_LANG_DEFAULT_CONFIG |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
828 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
829 |
# Obsolete macros: |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
830 |
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
831 |
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
832 |
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
833 |
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
834 |
dnl aclocal-1.4 backwards compatibility: |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
835 |
dnl AC_DEFUN([AC_LIBTOOL_CXX], []) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
836 |
dnl AC_DEFUN([AC_LIBTOOL_F77], []) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
837 |
dnl AC_DEFUN([AC_LIBTOOL_FC], []) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
838 |
dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
839 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
840 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
841 |
# _LT_TAG_COMPILER |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
842 |
# ---------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
843 |
m4_defun([_LT_TAG_COMPILER], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
844 |
[AC_REQUIRE([AC_PROG_CC])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
845 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
846 |
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
847 |
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
848 |
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
849 |
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
850 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
851 |
# If no C compiler was specified, use CC. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
852 |
LTCC=${LTCC-"$CC"} |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
853 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
854 |
# If no C compiler flags were specified, use CFLAGS. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
855 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
856 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
857 |
# Allow CC to be a program name with arguments. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
858 |
compiler=$CC |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
859 |
])# _LT_TAG_COMPILER |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
860 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
861 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
862 |
# _LT_COMPILER_BOILERPLATE |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
863 |
# ------------------------ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
864 |
# Check for compiler boilerplate output or warnings with |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
865 |
# the simple compiler test code. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
866 |
m4_defun([_LT_COMPILER_BOILERPLATE], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
867 |
[m4_require([_LT_DECL_SED])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
868 |
ac_outfile=conftest.$ac_objext |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
869 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
870 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
871 |
_lt_compiler_boilerplate=`cat conftest.err` |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
872 |
$RM conftest* |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
873 |
])# _LT_COMPILER_BOILERPLATE |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
874 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
875 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
876 |
# _LT_LINKER_BOILERPLATE |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
877 |
# ---------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
878 |
# Check for linker boilerplate output or warnings with |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
879 |
# the simple link test code. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
880 |
m4_defun([_LT_LINKER_BOILERPLATE], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
881 |
[m4_require([_LT_DECL_SED])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
882 |
ac_outfile=conftest.$ac_objext |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
883 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
884 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
885 |
_lt_linker_boilerplate=`cat conftest.err` |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
886 |
$RM -r conftest* |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
887 |
])# _LT_LINKER_BOILERPLATE |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
888 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
889 |
# _LT_REQUIRED_DARWIN_CHECKS |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
890 |
# ------------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
891 |
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
892 |
case $host_os in |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
893 |
rhapsody* | darwin*) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
894 |
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
895 |
AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
896 |
AC_CHECK_TOOL([LIPO], [lipo], [:]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
897 |
AC_CHECK_TOOL([OTOOL], [otool], [:]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
898 |
AC_CHECK_TOOL([OTOOL64], [otool64], [:]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
899 |
_LT_DECL([], [DSYMUTIL], [1], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
900 |
[Tool to manipulate archived DWARF debug symbol files on Mac OS X]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
901 |
_LT_DECL([], [NMEDIT], [1], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
902 |
[Tool to change global to local symbols on Mac OS X]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
903 |
_LT_DECL([], [LIPO], [1], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
904 |
[Tool to manipulate fat objects and archives on Mac OS X]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
905 |
_LT_DECL([], [OTOOL], [1], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
906 |
[ldd/readelf like tool for Mach-O binaries on Mac OS X]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
907 |
_LT_DECL([], [OTOOL64], [1], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
908 |
[ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
909 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
910 |
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
911 |
[lt_cv_apple_cc_single_mod=no |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
912 |
if test -z "${LT_MULTI_MODULE}"; then |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
913 |
# By default we will add the -single_module flag. You can override |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
914 |
# by either setting the environment variable LT_MULTI_MODULE |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
915 |
# non-empty at configure time, or by adding -multi_module to the |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
916 |
# link flags. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
917 |
rm -rf libconftest.dylib* |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
918 |
echo "int foo(void){return 1;}" > conftest.c |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
919 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
920 |
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
921 |
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
922 |
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
923 |
_lt_result=$? |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
924 |
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
925 |
lt_cv_apple_cc_single_mod=yes |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
926 |
else |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
927 |
cat conftest.err >&AS_MESSAGE_LOG_FD |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
928 |
fi |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
929 |
rm -rf libconftest.dylib* |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
930 |
rm -f conftest.* |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
931 |
fi]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
932 |
AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
933 |
[lt_cv_ld_exported_symbols_list], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
934 |
[lt_cv_ld_exported_symbols_list=no |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
935 |
save_LDFLAGS=$LDFLAGS |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
936 |
echo "_main" > conftest.sym |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
937 |
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
938 |
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
939 |
[lt_cv_ld_exported_symbols_list=yes], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
940 |
[lt_cv_ld_exported_symbols_list=no]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
941 |
LDFLAGS="$save_LDFLAGS" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
942 |
]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
943 |
case $host_os in |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
944 |
rhapsody* | darwin1.[[012]]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
945 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
946 |
darwin1.*) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
947 |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
948 |
darwin*) # darwin 5.x on |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
949 |
# if running on 10.5 or later, the deployment target defaults |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
950 |
# to the OS version, if on x86, and 10.4, the deployment |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
951 |
# target defaults to 10.4. Don't you love it? |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
952 |
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
953 |
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
954 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
955 |
10.[[012]]*) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
956 |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
957 |
10.*) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
958 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
959 |
esac |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
960 |
;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
961 |
esac |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
962 |
if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
963 |
_lt_dar_single_mod='$single_module' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
964 |
fi |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
965 |
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
966 |
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
967 |
else |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
968 |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
969 |
fi |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
970 |
if test "$DSYMUTIL" != ":"; then |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
971 |
_lt_dsymutil='~$DSYMUTIL $lib || :' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
972 |
else |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
973 |
_lt_dsymutil= |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
974 |
fi |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
975 |
;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
976 |
esac |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
977 |
]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
978 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
979 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
980 |
# _LT_DARWIN_LINKER_FEATURES |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
981 |
# -------------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
982 |
# Checks for linker and compiler features on darwin |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
983 |
m4_defun([_LT_DARWIN_LINKER_FEATURES], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
984 |
[ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
985 |
m4_require([_LT_REQUIRED_DARWIN_CHECKS]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
986 |
_LT_TAGVAR(archive_cmds_need_lc, $1)=no |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
987 |
_LT_TAGVAR(hardcode_direct, $1)=no |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
988 |
_LT_TAGVAR(hardcode_automatic, $1)=yes |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
989 |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
990 |
_LT_TAGVAR(whole_archive_flag_spec, $1)='' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
991 |
_LT_TAGVAR(link_all_deplibs, $1)=yes |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
992 |
_LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
993 |
case $cc_basename in |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
994 |
ifort*) _lt_dar_can_shared=yes ;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
995 |
*) _lt_dar_can_shared=$GCC ;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
996 |
esac |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
997 |
if test "$_lt_dar_can_shared" = "yes"; then |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
998 |
output_verbose_link_cmd=echo |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
999 |
_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}" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1000 |
_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1001 |
_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}" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1002 |
_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}" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1003 |
m4_if([$1], [CXX], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1004 |
[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1005 |
_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}" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1006 |
_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}" |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1007 |
fi |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1008 |
],[]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1009 |
else |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1010 |
_LT_TAGVAR(ld_shlibs, $1)=no |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1011 |
fi |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1012 |
]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1013 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1014 |
# _LT_SYS_MODULE_PATH_AIX |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1015 |
# ----------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1016 |
# Links a minimal program and checks the executable |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1017 |
# for the system default hardcoded library path. In most cases, |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1018 |
# this is /usr/lib:/lib, but when the MPI compilers are used |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1019 |
# the location of the communication and MPI libs are included too. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1020 |
# If we don't find anything, use the default library path according |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1021 |
# to the aix ld manual. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1022 |
m4_defun([_LT_SYS_MODULE_PATH_AIX], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1023 |
[m4_require([_LT_DECL_SED])dnl |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1024 |
AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1025 |
lt_aix_libpath_sed=' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1026 |
/Import File Strings/,/^$/ { |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1027 |
/^0/ { |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1028 |
s/^0 *\(.*\)$/\1/ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1029 |
p |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1030 |
} |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1031 |
}' |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1032 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1033 |
# Check for a 64-bit object if we didn't find anything. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1034 |
if test -z "$aix_libpath"; then |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1035 |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1036 |
fi],[]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1037 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1038 |
])# _LT_SYS_MODULE_PATH_AIX |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1039 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1040 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1041 |
# _LT_SHELL_INIT(ARG) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1042 |
# ------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1043 |
m4_define([_LT_SHELL_INIT], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1044 |
[ifdef([AC_DIVERSION_NOTICE], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1045 |
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1046 |
[AC_DIVERT_PUSH(NOTICE)]) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1047 |
$1 |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1048 |
AC_DIVERT_POP |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1049 |
])# _LT_SHELL_INIT |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1050 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1051 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1052 |
# _LT_PROG_ECHO_BACKSLASH |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1053 |
# ----------------------- |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1054 |
# Add some code to the start of the generated configure script which |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1055 |
# will find an echo command which doesn't interpret backslashes. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1056 |
m4_defun([_LT_PROG_ECHO_BACKSLASH], |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1057 |
[_LT_SHELL_INIT([ |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1058 |
# Check that we are running under the correct shell. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1059 |
SHELL=${CONFIG_SHELL-/bin/sh} |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1060 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1061 |
case X$lt_ECHO in |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1062 |
X*--fallback-echo) |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1063 |
# Remove one level of quotation (which was required for Make). |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1064 |
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1065 |
;; |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1066 |
esac |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1067 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1068 |
ECHO=${lt_ECHO-echo} |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1069 |
if test "X[$]1" = X--no-reexec; then |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1070 |
# Discard the --no-reexec flag, and continue. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1071 |
shift |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1072 |
elif test "X[$]1" = X--fallback-echo; then |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1073 |
# Avoid inline document here, it may be left over |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1074 |
: |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1075 |
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1076 |
# Yippee, $ECHO works! |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1077 |
: |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1078 |
else |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1079 |
# Restart under the correct shell. |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1080 |
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1081 |
fi |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1082 |
|
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1083 |
if test "X[$]1" = X--fallback-echo; then |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1084 |
# used as fallback echo |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1085 |
shift |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1086 |
cat <<_LT_EOF |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1087 |
[$]* |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1088 |
_LT_EOF |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1089 |
exit 0 |
753b4e38a964
New automake-based build process.
Markus Kauppila <markus.kauppila@gmail.com>
parents:
diff
changeset
|
1090 |
fi |