Codebase list xfce4-smartbookmark-plugin / b5520e5
New upstream snapshot. Debian Janitor 1 year, 4 months ago
15 changed file(s) with 13644 addition(s) and 14114 deletion(s). Raw diff Collapse all Expand all
8888 host_triplet = @host@
8989 subdir = .
9090 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
91 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
91 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
92 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
93 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
94 $(top_srcdir)/configure.ac
9295 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9396 $(ACLOCAL_M4)
9497 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
209212 AUTOHEADER = @AUTOHEADER@
210213 AUTOMAKE = @AUTOMAKE@
211214 AWK = @AWK@
212 CATALOGS = @CATALOGS@
213 CATOBJEXT = @CATOBJEXT@
214215 CC = @CC@
215216 CCDEPMODE = @CCDEPMODE@
216217 CFLAGS = @CFLAGS@
218219 CSCOPE = @CSCOPE@
219220 CTAGS = @CTAGS@
220221 CYGPATH_W = @CYGPATH_W@
221 DATADIRNAME = @DATADIRNAME@
222222 DEFS = @DEFS@
223223 DEPDIR = @DEPDIR@
224224 DLLTOOL = @DLLTOOL@
231231 ETAGS = @ETAGS@
232232 EXEEXT = @EXEEXT@
233233 FGREP = @FGREP@
234 FILECMD = @FILECMD@
234235 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
235 GMOFILES = @GMOFILES@
236236 GMSGFMT = @GMSGFMT@
237237 GREP = @GREP@
238238 INSTALL = @INSTALL@
240240 INSTALL_PROGRAM = @INSTALL_PROGRAM@
241241 INSTALL_SCRIPT = @INSTALL_SCRIPT@
242242 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
243 INSTOBJEXT = @INSTOBJEXT@
244 INTLLIBS = @INTLLIBS@
245243 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
246244 INTLTOOL_MERGE = @INTLTOOL_MERGE@
247245 INTLTOOL_PERL = @INTLTOOL_PERL@
250248 INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
251249 INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
252250 INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
253 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
254251 LD = @LD@
255252 LDFLAGS = @LDFLAGS@
256253 LIBOBJS = @LIBOBJS@
272269 MAKEINFO = @MAKEINFO@
273270 MANIFEST_TOOL = @MANIFEST_TOOL@
274271 MKDIR_P = @MKDIR_P@
275 MKINSTALLDIRS = @MKINSTALLDIRS@
276272 MSGFMT = @MSGFMT@
277 MSGFMT_OPTS = @MSGFMT_OPTS@
278273 MSGMERGE = @MSGMERGE@
279274 NM = @NM@
280275 NMEDIT = @NMEDIT@
293288 PKG_CONFIG = @PKG_CONFIG@
294289 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
295290 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
296 POFILES = @POFILES@
297 POSUB = @POSUB@
298 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
299 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
300291 RANLIB = @RANLIB@
301292 SED = @SED@
302293 SET_MAKE = @SET_MAKE@
305296 USE_NLS = @USE_NLS@
306297 VERSION = @VERSION@
307298 XGETTEXT = @XGETTEXT@
308 XGETTEXT_ARGS = @XGETTEXT_ARGS@
309299 abs_builddir = @abs_builddir@
310300 abs_srcdir = @abs_srcdir@
311301 abs_top_builddir = @abs_top_builddir@
+1211
-10680
aclocal.m4 less more
1818 You have another version of autoconf. It may work, but is not guaranteed to.
1919 If you have problems, you may need to regenerate the build system entirely.
2020 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
22
23 dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
24 # serial 42 IT_PROG_INTLTOOL
25 AC_DEFUN([IT_PROG_INTLTOOL], [
26 AC_PREREQ([2.50])dnl
27 AC_REQUIRE([AM_NLS])dnl
28
29 case "$am__api_version" in
30 1.[01234])
31 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
32 ;;
33 *)
34 ;;
35 esac
36
37 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
38 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
39 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
40 if test -n "$1"; then
41 AC_MSG_CHECKING([for intltool >= $1])
42 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
43 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
44 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
45 fi
46
47 AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
48 AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
49 AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
50 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
51 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
52 fi
53
54 if test -z "$AM_DEFAULT_VERBOSITY"; then
55 AM_DEFAULT_VERBOSITY=1
56 fi
57 AC_SUBST([AM_DEFAULT_VERBOSITY])
58
59 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
60 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
61 INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;'
62 AC_SUBST(INTLTOOL_V_MERGE)
63 AC_SUBST(INTLTOOL__v_MERGE_)
64 AC_SUBST(INTLTOOL__v_MERGE_0)
65
66 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
67 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
68 intltool__v_merge_options_0='-q'
69 AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
70 AC_SUBST(intltool__v_merge_options_)
71 AC_SUBST(intltool__v_merge_options_0)
72
73 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
74 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
75 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
76 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
77 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
78 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
79 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
80 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
81 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
82 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
83 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
84 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
85 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
86 else
87 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
88 fi
89 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
90 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
91 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
92 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
93 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
94 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
95 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
96
97 _IT_SUBST(INTLTOOL_DESKTOP_RULE)
98 _IT_SUBST(INTLTOOL_DIRECTORY_RULE)
99 _IT_SUBST(INTLTOOL_KEYS_RULE)
100 _IT_SUBST(INTLTOOL_PROP_RULE)
101 _IT_SUBST(INTLTOOL_OAF_RULE)
102 _IT_SUBST(INTLTOOL_PONG_RULE)
103 _IT_SUBST(INTLTOOL_SERVER_RULE)
104 _IT_SUBST(INTLTOOL_SHEET_RULE)
105 _IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
106 _IT_SUBST(INTLTOOL_UI_RULE)
107 _IT_SUBST(INTLTOOL_XAM_RULE)
108 _IT_SUBST(INTLTOOL_KBD_RULE)
109 _IT_SUBST(INTLTOOL_XML_RULE)
110 _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
111 _IT_SUBST(INTLTOOL_CAVES_RULE)
112 _IT_SUBST(INTLTOOL_SCHEMAS_RULE)
113 _IT_SUBST(INTLTOOL_THEME_RULE)
114 _IT_SUBST(INTLTOOL_SERVICE_RULE)
115 _IT_SUBST(INTLTOOL_POLICY_RULE)
116
117 # Check the gettext tools to make sure they are GNU
118 AC_PATH_PROG(XGETTEXT, xgettext)
119 AC_PATH_PROG(MSGMERGE, msgmerge)
120 AC_PATH_PROG(MSGFMT, msgfmt)
121 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
122 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
123 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
124 fi
125 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
126 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
127 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
128 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
129 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
130 fi
131
132 AC_PATH_PROG(INTLTOOL_PERL, perl)
133 if test -z "$INTLTOOL_PERL"; then
134 AC_MSG_ERROR([perl not found])
135 fi
136 AC_MSG_CHECKING([for perl >= 5.8.1])
137 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
138 if test $? -ne 0; then
139 AC_MSG_ERROR([perl 5.8.1 is required for intltool])
140 else
141 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
142 AC_MSG_RESULT([$IT_PERL_VERSION])
143 fi
144 if test "x$2" != "xno-xml"; then
145 AC_MSG_CHECKING([for XML::Parser])
146 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
147 AC_MSG_RESULT([ok])
148 else
149 AC_MSG_ERROR([XML::Parser perl module is required for intltool])
150 fi
151 fi
152
153 # Substitute ALL_LINGUAS so we can use it in po/Makefile
154 AC_SUBST(ALL_LINGUAS)
155
156 IT_PO_SUBDIR([po])
157
158 ])
159
160
161 # IT_PO_SUBDIR(DIRNAME)
162 # ---------------------
163 # All po subdirs have to be declared with this macro; the subdir "po" is
164 # declared by IT_PROG_INTLTOOL.
165 #
166 AC_DEFUN([IT_PO_SUBDIR],
167 [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
168 dnl
169 dnl The following CONFIG_COMMANDS should be executed at the very end
170 dnl of config.status.
171 AC_CONFIG_COMMANDS_PRE([
172 AC_CONFIG_COMMANDS([$1/stamp-it], [
173 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
174 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
175 fi
176 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
177 >"$1/stamp-it.tmp"
178 [sed '/^#/d
179 s/^[[].*] *//
180 /^[ ]*$/d
181 '"s|^| $ac_top_srcdir/|" \
182 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
183 ]
184 [sed '/^POTFILES =/,/[^\\]$/ {
185 /^POTFILES =/!d
186 r $1/POTFILES
187 }
188 ' "$1/Makefile.in" >"$1/Makefile"]
189 rm -f "$1/Makefile.tmp"
190 mv "$1/stamp-it.tmp" "$1/stamp-it"
191 ])
192 ])dnl
193 ])
194
195 # _IT_SUBST(VARIABLE)
196 # -------------------
197 # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
198 #
199 AC_DEFUN([_IT_SUBST],
200 [
201 AC_SUBST([$1])
202 m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
203 ]
204 )
205
206 # deprecated macros
207 AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
208 # A hint is needed for aclocal from Automake <= 1.9.4:
209 # AC_DEFUN([AC_PROG_INTLTOOL], ...)
210
211
212 # nls.m4 serial 6 (gettext-0.20.2)
213 dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016, 2019-2020 Free
214 dnl Software Foundation, Inc.
215 dnl This file is free software; the Free Software Foundation
216 dnl gives unlimited permission to copy and/or distribute it,
217 dnl with or without modifications, as long as this notice is preserved.
218 dnl
219 dnl This file can be used in projects which are not available under
220 dnl the GNU General Public License or the GNU Lesser General Public
221 dnl License but which still want to provide support for the GNU gettext
222 dnl functionality.
223 dnl Please note that the actual code of the GNU gettext library is covered
224 dnl by the GNU Lesser General Public License, and the rest of the GNU
225 dnl gettext package is covered by the GNU General Public License.
226 dnl They are *not* in the public domain.
227
228 dnl Authors:
229 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
230 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
231
232 AC_PREREQ([2.50])
233
234 AC_DEFUN([AM_NLS],
235 [
236 AC_MSG_CHECKING([whether NLS is requested])
237 dnl Default is enabled NLS
238 AC_ARG_ENABLE([nls],
239 [ --disable-nls do not use Native Language Support],
240 USE_NLS=$enableval, USE_NLS=yes)
241 AC_MSG_RESULT([$USE_NLS])
242 AC_SUBST([USE_NLS])
243 ])
244
245 # pkg.m4 - Macros to locate and use pkg-config. -*- Autoconf -*-
246 # serial 12 (pkg-config-0.29.2)
247
248 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
249 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
250 dnl
251 dnl This program is free software; you can redistribute it and/or modify
252 dnl it under the terms of the GNU General Public License as published by
253 dnl the Free Software Foundation; either version 2 of the License, or
254 dnl (at your option) any later version.
255 dnl
256 dnl This program is distributed in the hope that it will be useful, but
257 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
258 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
259 dnl General Public License for more details.
260 dnl
261 dnl You should have received a copy of the GNU General Public License
262 dnl along with this program; if not, write to the Free Software
263 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
264 dnl 02111-1307, USA.
265 dnl
266 dnl As a special exception to the GNU General Public License, if you
267 dnl distribute this file as part of a program that contains a
268 dnl configuration script generated by Autoconf, you may include it under
269 dnl the same distribution terms that you use for the rest of that
270 dnl program.
271
272 dnl PKG_PREREQ(MIN-VERSION)
273 dnl -----------------------
274 dnl Since: 0.29
275 dnl
276 dnl Verify that the version of the pkg-config macros are at least
277 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
278 dnl installed version of pkg-config, this checks the developer's version
279 dnl of pkg.m4 when generating configure.
280 dnl
281 dnl To ensure that this macro is defined, also add:
282 dnl m4_ifndef([PKG_PREREQ],
283 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
284 dnl
285 dnl See the "Since" comment for each macro you use to see what version
286 dnl of the macros you require.
287 m4_defun([PKG_PREREQ],
288 [m4_define([PKG_MACROS_VERSION], [0.29.2])
289 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
290 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
291 ])dnl PKG_PREREQ
292
293 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
294 dnl ----------------------------------
295 dnl Since: 0.16
296 dnl
297 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
298 dnl first found in the path. Checks that the version of pkg-config found
299 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
300 dnl used since that's the first version where most current features of
301 dnl pkg-config existed.
302 AC_DEFUN([PKG_PROG_PKG_CONFIG],
303 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
304 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
305 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
306 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
307 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
308 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
309
310 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
311 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
312 fi
313 if test -n "$PKG_CONFIG"; then
314 _pkg_min_version=m4_default([$1], [0.9.0])
315 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
316 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
317 AC_MSG_RESULT([yes])
318 else
319 AC_MSG_RESULT([no])
320 PKG_CONFIG=""
321 fi
322 fi[]dnl
323 ])dnl PKG_PROG_PKG_CONFIG
324
325 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
326 dnl -------------------------------------------------------------------
327 dnl Since: 0.18
328 dnl
329 dnl Check to see whether a particular set of modules exists. Similar to
330 dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
331 dnl
332 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
333 dnl only at the first occurrence in configure.ac, so if the first place
334 dnl it's called might be skipped (such as if it is within an "if", you
335 dnl have to call PKG_CHECK_EXISTS manually
336 AC_DEFUN([PKG_CHECK_EXISTS],
337 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
338 if test -n "$PKG_CONFIG" && \
339 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
340 m4_default([$2], [:])
341 m4_ifvaln([$3], [else
342 $3])dnl
343 fi])
344
345 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
346 dnl ---------------------------------------------
347 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
348 dnl pkg_failed based on the result.
349 m4_define([_PKG_CONFIG],
350 [if test -n "$$1"; then
351 pkg_cv_[]$1="$$1"
352 elif test -n "$PKG_CONFIG"; then
353 PKG_CHECK_EXISTS([$3],
354 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
355 test "x$?" != "x0" && pkg_failed=yes ],
356 [pkg_failed=yes])
357 else
358 pkg_failed=untried
359 fi[]dnl
360 ])dnl _PKG_CONFIG
361
362 dnl _PKG_SHORT_ERRORS_SUPPORTED
363 dnl ---------------------------
364 dnl Internal check to see if pkg-config supports short errors.
365 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
366 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
367 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
368 _pkg_short_errors_supported=yes
369 else
370 _pkg_short_errors_supported=no
371 fi[]dnl
372 ])dnl _PKG_SHORT_ERRORS_SUPPORTED
373
374
375 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
376 dnl [ACTION-IF-NOT-FOUND])
377 dnl --------------------------------------------------------------
378 dnl Since: 0.4.0
379 dnl
380 dnl Note that if there is a possibility the first call to
381 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
382 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
383 AC_DEFUN([PKG_CHECK_MODULES],
384 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
385 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
386 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
387
388 pkg_failed=no
389 AC_MSG_CHECKING([for $2])
390
391 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
392 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
393
394 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
395 and $1[]_LIBS to avoid the need to call pkg-config.
396 See the pkg-config man page for more details.])
397
398 if test $pkg_failed = yes; then
399 AC_MSG_RESULT([no])
400 _PKG_SHORT_ERRORS_SUPPORTED
401 if test $_pkg_short_errors_supported = yes; then
402 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
403 else
404 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
405 fi
406 # Put the nasty error message in config.log where it belongs
407 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
408
409 m4_default([$4], [AC_MSG_ERROR(
410 [Package requirements ($2) were not met:
411
412 $$1_PKG_ERRORS
413
414 Consider adjusting the PKG_CONFIG_PATH environment variable if you
415 installed software in a non-standard prefix.
416
417 _PKG_TEXT])[]dnl
418 ])
419 elif test $pkg_failed = untried; then
420 AC_MSG_RESULT([no])
421 m4_default([$4], [AC_MSG_FAILURE(
422 [The pkg-config script could not be found or is too old. Make sure it
423 is in your PATH or set the PKG_CONFIG environment variable to the full
424 path to pkg-config.
425
426 _PKG_TEXT
427
428 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
429 ])
430 else
431 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
432 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
433 AC_MSG_RESULT([yes])
434 $3
435 fi[]dnl
436 ])dnl PKG_CHECK_MODULES
437
438
439 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
440 dnl [ACTION-IF-NOT-FOUND])
441 dnl ---------------------------------------------------------------------
442 dnl Since: 0.29
443 dnl
444 dnl Checks for existence of MODULES and gathers its build flags with
445 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
446 dnl and VARIABLE-PREFIX_LIBS from --libs.
447 dnl
448 dnl Note that if there is a possibility the first call to
449 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
450 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
451 dnl configure.ac.
452 AC_DEFUN([PKG_CHECK_MODULES_STATIC],
453 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
454 _save_PKG_CONFIG=$PKG_CONFIG
455 PKG_CONFIG="$PKG_CONFIG --static"
456 PKG_CHECK_MODULES($@)
457 PKG_CONFIG=$_save_PKG_CONFIG[]dnl
458 ])dnl PKG_CHECK_MODULES_STATIC
459
460
461 dnl PKG_INSTALLDIR([DIRECTORY])
462 dnl -------------------------
463 dnl Since: 0.27
464 dnl
465 dnl Substitutes the variable pkgconfigdir as the location where a module
466 dnl should install pkg-config .pc files. By default the directory is
467 dnl $libdir/pkgconfig, but the default can be changed by passing
468 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
469 dnl parameter.
470 AC_DEFUN([PKG_INSTALLDIR],
471 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
472 m4_pushdef([pkg_description],
473 [pkg-config installation directory @<:@]pkg_default[@:>@])
474 AC_ARG_WITH([pkgconfigdir],
475 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
476 [with_pkgconfigdir=]pkg_default)
477 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
478 m4_popdef([pkg_default])
479 m4_popdef([pkg_description])
480 ])dnl PKG_INSTALLDIR
481
482
483 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
484 dnl --------------------------------
485 dnl Since: 0.27
486 dnl
487 dnl Substitutes the variable noarch_pkgconfigdir as the location where a
488 dnl module should install arch-independent pkg-config .pc files. By
489 dnl default the directory is $datadir/pkgconfig, but the default can be
490 dnl changed by passing DIRECTORY. The user can override through the
491 dnl --with-noarch-pkgconfigdir parameter.
492 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
493 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
494 m4_pushdef([pkg_description],
495 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
496 AC_ARG_WITH([noarch-pkgconfigdir],
497 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
498 [with_noarch_pkgconfigdir=]pkg_default)
499 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
500 m4_popdef([pkg_default])
501 m4_popdef([pkg_description])
502 ])dnl PKG_NOARCH_INSTALLDIR
503
504
505 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
506 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
507 dnl -------------------------------------------
508 dnl Since: 0.28
509 dnl
510 dnl Retrieves the value of the pkg-config variable for the given module.
511 AC_DEFUN([PKG_CHECK_VAR],
512 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
513 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
514
515 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
516 AS_VAR_COPY([$1], [pkg_cv_][$1])
517
518 AS_VAR_IF([$1], [""], [$5], [$4])dnl
519 ])dnl PKG_CHECK_VAR
520
521 dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES,
522 dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND],
523 dnl [DESCRIPTION], [DEFAULT])
524 dnl ------------------------------------------
525 dnl
526 dnl Prepare a "--with-" configure option using the lowercase
527 dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and
528 dnl PKG_CHECK_MODULES in a single macro.
529 AC_DEFUN([PKG_WITH_MODULES],
530 [
531 m4_pushdef([with_arg], m4_tolower([$1]))
532
533 m4_pushdef([description],
534 [m4_default([$5], [build with ]with_arg[ support])])
535
536 m4_pushdef([def_arg], [m4_default([$6], [auto])])
537 m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes])
538 m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no])
539
540 m4_case(def_arg,
541 [yes],[m4_pushdef([with_without], [--without-]with_arg)],
542 [m4_pushdef([with_without],[--with-]with_arg)])
543
544 AC_ARG_WITH(with_arg,
545 AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),,
546 [AS_TR_SH([with_]with_arg)=def_arg])
547
548 AS_CASE([$AS_TR_SH([with_]with_arg)],
549 [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)],
550 [auto],[PKG_CHECK_MODULES([$1],[$2],
551 [m4_n([def_action_if_found]) $3],
552 [m4_n([def_action_if_not_found]) $4])])
553
554 m4_popdef([with_arg])
555 m4_popdef([description])
556 m4_popdef([def_arg])
557
558 ])dnl PKG_WITH_MODULES
559
560 dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
561 dnl [DESCRIPTION], [DEFAULT])
562 dnl -----------------------------------------------
563 dnl
564 dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES
565 dnl check._[VARIABLE-PREFIX] is exported as make variable.
566 AC_DEFUN([PKG_HAVE_WITH_MODULES],
567 [
568 PKG_WITH_MODULES([$1],[$2],,,[$3],[$4])
569
570 AM_CONDITIONAL([HAVE_][$1],
571 [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"])
572 ])dnl PKG_HAVE_WITH_MODULES
573
574 dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
575 dnl [DESCRIPTION], [DEFAULT])
576 dnl ------------------------------------------------------
577 dnl
578 dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after
579 dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make
580 dnl and preprocessor variable.
581 AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES],
582 [
583 PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4])
584
585 AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"],
586 [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])])
587 ])dnl PKG_HAVE_DEFINE_WITH_MODULES
588
589 dnl Copyright (c) 2002-2015
590 dnl The Xfce development team. All rights reserved.
591 dnl
592 dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
593 dnl
594 dnl This program is free software; you can redistribute it and/or modify
595 dnl it under the terms of the GNU General Public License as published by
596 dnl the Free Software Foundation; either version 2 of the License, or
597 dnl (at your option) any later version.
598 dnl
599 dnl This program is distributed in the hope that it will be useful,
600 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
601 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
602 dnl GNU General Public License for more details.
603 dnl
604 dnl You should have received a copy of the GNU General Public License along
605 dnl with this program; if not, write to the Free Software Foundation, Inc.,
606 dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
607 dnl
608 dnl xdt-depends
609 dnl -----------
610 dnl Contains M4 macros to check for software dependencies.
611 dnl Partly based on prior work of the XDG contributors.
612 dnl
613
614
615
616 dnl We need recent a autoconf version
617 AC_PREREQ([2.69])
618
619
620
621 dnl XDT_PROG_PKG_CONFIG()
622 dnl
623 dnl Checks for the freedesktop.org pkg-config
624 dnl utility and sets the PKG_CONFIG environment
625 dnl variable to the full path if found.
626 dnl
627 AC_DEFUN([XDT_PROG_PKG_CONFIG],
628 [
629 # minimum supported version of pkg-config
630 xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
631
632 m4_ifdef([PKG_PROG_PKG_CONFIG],
633 [
634 PKG_PROG_PKG_CONFIG([$xdt_cv_PKG_CONFIG_MIN_VERSION])
635
636 if test x"$PKG_CONFIG" = x""; then
637 echo
638 echo "*** Your version of pkg-config is too old. You need atleast"
639 echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
640 echo "*** from the freedesktop.org software repository at"
641 echo "***"
642 echo "*** https://www.freedesktop.org/wiki/Software/pkg-config/"
643 echo "***"
644 exit 1;
645 fi
646 ],
647 [
648 echo
649 echo "*** The pkg-config utility could not be found on your system."
650 echo "*** Make sure it is in your path, or set the PKG_CONFIG"
651 echo "*** environment variable to the full path to pkg-config."
652 echo "*** You can download pkg-config from the freedesktop.org"
653 echo "*** software repository at"
654 echo "***"
655 echo "*** https://www.freedesktop.org/wiki/Software/pkg-config/"
656 echo "***"
657 exit 1
658 ])
659 ])
660
661
662
663 dnl XDT_CHECK_PACKAGE(varname, package, version, [action-if], [action-if-not])
664 dnl
665 dnl Checks if "package" >= "version" is installed on the
666 dnl target system, using the pkg-config utility. If the
667 dnl dependency is met, "varname"_CFLAGS, "varname"_LIBS,
668 dnl "varname"_VERSION and "varname"_REQUIRED_VERSION
669 dnl will be set and marked for substition.
670 dnl
671 dnl "varname"_REQUIRED_VERSION will be set to the value of
672 dnl "version". This is mostly useful to automatically
673 dnl place the correct version information into the RPM
674 dnl .spec file.
675 dnl
676 dnl In addition, if the dependency is met, "action-if" will
677 dnl be executed if given.
678 dnl
679 dnl If the package check fails, "action-if-not" will be
680 dnl executed. If this parameter isn't specified, a diagnostic
681 dnl message will be printed and the configure script will
682 dnl be terminated with exit code 1.
683 dnl
684 AC_DEFUN([XDT_CHECK_PACKAGE],
685 [
686 XDT_PROG_PKG_CONFIG()
687
688 AC_MSG_CHECKING([for $2 >= $3])
689 if $PKG_CONFIG "--atleast-version=$3" "$2" >/dev/null 2>&1; then
690 $1_VERSION=`$PKG_CONFIG --modversion "$2"`
691 AC_MSG_RESULT([$$1_VERSION])
692
693 AC_MSG_CHECKING([$1_CFLAGS])
694 $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
695 AC_MSG_RESULT([$$1_CFLAGS])
696
697 AC_MSG_CHECKING([$1_LIBS])
698 $1_LIBS=`$PKG_CONFIG --libs "$2"`
699 AC_MSG_RESULT([$$1_LIBS])
700
701 $1_REQUIRED_VERSION=$3
702
703 AC_SUBST([$1_VERSION])
704 AC_SUBST([$1_CFLAGS])
705 AC_SUBST([$1_LIBS])
706 AC_SUBST([$1_REQUIRED_VERSION])
707
708 if test x"$1" = x"GLIB"; then
709 dnl Use GLib structured logging, see https://docs.gtk.org/glib/logging.html
710 dnl XFCE apps&libraries can override this setting after XDT_CHECK_PACKAGE(GLIB)
711 dnl using AC_DEFINE.
712 dnl Note that it requires GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_56 to work
713 dnl properly in GLib logging macros (not documented, see glib/gmessages.h).
714 AC_DEFINE(G_LOG_USE_STRUCTURED, 1, [Use GLib structured logging])
715 fi
716
717 ifelse([$1], GLIB, [
718 dnl Report uses of GLib functions newer than $3 as C compiler warnings.
719 dnl XFCE apps&libraries can override this setting after XDT_CHECK_PACKAGE(GLIB)
720 dnl using AC_DEFINE, in which case it is recommended to override both MAX and MIN.
721 AC_MSG_NOTICE([setting GLIB_VERSION_MAX_ALLOWED and GLIB_VERSION_MIN_REQUIRED according to $3])
722 m4_pushdef([SUFFIX], translit($3, `.', `_'))
723 m4_define([SUFFIX], ifelse(regexp(SUFFIX, [[0-9]+_[0-9]+_[0-9]+]), -1, SUFFIX, patsubst(SUFFIX, [_[0-9]+$])))
724 AC_DEFINE(GLIB_VERSION_MAX_ALLOWED, m4_format(GLIB_VERSION_%s, SUFFIX), m4_format(Prevent post %s APIs, SUFFIX))
725 AC_DEFINE(GLIB_VERSION_MIN_REQUIRED, m4_format(GLIB_VERSION_%s, SUFFIX), m4_format(Ignore post %s APIs, SUFFIX))
726 m4_popdef([SUFFIX])
727 ])
728
729 ifelse([$4], , , [$4])
730 elif $PKG_CONFIG --exists "$2" >/dev/null 2>&1; then
731 xdt_cv_version=`$PKG_CONFIG --modversion "$2"`
732 AC_MSG_RESULT([found, but $xdt_cv_version])
733
734 ifelse([$5], ,
735 [
736 echo "*** The required package $2 was found on your system,"
737 echo "*** but the installed version ($xdt_cv_version) is too old."
738 echo "*** Please upgrade $2 to atleast version $3, or adjust"
739 echo "*** the PKG_CONFIG_PATH environment variable if you installed"
740 echo "*** the new version of the package in a nonstandard prefix so"
741 echo "*** pkg-config is able to find it."
742 exit 1
743 ], [$5])
744 else
745 AC_MSG_RESULT([not found])
746
747 ifelse([$5], ,
748 [
749 echo "*** The required package $2 was not found on your system."
750 echo "*** Please install $2 (atleast version $3) or adjust"
751 echo "*** the PKG_CONFIG_PATH environment variable if you"
752 echo "*** installed the package in a nonstandard prefix so that"
753 echo "*** pkg-config is able to find it."
754 exit 1
755 ], [$5])
756 fi
757 ])
758
759
760
761 dnl XDT_CHECK_OPTIONAL_PACKAGE(varname, package, version, optionname, helpstring, [default])
762 dnl
763 dnl Checks for an optional dependency on "package" >= "version". "default"
764 dnl can be "yes" or "no" (defaults to "yes" if not specified) and controls
765 dnl whether configure should check this dependency by default, or only if
766 dnl the user explicitly enables it using a command line switch.
767 dnl
768 dnl This macro automatically adds a commandline switch based on the "optionname"
769 dnl parameter (--enable-optionname/--disable-optionname), which allows the
770 dnl user to explicitly control whether this optional dependency should be
771 dnl enabled or not. The "helpstring" parameter gives a brief(!) description
772 dnl about this dependency.
773 dnl
774 dnl If the user chose to enable this dependency and the required package
775 dnl was found, this macro defines the variable "varname"_FOUND and sets it
776 dnl to the string "yes", in addition to the 4 variables set by XDT_CHECK_PACKAGE.
777 dnl But "varname"_FOUND will not be marked for substition. Furthermore,
778 dnl a CPP define HAVE_"varname" will be placed in config.h (or added to
779 dnl the cc command line, depending on your configure.ac) and set to
780 dnl 1.
781 dnl
782 AC_DEFUN([XDT_CHECK_OPTIONAL_PACKAGE],
783 [
784 AC_REQUIRE([XDT_PROG_PKG_CONFIG])
785
786 AC_ARG_ENABLE([$4],
787 AS_HELP_STRING([--enable-$4],[Enable checking for $5 (default=m4_default([$6], [yes]))])
788 AS_HELP_STRING([--disable-$4],[Disable checking for $5]),
789 [xdt_cv_$1_check=$enableval], [xdt_cv_$1_check=m4_default([$6], [yes])])
790
791 if test x"$xdt_cv_$1_check" = x"yes"; then
792 if $PKG_CONFIG --exists "$2 >= $3" >/dev/null 2>&1; then
793 XDT_CHECK_PACKAGE([$1], [$2], [$3],
794 [
795 AC_DEFINE([HAVE_$1], [1], [Define if $2 >= $3 present])
796 $1_FOUND="yes"
797 ])
798 else
799 AC_MSG_CHECKING([for optional package $2 >= $3])
800 AC_MSG_RESULT([not found])
801 fi
802 else
803 AC_MSG_CHECKING([for optional package $2])
804 AC_MSG_RESULT([disabled])
805 fi
806
807 AM_CONDITIONAL([HAVE_$1], [test x"$$1_FOUND" = x"yes"])
808 ])
809
810
811
812 dnl XDT_CHECK_LIBX11()
813 dnl
814 dnl Executes various checks for X11. Sets LIBX11_CFLAGS, LIBX11_LDFLAGS
815 dnl and LIBX11_LIBS (and marks them for substitution). In addition
816 dnl HAVE_LIBX11 is set to 1 in config.h, if the X window system and
817 dnl the development files are detected on the target system.
818 dnl
819 AC_DEFUN([XDT_CHECK_LIBX11],
820 [
821 AC_REQUIRE([AC_PATH_XTRA])
822
823 LIBX11_CFLAGS= LIBX11_LDFLAGS= LIBX11_LIBS=
824 if test x"$no_x" != x"yes"; then
825 AC_CHECK_LIB([X11], [main],
826 [
827 AC_DEFINE([HAVE_LIBX11], [1], [Define if libX11 is available])
828 LIBX11_CFLAGS="$X_CFLAGS"
829 for option in $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS; do
830 case "$option" in
831 -L*)
832 path=`echo $option | sed 's/^-L//'`
833 if test x"$path" != x""; then
834 LIBX11_LDFLAGS="$LIBX11_LDFLAGS -L$path"
835 fi
836 ;;
837 *)
838 LIBX11_LIBS="$LIBX11_LIBS $option"
839 ;;
840 esac
841 done
842 if ! echo $LIBX11_LIBS | grep -- '-lX11' >/dev/null; then
843 LIBX11_LIBS="$LIBX11_LIBS -lX11"
844 fi
845 ], [], [$X_CFLAGS $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS])
846 fi
847 AC_SUBST([LIBX11_CFLAGS])
848 AC_SUBST([LIBX11_LDFLAGS])
849 AC_SUBST([LIBX11_LIBS])
850 ])
851
852
853
854 dnl XDT_CHECK_LIBX11_REQUIRE()
855 dnl
856 dnl Similar to XDT_CHECK_LIBX11(), but terminates with an error if
857 dnl the X window system and development files aren't detected on the
858 dnl target system.
859 dnl
860 AC_DEFUN([XDT_CHECK_LIBX11_REQUIRE],
861 [
862 AC_REQUIRE([XDT_CHECK_LIBX11])
863
864 if test x"$no_x" = x"yes"; then
865 AC_MSG_ERROR([X Window system libraries and header files are required])
866 fi
867 ])
868
869
870
871 dnl XDT_CHECK_LIBSM()
872 dnl
873 dnl Checks whether the session management library is present on the
874 dnl target system, and sets LIBSM_CFLAGS, LIBSM_LDFLAGS and LIBSM_LIBS
875 dnl properly. In addition, HAVE_LIBSM will be set to 1 in config.h
876 dnl if libSM is detected.
877 dnl
878 AC_DEFUN([XDT_CHECK_LIBSM],
879 [
880 AC_REQUIRE([XDT_CHECK_LIBX11])
881
882 LIBSM_CFLAGS= LIBSM_LDFLAGS= LIBSM_LIBS=
883 if test x"$no_x" != x"yes"; then
884 AC_CHECK_LIB([SM], [SmcSaveYourselfDone],
885 [
886 AC_DEFINE([HAVE_LIBSM], [1], [Define if libSM is available])
887 LIBSM_CFLAGS="$LIBX11_CFLAGS"
888 LIBSM_LDFLAGS="$LIBX11_LDFLAGS"
889 LIBSM_LIBS="$LIBX11_LIBS"
890 if ! echo $LIBSM_LIBS | grep -- '-lSM' >/dev/null; then
891 LIBSM_LIBS="$LIBSM_LIBS -lSM -lICE"
892 fi
893 ], [], [$LIBX11_CFLAGS $LIBX11_LDFLAGS $LIBX11_LIBS -lICE])
894 fi
895 AC_SUBST([LIBSM_CFLAGS])
896 AC_SUBST([LIBSM_LDFLAGS])
897 AC_SUBST([LIBSM_LIBS])
898 ])
899
900
901
902 dnl XDT_CHECK_LIBXPM()
903 dnl
904 dnl Checks if the Xpm library is present on the target system, and
905 dnl sets LIBXPM_CFLAGS, LIBXPM_LDFLAGS and LIBXPM_LIBS. In addition,
906 dnl HAVE_LIBXPM will be set to 1 in config.h if libXpm is detected.
907 dnl
908 AC_DEFUN([XDT_CHECK_LIBXPM],
909 [
910 AC_REQUIRE([XDT_CHECK_LIBX11])
911
912 LIBXPM_CFLAGS= LIBXPM_LDFLAGS= LIBXPM_LIBS=
913 if test "$no_x" != "yes"; then
914 AC_CHECK_LIB([Xpm], [main],
915 [
916 AC_DEFINE([HAVE_LIBXPM], [1], [Define if libXpm is available])
917 LIBXPM_CFLAGS="$LIBX11_CFLAGS"
918 LIBXPM_LDFLAGS="$LIBX11_LDFLAGS"
919 LIBXPM_LIBS="$LIBX11_LIBS"
920 if ! echo $LIBXPM_LIBS | grep -- '-lXpm' >/dev/null; then
921 LIBXPM_LIBS="$LIBXPM_LIBS -lXpm"
922 fi
923 ], [], [$LIBX11_CFLAGS $LIBX11_LDFLAGS $LIBX11_LIBS -lXpm])
924 fi
925 AC_SUBST([LIBXPM_CFLAGS])
926 AC_SUBST([LIBXPM_LDFLAGS])
927 AC_SUBST([LIBXPM_LIBS])
928 ])
929
930
931
932 dnl XDT_CHECK_LIBXPM_REQUIRE()
933 dnl
934 dnl Similar to XDT_CHECK_LIBXPM(), but fails if the Xpm library isn't
935 dnl present on the target system.
936 dnl
937 AC_DEFUN([XDT_CHECK_LIBXPM_REQUIRE],
938 [
939 AC_REQUIRE([XDT_CHECK_LIBX11_REQUIRE])
940 AC_REQUIRE([XDT_CHECK_LIBXPM])
941
942 if test x"$LIBXPM_LIBS" = x""; then
943 AC_MSG_ERROR([The Xpm library was not found on your system])
944 fi
945 ])
946
947
948 dnl Copyright (c) 2002-2015
949 dnl The Xfce development team. All rights reserved.
950 dnl
951 dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
952 dnl
953 dnl This program is free software; you can redistribute it and/or modify
954 dnl it under the terms of the GNU General Public License as published by
955 dnl the Free Software Foundation; either version 2 of the License, or
956 dnl (at your option) any later version.
957 dnl
958 dnl This program is distributed in the hope that it will be useful,
959 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
960 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
961 dnl GNU General Public License for more details.
962 dnl
963 dnl You should have received a copy of the GNU General Public License along
964 dnl with this program; if not, write to the Free Software Foundation, Inc.,
965 dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
966 dnl
967 dnl xdt-depends
968 dnl -----------
969 dnl Contains M4 macros to check for software dependencies.
970 dnl Partly based on prior work of the XDG contributors.
971 dnl
972
973
974
975 dnl We need recent a autoconf version
976 AC_PREREQ([2.69])
977
978
979 dnl XDT_SUPPORTED_FLAGS(VAR, FLAGS)
980 dnl
981 dnl For each token in FLAGS, checks to be sure the compiler supports
982 dnl the flag, and if so, adds each one to VAR.
983 dnl
984 AC_DEFUN([XDT_SUPPORTED_FLAGS],
985 [
986 for flag in $2; do
987 AC_MSG_CHECKING([if $CC supports $flag])
988 saved_CFLAGS="$CFLAGS"
989 CFLAGS="$CFLAGS $flag"
990 AC_COMPILE_IFELSE([AC_LANG_SOURCE([ ])], [flag_supported=yes], [flag_supported=no])
991 CFLAGS="$saved_CFLAGS"
992 AC_MSG_RESULT([$flag_supported])
993
994 if test "x$flag_supported" = "xyes"; then
995 $1="$$1 $flag"
996 fi
997 done
998 ])
999
1000
1001
1002 dnl XDT_FEATURE_DEBUG(default_level=minimum)
1003 dnl
1004 AC_DEFUN([XDT_FEATURE_DEBUG],
1005 [
1006 dnl weird indentation to keep output indentation correct
1007 AC_ARG_ENABLE([debug],
1008 AS_HELP_STRING([--enable-debug@<:@=no|minimum|yes|full@:>@],[Build with debugging support @<:@default=m4_default([$1], [minimum])@:>@])
1009 AS_HELP_STRING([--disable-debug],[Include no debugging support]),
1010 [enable_debug=$enableval], [enable_debug=m4_default([$1], [minimum])])
1011
1012 dnl Enable most warnings regardless of debug level. Common flags for both C and C++.
1013 xdt_cv_additional_COMMON_FLAGS="-Wall -Wextra \
1014 -Wno-missing-field-initializers \
1015 -Wno-unused-parameter \
1016 -Wmissing-declarations \
1017 -Wmissing-noreturn -Wpointer-arith \
1018 -Wcast-align -Wformat -Wformat-security -Wformat-y2k \
1019 -Winit-self -Wmissing-include-dirs -Wundef \
1020 -Wredundant-decls"
1021
1022 AC_MSG_CHECKING([whether to build with debugging support])
1023 if test x"$enable_debug" = x"full" -o x"$enable_debug" = x"yes"; then
1024 AC_DEFINE([DEBUG], [1], [Define for debugging support])
1025
1026 CPPFLAGS="$CPPFLAGS"
1027
1028 if test x`uname` = x"Linux"; then
1029 xdt_cv_additional_COMMON_FLAGS="$xdt_cv_additional_COMMON_FLAGS -fstack-protector"
1030 fi
1031
1032 if test x"$enable_debug" = x"full"; then
1033 AC_DEFINE([DEBUG_TRACE], [1], [Define for tracing support])
1034 xdt_cv_additional_COMMON_FLAGS="$xdt_cv_additional_COMMON_FLAGS -O0 -g"
1035 CPPFLAGS="$CPPFLAGS -DG_ENABLE_DEBUG"
1036 AC_MSG_RESULT([full])
1037 else
1038 xdt_cv_additional_COMMON_FLAGS="$xdt_cv_additional_COMMON_FLAGS -g -Wshadow"
1039 AC_MSG_RESULT([yes])
1040 fi
1041 else
1042 xdt_cv_additional_COMMON_FLAGS="$xdt_cv_additional_COMMON_FLAGS -Wshadow"
1043 CPPFLAGS="$CPPFLAGS -DNDEBUG"
1044
1045 if test x"$enable_debug" = x"no"; then
1046 CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT"
1047 AC_MSG_RESULT([no])
1048 else
1049 AC_MSG_RESULT([minimum])
1050 fi
1051 fi
1052
1053 xdt_cv_additional_CFLAGS="$xdt_cv_additional_COMMON_FLAGS \
1054 -Wdeclaration-after-statement \
1055 -Wnested-externs \
1056 -Wold-style-definition"
1057 xdt_cv_additional_CXXFLAGS="$xdt_cv_additional_COMMON_FLAGS"
1058
1059 XDT_SUPPORTED_FLAGS([supported_CFLAGS], [$xdt_cv_additional_CFLAGS])
1060 XDT_SUPPORTED_FLAGS([supported_CXXFLAGS], [$xdt_cv_additional_CXXFLAGS])
1061
1062 CFLAGS="$CFLAGS $supported_CFLAGS"
1063 CXXFLAGS="$CXXFLAGS $supported_CXXFLAGS"
1064 ])
1065
1066
1067 dnl XDT_FEATURE_VISIBILITY()
1068 dnl
1069 dnl Checks to see if the compiler supports the 'visibility' attribute
1070 dnl If so, adds -DHAVE_GNUC_VISIBILTY to CPPFLAGS. Also sets the
1071 dnl automake conditional HAVE_GNUC_VISIBILITY.
1072 dnl
1073 AC_DEFUN([XDT_FEATURE_VISIBILITY],
1074 [
1075 AC_ARG_ENABLE([visibility],
1076 AS_HELP_STRING([--disable-visibility],[Don't use ELF visibility attributes]),
1077 [enable_visibility=$enableval], [enable_visibility=yes])
1078 have_gnuc_visibility=no
1079 if test "x$enable_visibility" != "xno"; then
1080 XDT_SUPPORTED_FLAGS([xdt_vis_test_cflags], [-Wall -Werror -Wno-unused-parameter])
1081 saved_CFLAGS="$CFLAGS"
1082 CFLAGS="$CFLAGS $xdt_vis_test_cflags"
1083 AC_MSG_CHECKING([whether $CC supports the GNUC visibility attribute])
1084 AC_COMPILE_IFELSE([AC_LANG_SOURCE(
1085 [
1086 void test_default (void);
1087 void test_hidden (void);
1088
1089 void __attribute__ ((visibility("default"))) test_default (void) {}
1090 void __attribute__ ((visibility("hidden"))) test_hidden (void) {}
1091
1092 int main (int argc, char **argv) {
1093 test_default ();
1094 test_hidden ();
1095 return 0;
1096 }
1097 ])],
1098 [
1099 have_gnuc_visibility=yes
1100 AC_MSG_RESULT([yes])
1101 ],
1102 [
1103 AC_MSG_RESULT([no])
1104 ])
1105 CFLAGS="$saved_CFLAGS"
1106 fi
1107
1108 if test "x$have_gnuc_visibility" = "xyes"; then
1109 CPPFLAGS="$CPPFLAGS -DHAVE_GNUC_VISIBILITY"
1110 xdt_vis_hidden_cflags=""
1111 XDT_SUPPORTED_FLAGS([xdt_vis_hidden_cflags], [-xldscope=hidden])
1112 if test "x$xdt_vis_hidden_cflags" = "x"; then
1113 XDT_SUPPORTED_FLAGS([xdt_vis_hidden_cflags], [-fvisibility=hidden])
1114 fi
1115 CFLAGS="$CFLAGS $xdt_vis_hidden_cflags"
1116 fi
1117
1118 AM_CONDITIONAL([HAVE_GNUC_VISIBILITY], [test "x$have_gnuc_visibility" = "xyes"])
1119 ])
1120
1121 dnl XDT_FEATURE_LINKER_OPTS
1122 dnl
1123 dnl Checks for and enables any special linker optimizations.
1124 dnl
1125 AC_DEFUN([XDT_FEATURE_LINKER_OPTS],
1126 [
1127 AC_ARG_ENABLE([linker-opts],
1128 AS_HELP_STRING([--disable-linker-opts],[Disable linker optimizations]),
1129 [enable_linker_opts=$enableval], [enable_linker_opts=yes])
1130
1131 if test "x$enable_linker_opts" != "xno"; then
1132 if test x`uname` != x"OpenBSD"; then
1133 AC_MSG_CHECKING([whether $LD accepts --as-needed])
1134 case `$LD --as-needed -v 2>&1 </dev/null` in
1135 *GNU* | *'with BFD'*)
1136 LDFLAGS="$LDFLAGS -Wl,--as-needed"
1137 AC_MSG_RESULT([yes])
1138 ;;
1139 *)
1140 AC_MSG_RESULT([no])
1141 ;;
1142 esac
1143 fi
1144 AC_MSG_CHECKING([whether $LD accepts -O1])
1145 case `$LD -O1 -v 2>&1 </dev/null` in
1146 *GNU* | *'with BFD'*)
1147 LDFLAGS="$LDFLAGS -Wl,-O1"
1148 AC_MSG_RESULT([yes])
1149 ;;
1150 *)
1151 AC_MSG_RESULT([no])
1152 ;;
1153 esac
1154 fi
1155 ])
1156
1157 dnl Copyright (c) 2002-2015
1158 dnl The Xfce development team. All rights reserved.
1159 dnl
1160 dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
1161 dnl
1162 dnl This program is free software; you can redistribute it and/or modify
1163 dnl it under the terms of the GNU General Public License as published by
1164 dnl the Free Software Foundation; either version 2 of the License, or
1165 dnl (at your option) any later version.
1166 dnl
1167 dnl This program is distributed in the hope that it will be useful,
1168 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
1169 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1170 dnl GNU General Public License for more details.
1171 dnl
1172 dnl You should have received a copy of the GNU General Public License along
1173 dnl with this program; if not, write to the Free Software Foundation, Inc.,
1174 dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1175 dnl
1176 dnl xdt-i18n
1177 dnl --------
1178 dnl Internalization M4 macros.
1179 dnl
1180
1181
1182 dnl XDT_I18N([LINGUAS][, PACKAGE])
1183 dnl
1184 dnl This macro takes care of setting up everything for i18n support.
1185 dnl
1186 dnl If LINGUAS isn't specified, it will automatically extract the linguas
1187 dnl from po/*.po.
1188 dnl
1189 dnl If PACKAGE isn't specified, it defaults to the package tarname; see
1190 dnl the description of AC_INIT() for an explanation of what makes up
1191 dnl the package tarname. Normally, you don't need to specify PACKAGE,
1192 dnl but you can stick with the default.
1193 dnl
1194 AC_DEFUN([XDT_I18N],
1195 [
1196 dnl Substitute GETTEXT_PACKAGE variable
1197 GETTEXT_PACKAGE=m4_default([$2], [AC_PACKAGE_TARNAME()])
1198 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Name of default gettext domain])
1199 AC_SUBST([GETTEXT_PACKAGE])
1200
1201 dnl gettext and stuff
1202 ALL_LINGUAS="m4_ifblank(
1203 [$1],
1204 [esyscmd([echo $(for i in po/*.po; do test -e "$i" && basename -- "$i" .po; done) | tr -d '\n'])],
1205 [$1])"
1206
1207 dnl This is required on some Linux systems
1208 AC_CHECK_FUNC([bind_textdomain_codeset])
1209
1210 dnl Determine where to install locale files
1211 AC_MSG_CHECKING([for locales directory])
1212 AC_ARG_WITH([locales-dir],
1213 [
1214 AS_HELP_STRING([--with-locales-dir=DIR],[Install locales into DIR])
1215 ], [localedir=$withval],
1216 [
1217 if test x"$CATOBJEXT" = x".mo"; then
1218 localedir=$libdir/locale
1219 else
1220 localedir=$datarootdir/locale
1221 fi
1222 ])
1223 AC_MSG_RESULT([$localedir])
1224 AC_SUBST([localedir])
1225 ])
1226
211227
221228 # Copyright (C) 2002-2021 Free Software Foundation, Inc.
231229 #
11832389 AC_SUBST([am__untar])
11842390 ]) # _AM_PROG_TAR
11852391
1186 # Copyright (C) 1995-2002 Free Software Foundation, Inc.
1187 # Copyright (C) 2001-2003,2004 Red Hat, Inc.
1188 #
1189 # This file is free software, distributed under the terms of the GNU
1190 # General Public License. As a special exception to the GNU General
1191 # Public License, this file may be distributed as part of a program
1192 # that contains a configuration script generated by Autoconf, under
1193 # the same distribution terms as the rest of that program.
1194 #
1195 # This file can be copied and used freely without restrictions. It can
1196 # be used in projects which are not available under the GNU Public License
1197 # but which still want to provide support for the GNU gettext functionality.
1198 #
1199 # Macro to add for using GNU gettext.
1200 # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
1201 #
1202 # Modified to never use included libintl.
1203 # Owen Taylor <otaylor@redhat.com>, 12/15/1998
1204 #
1205 # Major rework to remove unused code
1206 # Owen Taylor <otaylor@redhat.com>, 12/11/2002
1207 #
1208 # Added better handling of ALL_LINGUAS from GNU gettext version
1209 # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
1210 #
1211 # Modified to require ngettext
1212 # Matthias Clasen <mclasen@redhat.com> 08/06/2004
1213
1214 # Increment this whenever this file is changed.
1215 #serial 1
1216
1217 # We need this here as well, since someone might use autoconf-2.5x
1218 # to configure GLib then an older version to configure a package
1219 # using AM_GLIB_GNU_GETTEXT
1220 AC_PREREQ(2.53)
1221
1222 dnl
1223 dnl We go to great lengths to make sure that aclocal won't
1224 dnl try to pull in the installed version of these macros
1225 dnl when running aclocal in the glib directory.
1226 dnl
1227 m4_copy([AC_DEFUN],[glib_DEFUN])
1228 m4_copy([AC_REQUIRE],[glib_REQUIRE])
1229 dnl
1230 dnl At the end, if we're not within glib, we'll define the public
1231 dnl definitions in terms of our private definitions.
1232 dnl
1233
1234 # GLIB_LC_MESSAGES
1235 #--------------------
1236 glib_DEFUN([GLIB_LC_MESSAGES],
1237 [AC_CHECK_HEADERS([locale.h])
1238 if test $ac_cv_header_locale_h = yes; then
1239 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
1240 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
1241 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
1242 if test $am_cv_val_LC_MESSAGES = yes; then
1243 AC_DEFINE(HAVE_LC_MESSAGES, 1,
1244 [Define if your <locale.h> file defines LC_MESSAGES.])
1245 fi
1246 fi])
1247
1248 # GLIB_PATH_PROG_WITH_TEST
1249 #----------------------------
1250 dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
1251 dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
1252 glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
1253 [# Extract the first word of "$2", so it can be a program name with args.
1254 set dummy $2; ac_word=[$]2
1255 AC_MSG_CHECKING([for $ac_word])
1256 AC_CACHE_VAL(ac_cv_path_$1,
1257 [case "[$]$1" in
1258 /*)
1259 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
1260 ;;
1261 *)
1262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1263 for ac_dir in ifelse([$5], , $PATH, [$5]); do
1264 test -z "$ac_dir" && ac_dir=.
1265 if test -f $ac_dir/$ac_word; then
1266 if [$3]; then
1267 ac_cv_path_$1="$ac_dir/$ac_word"
1268 break
1269 fi
1270 fi
1271 done
1272 IFS="$ac_save_ifs"
1273 dnl If no 4th arg is given, leave the cache variable unset,
1274 dnl so AC_PATH_PROGS will keep looking.
1275 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
1276 ])dnl
1277 ;;
1278 esac])dnl
1279 $1="$ac_cv_path_$1"
1280 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
1281 AC_MSG_RESULT([$]$1)
1282 else
1283 AC_MSG_RESULT(no)
1284 fi
1285 AC_SUBST($1)dnl
1286 ])
1287
1288 dnl Checks for special options needed on Mac OS X.
1289 dnl Defines INTL_MACOSX_LIBS.
1290 dnl
1291 dnl Copied from intlmacosx.m4 in gettext, GPL.
1292 dnl Copyright (C) 2004-2013 Free Software Foundation, Inc.
1293 glib_DEFUN([glib_gt_INTL_MACOSX],
1294 [
1295 dnl Check for API introduced in Mac OS X 10.2.
1296 AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
1297 [gt_cv_func_CFPreferencesCopyAppValue],
1298 [gt_save_LIBS="$LIBS"
1299 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
1300 AC_LINK_IFELSE(
1301 [AC_LANG_PROGRAM(
1302 [[#include <CoreFoundation/CFPreferences.h>]],
1303 [[CFPreferencesCopyAppValue(NULL, NULL)]])],
1304 [gt_cv_func_CFPreferencesCopyAppValue=yes],
1305 [gt_cv_func_CFPreferencesCopyAppValue=no])
1306 LIBS="$gt_save_LIBS"])
1307 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
1308 AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1],
1309 [Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
1310 fi
1311 dnl Check for API introduced in Mac OS X 10.3.
1312 AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent],
1313 [gt_save_LIBS="$LIBS"
1314 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
1315 AC_LINK_IFELSE(
1316 [AC_LANG_PROGRAM(
1317 [[#include <CoreFoundation/CFLocale.h>]],
1318 [[CFLocaleCopyCurrent();]])],
1319 [gt_cv_func_CFLocaleCopyCurrent=yes],
1320 [gt_cv_func_CFLocaleCopyCurrent=no])
1321 LIBS="$gt_save_LIBS"])
1322 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
1323 AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1],
1324 [Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
1325 fi
1326 INTL_MACOSX_LIBS=
1327 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
1328 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
1329 fi
1330 AC_SUBST([INTL_MACOSX_LIBS])
1331 ])
1332
1333 # GLIB_WITH_NLS
1334 #-----------------
1335 glib_DEFUN([GLIB_WITH_NLS],
1336 dnl NLS is obligatory
1337 [USE_NLS=yes
1338 AC_SUBST(USE_NLS)
1339
1340 gt_cv_have_gettext=no
1341
1342 CATOBJEXT=NONE
1343 XGETTEXT=:
1344 INTLLIBS=
1345
1346 glib_gt_INTL_MACOSX
1347
1348 AC_CHECK_HEADER(libintl.h,
1349 [gt_cv_func_dgettext_libintl="no"
1350 libintl_extra_libs=""
1351
1352 #
1353 # First check in libc
1354 #
1355 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
1356 [AC_TRY_LINK([
1357 #include <libintl.h>
1358 ],
1359 [return !ngettext ("","", 1)],
1360 gt_cv_func_ngettext_libc=yes,
1361 gt_cv_func_ngettext_libc=no)
1362 ])
1363
1364 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
1365 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
1366 [AC_TRY_LINK([
1367 #include <libintl.h>
1368 ],
1369 [return !dgettext ("","")],
1370 gt_cv_func_dgettext_libc=yes,
1371 gt_cv_func_dgettext_libc=no)
1372 ])
1373 fi
1374
1375 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
1376 AC_CHECK_FUNCS(bind_textdomain_codeset)
1377 fi
1378
1379 #
1380 # If we don't have everything we want, check in libintl
1381 #
1382 if test "$gt_cv_func_dgettext_libc" != "yes" \
1383 || test "$gt_cv_func_ngettext_libc" != "yes" \
1384 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
1385
1386 AC_CHECK_LIB(intl, bindtextdomain,
1387 [AC_CHECK_LIB(intl, ngettext,
1388 [AC_CHECK_LIB(intl, dgettext,
1389 gt_cv_func_dgettext_libintl=yes)])])
1390
1391 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
1392 AC_MSG_CHECKING([if -liconv is needed to use gettext])
1393 AC_MSG_RESULT([])
1394 AC_CHECK_LIB(intl, ngettext,
1395 [AC_CHECK_LIB(intl, dcgettext,
1396 [gt_cv_func_dgettext_libintl=yes
1397 libintl_extra_libs=-liconv],
1398 :,-liconv)],
1399 :,-liconv)
1400 fi
1401
1402 #
1403 # If we found libintl, then check in it for bind_textdomain_codeset();
1404 # we'll prefer libc if neither have bind_textdomain_codeset(),
1405 # and both have dgettext and ngettext
1406 #
1407 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
1408 glib_save_LIBS="$LIBS"
1409 LIBS="$LIBS -lintl $libintl_extra_libs"
1410 unset ac_cv_func_bind_textdomain_codeset
1411 AC_CHECK_FUNCS(bind_textdomain_codeset)
1412 LIBS="$glib_save_LIBS"
1413
1414 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
1415 gt_cv_func_dgettext_libc=no
1416 else
1417 if test "$gt_cv_func_dgettext_libc" = "yes" \
1418 && test "$gt_cv_func_ngettext_libc" = "yes"; then
1419 gt_cv_func_dgettext_libintl=no
1420 fi
1421 fi
1422 fi
1423 fi
1424
1425 if test "$gt_cv_func_dgettext_libc" = "yes" \
1426 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
1427 gt_cv_have_gettext=yes
1428 fi
1429
1430 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
1431 INTLLIBS="-lintl $libintl_extra_libs $INTL_MACOSX_LIBS"
1432 fi
1433
1434 if test "$gt_cv_have_gettext" = "yes"; then
1435 AC_DEFINE(HAVE_GETTEXT,1,
1436 [Define if the GNU gettext() function is already present or preinstalled.])
1437 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
1438 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
1439 if test "$MSGFMT" != "no"; then
1440 glib_save_LIBS="$LIBS"
1441 LIBS="$LIBS $INTLLIBS"
1442 AC_CHECK_FUNCS(dcgettext)
1443 MSGFMT_OPTS=
1444 AC_MSG_CHECKING([if msgfmt accepts -c])
1445 GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
1446 msgid ""
1447 msgstr ""
1448 "Content-Type: text/plain; charset=UTF-8\n"
1449 "Project-Id-Version: test 1.0\n"
1450 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
1451 "Last-Translator: test <foo@bar.xx>\n"
1452 "Language-Team: C <LL@li.org>\n"
1453 "MIME-Version: 1.0\n"
1454 "Content-Transfer-Encoding: 8bit\n"
1455 ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
1456 AC_SUBST(MSGFMT_OPTS)
1457 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
1458 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
1459 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
1460 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
1461 return _nl_msg_cat_cntr],
1462 [CATOBJEXT=.gmo
1463 DATADIRNAME=share],
1464 [case $host in
1465 *-*-solaris*)
1466 dnl On Solaris, if bind_textdomain_codeset is in libc,
1467 dnl GNU format message catalog is always supported,
1468 dnl since both are added to the libc all together.
1469 dnl Hence, we'd like to go with DATADIRNAME=share and
1470 dnl and CATOBJEXT=.gmo in this case.
1471 AC_CHECK_FUNC(bind_textdomain_codeset,
1472 [CATOBJEXT=.gmo
1473 DATADIRNAME=share],
1474 [CATOBJEXT=.mo
1475 DATADIRNAME=lib])
1476 ;;
1477 *-*-openbsd*)
1478 CATOBJEXT=.mo
1479 DATADIRNAME=share
1480 ;;
1481 *)
1482 CATOBJEXT=.mo
1483 DATADIRNAME=lib
1484 ;;
1485 esac])
1486 LIBS="$glib_save_LIBS"
1487 INSTOBJEXT=.mo
1488 else
1489 gt_cv_have_gettext=no
1490 fi
1491 fi
1492 ])
1493
1494 if test "$gt_cv_have_gettext" = "yes" ; then
1495 AC_DEFINE(ENABLE_NLS, 1,
1496 [always defined to indicate that i18n is enabled])
1497 fi
1498
1499 dnl Test whether we really found GNU xgettext.
1500 if test "$XGETTEXT" != ":"; then
1501 dnl If it is not GNU xgettext we define it as : so that the
1502 dnl Makefiles still can work.
1503 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
1504 : ;
1505 else
1506 AC_MSG_RESULT(
1507 [found xgettext program is not GNU xgettext; ignore it])
1508 XGETTEXT=":"
1509 fi
1510 fi
1511
1512 # We need to process the po/ directory.
1513 POSUB=po
1514
1515 AC_OUTPUT_COMMANDS(
1516 [case "$CONFIG_FILES" in *po/Makefile.in*)
1517 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
1518 esac])
1519
1520 dnl These rules are solely for the distribution goal. While doing this
1521 dnl we only have to keep exactly one list of the available catalogs
1522 dnl in configure.ac.
1523 for lang in $ALL_LINGUAS; do
1524 GMOFILES="$GMOFILES $lang.gmo"
1525 POFILES="$POFILES $lang.po"
1526 done
1527
1528 dnl Make all variables we use known to autoconf.
1529 AC_SUBST(CATALOGS)
1530 AC_SUBST(CATOBJEXT)
1531 AC_SUBST(DATADIRNAME)
1532 AC_SUBST(GMOFILES)
1533 AC_SUBST(INSTOBJEXT)
1534 AC_SUBST(INTLLIBS)
1535 AC_SUBST(PO_IN_DATADIR_TRUE)
1536 AC_SUBST(PO_IN_DATADIR_FALSE)
1537 AC_SUBST(POFILES)
1538 AC_SUBST(POSUB)
1539 ])
1540
1541 # AM_GLIB_GNU_GETTEXT
1542 # -------------------
1543 # Do checks necessary for use of gettext. If a suitable implementation
1544 # of gettext is found in either in libintl or in the C library,
1545 # it will set INTLLIBS to the libraries needed for use of gettext
1546 # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
1547 # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
1548 # on various variables needed by the Makefile.in.in installed by
1549 # glib-gettextize.
1550 dnl
1551 AU_DEFUN([GLIB_GNU_GETTEXT],
1552 [AC_REQUIRE([AC_PROG_CC])dnl
1553
1554 GLIB_LC_MESSAGES
1555 GLIB_WITH_NLS
1556
1557 if test "$gt_cv_have_gettext" = "yes"; then
1558 if test "x$ALL_LINGUAS" = "x"; then
1559 LINGUAS=
1560 else
1561 AC_MSG_CHECKING(for catalogs to be installed)
1562 NEW_LINGUAS=
1563 for presentlang in $ALL_LINGUAS; do
1564 useit=no
1565 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
1566 desiredlanguages="$LINGUAS"
1567 else
1568 desiredlanguages="$ALL_LINGUAS"
1569 fi
1570 for desiredlang in $desiredlanguages; do
1571 # Use the presentlang catalog if desiredlang is
1572 # a. equal to presentlang, or
1573 # b. a variant of presentlang (because in this case,
1574 # presentlang can be used as a fallback for messages
1575 # which are not translated in the desiredlang catalog).
1576 case "$desiredlang" in
1577 "$presentlang"*) useit=yes;;
1578 esac
1579 done
1580 if test $useit = yes; then
1581 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
1582 fi
1583 done
1584 LINGUAS=$NEW_LINGUAS
1585 AC_MSG_RESULT($LINGUAS)
1586 fi
1587
1588 dnl Construct list of names of catalog files to be constructed.
1589 if test -n "$LINGUAS"; then
1590 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
1591 fi
1592 fi
1593
1594 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
1595 dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
1596 dnl Try to locate is.
1597 MKINSTALLDIRS=
1598 if test -n "$ac_aux_dir"; then
1599 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
1600 fi
1601 if test -z "$MKINSTALLDIRS"; then
1602 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1603 fi
1604 AC_SUBST(MKINSTALLDIRS)
1605
1606 dnl Generate list of files to be processed by xgettext which will
1607 dnl be included in po/Makefile.
1608 test -d po || mkdir po
1609 if test "x$srcdir" != "x."; then
1610 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
1611 posrcprefix="$srcdir/"
1612 else
1613 posrcprefix="../$srcdir/"
1614 fi
1615 else
1616 posrcprefix="../"
1617 fi
1618 rm -f po/POTFILES
1619 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
1620 < $srcdir/po/POTFILES.in > po/POTFILES
1621 ],
1622 [[$0: This macro is deprecated. You should use upstream gettext instead.]])
1623
1624 # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
1625 # -------------------------------
1626 # Define VARIABLE to the location where catalog files will
1627 # be installed by po/Makefile.
1628 glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
1629 [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
1630 glib_save_prefix="$prefix"
1631 glib_save_exec_prefix="$exec_prefix"
1632 glib_save_datarootdir="$datarootdir"
1633 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1634 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
1635 datarootdir=`eval echo "${datarootdir}"`
1636 if test "x$CATOBJEXT" = "x.mo" ; then
1637 localedir=`eval echo "${libdir}/locale"`
1638 else
1639 localedir=`eval echo "${datadir}/locale"`
1640 fi
1641 prefix="$glib_save_prefix"
1642 exec_prefix="$glib_save_exec_prefix"
1643 datarootdir="$glib_save_datarootdir"
1644 AC_DEFINE_UNQUOTED($1, "$localedir",
1645 [Define the location where the catalogs will be installed])
1646 ])
1647
1648 dnl
1649 dnl Now the definitions that aclocal will find
1650 dnl
1651 ifdef(glib_configure_ac,[],[
1652 AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
1653 AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
1654 ])dnl
1655
1656 # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
1657 #
1658 # Create a temporary file with TEST-FILE as its contents and pass the
1659 # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
1660 # 0 and perform ACTION-IF-FAIL for any other exit status.
1661 AC_DEFUN([GLIB_RUN_PROG],
1662 [cat >conftest.foo <<_ACEOF
1663 $2
1664 _ACEOF
1665 if AC_RUN_LOG([$1 conftest.foo]); then
1666 m4_ifval([$3], [$3], [:])
1667 m4_ifvaln([$4], [else $4])dnl
1668 echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
1669 sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
1670 fi])
1671
1672
1673
1674 dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
1675 # serial 42 IT_PROG_INTLTOOL
1676 AC_DEFUN([IT_PROG_INTLTOOL], [
1677 AC_PREREQ([2.50])dnl
1678 AC_REQUIRE([AM_NLS])dnl
1679
1680 case "$am__api_version" in
1681 1.[01234])
1682 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
1683 ;;
1684 *)
1685 ;;
1686 esac
1687
1688 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
1689 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
1690 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
1691 if test -n "$1"; then
1692 AC_MSG_CHECKING([for intltool >= $1])
1693 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
1694 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
1695 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
1696 fi
1697
1698 AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
1699 AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
1700 AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
1701 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
1702 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
1703 fi
1704
1705 if test -z "$AM_DEFAULT_VERBOSITY"; then
1706 AM_DEFAULT_VERBOSITY=1
1707 fi
1708 AC_SUBST([AM_DEFAULT_VERBOSITY])
1709
1710 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
1711 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
1712 INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;'
1713 AC_SUBST(INTLTOOL_V_MERGE)
1714 AC_SUBST(INTLTOOL__v_MERGE_)
1715 AC_SUBST(INTLTOOL__v_MERGE_0)
1716
1717 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
1718 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
1719 intltool__v_merge_options_0='-q'
1720 AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
1721 AC_SUBST(intltool__v_merge_options_)
1722 AC_SUBST(intltool__v_merge_options_0)
1723
1724 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1725 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1726 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1727 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1728 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
1729 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1730 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1731 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1732 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1733 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1734 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1735 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
1736 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
1737 else
1738 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
1739 fi
1740 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1741 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1742 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1743 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1744 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1745 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1746 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1747
1748 _IT_SUBST(INTLTOOL_DESKTOP_RULE)
1749 _IT_SUBST(INTLTOOL_DIRECTORY_RULE)
1750 _IT_SUBST(INTLTOOL_KEYS_RULE)
1751 _IT_SUBST(INTLTOOL_PROP_RULE)
1752 _IT_SUBST(INTLTOOL_OAF_RULE)
1753 _IT_SUBST(INTLTOOL_PONG_RULE)
1754 _IT_SUBST(INTLTOOL_SERVER_RULE)
1755 _IT_SUBST(INTLTOOL_SHEET_RULE)
1756 _IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
1757 _IT_SUBST(INTLTOOL_UI_RULE)
1758 _IT_SUBST(INTLTOOL_XAM_RULE)
1759 _IT_SUBST(INTLTOOL_KBD_RULE)
1760 _IT_SUBST(INTLTOOL_XML_RULE)
1761 _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
1762 _IT_SUBST(INTLTOOL_CAVES_RULE)
1763 _IT_SUBST(INTLTOOL_SCHEMAS_RULE)
1764 _IT_SUBST(INTLTOOL_THEME_RULE)
1765 _IT_SUBST(INTLTOOL_SERVICE_RULE)
1766 _IT_SUBST(INTLTOOL_POLICY_RULE)
1767
1768 # Check the gettext tools to make sure they are GNU
1769 AC_PATH_PROG(XGETTEXT, xgettext)
1770 AC_PATH_PROG(MSGMERGE, msgmerge)
1771 AC_PATH_PROG(MSGFMT, msgfmt)
1772 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
1773 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
1774 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
1775 fi
1776 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
1777 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
1778 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
1779 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
1780 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
1781 fi
1782
1783 AC_PATH_PROG(INTLTOOL_PERL, perl)
1784 if test -z "$INTLTOOL_PERL"; then
1785 AC_MSG_ERROR([perl not found])
1786 fi
1787 AC_MSG_CHECKING([for perl >= 5.8.1])
1788 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
1789 if test $? -ne 0; then
1790 AC_MSG_ERROR([perl 5.8.1 is required for intltool])
1791 else
1792 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
1793 AC_MSG_RESULT([$IT_PERL_VERSION])
1794 fi
1795 if test "x$2" != "xno-xml"; then
1796 AC_MSG_CHECKING([for XML::Parser])
1797 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
1798 AC_MSG_RESULT([ok])
1799 else
1800 AC_MSG_ERROR([XML::Parser perl module is required for intltool])
1801 fi
1802 fi
1803
1804 # Substitute ALL_LINGUAS so we can use it in po/Makefile
1805 AC_SUBST(ALL_LINGUAS)
1806
1807 IT_PO_SUBDIR([po])
1808
1809 ])
1810
1811
1812 # IT_PO_SUBDIR(DIRNAME)
1813 # ---------------------
1814 # All po subdirs have to be declared with this macro; the subdir "po" is
1815 # declared by IT_PROG_INTLTOOL.
1816 #
1817 AC_DEFUN([IT_PO_SUBDIR],
1818 [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
1819 dnl
1820 dnl The following CONFIG_COMMANDS should be executed at the very end
1821 dnl of config.status.
1822 AC_CONFIG_COMMANDS_PRE([
1823 AC_CONFIG_COMMANDS([$1/stamp-it], [
1824 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
1825 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
1826 fi
1827 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
1828 >"$1/stamp-it.tmp"
1829 [sed '/^#/d
1830 s/^[[].*] *//
1831 /^[ ]*$/d
1832 '"s|^| $ac_top_srcdir/|" \
1833 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
1834 ]
1835 [sed '/^POTFILES =/,/[^\\]$/ {
1836 /^POTFILES =/!d
1837 r $1/POTFILES
1838 }
1839 ' "$1/Makefile.in" >"$1/Makefile"]
1840 rm -f "$1/Makefile.tmp"
1841 mv "$1/stamp-it.tmp" "$1/stamp-it"
1842 ])
1843 ])dnl
1844 ])
1845
1846 # _IT_SUBST(VARIABLE)
1847 # -------------------
1848 # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
1849 #
1850 AC_DEFUN([_IT_SUBST],
1851 [
1852 AC_SUBST([$1])
1853 m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
1854 ]
1855 )
1856
1857 # deprecated macros
1858 AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
1859 # A hint is needed for aclocal from Automake <= 1.9.4:
1860 # AC_DEFUN([AC_PROG_INTLTOOL], ...)
1861
1862
1863 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1864 #
1865 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
1866 # Written by Gordon Matzigkeit, 1996
1867 #
1868 # This file is free software; the Free Software Foundation gives
1869 # unlimited permission to copy and/or distribute it, with or without
1870 # modifications, as long as this notice is preserved.
1871
1872 m4_define([_LT_COPYING], [dnl
1873 # Copyright (C) 2014 Free Software Foundation, Inc.
1874 # This is free software; see the source for copying conditions. There is NO
1875 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1876
1877 # GNU Libtool is free software; you can redistribute it and/or modify
1878 # it under the terms of the GNU General Public License as published by
1879 # the Free Software Foundation; either version 2 of of the License, or
1880 # (at your option) any later version.
1881 #
1882 # As a special exception to the GNU General Public License, if you
1883 # distribute this file as part of a program or library that is built
1884 # using GNU Libtool, you may include this file under the same
1885 # distribution terms that you use for the rest of that program.
1886 #
1887 # GNU Libtool is distributed in the hope that it will be useful, but
1888 # WITHOUT ANY WARRANTY; without even the implied warranty of
1889 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1890 # GNU General Public License for more details.
1891 #
1892 # You should have received a copy of the GNU General Public License
1893 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1894 ])
1895
1896 # serial 58 LT_INIT
1897
1898
1899 # LT_PREREQ(VERSION)
1900 # ------------------
1901 # Complain and exit if this libtool version is less that VERSION.
1902 m4_defun([LT_PREREQ],
1903 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
1904 [m4_default([$3],
1905 [m4_fatal([Libtool version $1 or higher is required],
1906 63)])],
1907 [$2])])
1908
1909
1910 # _LT_CHECK_BUILDDIR
1911 # ------------------
1912 # Complain if the absolute build directory name contains unusual characters
1913 m4_defun([_LT_CHECK_BUILDDIR],
1914 [case `pwd` in
1915 *\ * | *\ *)
1916 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
1917 esac
1918 ])
1919
1920
1921 # LT_INIT([OPTIONS])
1922 # ------------------
1923 AC_DEFUN([LT_INIT],
1924 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
1925 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
1926 AC_BEFORE([$0], [LT_LANG])dnl
1927 AC_BEFORE([$0], [LT_OUTPUT])dnl
1928 AC_BEFORE([$0], [LTDL_INIT])dnl
1929 m4_require([_LT_CHECK_BUILDDIR])dnl
1930
1931 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
1932 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
1933 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
1934 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
1935 dnl unless we require an AC_DEFUNed macro:
1936 AC_REQUIRE([LTOPTIONS_VERSION])dnl
1937 AC_REQUIRE([LTSUGAR_VERSION])dnl
1938 AC_REQUIRE([LTVERSION_VERSION])dnl
1939 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1940 m4_require([_LT_PROG_LTMAIN])dnl
1941
1942 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
1943
1944 dnl Parse OPTIONS
1945 _LT_SET_OPTIONS([$0], [$1])
1946
1947 # This can be used to rebuild libtool when needed
1948 LIBTOOL_DEPS=$ltmain
1949
1950 # Always use our own libtool.
1951 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1952 AC_SUBST(LIBTOOL)dnl
1953
1954 _LT_SETUP
1955
1956 # Only expand once:
1957 m4_define([LT_INIT])
1958 ])# LT_INIT
1959
1960 # Old names:
1961 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
1962 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
1963 dnl aclocal-1.4 backwards compatibility:
1964 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
1965 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
1966
1967
1968 # _LT_PREPARE_CC_BASENAME
1969 # -----------------------
1970 m4_defun([_LT_PREPARE_CC_BASENAME], [
1971 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1972 func_cc_basename ()
1973 {
1974 for cc_temp in @S|@*""; do
1975 case $cc_temp in
1976 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1977 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1978 \-*) ;;
1979 *) break;;
1980 esac
1981 done
1982 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1983 }
1984 ])# _LT_PREPARE_CC_BASENAME
1985
1986
1987 # _LT_CC_BASENAME(CC)
1988 # -------------------
1989 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
1990 # but that macro is also expanded into generated libtool script, which
1991 # arranges for $SED and $ECHO to be set by different means.
1992 m4_defun([_LT_CC_BASENAME],
1993 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
1994 AC_REQUIRE([_LT_DECL_SED])dnl
1995 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
1996 func_cc_basename $1
1997 cc_basename=$func_cc_basename_result
1998 ])
1999
2000
2001 # _LT_FILEUTILS_DEFAULTS
2002 # ----------------------
2003 # It is okay to use these file commands and assume they have been set
2004 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
2005 m4_defun([_LT_FILEUTILS_DEFAULTS],
2006 [: ${CP="cp -f"}
2007 : ${MV="mv -f"}
2008 : ${RM="rm -f"}
2009 ])# _LT_FILEUTILS_DEFAULTS
2010
2011
2012 # _LT_SETUP
2013 # ---------
2014 m4_defun([_LT_SETUP],
2015 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2016 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2017 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
2018 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
2019
2020 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
2021 dnl
2022 _LT_DECL([], [host_alias], [0], [The host system])dnl
2023 _LT_DECL([], [host], [0])dnl
2024 _LT_DECL([], [host_os], [0])dnl
2025 dnl
2026 _LT_DECL([], [build_alias], [0], [The build system])dnl
2027 _LT_DECL([], [build], [0])dnl
2028 _LT_DECL([], [build_os], [0])dnl
2029 dnl
2030 AC_REQUIRE([AC_PROG_CC])dnl
2031 AC_REQUIRE([LT_PATH_LD])dnl
2032 AC_REQUIRE([LT_PATH_NM])dnl
2033 dnl
2034 AC_REQUIRE([AC_PROG_LN_S])dnl
2035 test -z "$LN_S" && LN_S="ln -s"
2036 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
2037 dnl
2038 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
2039 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
2040 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
2041 dnl
2042 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2043 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2044 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
2045 m4_require([_LT_CMD_RELOAD])dnl
2046 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
2047 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
2048 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
2049 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
2050 m4_require([_LT_WITH_SYSROOT])dnl
2051 m4_require([_LT_CMD_TRUNCATE])dnl
2052
2053 _LT_CONFIG_LIBTOOL_INIT([
2054 # See if we are running on zsh, and set the options that allow our
2055 # commands through without removal of \ escapes INIT.
2056 if test -n "\${ZSH_VERSION+set}"; then
2057 setopt NO_GLOB_SUBST
2058 fi
2059 ])
2060 if test -n "${ZSH_VERSION+set}"; then
2061 setopt NO_GLOB_SUBST
2062 fi
2063
2064 _LT_CHECK_OBJDIR
2065
2066 m4_require([_LT_TAG_COMPILER])dnl
2067
2068 case $host_os in
2069 aix3*)
2070 # AIX sometimes has problems with the GCC collect2 program. For some
2071 # reason, if we set the COLLECT_NAMES environment variable, the problems
2072 # vanish in a puff of smoke.
2073 if test set != "${COLLECT_NAMES+set}"; then
2074 COLLECT_NAMES=
2075 export COLLECT_NAMES
2076 fi
2077 ;;
2078 esac
2079
2080 # Global variables:
2081 ofile=libtool
2082 can_build_shared=yes
2083
2084 # All known linkers require a '.a' archive for static linking (except MSVC,
2085 # which needs '.lib').
2086 libext=a
2087
2088 with_gnu_ld=$lt_cv_prog_gnu_ld
2089
2090 old_CC=$CC
2091 old_CFLAGS=$CFLAGS
2092
2093 # Set sane defaults for various variables
2094 test -z "$CC" && CC=cc
2095 test -z "$LTCC" && LTCC=$CC
2096 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
2097 test -z "$LD" && LD=ld
2098 test -z "$ac_objext" && ac_objext=o
2099
2100 _LT_CC_BASENAME([$compiler])
2101
2102 # Only perform the check for file, if the check method requires it
2103 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2104 case $deplibs_check_method in
2105 file_magic*)
2106 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2107 _LT_PATH_MAGIC
2108 fi
2109 ;;
2110 esac
2111
2112 # Use C for the default configuration in the libtool script
2113 LT_SUPPORTED_TAG([CC])
2114 _LT_LANG_C_CONFIG
2115 _LT_LANG_DEFAULT_CONFIG
2116 _LT_CONFIG_COMMANDS
2117 ])# _LT_SETUP
2118
2119
2120 # _LT_PREPARE_SED_QUOTE_VARS
2121 # --------------------------
2122 # Define a few sed substitution that help us do robust quoting.
2123 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
2124 [# Backslashify metacharacters that are still active within
2125 # double-quoted strings.
2126 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
2127
2128 # Same as above, but do not quote variable references.
2129 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
2130
2131 # Sed substitution to delay expansion of an escaped shell variable in a
2132 # double_quote_subst'ed string.
2133 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2134
2135 # Sed substitution to delay expansion of an escaped single quote.
2136 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2137
2138 # Sed substitution to avoid accidental globbing in evaled expressions
2139 no_glob_subst='s/\*/\\\*/g'
2140 ])
2141
2142 # _LT_PROG_LTMAIN
2143 # ---------------
2144 # Note that this code is called both from 'configure', and 'config.status'
2145 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2146 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
2147 # so we pass a copy along to make sure it has a sensible value anyway.
2148 m4_defun([_LT_PROG_LTMAIN],
2149 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
2150 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
2151 ltmain=$ac_aux_dir/ltmain.sh
2152 ])# _LT_PROG_LTMAIN
2153
2154
2155
2156 # So that we can recreate a full libtool script including additional
2157 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2158 # in macros and then make a single call at the end using the 'libtool'
2159 # label.
2160
2161
2162 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2163 # ----------------------------------------
2164 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2165 m4_define([_LT_CONFIG_LIBTOOL_INIT],
2166 [m4_ifval([$1],
2167 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
2168 [$1
2169 ])])])
2170
2171 # Initialize.
2172 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
2173
2174
2175 # _LT_CONFIG_LIBTOOL([COMMANDS])
2176 # ------------------------------
2177 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2178 m4_define([_LT_CONFIG_LIBTOOL],
2179 [m4_ifval([$1],
2180 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
2181 [$1
2182 ])])])
2183
2184 # Initialize.
2185 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
2186
2187
2188 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2189 # -----------------------------------------------------
2190 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
2191 [_LT_CONFIG_LIBTOOL([$1])
2192 _LT_CONFIG_LIBTOOL_INIT([$2])
2193 ])
2194
2195
2196 # _LT_FORMAT_COMMENT([COMMENT])
2197 # -----------------------------
2198 # Add leading comment marks to the start of each line, and a trailing
2199 # full-stop to the whole comment if one is not present already.
2200 m4_define([_LT_FORMAT_COMMENT],
2201 [m4_ifval([$1], [
2202 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
2203 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
2204 )])
2205
2206
2207
2208
2209
2210 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2211 # -------------------------------------------------------------------
2212 # CONFIGNAME is the name given to the value in the libtool script.
2213 # VARNAME is the (base) name used in the configure script.
2214 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2215 # VARNAME. Any other value will be used directly.
2216 m4_define([_LT_DECL],
2217 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
2218 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
2219 [m4_ifval([$1], [$1], [$2])])
2220 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
2221 m4_ifval([$4],
2222 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
2223 lt_dict_add_subkey([lt_decl_dict], [$2],
2224 [tagged?], [m4_ifval([$5], [yes], [no])])])
2225 ])
2226
2227
2228 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2229 # --------------------------------------------------------
2230 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
2231
2232
2233 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2234 # ------------------------------------------------
2235 m4_define([lt_decl_tag_varnames],
2236 [_lt_decl_filter([tagged?], [yes], $@)])
2237
2238
2239 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2240 # ---------------------------------------------------------
2241 m4_define([_lt_decl_filter],
2242 [m4_case([$#],
2243 [0], [m4_fatal([$0: too few arguments: $#])],
2244 [1], [m4_fatal([$0: too few arguments: $#: $1])],
2245 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
2246 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
2247 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
2248 ])
2249
2250
2251 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2252 # --------------------------------------------------
2253 m4_define([lt_decl_quote_varnames],
2254 [_lt_decl_filter([value], [1], $@)])
2255
2256
2257 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2258 # ---------------------------------------------------
2259 m4_define([lt_decl_dquote_varnames],
2260 [_lt_decl_filter([value], [2], $@)])
2261
2262
2263 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2264 # ---------------------------------------------------
2265 m4_define([lt_decl_varnames_tagged],
2266 [m4_assert([$# <= 2])dnl
2267 _$0(m4_quote(m4_default([$1], [[, ]])),
2268 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
2269 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
2270 m4_define([_lt_decl_varnames_tagged],
2271 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
2272
2273
2274 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2275 # ------------------------------------------------
2276 m4_define([lt_decl_all_varnames],
2277 [_$0(m4_quote(m4_default([$1], [[, ]])),
2278 m4_if([$2], [],
2279 m4_quote(lt_decl_varnames),
2280 m4_quote(m4_shift($@))))[]dnl
2281 ])
2282 m4_define([_lt_decl_all_varnames],
2283 [lt_join($@, lt_decl_varnames_tagged([$1],
2284 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
2285 ])
2286
2287
2288 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
2289 # ------------------------------------
2290 # Quote a variable value, and forward it to 'config.status' so that its
2291 # declaration there will have the same value as in 'configure'. VARNAME
2292 # must have a single quote delimited value for this to work.
2293 m4_define([_LT_CONFIG_STATUS_DECLARE],
2294 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
2295
2296
2297 # _LT_CONFIG_STATUS_DECLARATIONS
2298 # ------------------------------
2299 # We delimit libtool config variables with single quotes, so when
2300 # we write them to config.status, we have to be sure to quote all
2301 # embedded single quotes properly. In configure, this macro expands
2302 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2303 #
2304 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2305 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
2306 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
2307 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
2308
2309
2310 # _LT_LIBTOOL_TAGS
2311 # ----------------
2312 # Output comment and list of tags supported by the script
2313 m4_defun([_LT_LIBTOOL_TAGS],
2314 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
2315 available_tags='_LT_TAGS'dnl
2316 ])
2317
2318
2319 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2320 # -----------------------------------
2321 # Extract the dictionary values for VARNAME (optionally with TAG) and
2322 # expand to a commented shell variable setting:
2323 #
2324 # # Some comment about what VAR is for.
2325 # visible_name=$lt_internal_name
2326 m4_define([_LT_LIBTOOL_DECLARE],
2327 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
2328 [description])))[]dnl
2329 m4_pushdef([_libtool_name],
2330 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
2331 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
2332 [0], [_libtool_name=[$]$1],
2333 [1], [_libtool_name=$lt_[]$1],
2334 [2], [_libtool_name=$lt_[]$1],
2335 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
2336 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
2337 ])
2338
2339
2340 # _LT_LIBTOOL_CONFIG_VARS
2341 # -----------------------
2342 # Produce commented declarations of non-tagged libtool config variables
2343 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
2344 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2345 # section) are produced by _LT_LIBTOOL_TAG_VARS.
2346 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
2347 [m4_foreach([_lt_var],
2348 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
2349 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
2350
2351
2352 # _LT_LIBTOOL_TAG_VARS(TAG)
2353 # -------------------------
2354 m4_define([_LT_LIBTOOL_TAG_VARS],
2355 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
2356 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
2357
2358
2359 # _LT_TAGVAR(VARNAME, [TAGNAME])
2360 # ------------------------------
2361 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
2362
2363
2364 # _LT_CONFIG_COMMANDS
2365 # -------------------
2366 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2367 # variables for single and double quote escaping we saved from calls
2368 # to _LT_DECL, we can put quote escaped variables declarations
2369 # into 'config.status', and then the shell code to quote escape them in
2370 # for loops in 'config.status'. Finally, any additional code accumulated
2371 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2372 m4_defun([_LT_CONFIG_COMMANDS],
2373 [AC_PROVIDE_IFELSE([LT_OUTPUT],
2374 dnl If the libtool generation code has been placed in $CONFIG_LT,
2375 dnl instead of duplicating it all over again into config.status,
2376 dnl then we will have config.status run $CONFIG_LT later, so it
2377 dnl needs to know what name is stored there:
2378 [AC_CONFIG_COMMANDS([libtool],
2379 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
2380 dnl If the libtool generation code is destined for config.status,
2381 dnl expand the accumulated commands and init code now:
2382 [AC_CONFIG_COMMANDS([libtool],
2383 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
2384 ])#_LT_CONFIG_COMMANDS
2385
2386
2387 # Initialize.
2388 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
2389 [
2390
2391 # The HP-UX ksh and POSIX shell print the target directory to stdout
2392 # if CDPATH is set.
2393 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2394
2395 sed_quote_subst='$sed_quote_subst'
2396 double_quote_subst='$double_quote_subst'
2397 delay_variable_subst='$delay_variable_subst'
2398 _LT_CONFIG_STATUS_DECLARATIONS
2399 LTCC='$LTCC'
2400 LTCFLAGS='$LTCFLAGS'
2401 compiler='$compiler_DEFAULT'
2402
2403 # A function that is used when there is no print builtin or printf.
2404 func_fallback_echo ()
2405 {
2406 eval 'cat <<_LTECHO_EOF
2407 \$[]1
2408 _LTECHO_EOF'
2409 }
2410
2411 # Quote evaled strings.
2412 for var in lt_decl_all_varnames([[ \
2413 ]], lt_decl_quote_varnames); do
2414 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
2415 *[[\\\\\\\`\\"\\\$]]*)
2416 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
2417 ;;
2418 *)
2419 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
2420 ;;
2421 esac
2422 done
2423
2424 # Double-quote double-evaled strings.
2425 for var in lt_decl_all_varnames([[ \
2426 ]], lt_decl_dquote_varnames); do
2427 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
2428 *[[\\\\\\\`\\"\\\$]]*)
2429 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
2430 ;;
2431 *)
2432 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
2433 ;;
2434 esac
2435 done
2436
2437 _LT_OUTPUT_LIBTOOL_INIT
2438 ])
2439
2440 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2441 # ------------------------------------
2442 # Generate a child script FILE with all initialization necessary to
2443 # reuse the environment learned by the parent script, and make the
2444 # file executable. If COMMENT is supplied, it is inserted after the
2445 # '#!' sequence but before initialization text begins. After this
2446 # macro, additional text can be appended to FILE to form the body of
2447 # the child script. The macro ends with non-zero status if the
2448 # file could not be fully written (such as if the disk is full).
2449 m4_ifdef([AS_INIT_GENERATED],
2450 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
2451 [m4_defun([_LT_GENERATED_FILE_INIT],
2452 [m4_require([AS_PREPARE])]dnl
2453 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
2454 [lt_write_fail=0
2455 cat >$1 <<_ASEOF || lt_write_fail=1
2456 #! $SHELL
2457 # Generated by $as_me.
2458 $2
2459 SHELL=\${CONFIG_SHELL-$SHELL}
2460 export SHELL
2461 _ASEOF
2462 cat >>$1 <<\_ASEOF || lt_write_fail=1
2463 AS_SHELL_SANITIZE
2464 _AS_PREPARE
2465 exec AS_MESSAGE_FD>&1
2466 _ASEOF
2467 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
2468 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
2469
2470 # LT_OUTPUT
2471 # ---------
2472 # This macro allows early generation of the libtool script (before
2473 # AC_OUTPUT is called), incase it is used in configure for compilation
2474 # tests.
2475 AC_DEFUN([LT_OUTPUT],
2476 [: ${CONFIG_LT=./config.lt}
2477 AC_MSG_NOTICE([creating $CONFIG_LT])
2478 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
2479 [# Run this file to recreate a libtool stub with the current configuration.])
2480
2481 cat >>"$CONFIG_LT" <<\_LTEOF
2482 lt_cl_silent=false
2483 exec AS_MESSAGE_LOG_FD>>config.log
2484 {
2485 echo
2486 AS_BOX([Running $as_me.])
2487 } >&AS_MESSAGE_LOG_FD
2488
2489 lt_cl_help="\
2490 '$as_me' creates a local libtool stub from the current configuration,
2491 for use in further configure time tests before the real libtool is
2492 generated.
2493
2494 Usage: $[0] [[OPTIONS]]
2495
2496 -h, --help print this help, then exit
2497 -V, --version print version number, then exit
2498 -q, --quiet do not print progress messages
2499 -d, --debug don't remove temporary files
2500
2501 Report bugs to <bug-libtool@gnu.org>."
2502
2503 lt_cl_version="\
2504 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
2505 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
2506 configured by $[0], generated by m4_PACKAGE_STRING.
2507
2508 Copyright (C) 2011 Free Software Foundation, Inc.
2509 This config.lt script is free software; the Free Software Foundation
2510 gives unlimited permision to copy, distribute and modify it."
2511
2512 while test 0 != $[#]
2513 do
2514 case $[1] in
2515 --version | --v* | -V )
2516 echo "$lt_cl_version"; exit 0 ;;
2517 --help | --h* | -h )
2518 echo "$lt_cl_help"; exit 0 ;;
2519 --debug | --d* | -d )
2520 debug=: ;;
2521 --quiet | --q* | --silent | --s* | -q )
2522 lt_cl_silent=: ;;
2523
2524 -*) AC_MSG_ERROR([unrecognized option: $[1]
2525 Try '$[0] --help' for more information.]) ;;
2526
2527 *) AC_MSG_ERROR([unrecognized argument: $[1]
2528 Try '$[0] --help' for more information.]) ;;
2529 esac
2530 shift
2531 done
2532
2533 if $lt_cl_silent; then
2534 exec AS_MESSAGE_FD>/dev/null
2535 fi
2536 _LTEOF
2537
2538 cat >>"$CONFIG_LT" <<_LTEOF
2539 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
2540 _LTEOF
2541
2542 cat >>"$CONFIG_LT" <<\_LTEOF
2543 AC_MSG_NOTICE([creating $ofile])
2544 _LT_OUTPUT_LIBTOOL_COMMANDS
2545 AS_EXIT(0)
2546 _LTEOF
2547 chmod +x "$CONFIG_LT"
2548
2549 # configure is writing to config.log, but config.lt does its own redirection,
2550 # appending to config.log, which fails on DOS, as config.log is still kept
2551 # open by configure. Here we exec the FD to /dev/null, effectively closing
2552 # config.log, so it can be properly (re)opened and appended to by config.lt.
2553 lt_cl_success=:
2554 test yes = "$silent" &&
2555 lt_config_lt_args="$lt_config_lt_args --quiet"
2556 exec AS_MESSAGE_LOG_FD>/dev/null
2557 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
2558 exec AS_MESSAGE_LOG_FD>>config.log
2559 $lt_cl_success || AS_EXIT(1)
2560 ])# LT_OUTPUT
2561
2562
2563 # _LT_CONFIG(TAG)
2564 # ---------------
2565 # If TAG is the built-in tag, create an initial libtool script with a
2566 # default configuration from the untagged config vars. Otherwise add code
2567 # to config.status for appending the configuration named by TAG from the
2568 # matching tagged config vars.
2569 m4_defun([_LT_CONFIG],
2570 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2571 _LT_CONFIG_SAVE_COMMANDS([
2572 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
2573 m4_if(_LT_TAG, [C], [
2574 # See if we are running on zsh, and set the options that allow our
2575 # commands through without removal of \ escapes.
2576 if test -n "${ZSH_VERSION+set}"; then
2577 setopt NO_GLOB_SUBST
2578 fi
2579
2580 cfgfile=${ofile}T
2581 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
2582 $RM "$cfgfile"
2583
2584 cat <<_LT_EOF >> "$cfgfile"
2585 #! $SHELL
2586 # Generated automatically by $as_me ($PACKAGE) $VERSION
2587 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
2588
2589 # Provide generalized library-building support services.
2590 # Written by Gordon Matzigkeit, 1996
2591
2592 _LT_COPYING
2593 _LT_LIBTOOL_TAGS
2594
2595 # Configured defaults for sys_lib_dlsearch_path munging.
2596 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
2597
2598 # ### BEGIN LIBTOOL CONFIG
2599 _LT_LIBTOOL_CONFIG_VARS
2600 _LT_LIBTOOL_TAG_VARS
2601 # ### END LIBTOOL CONFIG
2602
2603 _LT_EOF
2604
2605 cat <<'_LT_EOF' >> "$cfgfile"
2606
2607 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
2608
2609 _LT_PREPARE_MUNGE_PATH_LIST
2610 _LT_PREPARE_CC_BASENAME
2611
2612 # ### END FUNCTIONS SHARED WITH CONFIGURE
2613
2614 _LT_EOF
2615
2616 case $host_os in
2617 aix3*)
2618 cat <<\_LT_EOF >> "$cfgfile"
2619 # AIX sometimes has problems with the GCC collect2 program. For some
2620 # reason, if we set the COLLECT_NAMES environment variable, the problems
2621 # vanish in a puff of smoke.
2622 if test set != "${COLLECT_NAMES+set}"; then
2623 COLLECT_NAMES=
2624 export COLLECT_NAMES
2625 fi
2626 _LT_EOF
2627 ;;
2628 esac
2629
2630 _LT_PROG_LTMAIN
2631
2632 # We use sed instead of cat because bash on DJGPP gets confused if
2633 # if finds mixed CR/LF and LF-only lines. Since sed operates in
2634 # text mode, it properly converts lines to CR/LF. This bash problem
2635 # is reportedly fixed, but why not run on old versions too?
2636 sed '$q' "$ltmain" >> "$cfgfile" \
2637 || (rm -f "$cfgfile"; exit 1)
2638
2639 mv -f "$cfgfile" "$ofile" ||
2640 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
2641 chmod +x "$ofile"
2642 ],
2643 [cat <<_LT_EOF >> "$ofile"
2644
2645 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
2646 dnl in a comment (ie after a #).
2647 # ### BEGIN LIBTOOL TAG CONFIG: $1
2648 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
2649 # ### END LIBTOOL TAG CONFIG: $1
2650 _LT_EOF
2651 ])dnl /m4_if
2652 ],
2653 [m4_if([$1], [], [
2654 PACKAGE='$PACKAGE'
2655 VERSION='$VERSION'
2656 RM='$RM'
2657 ofile='$ofile'], [])
2658 ])dnl /_LT_CONFIG_SAVE_COMMANDS
2659 ])# _LT_CONFIG
2660
2661
2662 # LT_SUPPORTED_TAG(TAG)
2663 # ---------------------
2664 # Trace this macro to discover what tags are supported by the libtool
2665 # --tag option, using:
2666 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
2667 AC_DEFUN([LT_SUPPORTED_TAG], [])
2668
2669
2670 # C support is built-in for now
2671 m4_define([_LT_LANG_C_enabled], [])
2672 m4_define([_LT_TAGS], [])
2673
2674
2675 # LT_LANG(LANG)
2676 # -------------
2677 # Enable libtool support for the given language if not already enabled.
2678 AC_DEFUN([LT_LANG],
2679 [AC_BEFORE([$0], [LT_OUTPUT])dnl
2680 m4_case([$1],
2681 [C], [_LT_LANG(C)],
2682 [C++], [_LT_LANG(CXX)],
2683 [Go], [_LT_LANG(GO)],
2684 [Java], [_LT_LANG(GCJ)],
2685 [Fortran 77], [_LT_LANG(F77)],
2686 [Fortran], [_LT_LANG(FC)],
2687 [Windows Resource], [_LT_LANG(RC)],
2688 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
2689 [_LT_LANG($1)],
2690 [m4_fatal([$0: unsupported language: "$1"])])])dnl
2691 ])# LT_LANG
2692
2693
2694 # _LT_LANG(LANGNAME)
2695 # ------------------
2696 m4_defun([_LT_LANG],
2697 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
2698 [LT_SUPPORTED_TAG([$1])dnl
2699 m4_append([_LT_TAGS], [$1 ])dnl
2700 m4_define([_LT_LANG_]$1[_enabled], [])dnl
2701 _LT_LANG_$1_CONFIG($1)])dnl
2702 ])# _LT_LANG
2703
2704
2705 m4_ifndef([AC_PROG_GO], [
2706 # NOTE: This macro has been submitted for inclusion into #
2707 # GNU Autoconf as AC_PROG_GO. When it is available in #
2708 # a released version of Autoconf we should remove this #
2709 # macro and use it instead. #
2710 m4_defun([AC_PROG_GO],
2711 [AC_LANG_PUSH(Go)dnl
2712 AC_ARG_VAR([GOC], [Go compiler command])dnl
2713 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
2714 _AC_ARG_VAR_LDFLAGS()dnl
2715 AC_CHECK_TOOL(GOC, gccgo)
2716 if test -z "$GOC"; then
2717 if test -n "$ac_tool_prefix"; then
2718 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
2719 fi
2720 fi
2721 if test -z "$GOC"; then
2722 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
2723 fi
2724 ])#m4_defun
2725 ])#m4_ifndef
2726
2727
2728 # _LT_LANG_DEFAULT_CONFIG
2729 # -----------------------
2730 m4_defun([_LT_LANG_DEFAULT_CONFIG],
2731 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
2732 [LT_LANG(CXX)],
2733 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
2734
2735 AC_PROVIDE_IFELSE([AC_PROG_F77],
2736 [LT_LANG(F77)],
2737 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
2738
2739 AC_PROVIDE_IFELSE([AC_PROG_FC],
2740 [LT_LANG(FC)],
2741 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
2742
2743 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
2744 dnl pulling things in needlessly.
2745 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
2746 [LT_LANG(GCJ)],
2747 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
2748 [LT_LANG(GCJ)],
2749 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
2750 [LT_LANG(GCJ)],
2751 [m4_ifdef([AC_PROG_GCJ],
2752 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
2753 m4_ifdef([A][M_PROG_GCJ],
2754 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
2755 m4_ifdef([LT_PROG_GCJ],
2756 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
2757
2758 AC_PROVIDE_IFELSE([AC_PROG_GO],
2759 [LT_LANG(GO)],
2760 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
2761
2762 AC_PROVIDE_IFELSE([LT_PROG_RC],
2763 [LT_LANG(RC)],
2764 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
2765 ])# _LT_LANG_DEFAULT_CONFIG
2766
2767 # Obsolete macros:
2768 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
2769 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
2770 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
2771 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
2772 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
2773 dnl aclocal-1.4 backwards compatibility:
2774 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
2775 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
2776 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
2777 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
2778 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
2779
2780
2781 # _LT_TAG_COMPILER
2782 # ----------------
2783 m4_defun([_LT_TAG_COMPILER],
2784 [AC_REQUIRE([AC_PROG_CC])dnl
2785
2786 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
2787 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
2788 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
2789 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
2790
2791 # If no C compiler was specified, use CC.
2792 LTCC=${LTCC-"$CC"}
2793
2794 # If no C compiler flags were specified, use CFLAGS.
2795 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
2796
2797 # Allow CC to be a program name with arguments.
2798 compiler=$CC
2799 ])# _LT_TAG_COMPILER
2800
2801
2802 # _LT_COMPILER_BOILERPLATE
2803 # ------------------------
2804 # Check for compiler boilerplate output or warnings with
2805 # the simple compiler test code.
2806 m4_defun([_LT_COMPILER_BOILERPLATE],
2807 [m4_require([_LT_DECL_SED])dnl
2808 ac_outfile=conftest.$ac_objext
2809 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
2810 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2811 _lt_compiler_boilerplate=`cat conftest.err`
2812 $RM conftest*
2813 ])# _LT_COMPILER_BOILERPLATE
2814
2815
2816 # _LT_LINKER_BOILERPLATE
2817 # ----------------------
2818 # Check for linker boilerplate output or warnings with
2819 # the simple link test code.
2820 m4_defun([_LT_LINKER_BOILERPLATE],
2821 [m4_require([_LT_DECL_SED])dnl
2822 ac_outfile=conftest.$ac_objext
2823 echo "$lt_simple_link_test_code" >conftest.$ac_ext
2824 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
2825 _lt_linker_boilerplate=`cat conftest.err`
2826 $RM -r conftest*
2827 ])# _LT_LINKER_BOILERPLATE
2828
2829 # _LT_REQUIRED_DARWIN_CHECKS
2830 # -------------------------
2831 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
2832 case $host_os in
2833 rhapsody* | darwin*)
2834 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
2835 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
2836 AC_CHECK_TOOL([LIPO], [lipo], [:])
2837 AC_CHECK_TOOL([OTOOL], [otool], [:])
2838 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
2839 _LT_DECL([], [DSYMUTIL], [1],
2840 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
2841 _LT_DECL([], [NMEDIT], [1],
2842 [Tool to change global to local symbols on Mac OS X])
2843 _LT_DECL([], [LIPO], [1],
2844 [Tool to manipulate fat objects and archives on Mac OS X])
2845 _LT_DECL([], [OTOOL], [1],
2846 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
2847 _LT_DECL([], [OTOOL64], [1],
2848 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
2849
2850 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
2851 [lt_cv_apple_cc_single_mod=no
2852 if test -z "$LT_MULTI_MODULE"; then
2853 # By default we will add the -single_module flag. You can override
2854 # by either setting the environment variable LT_MULTI_MODULE
2855 # non-empty at configure time, or by adding -multi_module to the
2856 # link flags.
2857 rm -rf libconftest.dylib*
2858 echo "int foo(void){return 1;}" > conftest.c
2859 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
2860 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
2861 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
2862 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
2863 _lt_result=$?
2864 # If there is a non-empty error log, and "single_module"
2865 # appears in it, assume the flag caused a linker warning
2866 if test -s conftest.err && $GREP single_module conftest.err; then
2867 cat conftest.err >&AS_MESSAGE_LOG_FD
2868 # Otherwise, if the output was created with a 0 exit code from
2869 # the compiler, it worked.
2870 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
2871 lt_cv_apple_cc_single_mod=yes
2872 else
2873 cat conftest.err >&AS_MESSAGE_LOG_FD
2874 fi
2875 rm -rf libconftest.dylib*
2876 rm -f conftest.*
2877 fi])
2878
2879 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
2880 [lt_cv_ld_exported_symbols_list],
2881 [lt_cv_ld_exported_symbols_list=no
2882 save_LDFLAGS=$LDFLAGS
2883 echo "_main" > conftest.sym
2884 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
2885 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2886 [lt_cv_ld_exported_symbols_list=yes],
2887 [lt_cv_ld_exported_symbols_list=no])
2888 LDFLAGS=$save_LDFLAGS
2889 ])
2890
2891 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
2892 [lt_cv_ld_force_load=no
2893 cat > conftest.c << _LT_EOF
2894 int forced_loaded() { return 2;}
2895 _LT_EOF
2896 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
2897 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
2898 echo "$AR cr libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
2899 $AR cr libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
2900 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
2901 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
2902 cat > conftest.c << _LT_EOF
2903 int main() { return 0;}
2904 _LT_EOF
2905 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
2906 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
2907 _lt_result=$?
2908 if test -s conftest.err && $GREP force_load conftest.err; then
2909 cat conftest.err >&AS_MESSAGE_LOG_FD
2910 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
2911 lt_cv_ld_force_load=yes
2912 else
2913 cat conftest.err >&AS_MESSAGE_LOG_FD
2914 fi
2915 rm -f conftest.err libconftest.a conftest conftest.c
2916 rm -rf conftest.dSYM
2917 ])
2918 case $host_os in
2919 rhapsody* | darwin1.[[012]])
2920 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
2921 darwin1.*)
2922 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
2923 darwin*) # darwin 5.x on
2924 # if running on 10.5 or later, the deployment target defaults
2925 # to the OS version, if on x86, and 10.4, the deployment
2926 # target defaults to 10.4. Don't you love it?
2927 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
2928 10.0,*86*-darwin8*|10.0,*-darwin[[912]]*)
2929 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
2930 10.[[012]][[,.]]*)
2931 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
2932 10.*|11.*)
2933 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
2934 esac
2935 ;;
2936 esac
2937 if test yes = "$lt_cv_apple_cc_single_mod"; then
2938 _lt_dar_single_mod='$single_module'
2939 fi
2940 if test yes = "$lt_cv_ld_exported_symbols_list"; then
2941 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
2942 else
2943 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
2944 fi
2945 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
2946 _lt_dsymutil='~$DSYMUTIL $lib || :'
2947 else
2948 _lt_dsymutil=
2949 fi
2950 ;;
2951 esac
2952 ])
2953
2954
2955 # _LT_DARWIN_LINKER_FEATURES([TAG])
2956 # ---------------------------------
2957 # Checks for linker and compiler features on darwin
2958 m4_defun([_LT_DARWIN_LINKER_FEATURES],
2959 [
2960 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
2961 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
2962 _LT_TAGVAR(hardcode_direct, $1)=no
2963 _LT_TAGVAR(hardcode_automatic, $1)=yes
2964 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2965 if test yes = "$lt_cv_ld_force_load"; then
2966 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
2967 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
2968 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
2969 else
2970 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
2971 fi
2972 _LT_TAGVAR(link_all_deplibs, $1)=yes
2973 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
2974 case $cc_basename in
2975 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
2976 *) _lt_dar_can_shared=$GCC ;;
2977 esac
2978 if test yes = "$_lt_dar_can_shared"; then
2979 output_verbose_link_cmd=func_echo_all
2980 _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"
2981 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
2982 _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"
2983 _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"
2984 m4_if([$1], [CXX],
2985 [ if test yes != "$lt_cv_apple_cc_single_mod"; then
2986 _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"
2987 _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"
2988 fi
2989 ],[])
2990 else
2991 _LT_TAGVAR(ld_shlibs, $1)=no
2992 fi
2993 ])
2994
2995 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
2996 # ----------------------------------
2997 # Links a minimal program and checks the executable
2998 # for the system default hardcoded library path. In most cases,
2999 # this is /usr/lib:/lib, but when the MPI compilers are used
3000 # the location of the communication and MPI libs are included too.
3001 # If we don't find anything, use the default library path according
3002 # to the aix ld manual.
3003 # Store the results from the different compilers for each TAGNAME.
3004 # Allow to override them for all tags through lt_cv_aix_libpath.
3005 m4_defun([_LT_SYS_MODULE_PATH_AIX],
3006 [m4_require([_LT_DECL_SED])dnl
3007 if test set = "${lt_cv_aix_libpath+set}"; then
3008 aix_libpath=$lt_cv_aix_libpath
3009 else
3010 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
3011 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
3012 lt_aix_libpath_sed='[
3013 /Import File Strings/,/^$/ {
3014 /^0/ {
3015 s/^0 *\([^ ]*\) *$/\1/
3016 p
3017 }
3018 }]'
3019 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3020 # Check for a 64-bit object if we didn't find anything.
3021 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
3022 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3023 fi],[])
3024 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
3025 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
3026 fi
3027 ])
3028 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
3029 fi
3030 ])# _LT_SYS_MODULE_PATH_AIX
3031
3032
3033 # _LT_SHELL_INIT(ARG)
3034 # -------------------
3035 m4_define([_LT_SHELL_INIT],
3036 [m4_divert_text([M4SH-INIT], [$1
3037 ])])# _LT_SHELL_INIT
3038
3039
3040
3041 # _LT_PROG_ECHO_BACKSLASH
3042 # -----------------------
3043 # Find how we can fake an echo command that does not interpret backslash.
3044 # In particular, with Autoconf 2.60 or later we add some code to the start
3045 # of the generated configure script that will find a shell with a builtin
3046 # printf (that we can use as an echo command).
3047 m4_defun([_LT_PROG_ECHO_BACKSLASH],
3048 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3049 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3050 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3051
3052 AC_MSG_CHECKING([how to print strings])
3053 # Test print first, because it will be a builtin if present.
3054 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3055 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3056 ECHO='print -r --'
3057 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3058 ECHO='printf %s\n'
3059 else
3060 # Use this function as a fallback that always works.
3061 func_fallback_echo ()
3062 {
3063 eval 'cat <<_LTECHO_EOF
3064 $[]1
3065 _LTECHO_EOF'
3066 }
3067 ECHO='func_fallback_echo'
3068 fi
3069
3070 # func_echo_all arg...
3071 # Invoke $ECHO with all args, space-separated.
3072 func_echo_all ()
3073 {
3074 $ECHO "$*"
3075 }
3076
3077 case $ECHO in
3078 printf*) AC_MSG_RESULT([printf]) ;;
3079 print*) AC_MSG_RESULT([print -r]) ;;
3080 *) AC_MSG_RESULT([cat]) ;;
3081 esac
3082
3083 m4_ifdef([_AS_DETECT_SUGGESTED],
3084 [_AS_DETECT_SUGGESTED([
3085 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
3086 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3087 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3088 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3089 PATH=/empty FPATH=/empty; export PATH FPATH
3090 test "X`printf %s $ECHO`" = "X$ECHO" \
3091 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
3092
3093 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
3094 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
3095 ])# _LT_PROG_ECHO_BACKSLASH
3096
3097
3098 # _LT_WITH_SYSROOT
3099 # ----------------
3100 AC_DEFUN([_LT_WITH_SYSROOT],
3101 [AC_MSG_CHECKING([for sysroot])
3102 AC_ARG_WITH([sysroot],
3103 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
3104 [Search for dependent libraries within DIR (or the compiler's sysroot
3105 if not specified).])],
3106 [], [with_sysroot=no])
3107
3108 dnl lt_sysroot will always be passed unquoted. We quote it here
3109 dnl in case the user passed a directory name.
3110 lt_sysroot=
3111 case $with_sysroot in #(
3112 yes)
3113 if test yes = "$GCC"; then
3114 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
3115 fi
3116 ;; #(
3117 /*)
3118 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
3119 ;; #(
3120 no|'')
3121 ;; #(
3122 *)
3123 AC_MSG_RESULT([$with_sysroot])
3124 AC_MSG_ERROR([The sysroot must be an absolute path.])
3125 ;;
3126 esac
3127
3128 AC_MSG_RESULT([${lt_sysroot:-no}])
3129 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
3130 [dependent libraries, and where our libraries should be installed.])])
3131
3132 # _LT_ENABLE_LOCK
3133 # ---------------
3134 m4_defun([_LT_ENABLE_LOCK],
3135 [AC_ARG_ENABLE([libtool-lock],
3136 [AS_HELP_STRING([--disable-libtool-lock],
3137 [avoid locking (might break parallel builds)])])
3138 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
3139
3140 # Some flags need to be propagated to the compiler or linker for good
3141 # libtool support.
3142 case $host in
3143 ia64-*-hpux*)
3144 # Find out what ABI is being produced by ac_compile, and set mode
3145 # options accordingly.
3146 echo 'int i;' > conftest.$ac_ext
3147 if AC_TRY_EVAL(ac_compile); then
3148 case `/usr/bin/file conftest.$ac_objext` in
3149 *ELF-32*)
3150 HPUX_IA64_MODE=32
3151 ;;
3152 *ELF-64*)
3153 HPUX_IA64_MODE=64
3154 ;;
3155 esac
3156 fi
3157 rm -rf conftest*
3158 ;;
3159 *-*-irix6*)
3160 # Find out what ABI is being produced by ac_compile, and set linker
3161 # options accordingly.
3162 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
3163 if AC_TRY_EVAL(ac_compile); then
3164 if test yes = "$lt_cv_prog_gnu_ld"; then
3165 case `/usr/bin/file conftest.$ac_objext` in
3166 *32-bit*)
3167 LD="${LD-ld} -melf32bsmip"
3168 ;;
3169 *N32*)
3170 LD="${LD-ld} -melf32bmipn32"
3171 ;;
3172 *64-bit*)
3173 LD="${LD-ld} -melf64bmip"
3174 ;;
3175 esac
3176 else
3177 case `/usr/bin/file conftest.$ac_objext` in
3178 *32-bit*)
3179 LD="${LD-ld} -32"
3180 ;;
3181 *N32*)
3182 LD="${LD-ld} -n32"
3183 ;;
3184 *64-bit*)
3185 LD="${LD-ld} -64"
3186 ;;
3187 esac
3188 fi
3189 fi
3190 rm -rf conftest*
3191 ;;
3192
3193 mips64*-*linux*)
3194 # Find out what ABI is being produced by ac_compile, and set linker
3195 # options accordingly.
3196 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
3197 if AC_TRY_EVAL(ac_compile); then
3198 emul=elf
3199 case `/usr/bin/file conftest.$ac_objext` in
3200 *32-bit*)
3201 emul="${emul}32"
3202 ;;
3203 *64-bit*)
3204 emul="${emul}64"
3205 ;;
3206 esac
3207 case `/usr/bin/file conftest.$ac_objext` in
3208 *MSB*)
3209 emul="${emul}btsmip"
3210 ;;
3211 *LSB*)
3212 emul="${emul}ltsmip"
3213 ;;
3214 esac
3215 case `/usr/bin/file conftest.$ac_objext` in
3216 *N32*)
3217 emul="${emul}n32"
3218 ;;
3219 esac
3220 LD="${LD-ld} -m $emul"
3221 fi
3222 rm -rf conftest*
3223 ;;
3224
3225 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
3226 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
3227 # Find out what ABI is being produced by ac_compile, and set linker
3228 # options accordingly. Note that the listed cases only cover the
3229 # situations where additional linker options are needed (such as when
3230 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
3231 # vice versa); the common cases where no linker options are needed do
3232 # not appear in the list.
3233 echo 'int i;' > conftest.$ac_ext
3234 if AC_TRY_EVAL(ac_compile); then
3235 case `/usr/bin/file conftest.o` in
3236 *32-bit*)
3237 case $host in
3238 x86_64-*kfreebsd*-gnu)
3239 LD="${LD-ld} -m elf_i386_fbsd"
3240 ;;
3241 x86_64-*linux*)
3242 case `/usr/bin/file conftest.o` in
3243 *x86-64*)
3244 LD="${LD-ld} -m elf32_x86_64"
3245 ;;
3246 *)
3247 LD="${LD-ld} -m elf_i386"
3248 ;;
3249 esac
3250 ;;
3251 powerpc64le-*linux*)
3252 LD="${LD-ld} -m elf32lppclinux"
3253 ;;
3254 powerpc64-*linux*)
3255 LD="${LD-ld} -m elf32ppclinux"
3256 ;;
3257 s390x-*linux*)
3258 LD="${LD-ld} -m elf_s390"
3259 ;;
3260 sparc64-*linux*)
3261 LD="${LD-ld} -m elf32_sparc"
3262 ;;
3263 esac
3264 ;;
3265 *64-bit*)
3266 case $host in
3267 x86_64-*kfreebsd*-gnu)
3268 LD="${LD-ld} -m elf_x86_64_fbsd"
3269 ;;
3270 x86_64-*linux*)
3271 LD="${LD-ld} -m elf_x86_64"
3272 ;;
3273 powerpcle-*linux*)
3274 LD="${LD-ld} -m elf64lppc"
3275 ;;
3276 powerpc-*linux*)
3277 LD="${LD-ld} -m elf64ppc"
3278 ;;
3279 s390*-*linux*|s390*-*tpf*)
3280 LD="${LD-ld} -m elf64_s390"
3281 ;;
3282 sparc*-*linux*)
3283 LD="${LD-ld} -m elf64_sparc"
3284 ;;
3285 esac
3286 ;;
3287 esac
3288 fi
3289 rm -rf conftest*
3290 ;;
3291
3292 *-*-sco3.2v5*)
3293 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3294 SAVE_CFLAGS=$CFLAGS
3295 CFLAGS="$CFLAGS -belf"
3296 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
3297 [AC_LANG_PUSH(C)
3298 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
3299 AC_LANG_POP])
3300 if test yes != "$lt_cv_cc_needs_belf"; then
3301 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3302 CFLAGS=$SAVE_CFLAGS
3303 fi
3304 ;;
3305 *-*solaris*)
3306 # Find out what ABI is being produced by ac_compile, and set linker
3307 # options accordingly.
3308 echo 'int i;' > conftest.$ac_ext
3309 if AC_TRY_EVAL(ac_compile); then
3310 case `/usr/bin/file conftest.o` in
3311 *64-bit*)
3312 case $lt_cv_prog_gnu_ld in
3313 yes*)
3314 case $host in
3315 i?86-*-solaris*|x86_64-*-solaris*)
3316 LD="${LD-ld} -m elf_x86_64"
3317 ;;
3318 sparc*-*-solaris*)
3319 LD="${LD-ld} -m elf64_sparc"
3320 ;;
3321 esac
3322 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
3323 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
3324 LD=${LD-ld}_sol2
3325 fi
3326 ;;
3327 *)
3328 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
3329 LD="${LD-ld} -64"
3330 fi
3331 ;;
3332 esac
3333 ;;
3334 esac
3335 fi
3336 rm -rf conftest*
3337 ;;
3338 esac
3339
3340 need_locks=$enable_libtool_lock
3341 ])# _LT_ENABLE_LOCK
3342
3343
3344 # _LT_PROG_AR
3345 # -----------
3346 m4_defun([_LT_PROG_AR],
3347 [AC_CHECK_TOOLS(AR, [ar], false)
3348 : ${AR=ar}
3349 : ${AR_FLAGS=cr}
3350 _LT_DECL([], [AR], [1], [The archiver])
3351 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
3352
3353 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
3354 [lt_cv_ar_at_file=no
3355 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
3356 [echo conftest.$ac_objext > conftest.lst
3357 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
3358 AC_TRY_EVAL([lt_ar_try])
3359 if test 0 -eq "$ac_status"; then
3360 # Ensure the archiver fails upon bogus file names.
3361 rm -f conftest.$ac_objext libconftest.a
3362 AC_TRY_EVAL([lt_ar_try])
3363 if test 0 -ne "$ac_status"; then
3364 lt_cv_ar_at_file=@
3365 fi
3366 fi
3367 rm -f conftest.* libconftest.a
3368 ])
3369 ])
3370
3371 if test no = "$lt_cv_ar_at_file"; then
3372 archiver_list_spec=
3373 else
3374 archiver_list_spec=$lt_cv_ar_at_file
3375 fi
3376 _LT_DECL([], [archiver_list_spec], [1],
3377 [How to feed a file listing to the archiver])
3378 ])# _LT_PROG_AR
3379
3380
3381 # _LT_CMD_OLD_ARCHIVE
3382 # -------------------
3383 m4_defun([_LT_CMD_OLD_ARCHIVE],
3384 [_LT_PROG_AR
3385
3386 AC_CHECK_TOOL(STRIP, strip, :)
3387 test -z "$STRIP" && STRIP=:
3388 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
3389
3390 AC_CHECK_TOOL(RANLIB, ranlib, :)
3391 test -z "$RANLIB" && RANLIB=:
3392 _LT_DECL([], [RANLIB], [1],
3393 [Commands used to install an old-style archive])
3394
3395 # Determine commands to create old-style static archives.
3396 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
3397 old_postinstall_cmds='chmod 644 $oldlib'
3398 old_postuninstall_cmds=
3399
3400 if test -n "$RANLIB"; then
3401 case $host_os in
3402 bitrig* | openbsd*)
3403 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
3404 ;;
3405 *)
3406 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
3407 ;;
3408 esac
3409 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
3410 fi
3411
3412 case $host_os in
3413 darwin*)
3414 lock_old_archive_extraction=yes ;;
3415 *)
3416 lock_old_archive_extraction=no ;;
3417 esac
3418 _LT_DECL([], [old_postinstall_cmds], [2])
3419 _LT_DECL([], [old_postuninstall_cmds], [2])
3420 _LT_TAGDECL([], [old_archive_cmds], [2],
3421 [Commands used to build an old-style archive])
3422 _LT_DECL([], [lock_old_archive_extraction], [0],
3423 [Whether to use a lock for old archive extraction])
3424 ])# _LT_CMD_OLD_ARCHIVE
3425
3426
3427 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3428 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3429 # ----------------------------------------------------------------
3430 # Check whether the given compiler option works
3431 AC_DEFUN([_LT_COMPILER_OPTION],
3432 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3433 m4_require([_LT_DECL_SED])dnl
3434 AC_CACHE_CHECK([$1], [$2],
3435 [$2=no
3436 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
3437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3438 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
3439 # Insert the option either (1) after the last *FLAGS variable, or
3440 # (2) before a word containing "conftest.", or (3) at the end.
3441 # Note that $ac_compile itself does not contain backslashes and begins
3442 # with a dollar sign (not a hyphen), so the echo should work correctly.
3443 # The option is referenced via a variable to avoid confusing sed.
3444 lt_compile=`echo "$ac_compile" | $SED \
3445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3446 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3447 -e 's:$: $lt_compiler_flag:'`
3448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3449 (eval "$lt_compile" 2>conftest.err)
3450 ac_status=$?
3451 cat conftest.err >&AS_MESSAGE_LOG_FD
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3453 if (exit $ac_status) && test -s "$ac_outfile"; then
3454 # The compiler can only warn and ignore the option if not recognized
3455 # So say no if there are warnings other than the usual output.
3456 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
3457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
3459 $2=yes
3460 fi
3461 fi
3462 $RM conftest*
3463 ])
3464
3465 if test yes = "[$]$2"; then
3466 m4_if([$5], , :, [$5])
3467 else
3468 m4_if([$6], , :, [$6])
3469 fi
3470 ])# _LT_COMPILER_OPTION
3471
3472 # Old name:
3473 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
3474 dnl aclocal-1.4 backwards compatibility:
3475 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
3476
3477
3478 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3479 # [ACTION-SUCCESS], [ACTION-FAILURE])
3480 # ----------------------------------------------------
3481 # Check whether the given linker option works
3482 AC_DEFUN([_LT_LINKER_OPTION],
3483 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3484 m4_require([_LT_DECL_SED])dnl
3485 AC_CACHE_CHECK([$1], [$2],
3486 [$2=no
3487 save_LDFLAGS=$LDFLAGS
3488 LDFLAGS="$LDFLAGS $3"
3489 echo "$lt_simple_link_test_code" > conftest.$ac_ext
3490 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
3491 # The linker can only warn and ignore the option if not recognized
3492 # So say no if there are warnings
3493 if test -s conftest.err; then
3494 # Append any errors to the config.log.
3495 cat conftest.err 1>&AS_MESSAGE_LOG_FD
3496 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
3497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3498 if diff conftest.exp conftest.er2 >/dev/null; then
3499 $2=yes
3500 fi
3501 else
3502 $2=yes
3503 fi
3504 fi
3505 $RM -r conftest*
3506 LDFLAGS=$save_LDFLAGS
3507 ])
3508
3509 if test yes = "[$]$2"; then
3510 m4_if([$4], , :, [$4])
3511 else
3512 m4_if([$5], , :, [$5])
3513 fi
3514 ])# _LT_LINKER_OPTION
3515
3516 # Old name:
3517 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
3518 dnl aclocal-1.4 backwards compatibility:
3519 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
3520
3521
3522 # LT_CMD_MAX_LEN
3523 #---------------
3524 AC_DEFUN([LT_CMD_MAX_LEN],
3525 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3526 # find the maximum length of command line arguments
3527 AC_MSG_CHECKING([the maximum length of command line arguments])
3528 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
3529 i=0
3530 teststring=ABCD
3531
3532 case $build_os in
3533 msdosdjgpp*)
3534 # On DJGPP, this test can blow up pretty badly due to problems in libc
3535 # (any single argument exceeding 2000 bytes causes a buffer overrun
3536 # during glob expansion). Even if it were fixed, the result of this
3537 # check would be larger than it should be.
3538 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3539 ;;
3540
3541 gnu*)
3542 # Under GNU Hurd, this test is not required because there is
3543 # no limit to the length of command line arguments.
3544 # Libtool will interpret -1 as no limit whatsoever
3545 lt_cv_sys_max_cmd_len=-1;
3546 ;;
3547
3548 cygwin* | mingw* | cegcc*)
3549 # On Win9x/ME, this test blows up -- it succeeds, but takes
3550 # about 5 minutes as the teststring grows exponentially.
3551 # Worse, since 9x/ME are not pre-emptively multitasking,
3552 # you end up with a "frozen" computer, even though with patience
3553 # the test eventually succeeds (with a max line length of 256k).
3554 # Instead, let's just punt: use the minimum linelength reported by
3555 # all of the supported platforms: 8192 (on NT/2K/XP).
3556 lt_cv_sys_max_cmd_len=8192;
3557 ;;
3558
3559 mint*)
3560 # On MiNT this can take a long time and run out of memory.
3561 lt_cv_sys_max_cmd_len=8192;
3562 ;;
3563
3564 amigaos*)
3565 # On AmigaOS with pdksh, this test takes hours, literally.
3566 # So we just punt and use a minimum line length of 8192.
3567 lt_cv_sys_max_cmd_len=8192;
3568 ;;
3569
3570 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
3571 # This has been around since 386BSD, at least. Likely further.
3572 if test -x /sbin/sysctl; then
3573 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3574 elif test -x /usr/sbin/sysctl; then
3575 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3576 else
3577 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3578 fi
3579 # And add a safety zone
3580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3582 ;;
3583
3584 interix*)
3585 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3586 lt_cv_sys_max_cmd_len=196608
3587 ;;
3588
3589 os2*)
3590 # The test takes a long time on OS/2.
3591 lt_cv_sys_max_cmd_len=8192
3592 ;;
3593
3594 osf*)
3595 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3596 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3597 # nice to cause kernel panics so lets avoid the loop below.
3598 # First set a reasonable default.
3599 lt_cv_sys_max_cmd_len=16384
3600 #
3601 if test -x /sbin/sysconfig; then
3602 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3603 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3604 esac
3605 fi
3606 ;;
3607 sco3.2v5*)
3608 lt_cv_sys_max_cmd_len=102400
3609 ;;
3610 sysv5* | sco5v6* | sysv4.2uw2*)
3611 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3612 if test -n "$kargmax"; then
3613 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
3614 else
3615 lt_cv_sys_max_cmd_len=32768
3616 fi
3617 ;;
3618 *)
3619 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3620 if test -n "$lt_cv_sys_max_cmd_len" && \
3621 test undefined != "$lt_cv_sys_max_cmd_len"; then
3622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3623 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3624 else
3625 # Make teststring a little bigger before we do anything with it.
3626 # a 1K string should be a reasonable start.
3627 for i in 1 2 3 4 5 6 7 8; do
3628 teststring=$teststring$teststring
3629 done
3630 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3631 # If test is not a shell built-in, we'll probably end up computing a
3632 # maximum length that is only half of the actual maximum length, but
3633 # we can't tell.
3634 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
3635 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
3636 test 17 != "$i" # 1/2 MB should be enough
3637 do
3638 i=`expr $i + 1`
3639 teststring=$teststring$teststring
3640 done
3641 # Only check the string length outside the loop.
3642 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3643 teststring=
3644 # Add a significant safety factor because C++ compilers can tack on
3645 # massive amounts of additional arguments before passing them to the
3646 # linker. It appears as though 1/2 is a usable value.
3647 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3648 fi
3649 ;;
3650 esac
3651 ])
3652 if test -n "$lt_cv_sys_max_cmd_len"; then
3653 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
3654 else
3655 AC_MSG_RESULT(none)
3656 fi
3657 max_cmd_len=$lt_cv_sys_max_cmd_len
3658 _LT_DECL([], [max_cmd_len], [0],
3659 [What is the maximum length of a command?])
3660 ])# LT_CMD_MAX_LEN
3661
3662 # Old name:
3663 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
3664 dnl aclocal-1.4 backwards compatibility:
3665 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
3666
3667
3668 # _LT_HEADER_DLFCN
3669 # ----------------
3670 m4_defun([_LT_HEADER_DLFCN],
3671 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
3672 ])# _LT_HEADER_DLFCN
3673
3674
3675 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3676 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3677 # ----------------------------------------------------------------
3678 m4_defun([_LT_TRY_DLOPEN_SELF],
3679 [m4_require([_LT_HEADER_DLFCN])dnl
3680 if test yes = "$cross_compiling"; then :
3681 [$4]
3682 else
3683 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3684 lt_status=$lt_dlunknown
3685 cat > conftest.$ac_ext <<_LT_EOF
3686 [#line $LINENO "configure"
3687 #include "confdefs.h"
3688
3689 #if HAVE_DLFCN_H
3690 #include <dlfcn.h>
3691 #endif
3692
3693 #include <stdio.h>
3694
3695 #ifdef RTLD_GLOBAL
3696 # define LT_DLGLOBAL RTLD_GLOBAL
3697 #else
3698 # ifdef DL_GLOBAL
3699 # define LT_DLGLOBAL DL_GLOBAL
3700 # else
3701 # define LT_DLGLOBAL 0
3702 # endif
3703 #endif
3704
3705 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
3706 find out it does not work in some platform. */
3707 #ifndef LT_DLLAZY_OR_NOW
3708 # ifdef RTLD_LAZY
3709 # define LT_DLLAZY_OR_NOW RTLD_LAZY
3710 # else
3711 # ifdef DL_LAZY
3712 # define LT_DLLAZY_OR_NOW DL_LAZY
3713 # else
3714 # ifdef RTLD_NOW
3715 # define LT_DLLAZY_OR_NOW RTLD_NOW
3716 # else
3717 # ifdef DL_NOW
3718 # define LT_DLLAZY_OR_NOW DL_NOW
3719 # else
3720 # define LT_DLLAZY_OR_NOW 0
3721 # endif
3722 # endif
3723 # endif
3724 # endif
3725 #endif
3726
3727 /* When -fvisibility=hidden is used, assume the code has been annotated
3728 correspondingly for the symbols needed. */
3729 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
3730 int fnord () __attribute__((visibility("default")));
3731 #endif
3732
3733 int fnord () { return 42; }
3734 int main ()
3735 {
3736 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
3737 int status = $lt_dlunknown;
3738
3739 if (self)
3740 {
3741 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3742 else
3743 {
3744 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
3745 else puts (dlerror ());
3746 }
3747 /* dlclose (self); */
3748 }
3749 else
3750 puts (dlerror ());
3751
3752 return status;
3753 }]
3754 _LT_EOF
3755 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
3756 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
3757 lt_status=$?
3758 case x$lt_status in
3759 x$lt_dlno_uscore) $1 ;;
3760 x$lt_dlneed_uscore) $2 ;;
3761 x$lt_dlunknown|x*) $3 ;;
3762 esac
3763 else :
3764 # compilation failed
3765 $3
3766 fi
3767 fi
3768 rm -fr conftest*
3769 ])# _LT_TRY_DLOPEN_SELF
3770
3771
3772 # LT_SYS_DLOPEN_SELF
3773 # ------------------
3774 AC_DEFUN([LT_SYS_DLOPEN_SELF],
3775 [m4_require([_LT_HEADER_DLFCN])dnl
3776 if test yes != "$enable_dlopen"; then
3777 enable_dlopen=unknown
3778 enable_dlopen_self=unknown
3779 enable_dlopen_self_static=unknown
3780 else
3781 lt_cv_dlopen=no
3782 lt_cv_dlopen_libs=
3783
3784 case $host_os in
3785 beos*)
3786 lt_cv_dlopen=load_add_on
3787 lt_cv_dlopen_libs=
3788 lt_cv_dlopen_self=yes
3789 ;;
3790
3791 mingw* | pw32* | cegcc*)
3792 lt_cv_dlopen=LoadLibrary
3793 lt_cv_dlopen_libs=
3794 ;;
3795
3796 cygwin*)
3797 lt_cv_dlopen=dlopen
3798 lt_cv_dlopen_libs=
3799 ;;
3800
3801 darwin*)
3802 # if libdl is installed we need to link against it
3803 AC_CHECK_LIB([dl], [dlopen],
3804 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
3805 lt_cv_dlopen=dyld
3806 lt_cv_dlopen_libs=
3807 lt_cv_dlopen_self=yes
3808 ])
3809 ;;
3810
3811 tpf*)
3812 # Don't try to run any link tests for TPF. We know it's impossible
3813 # because TPF is a cross-compiler, and we know how we open DSOs.
3814 lt_cv_dlopen=dlopen
3815 lt_cv_dlopen_libs=
3816 lt_cv_dlopen_self=no
3817 ;;
3818
3819 *)
3820 AC_CHECK_FUNC([shl_load],
3821 [lt_cv_dlopen=shl_load],
3822 [AC_CHECK_LIB([dld], [shl_load],
3823 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
3824 [AC_CHECK_FUNC([dlopen],
3825 [lt_cv_dlopen=dlopen],
3826 [AC_CHECK_LIB([dl], [dlopen],
3827 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
3828 [AC_CHECK_LIB([svld], [dlopen],
3829 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
3830 [AC_CHECK_LIB([dld], [dld_link],
3831 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
3832 ])
3833 ])
3834 ])
3835 ])
3836 ])
3837 ;;
3838 esac
3839
3840 if test no = "$lt_cv_dlopen"; then
3841 enable_dlopen=no
3842 else
3843 enable_dlopen=yes
3844 fi
3845
3846 case $lt_cv_dlopen in
3847 dlopen)
3848 save_CPPFLAGS=$CPPFLAGS
3849 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
3850
3851 save_LDFLAGS=$LDFLAGS
3852 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
3853
3854 save_LIBS=$LIBS
3855 LIBS="$lt_cv_dlopen_libs $LIBS"
3856
3857 AC_CACHE_CHECK([whether a program can dlopen itself],
3858 lt_cv_dlopen_self, [dnl
3859 _LT_TRY_DLOPEN_SELF(
3860 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
3861 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
3862 ])
3863
3864 if test yes = "$lt_cv_dlopen_self"; then
3865 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
3866 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
3867 lt_cv_dlopen_self_static, [dnl
3868 _LT_TRY_DLOPEN_SELF(
3869 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
3870 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
3871 ])
3872 fi
3873
3874 CPPFLAGS=$save_CPPFLAGS
3875 LDFLAGS=$save_LDFLAGS
3876 LIBS=$save_LIBS
3877 ;;
3878 esac
3879
3880 case $lt_cv_dlopen_self in
3881 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
3882 *) enable_dlopen_self=unknown ;;
3883 esac
3884
3885 case $lt_cv_dlopen_self_static in
3886 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
3887 *) enable_dlopen_self_static=unknown ;;
3888 esac
3889 fi
3890 _LT_DECL([dlopen_support], [enable_dlopen], [0],
3891 [Whether dlopen is supported])
3892 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
3893 [Whether dlopen of programs is supported])
3894 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
3895 [Whether dlopen of statically linked programs is supported])
3896 ])# LT_SYS_DLOPEN_SELF
3897
3898 # Old name:
3899 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
3900 dnl aclocal-1.4 backwards compatibility:
3901 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
3902
3903
3904 # _LT_COMPILER_C_O([TAGNAME])
3905 # ---------------------------
3906 # Check to see if options -c and -o are simultaneously supported by compiler.
3907 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
3908 m4_defun([_LT_COMPILER_C_O],
3909 [m4_require([_LT_DECL_SED])dnl
3910 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3911 m4_require([_LT_TAG_COMPILER])dnl
3912 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
3913 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
3914 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
3915 $RM -r conftest 2>/dev/null
3916 mkdir conftest
3917 cd conftest
3918 mkdir out
3919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3920
3921 lt_compiler_flag="-o out/conftest2.$ac_objext"
3922 # Insert the option either (1) after the last *FLAGS variable, or
3923 # (2) before a word containing "conftest.", or (3) at the end.
3924 # Note that $ac_compile itself does not contain backslashes and begins
3925 # with a dollar sign (not a hyphen), so the echo should work correctly.
3926 lt_compile=`echo "$ac_compile" | $SED \
3927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3928 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3929 -e 's:$: $lt_compiler_flag:'`
3930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3931 (eval "$lt_compile" 2>out/conftest.err)
3932 ac_status=$?
3933 cat out/conftest.err >&AS_MESSAGE_LOG_FD
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3935 if (exit $ac_status) && test -s out/conftest2.$ac_objext
3936 then
3937 # The compiler can only warn and ignore the option if not recognized
3938 # So say no if there are warnings
3939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
3940 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
3941 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
3942 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3943 fi
3944 fi
3945 chmod u+w . 2>&AS_MESSAGE_LOG_FD
3946 $RM conftest*
3947 # SGI C++ compiler will create directory out/ii_files/ for
3948 # template instantiation
3949 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
3950 $RM out/* && rmdir out
3951 cd ..
3952 $RM -r conftest
3953 $RM conftest*
3954 ])
3955 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
3956 [Does compiler simultaneously support -c and -o options?])
3957 ])# _LT_COMPILER_C_O
3958
3959
3960 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
3961 # ----------------------------------
3962 # Check to see if we can do hard links to lock some files if needed
3963 m4_defun([_LT_COMPILER_FILE_LOCKS],
3964 [m4_require([_LT_ENABLE_LOCK])dnl
3965 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3966 _LT_COMPILER_C_O([$1])
3967
3968 hard_links=nottested
3969 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
3970 # do not overwrite the value of need_locks provided by the user
3971 AC_MSG_CHECKING([if we can lock with hard links])
3972 hard_links=yes
3973 $RM conftest*
3974 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3975 touch conftest.a
3976 ln conftest.a conftest.b 2>&5 || hard_links=no
3977 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3978 AC_MSG_RESULT([$hard_links])
3979 if test no = "$hard_links"; then
3980 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
3981 need_locks=warn
3982 fi
3983 else
3984 need_locks=no
3985 fi
3986 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
3987 ])# _LT_COMPILER_FILE_LOCKS
3988
3989
3990 # _LT_CHECK_OBJDIR
3991 # ----------------
3992 m4_defun([_LT_CHECK_OBJDIR],
3993 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
3994 [rm -f .libs 2>/dev/null
3995 mkdir .libs 2>/dev/null
3996 if test -d .libs; then
3997 lt_cv_objdir=.libs
3998 else
3999 # MS-DOS does not allow filenames that begin with a dot.
4000 lt_cv_objdir=_libs
4001 fi
4002 rmdir .libs 2>/dev/null])
4003 objdir=$lt_cv_objdir
4004 _LT_DECL([], [objdir], [0],
4005 [The name of the directory that contains temporary libtool files])dnl
4006 m4_pattern_allow([LT_OBJDIR])dnl
4007 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
4008 [Define to the sub-directory where libtool stores uninstalled libraries.])
4009 ])# _LT_CHECK_OBJDIR
4010
4011
4012 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
4013 # --------------------------------------
4014 # Check hardcoding attributes.
4015 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
4016 [AC_MSG_CHECKING([how to hardcode library paths into programs])
4017 _LT_TAGVAR(hardcode_action, $1)=
4018 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
4019 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
4020 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
4021
4022 # We can hardcode non-existent directories.
4023 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
4024 # If the only mechanism to avoid hardcoding is shlibpath_var, we
4025 # have to relink, otherwise we might link with an installed library
4026 # when we should be linking with a yet-to-be-installed one
4027 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
4028 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
4029 # Linking always hardcodes the temporary library directory.
4030 _LT_TAGVAR(hardcode_action, $1)=relink
4031 else
4032 # We can link without hardcoding, and we can hardcode nonexisting dirs.
4033 _LT_TAGVAR(hardcode_action, $1)=immediate
4034 fi
4035 else
4036 # We cannot hardcode anything, or else we can only hardcode existing
4037 # directories.
4038 _LT_TAGVAR(hardcode_action, $1)=unsupported
4039 fi
4040 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
4041
4042 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
4043 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
4044 # Fast installation is not supported
4045 enable_fast_install=no
4046 elif test yes = "$shlibpath_overrides_runpath" ||
4047 test no = "$enable_shared"; then
4048 # Fast installation is not necessary
4049 enable_fast_install=needless
4050 fi
4051 _LT_TAGDECL([], [hardcode_action], [0],
4052 [How to hardcode a shared library path into an executable])
4053 ])# _LT_LINKER_HARDCODE_LIBPATH
4054
4055
4056 # _LT_CMD_STRIPLIB
4057 # ----------------
4058 m4_defun([_LT_CMD_STRIPLIB],
4059 [m4_require([_LT_DECL_EGREP])
4060 striplib=
4061 old_striplib=
4062 AC_MSG_CHECKING([whether stripping libraries is possible])
4063 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
4064 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4065 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4066 AC_MSG_RESULT([yes])
4067 else
4068 # FIXME - insert some real tests, host_os isn't really good enough
4069 case $host_os in
4070 darwin*)
4071 if test -n "$STRIP"; then
4072 striplib="$STRIP -x"
4073 old_striplib="$STRIP -S"
4074 AC_MSG_RESULT([yes])
4075 else
4076 AC_MSG_RESULT([no])
4077 fi
4078 ;;
4079 *)
4080 AC_MSG_RESULT([no])
4081 ;;
4082 esac
4083 fi
4084 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
4085 _LT_DECL([], [striplib], [1])
4086 ])# _LT_CMD_STRIPLIB
4087
4088
4089 # _LT_PREPARE_MUNGE_PATH_LIST
4090 # ---------------------------
4091 # Make sure func_munge_path_list() is defined correctly.
4092 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
4093 [[# func_munge_path_list VARIABLE PATH
4094 # -----------------------------------
4095 # VARIABLE is name of variable containing _space_ separated list of
4096 # directories to be munged by the contents of PATH, which is string
4097 # having a format:
4098 # "DIR[:DIR]:"
4099 # string "DIR[ DIR]" will be prepended to VARIABLE
4100 # ":DIR[:DIR]"
4101 # string "DIR[ DIR]" will be appended to VARIABLE
4102 # "DIRP[:DIRP]::[DIRA:]DIRA"
4103 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
4104 # "DIRA[ DIRA]" will be appended to VARIABLE
4105 # "DIR[:DIR]"
4106 # VARIABLE will be replaced by "DIR[ DIR]"
4107 func_munge_path_list ()
4108 {
4109 case x@S|@2 in
4110 x)
4111 ;;
4112 *:)
4113 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
4114 ;;
4115 x:*)
4116 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
4117 ;;
4118 *::*)
4119 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
4120 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
4121 ;;
4122 *)
4123 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
4124 ;;
4125 esac
4126 }
4127 ]])# _LT_PREPARE_PATH_LIST
4128
4129
4130 # _LT_SYS_DYNAMIC_LINKER([TAG])
4131 # -----------------------------
4132 # PORTME Fill in your ld.so characteristics
4133 m4_defun([_LT_SYS_DYNAMIC_LINKER],
4134 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
4135 m4_require([_LT_DECL_EGREP])dnl
4136 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4137 m4_require([_LT_DECL_OBJDUMP])dnl
4138 m4_require([_LT_DECL_SED])dnl
4139 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
4140 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
4141 AC_MSG_CHECKING([dynamic linker characteristics])
4142 m4_if([$1],
4143 [], [
4144 if test yes = "$GCC"; then
4145 case $host_os in
4146 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
4147 *) lt_awk_arg='/^libraries:/' ;;
4148 esac
4149 case $host_os in
4150 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
4151 *) lt_sed_strip_eq='s|=/|/|g' ;;
4152 esac
4153 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
4154 case $lt_search_path_spec in
4155 *\;*)
4156 # if the path contains ";" then we assume it to be the separator
4157 # otherwise default to the standard path separator (i.e. ":") - it is
4158 # assumed that no part of a normal pathname contains ";" but that should
4159 # okay in the real world where ";" in dirpaths is itself problematic.
4160 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
4161 ;;
4162 *)
4163 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
4164 ;;
4165 esac
4166 # Ok, now we have the path, separated by spaces, we can step through it
4167 # and add multilib dir if necessary...
4168 lt_tmp_lt_search_path_spec=
4169 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
4170 # ...but if some path component already ends with the multilib dir we assume
4171 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
4172 case "$lt_multi_os_dir; $lt_search_path_spec " in
4173 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
4174 lt_multi_os_dir=
4175 ;;
4176 esac
4177 for lt_sys_path in $lt_search_path_spec; do
4178 if test -d "$lt_sys_path$lt_multi_os_dir"; then
4179 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
4180 elif test -n "$lt_multi_os_dir"; then
4181 test -d "$lt_sys_path" && \
4182 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
4183 fi
4184 done
4185 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
4186 BEGIN {RS = " "; FS = "/|\n";} {
4187 lt_foo = "";
4188 lt_count = 0;
4189 for (lt_i = NF; lt_i > 0; lt_i--) {
4190 if ($lt_i != "" && $lt_i != ".") {
4191 if ($lt_i == "..") {
4192 lt_count++;
4193 } else {
4194 if (lt_count == 0) {
4195 lt_foo = "/" $lt_i lt_foo;
4196 } else {
4197 lt_count--;
4198 }
4199 }
4200 }
4201 }
4202 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
4203 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
4204 }'`
4205 # AWK program above erroneously prepends '/' to C:/dos/paths
4206 # for these hosts.
4207 case $host_os in
4208 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
4209 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
4210 esac
4211 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
4212 else
4213 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4214 fi])
4215 library_names_spec=
4216 libname_spec='lib$name'
4217 soname_spec=
4218 shrext_cmds=.so
4219 postinstall_cmds=
4220 postuninstall_cmds=
4221 finish_cmds=
4222 finish_eval=
4223 shlibpath_var=
4224 shlibpath_overrides_runpath=unknown
4225 version_type=none
4226 dynamic_linker="$host_os ld.so"
4227 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4228 need_lib_prefix=unknown
4229 hardcode_into_libs=no
4230
4231 # when you set need_version to no, make sure it does not cause -set_version
4232 # flags to be left without arguments
4233 need_version=unknown
4234
4235 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
4236 [User-defined run-time library search path.])
4237
4238 case $host_os in
4239 aix3*)
4240 version_type=linux # correct to gnu/linux during the next big refactor
4241 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
4242 shlibpath_var=LIBPATH
4243
4244 # AIX 3 has no versioning support, so we append a major version to the name.
4245 soname_spec='$libname$release$shared_ext$major'
4246 ;;
4247
4248 aix[[4-9]]*)
4249 version_type=linux # correct to gnu/linux during the next big refactor
4250 need_lib_prefix=no
4251 need_version=no
4252 hardcode_into_libs=yes
4253 if test ia64 = "$host_cpu"; then
4254 # AIX 5 supports IA64
4255 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
4256 shlibpath_var=LD_LIBRARY_PATH
4257 else
4258 # With GCC up to 2.95.x, collect2 would create an import file
4259 # for dependence libraries. The import file would start with
4260 # the line '#! .'. This would cause the generated library to
4261 # depend on '.', always an invalid library. This was fixed in
4262 # development snapshots of GCC prior to 3.0.
4263 case $host_os in
4264 aix4 | aix4.[[01]] | aix4.[[01]].*)
4265 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4266 echo ' yes '
4267 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
4268 :
4269 else
4270 can_build_shared=no
4271 fi
4272 ;;
4273 esac
4274 # Using Import Files as archive members, it is possible to support
4275 # filename-based versioning of shared library archives on AIX. While
4276 # this would work for both with and without runtime linking, it will
4277 # prevent static linking of such archives. So we do filename-based
4278 # shared library versioning with .so extension only, which is used
4279 # when both runtime linking and shared linking is enabled.
4280 # Unfortunately, runtime linking may impact performance, so we do
4281 # not want this to be the default eventually. Also, we use the
4282 # versioned .so libs for executables only if there is the -brtl
4283 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
4284 # To allow for filename-based versioning support, we need to create
4285 # libNAME.so.V as an archive file, containing:
4286 # *) an Import File, referring to the versioned filename of the
4287 # archive as well as the shared archive member, telling the
4288 # bitwidth (32 or 64) of that shared object, and providing the
4289 # list of exported symbols of that shared object, eventually
4290 # decorated with the 'weak' keyword
4291 # *) the shared object with the F_LOADONLY flag set, to really avoid
4292 # it being seen by the linker.
4293 # At run time we better use the real file rather than another symlink,
4294 # but for link time we create the symlink libNAME.so -> libNAME.so.V
4295
4296 case $with_aix_soname,$aix_use_runtimelinking in
4297 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
4298 # soname into executable. Probably we can add versioning support to
4299 # collect2, so additional links can be useful in future.
4300 aix,yes) # traditional libtool
4301 dynamic_linker='AIX unversionable lib.so'
4302 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4303 # instead of lib<name>.a to let people know that these are not
4304 # typical AIX shared libraries.
4305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4306 ;;
4307 aix,no) # traditional AIX only
4308 dynamic_linker='AIX lib.a[(]lib.so.V[)]'
4309 # We preserve .a as extension for shared libraries through AIX4.2
4310 # and later when we are not doing run time linking.
4311 library_names_spec='$libname$release.a $libname.a'
4312 soname_spec='$libname$release$shared_ext$major'
4313 ;;
4314 svr4,*) # full svr4 only
4315 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
4316 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
4317 # We do not specify a path in Import Files, so LIBPATH fires.
4318 shlibpath_overrides_runpath=yes
4319 ;;
4320 *,yes) # both, prefer svr4
4321 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
4322 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
4323 # unpreferred sharedlib libNAME.a needs extra handling
4324 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
4325 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
4326 # We do not specify a path in Import Files, so LIBPATH fires.
4327 shlibpath_overrides_runpath=yes
4328 ;;
4329 *,no) # both, prefer aix
4330 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
4331 library_names_spec='$libname$release.a $libname.a'
4332 soname_spec='$libname$release$shared_ext$major'
4333 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
4334 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
4335 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
4336 ;;
4337 esac
4338 shlibpath_var=LIBPATH
4339 fi
4340 ;;
4341
4342 amigaos*)
4343 case $host_cpu in
4344 powerpc)
4345 # Since July 2007 AmigaOS4 officially supports .so libraries.
4346 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
4347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4348 ;;
4349 m68k)
4350 library_names_spec='$libname.ixlibrary $libname.a'
4351 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4352 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
4353 ;;
4354 esac
4355 ;;
4356
4357 beos*)
4358 library_names_spec='$libname$shared_ext'
4359 dynamic_linker="$host_os ld.so"
4360 shlibpath_var=LIBRARY_PATH
4361 ;;
4362
4363 bsdi[[45]]*)
4364 version_type=linux # correct to gnu/linux during the next big refactor
4365 need_version=no
4366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4367 soname_spec='$libname$release$shared_ext$major'
4368 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4369 shlibpath_var=LD_LIBRARY_PATH
4370 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4371 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4372 # the default ld.so.conf also contains /usr/contrib/lib and
4373 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4374 # libtool to hard-code these into programs
4375 ;;
4376
4377 cygwin* | mingw* | pw32* | cegcc*)
4378 version_type=windows
4379 shrext_cmds=.dll
4380 need_version=no
4381 need_lib_prefix=no
4382
4383 case $GCC,$cc_basename in
4384 yes,*)
4385 # gcc
4386 library_names_spec='$libname.dll.a'
4387 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4388 postinstall_cmds='base_file=`basename \$file`~
4389 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
4390 dldir=$destdir/`dirname \$dlpath`~
4391 test -d \$dldir || mkdir -p \$dldir~
4392 $install_prog $dir/$dlname \$dldir/$dlname~
4393 chmod a+x \$dldir/$dlname~
4394 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
4395 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
4396 fi'
4397 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4398 dlpath=$dir/\$dldll~
4399 $RM \$dlpath'
4400 shlibpath_overrides_runpath=yes
4401
4402 case $host_os in
4403 cygwin*)
4404 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4405 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
4406 m4_if([$1], [],[
4407 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
4408 ;;
4409 mingw* | cegcc*)
4410 # MinGW DLLs use traditional 'lib' prefix
4411 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
4412 ;;
4413 pw32*)
4414 # pw32 DLLs use 'pw' prefix rather than 'lib'
4415 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
4416 ;;
4417 esac
4418 dynamic_linker='Win32 ld.exe'
4419 ;;
4420
4421 *,cl*)
4422 # Native MSVC
4423 libname_spec='$name'
4424 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
4425 library_names_spec='$libname.dll.lib'
4426
4427 case $build_os in
4428 mingw*)
4429 sys_lib_search_path_spec=
4430 lt_save_ifs=$IFS
4431 IFS=';'
4432 for lt_path in $LIB
4433 do
4434 IFS=$lt_save_ifs
4435 # Let DOS variable expansion print the short 8.3 style file name.
4436 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
4437 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
4438 done
4439 IFS=$lt_save_ifs
4440 # Convert to MSYS style.
4441 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
4442 ;;
4443 cygwin*)
4444 # Convert to unix form, then to dos form, then back to unix form
4445 # but this time dos style (no spaces!) so that the unix form looks
4446 # like /cygdrive/c/PROGRA~1:/cygdr...
4447 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
4448 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
4449 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4450 ;;
4451 *)
4452 sys_lib_search_path_spec=$LIB
4453 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
4454 # It is most probably a Windows format PATH.
4455 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4456 else
4457 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4458 fi
4459 # FIXME: find the short name or the path components, as spaces are
4460 # common. (e.g. "Program Files" -> "PROGRA~1")
4461 ;;
4462 esac
4463
4464 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4465 postinstall_cmds='base_file=`basename \$file`~
4466 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
4467 dldir=$destdir/`dirname \$dlpath`~
4468 test -d \$dldir || mkdir -p \$dldir~
4469 $install_prog $dir/$dlname \$dldir/$dlname'
4470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4471 dlpath=$dir/\$dldll~
4472 $RM \$dlpath'
4473 shlibpath_overrides_runpath=yes
4474 dynamic_linker='Win32 link.exe'
4475 ;;
4476
4477 *)
4478 # Assume MSVC wrapper
4479 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
4480 dynamic_linker='Win32 ld.exe'
4481 ;;
4482 esac
4483 # FIXME: first we should search . and the directory the executable is in
4484 shlibpath_var=PATH
4485 ;;
4486
4487 darwin* | rhapsody*)
4488 dynamic_linker="$host_os dyld"
4489 version_type=darwin
4490 need_lib_prefix=no
4491 need_version=no
4492 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
4493 soname_spec='$libname$release$major$shared_ext'
4494 shlibpath_overrides_runpath=yes
4495 shlibpath_var=DYLD_LIBRARY_PATH
4496 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
4497 m4_if([$1], [],[
4498 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
4499 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4500 ;;
4501
4502 dgux*)
4503 version_type=linux # correct to gnu/linux during the next big refactor
4504 need_lib_prefix=no
4505 need_version=no
4506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4507 soname_spec='$libname$release$shared_ext$major'
4508 shlibpath_var=LD_LIBRARY_PATH
4509 ;;
4510
4511 freebsd* | dragonfly*)
4512 # DragonFly does not have aout. When/if they implement a new
4513 # versioning mechanism, adjust this.
4514 if test -x /usr/bin/objformat; then
4515 objformat=`/usr/bin/objformat`
4516 else
4517 case $host_os in
4518 freebsd[[23]].*) objformat=aout ;;
4519 *) objformat=elf ;;
4520 esac
4521 fi
4522 version_type=freebsd-$objformat
4523 case $version_type in
4524 freebsd-elf*)
4525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4526 soname_spec='$libname$release$shared_ext$major'
4527 need_version=no
4528 need_lib_prefix=no
4529 ;;
4530 freebsd-*)
4531 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
4532 need_version=yes
4533 ;;
4534 esac
4535 shlibpath_var=LD_LIBRARY_PATH
4536 case $host_os in
4537 freebsd2.*)
4538 shlibpath_overrides_runpath=yes
4539 ;;
4540 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
4541 shlibpath_overrides_runpath=yes
4542 hardcode_into_libs=yes
4543 ;;
4544 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
4545 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
4546 shlibpath_overrides_runpath=no
4547 hardcode_into_libs=yes
4548 ;;
4549 *) # from 4.6 on, and DragonFly
4550 shlibpath_overrides_runpath=yes
4551 hardcode_into_libs=yes
4552 ;;
4553 esac
4554 ;;
4555
4556 haiku*)
4557 version_type=linux # correct to gnu/linux during the next big refactor
4558 need_lib_prefix=no
4559 need_version=no
4560 dynamic_linker="$host_os runtime_loader"
4561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4562 soname_spec='$libname$release$shared_ext$major'
4563 shlibpath_var=LIBRARY_PATH
4564 shlibpath_overrides_runpath=no
4565 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
4566 hardcode_into_libs=yes
4567 ;;
4568
4569 hpux9* | hpux10* | hpux11*)
4570 # Give a soname corresponding to the major version so that dld.sl refuses to
4571 # link against other versions.
4572 version_type=sunos
4573 need_lib_prefix=no
4574 need_version=no
4575 case $host_cpu in
4576 ia64*)
4577 shrext_cmds='.so'
4578 hardcode_into_libs=yes
4579 dynamic_linker="$host_os dld.so"
4580 shlibpath_var=LD_LIBRARY_PATH
4581 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4583 soname_spec='$libname$release$shared_ext$major'
4584 if test 32 = "$HPUX_IA64_MODE"; then
4585 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4586 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
4587 else
4588 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4589 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
4590 fi
4591 ;;
4592 hppa*64*)
4593 shrext_cmds='.sl'
4594 hardcode_into_libs=yes
4595 dynamic_linker="$host_os dld.sl"
4596 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4599 soname_spec='$libname$release$shared_ext$major'
4600 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4602 ;;
4603 *)
4604 shrext_cmds='.sl'
4605 dynamic_linker="$host_os dld.sl"
4606 shlibpath_var=SHLIB_PATH
4607 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4609 soname_spec='$libname$release$shared_ext$major'
4610 ;;
4611 esac
4612 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
4613 postinstall_cmds='chmod 555 $lib'
4614 # or fails outright, so override atomically:
4615 install_override_mode=555
4616 ;;
4617
4618 interix[[3-9]]*)
4619 version_type=linux # correct to gnu/linux during the next big refactor
4620 need_lib_prefix=no
4621 need_version=no
4622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4623 soname_spec='$libname$release$shared_ext$major'
4624 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
4625 shlibpath_var=LD_LIBRARY_PATH
4626 shlibpath_overrides_runpath=no
4627 hardcode_into_libs=yes
4628 ;;
4629
4630 irix5* | irix6* | nonstopux*)
4631 case $host_os in
4632 nonstopux*) version_type=nonstopux ;;
4633 *)
4634 if test yes = "$lt_cv_prog_gnu_ld"; then
4635 version_type=linux # correct to gnu/linux during the next big refactor
4636 else
4637 version_type=irix
4638 fi ;;
4639 esac
4640 need_lib_prefix=no
4641 need_version=no
4642 soname_spec='$libname$release$shared_ext$major'
4643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
4644 case $host_os in
4645 irix5* | nonstopux*)
4646 libsuff= shlibsuff=
4647 ;;
4648 *)
4649 case $LD in # libtool.m4 will add one of these switches to LD
4650 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4651 libsuff= shlibsuff= libmagic=32-bit;;
4652 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4653 libsuff=32 shlibsuff=N32 libmagic=N32;;
4654 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4655 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4656 *) libsuff= shlibsuff= libmagic=never-match;;
4657 esac
4658 ;;
4659 esac
4660 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4661 shlibpath_overrides_runpath=no
4662 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
4663 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
4664 hardcode_into_libs=yes
4665 ;;
4666
4667 # No shared lib support for Linux oldld, aout, or coff.
4668 linux*oldld* | linux*aout* | linux*coff*)
4669 dynamic_linker=no
4670 ;;
4671
4672 linux*android*)
4673 version_type=none # Android doesn't support versioned libraries.
4674 need_lib_prefix=no
4675 need_version=no
4676 library_names_spec='$libname$release$shared_ext'
4677 soname_spec='$libname$release$shared_ext'
4678 finish_cmds=
4679 shlibpath_var=LD_LIBRARY_PATH
4680 shlibpath_overrides_runpath=yes
4681
4682 # This implies no fast_install, which is unacceptable.
4683 # Some rework will be needed to allow for fast_install
4684 # before this can be enabled.
4685 hardcode_into_libs=yes
4686
4687 dynamic_linker='Android linker'
4688 # Don't embed -rpath directories since the linker doesn't support them.
4689 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4690 ;;
4691
4692 # This must be glibc/ELF.
4693 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4694 version_type=linux # correct to gnu/linux during the next big refactor
4695 need_lib_prefix=no
4696 need_version=no
4697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4698 soname_spec='$libname$release$shared_ext$major'
4699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4700 shlibpath_var=LD_LIBRARY_PATH
4701 shlibpath_overrides_runpath=no
4702
4703 # Some binutils ld are patched to set DT_RUNPATH
4704 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
4705 [lt_cv_shlibpath_overrides_runpath=no
4706 save_LDFLAGS=$LDFLAGS
4707 save_libdir=$libdir
4708 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
4709 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
4710 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
4711 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
4712 [lt_cv_shlibpath_overrides_runpath=yes])])
4713 LDFLAGS=$save_LDFLAGS
4714 libdir=$save_libdir
4715 ])
4716 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
4717
4718 # This implies no fast_install, which is unacceptable.
4719 # Some rework will be needed to allow for fast_install
4720 # before this can be enabled.
4721 hardcode_into_libs=yes
4722
4723 # Ideally, we could use ldconfig to report *all* directores which are
4724 # searched for libraries, however this is still not possible. Aside from not
4725 # being certain /sbin/ldconfig is available, command
4726 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
4727 # even though it is searched at run-time. Try to do the best guess by
4728 # appending ld.so.conf contents (and includes) to the search path.
4729 if test -f /etc/ld.so.conf; then
4730 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
4731 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
4732 fi
4733
4734 # We used to test for /lib/ld.so.1 and disable shared libraries on
4735 # powerpc, because MkLinux only supported shared libraries with the
4736 # GNU dynamic linker. Since this was broken with cross compilers,
4737 # most powerpc-linux boxes support dynamic linking these days and
4738 # people can always --disable-shared, the test was removed, and we
4739 # assume the GNU/Linux dynamic linker is in use.
4740 dynamic_linker='GNU/Linux ld.so'
4741 ;;
4742
4743 netbsdelf*-gnu)
4744 version_type=linux
4745 need_lib_prefix=no
4746 need_version=no
4747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4748 soname_spec='${libname}${release}${shared_ext}$major'
4749 shlibpath_var=LD_LIBRARY_PATH
4750 shlibpath_overrides_runpath=no
4751 hardcode_into_libs=yes
4752 dynamic_linker='NetBSD ld.elf_so'
4753 ;;
4754
4755 netbsd*)
4756 version_type=sunos
4757 need_lib_prefix=no
4758 need_version=no
4759 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4760 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
4761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4762 dynamic_linker='NetBSD (a.out) ld.so'
4763 else
4764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4765 soname_spec='$libname$release$shared_ext$major'
4766 dynamic_linker='NetBSD ld.elf_so'
4767 fi
4768 shlibpath_var=LD_LIBRARY_PATH
4769 shlibpath_overrides_runpath=yes
4770 hardcode_into_libs=yes
4771 ;;
4772
4773 newsos6)
4774 version_type=linux # correct to gnu/linux during the next big refactor
4775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4776 shlibpath_var=LD_LIBRARY_PATH
4777 shlibpath_overrides_runpath=yes
4778 ;;
4779
4780 *nto* | *qnx*)
4781 version_type=qnx
4782 need_lib_prefix=no
4783 need_version=no
4784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4785 soname_spec='$libname$release$shared_ext$major'
4786 shlibpath_var=LD_LIBRARY_PATH
4787 shlibpath_overrides_runpath=no
4788 hardcode_into_libs=yes
4789 dynamic_linker='ldqnx.so'
4790 ;;
4791
4792 openbsd* | bitrig*)
4793 version_type=sunos
4794 sys_lib_dlsearch_path_spec=/usr/lib
4795 need_lib_prefix=no
4796 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4797 need_version=no
4798 else
4799 need_version=yes
4800 fi
4801 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
4802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4803 shlibpath_var=LD_LIBRARY_PATH
4804 shlibpath_overrides_runpath=yes
4805 ;;
4806
4807 os2*)
4808 libname_spec='$name'
4809 version_type=windows
4810 shrext_cmds=.dll
4811 need_version=no
4812 need_lib_prefix=no
4813 # OS/2 can only load a DLL with a base name of 8 characters or less.
4814 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
4815 v=$($ECHO $release$versuffix | tr -d .-);
4816 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
4817 $ECHO $n$v`$shared_ext'
4818 library_names_spec='${libname}_dll.$libext'
4819 dynamic_linker='OS/2 ld.exe'
4820 shlibpath_var=BEGINLIBPATH
4821 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4822 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4823 postinstall_cmds='base_file=`basename \$file`~
4824 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
4825 dldir=$destdir/`dirname \$dlpath`~
4826 test -d \$dldir || mkdir -p \$dldir~
4827 $install_prog $dir/$dlname \$dldir/$dlname~
4828 chmod a+x \$dldir/$dlname~
4829 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
4830 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
4831 fi'
4832 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
4833 dlpath=$dir/\$dldll~
4834 $RM \$dlpath'
4835 ;;
4836
4837 osf3* | osf4* | osf5*)
4838 version_type=osf
4839 need_lib_prefix=no
4840 need_version=no
4841 soname_spec='$libname$release$shared_ext$major'
4842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4843 shlibpath_var=LD_LIBRARY_PATH
4844 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4846 ;;
4847
4848 rdos*)
4849 dynamic_linker=no
4850 ;;
4851
4852 solaris*)
4853 version_type=linux # correct to gnu/linux during the next big refactor
4854 need_lib_prefix=no
4855 need_version=no
4856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4857 soname_spec='$libname$release$shared_ext$major'
4858 shlibpath_var=LD_LIBRARY_PATH
4859 shlibpath_overrides_runpath=yes
4860 hardcode_into_libs=yes
4861 # ldd complains unless libraries are executable
4862 postinstall_cmds='chmod +x $lib'
4863 ;;
4864
4865 sunos4*)
4866 version_type=sunos
4867 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
4868 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4869 shlibpath_var=LD_LIBRARY_PATH
4870 shlibpath_overrides_runpath=yes
4871 if test yes = "$with_gnu_ld"; then
4872 need_lib_prefix=no
4873 fi
4874 need_version=yes
4875 ;;
4876
4877 sysv4 | sysv4.3*)
4878 version_type=linux # correct to gnu/linux during the next big refactor
4879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4880 soname_spec='$libname$release$shared_ext$major'
4881 shlibpath_var=LD_LIBRARY_PATH
4882 case $host_vendor in
4883 sni)
4884 shlibpath_overrides_runpath=no
4885 need_lib_prefix=no
4886 runpath_var=LD_RUN_PATH
4887 ;;
4888 siemens)
4889 need_lib_prefix=no
4890 ;;
4891 motorola)
4892 need_lib_prefix=no
4893 need_version=no
4894 shlibpath_overrides_runpath=no
4895 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4896 ;;
4897 esac
4898 ;;
4899
4900 sysv4*MP*)
4901 if test -d /usr/nec; then
4902 version_type=linux # correct to gnu/linux during the next big refactor
4903 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
4904 soname_spec='$libname$shared_ext.$major'
4905 shlibpath_var=LD_LIBRARY_PATH
4906 fi
4907 ;;
4908
4909 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4910 version_type=sco
4911 need_lib_prefix=no
4912 need_version=no
4913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
4914 soname_spec='$libname$release$shared_ext$major'
4915 shlibpath_var=LD_LIBRARY_PATH
4916 shlibpath_overrides_runpath=yes
4917 hardcode_into_libs=yes
4918 if test yes = "$with_gnu_ld"; then
4919 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
4920 else
4921 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
4922 case $host_os in
4923 sco3.2v5*)
4924 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
4925 ;;
4926 esac
4927 fi
4928 sys_lib_dlsearch_path_spec='/usr/lib'
4929 ;;
4930
4931 tpf*)
4932 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
4933 version_type=linux # correct to gnu/linux during the next big refactor
4934 need_lib_prefix=no
4935 need_version=no
4936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4937 shlibpath_var=LD_LIBRARY_PATH
4938 shlibpath_overrides_runpath=no
4939 hardcode_into_libs=yes
4940 ;;
4941
4942 uts4*)
4943 version_type=linux # correct to gnu/linux during the next big refactor
4944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
4945 soname_spec='$libname$release$shared_ext$major'
4946 shlibpath_var=LD_LIBRARY_PATH
4947 ;;
4948
4949 *)
4950 dynamic_linker=no
4951 ;;
4952 esac
4953 AC_MSG_RESULT([$dynamic_linker])
4954 test no = "$dynamic_linker" && can_build_shared=no
4955
4956 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4957 if test yes = "$GCC"; then
4958 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4959 fi
4960
4961 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
4962 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
4963 fi
4964
4965 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
4966 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
4967 fi
4968
4969 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
4970 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
4971
4972 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
4973 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
4974
4975 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
4976 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
4977
4978 _LT_DECL([], [variables_saved_for_relink], [1],
4979 [Variables whose values should be saved in libtool wrapper scripts and
4980 restored at link time])
4981 _LT_DECL([], [need_lib_prefix], [0],
4982 [Do we need the "lib" prefix for modules?])
4983 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
4984 _LT_DECL([], [version_type], [0], [Library versioning type])
4985 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
4986 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
4987 _LT_DECL([], [shlibpath_overrides_runpath], [0],
4988 [Is shlibpath searched before the hard-coded library search path?])
4989 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
4990 _LT_DECL([], [library_names_spec], [1],
4991 [[List of archive names. First name is the real one, the rest are links.
4992 The last name is the one that the linker finds with -lNAME]])
4993 _LT_DECL([], [soname_spec], [1],
4994 [[The coded name of the library, if different from the real name]])
4995 _LT_DECL([], [install_override_mode], [1],
4996 [Permission mode override for installation of shared libraries])
4997 _LT_DECL([], [postinstall_cmds], [2],
4998 [Command to use after installation of a shared archive])
4999 _LT_DECL([], [postuninstall_cmds], [2],
5000 [Command to use after uninstallation of a shared archive])
5001 _LT_DECL([], [finish_cmds], [2],
5002 [Commands used to finish a libtool library installation in a directory])
5003 _LT_DECL([], [finish_eval], [1],
5004 [[As "finish_cmds", except a single script fragment to be evaled but
5005 not shown]])
5006 _LT_DECL([], [hardcode_into_libs], [0],
5007 [Whether we should hardcode library paths into libraries])
5008 _LT_DECL([], [sys_lib_search_path_spec], [2],
5009 [Compile-time system search path for libraries])
5010 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
5011 [Detected run-time system search path for libraries])
5012 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
5013 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
5014 ])# _LT_SYS_DYNAMIC_LINKER
5015
5016
5017 # _LT_PATH_TOOL_PREFIX(TOOL)
5018 # --------------------------
5019 # find a file program that can recognize shared library
5020 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
5021 [m4_require([_LT_DECL_EGREP])dnl
5022 AC_MSG_CHECKING([for $1])
5023 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
5024 [case $MAGIC_CMD in
5025 [[\\/*] | ?:[\\/]*])
5026 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
5027 ;;
5028 *)
5029 lt_save_MAGIC_CMD=$MAGIC_CMD
5030 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5031 dnl $ac_dummy forces splitting on constant user-supplied paths.
5032 dnl POSIX.2 word splitting is done only on the output of word expansions,
5033 dnl not every word. This closes a longstanding sh security hole.
5034 ac_dummy="m4_if([$2], , $PATH, [$2])"
5035 for ac_dir in $ac_dummy; do
5036 IFS=$lt_save_ifs
5037 test -z "$ac_dir" && ac_dir=.
5038 if test -f "$ac_dir/$1"; then
5039 lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
5040 if test -n "$file_magic_test_file"; then
5041 case $deplibs_check_method in
5042 "file_magic "*)
5043 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5044 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
5045 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5046 $EGREP "$file_magic_regex" > /dev/null; then
5047 :
5048 else
5049 cat <<_LT_EOF 1>&2
5050
5051 *** Warning: the command libtool uses to detect shared libraries,
5052 *** $file_magic_cmd, produces output that libtool cannot recognize.
5053 *** The result is that libtool may fail to recognize shared libraries
5054 *** as such. This will affect the creation of libtool libraries that
5055 *** depend on shared libraries, but programs linked with such libtool
5056 *** libraries will work regardless of this problem. Nevertheless, you
5057 *** may want to report the problem to your system manager and/or to
5058 *** bug-libtool@gnu.org
5059
5060 _LT_EOF
5061 fi ;;
5062 esac
5063 fi
5064 break
5065 fi
5066 done
5067 IFS=$lt_save_ifs
5068 MAGIC_CMD=$lt_save_MAGIC_CMD
5069 ;;
5070 esac])
5071 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
5072 if test -n "$MAGIC_CMD"; then
5073 AC_MSG_RESULT($MAGIC_CMD)
5074 else
5075 AC_MSG_RESULT(no)
5076 fi
5077 _LT_DECL([], [MAGIC_CMD], [0],
5078 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
5079 ])# _LT_PATH_TOOL_PREFIX
5080
5081 # Old name:
5082 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
5083 dnl aclocal-1.4 backwards compatibility:
5084 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
5085
5086
5087 # _LT_PATH_MAGIC
5088 # --------------
5089 # find a file program that can recognize a shared library
5090 m4_defun([_LT_PATH_MAGIC],
5091 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
5092 if test -z "$lt_cv_path_MAGIC_CMD"; then
5093 if test -n "$ac_tool_prefix"; then
5094 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
5095 else
5096 MAGIC_CMD=:
5097 fi
5098 fi
5099 ])# _LT_PATH_MAGIC
5100
5101
5102 # LT_PATH_LD
5103 # ----------
5104 # find the pathname to the GNU or non-GNU linker
5105 AC_DEFUN([LT_PATH_LD],
5106 [AC_REQUIRE([AC_PROG_CC])dnl
5107 AC_REQUIRE([AC_CANONICAL_HOST])dnl
5108 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
5109 m4_require([_LT_DECL_SED])dnl
5110 m4_require([_LT_DECL_EGREP])dnl
5111 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
5112
5113 AC_ARG_WITH([gnu-ld],
5114 [AS_HELP_STRING([--with-gnu-ld],
5115 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
5116 [test no = "$withval" || with_gnu_ld=yes],
5117 [with_gnu_ld=no])dnl
5118
5119 ac_prog=ld
5120 if test yes = "$GCC"; then
5121 # Check if gcc -print-prog-name=ld gives a path.
5122 AC_MSG_CHECKING([for ld used by $CC])
5123 case $host in
5124 *-*-mingw*)
5125 # gcc leaves a trailing carriage return, which upsets mingw
5126 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5127 *)
5128 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5129 esac
5130 case $ac_prog in
5131 # Accept absolute paths.
5132 [[\\/]]* | ?:[[\\/]]*)
5133 re_direlt='/[[^/]][[^/]]*/\.\./'
5134 # Canonicalize the pathname of ld
5135 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5136 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5137 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5138 done
5139 test -z "$LD" && LD=$ac_prog
5140 ;;
5141 "")
5142 # If it fails, then pretend we aren't using GCC.
5143 ac_prog=ld
5144 ;;
5145 *)
5146 # If it is relative, then search for the first ld in PATH.
5147 with_gnu_ld=unknown
5148 ;;
5149 esac
5150 elif test yes = "$with_gnu_ld"; then
5151 AC_MSG_CHECKING([for GNU ld])
5152 else
5153 AC_MSG_CHECKING([for non-GNU ld])
5154 fi
5155 AC_CACHE_VAL(lt_cv_path_LD,
5156 [if test -z "$LD"; then
5157 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5158 for ac_dir in $PATH; do
5159 IFS=$lt_save_ifs
5160 test -z "$ac_dir" && ac_dir=.
5161 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5162 lt_cv_path_LD=$ac_dir/$ac_prog
5163 # Check to see if the program is GNU ld. I'd rather use --version,
5164 # but apparently some variants of GNU ld only accept -v.
5165 # Break only if it was the GNU/non-GNU ld that we prefer.
5166 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5167 *GNU* | *'with BFD'*)
5168 test no != "$with_gnu_ld" && break
5169 ;;
5170 *)
5171 test yes != "$with_gnu_ld" && break
5172 ;;
5173 esac
5174 fi
5175 done
5176 IFS=$lt_save_ifs
5177 else
5178 lt_cv_path_LD=$LD # Let the user override the test with a path.
5179 fi])
5180 LD=$lt_cv_path_LD
5181 if test -n "$LD"; then
5182 AC_MSG_RESULT($LD)
5183 else
5184 AC_MSG_RESULT(no)
5185 fi
5186 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
5187 _LT_PATH_LD_GNU
5188 AC_SUBST([LD])
5189
5190 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
5191 ])# LT_PATH_LD
5192
5193 # Old names:
5194 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
5195 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
5196 dnl aclocal-1.4 backwards compatibility:
5197 dnl AC_DEFUN([AM_PROG_LD], [])
5198 dnl AC_DEFUN([AC_PROG_LD], [])
5199
5200
5201 # _LT_PATH_LD_GNU
5202 #- --------------
5203 m4_defun([_LT_PATH_LD_GNU],
5204 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
5205 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
5206 case `$LD -v 2>&1 </dev/null` in
5207 *GNU* | *'with BFD'*)
5208 lt_cv_prog_gnu_ld=yes
5209 ;;
5210 *)
5211 lt_cv_prog_gnu_ld=no
5212 ;;
5213 esac])
5214 with_gnu_ld=$lt_cv_prog_gnu_ld
5215 ])# _LT_PATH_LD_GNU
5216
5217
5218 # _LT_CMD_RELOAD
5219 # --------------
5220 # find reload flag for linker
5221 # -- PORTME Some linkers may need a different reload flag.
5222 m4_defun([_LT_CMD_RELOAD],
5223 [AC_CACHE_CHECK([for $LD option to reload object files],
5224 lt_cv_ld_reload_flag,
5225 [lt_cv_ld_reload_flag='-r'])
5226 reload_flag=$lt_cv_ld_reload_flag
5227 case $reload_flag in
5228 "" | " "*) ;;
5229 *) reload_flag=" $reload_flag" ;;
5230 esac
5231 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5232 case $host_os in
5233 cygwin* | mingw* | pw32* | cegcc*)
5234 if test yes != "$GCC"; then
5235 reload_cmds=false
5236 fi
5237 ;;
5238 darwin*)
5239 if test yes = "$GCC"; then
5240 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5241 else
5242 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5243 fi
5244 ;;
5245 esac
5246 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
5247 _LT_TAGDECL([], [reload_cmds], [2])dnl
5248 ])# _LT_CMD_RELOAD
5249
5250
5251 # _LT_PATH_DD
5252 # -----------
5253 # find a working dd
5254 m4_defun([_LT_PATH_DD],
5255 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
5256 [printf 0123456789abcdef0123456789abcdef >conftest.i
5257 cat conftest.i conftest.i >conftest2.i
5258 : ${lt_DD:=$DD}
5259 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
5260 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5261 cmp -s conftest.i conftest.out \
5262 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
5263 fi])
5264 rm -f conftest.i conftest2.i conftest.out])
5265 ])# _LT_PATH_DD
5266
5267
5268 # _LT_CMD_TRUNCATE
5269 # ----------------
5270 # find command to truncate a binary pipe
5271 m4_defun([_LT_CMD_TRUNCATE],
5272 [m4_require([_LT_PATH_DD])
5273 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
5274 [printf 0123456789abcdef0123456789abcdef >conftest.i
5275 cat conftest.i conftest.i >conftest2.i
5276 lt_cv_truncate_bin=
5277 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5278 cmp -s conftest.i conftest.out \
5279 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
5280 fi
5281 rm -f conftest.i conftest2.i conftest.out
5282 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
5283 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
5284 [Command to truncate a binary pipe])
5285 ])# _LT_CMD_TRUNCATE
5286
5287
5288 # _LT_CHECK_MAGIC_METHOD
5289 # ----------------------
5290 # how to check for library dependencies
5291 # -- PORTME fill in with the dynamic library characteristics
5292 m4_defun([_LT_CHECK_MAGIC_METHOD],
5293 [m4_require([_LT_DECL_EGREP])
5294 m4_require([_LT_DECL_OBJDUMP])
5295 AC_CACHE_CHECK([how to recognize dependent libraries],
5296 lt_cv_deplibs_check_method,
5297 [lt_cv_file_magic_cmd='$MAGIC_CMD'
5298 lt_cv_file_magic_test_file=
5299 lt_cv_deplibs_check_method='unknown'
5300 # Need to set the preceding variable on all platforms that support
5301 # interlibrary dependencies.
5302 # 'none' -- dependencies not supported.
5303 # 'unknown' -- same as none, but documents that we really don't know.
5304 # 'pass_all' -- all dependencies passed with no checks.
5305 # 'test_compile' -- check by making test program.
5306 # 'file_magic [[regex]]' -- check by looking for files in library path
5307 # that responds to the $file_magic_cmd with a given extended regex.
5308 # If you have 'file' or equivalent on your system and you're not sure
5309 # whether 'pass_all' will *always* work, you probably want this one.
5310
5311 case $host_os in
5312 aix[[4-9]]*)
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315
5316 beos*)
5317 lt_cv_deplibs_check_method=pass_all
5318 ;;
5319
5320 bsdi[[45]]*)
5321 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
5322 lt_cv_file_magic_cmd='/usr/bin/file -L'
5323 lt_cv_file_magic_test_file=/shlib/libc.so
5324 ;;
5325
5326 cygwin*)
5327 # func_win32_libid is a shell function defined in ltmain.sh
5328 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5329 lt_cv_file_magic_cmd='func_win32_libid'
5330 ;;
5331
5332 mingw* | pw32*)
5333 # Base MSYS/MinGW do not provide the 'file' command needed by
5334 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5335 # unless we find 'file', for example because we are cross-compiling.
5336 if ( file / ) >/dev/null 2>&1; then
5337 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5338 lt_cv_file_magic_cmd='func_win32_libid'
5339 else
5340 # Keep this pattern in sync with the one in func_win32_libid.
5341 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5342 lt_cv_file_magic_cmd='$OBJDUMP -f'
5343 fi
5344 ;;
5345
5346 cegcc*)
5347 # use the weaker test based on 'objdump'. See mingw*.
5348 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5349 lt_cv_file_magic_cmd='$OBJDUMP -f'
5350 ;;
5351
5352 darwin* | rhapsody*)
5353 lt_cv_deplibs_check_method=pass_all
5354 ;;
5355
5356 freebsd* | dragonfly*)
5357 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5358 case $host_cpu in
5359 i*86 )
5360 # Not sure whether the presence of OpenBSD here was a mistake.
5361 # Let's accept both of them until this is cleared up.
5362 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
5363 lt_cv_file_magic_cmd=/usr/bin/file
5364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5365 ;;
5366 esac
5367 else
5368 lt_cv_deplibs_check_method=pass_all
5369 fi
5370 ;;
5371
5372 haiku*)
5373 lt_cv_deplibs_check_method=pass_all
5374 ;;
5375
5376 hpux10.20* | hpux11*)
5377 lt_cv_file_magic_cmd=/usr/bin/file
5378 case $host_cpu in
5379 ia64*)
5380 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
5381 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5382 ;;
5383 hppa*64*)
5384 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
5385 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5386 ;;
5387 *)
5388 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
5389 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5390 ;;
5391 esac
5392 ;;
5393
5394 interix[[3-9]]*)
5395 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5396 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
5397 ;;
5398
5399 irix5* | irix6* | nonstopux*)
5400 case $LD in
5401 *-32|*"-32 ") libmagic=32-bit;;
5402 *-n32|*"-n32 ") libmagic=N32;;
5403 *-64|*"-64 ") libmagic=64-bit;;
5404 *) libmagic=never-match;;
5405 esac
5406 lt_cv_deplibs_check_method=pass_all
5407 ;;
5408
5409 # This must be glibc/ELF.
5410 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5411 lt_cv_deplibs_check_method=pass_all
5412 ;;
5413
5414 netbsd* | netbsdelf*-gnu)
5415 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5416 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
5417 else
5418 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
5419 fi
5420 ;;
5421
5422 newos6*)
5423 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
5424 lt_cv_file_magic_cmd=/usr/bin/file
5425 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5426 ;;
5427
5428 *nto* | *qnx*)
5429 lt_cv_deplibs_check_method=pass_all
5430 ;;
5431
5432 openbsd* | bitrig*)
5433 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5434 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
5435 else
5436 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
5437 fi
5438 ;;
5439
5440 osf3* | osf4* | osf5*)
5441 lt_cv_deplibs_check_method=pass_all
5442 ;;
5443
5444 rdos*)
5445 lt_cv_deplibs_check_method=pass_all
5446 ;;
5447
5448 solaris*)
5449 lt_cv_deplibs_check_method=pass_all
5450 ;;
5451
5452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5453 lt_cv_deplibs_check_method=pass_all
5454 ;;
5455
5456 sysv4 | sysv4.3*)
5457 case $host_vendor in
5458 motorola)
5459 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
5460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5461 ;;
5462 ncr)
5463 lt_cv_deplibs_check_method=pass_all
5464 ;;
5465 sequent)
5466 lt_cv_file_magic_cmd='/bin/file'
5467 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
5468 ;;
5469 sni)
5470 lt_cv_file_magic_cmd='/bin/file'
5471 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
5472 lt_cv_file_magic_test_file=/lib/libc.so
5473 ;;
5474 siemens)
5475 lt_cv_deplibs_check_method=pass_all
5476 ;;
5477 pc)
5478 lt_cv_deplibs_check_method=pass_all
5479 ;;
5480 esac
5481 ;;
5482
5483 tpf*)
5484 lt_cv_deplibs_check_method=pass_all
5485 ;;
5486 os2*)
5487 lt_cv_deplibs_check_method=pass_all
5488 ;;
5489 esac
5490 ])
5491
5492 file_magic_glob=
5493 want_nocaseglob=no
5494 if test "$build" = "$host"; then
5495 case $host_os in
5496 mingw* | pw32*)
5497 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5498 want_nocaseglob=yes
5499 else
5500 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
5501 fi
5502 ;;
5503 esac
5504 fi
5505
5506 file_magic_cmd=$lt_cv_file_magic_cmd
5507 deplibs_check_method=$lt_cv_deplibs_check_method
5508 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5509
5510 _LT_DECL([], [deplibs_check_method], [1],
5511 [Method to check whether dependent libraries are shared objects])
5512 _LT_DECL([], [file_magic_cmd], [1],
5513 [Command to use when deplibs_check_method = "file_magic"])
5514 _LT_DECL([], [file_magic_glob], [1],
5515 [How to find potential files when deplibs_check_method = "file_magic"])
5516 _LT_DECL([], [want_nocaseglob], [1],
5517 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
5518 ])# _LT_CHECK_MAGIC_METHOD
5519
5520
5521 # LT_PATH_NM
5522 # ----------
5523 # find the pathname to a BSD- or MS-compatible name lister
5524 AC_DEFUN([LT_PATH_NM],
5525 [AC_REQUIRE([AC_PROG_CC])dnl
5526 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
5527 [if test -n "$NM"; then
5528 # Let the user override the test.
5529 lt_cv_path_NM=$NM
5530 else
5531 lt_nm_to_check=${ac_tool_prefix}nm
5532 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5533 lt_nm_to_check="$lt_nm_to_check nm"
5534 fi
5535 for lt_tmp_nm in $lt_nm_to_check; do
5536 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5537 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5538 IFS=$lt_save_ifs
5539 test -z "$ac_dir" && ac_dir=.
5540 tmp_nm=$ac_dir/$lt_tmp_nm
5541 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5542 # Check to see if the nm accepts a BSD-compat flag.
5543 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5544 # nm: unknown option "B" ignored
5545 # Tru64's nm complains that /dev/null is an invalid object file
5546 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5547 case $build_os in
5548 mingw*) lt_bad_file=conftest.nm/nofile ;;
5549 *) lt_bad_file=/dev/null ;;
5550 esac
5551 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5552 *$lt_bad_file* | *'Invalid file or object type'*)
5553 lt_cv_path_NM="$tmp_nm -B"
5554 break 2
5555 ;;
5556 *)
5557 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5558 */dev/null*)
5559 lt_cv_path_NM="$tmp_nm -p"
5560 break 2
5561 ;;
5562 *)
5563 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5564 continue # so that we can try to find one that supports BSD flags
5565 ;;
5566 esac
5567 ;;
5568 esac
5569 fi
5570 done
5571 IFS=$lt_save_ifs
5572 done
5573 : ${lt_cv_path_NM=no}
5574 fi])
5575 if test no != "$lt_cv_path_NM"; then
5576 NM=$lt_cv_path_NM
5577 else
5578 # Didn't find any BSD compatible name lister, look for dumpbin.
5579 if test -n "$DUMPBIN"; then :
5580 # Let the user override the test.
5581 else
5582 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
5583 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5584 *COFF*)
5585 DUMPBIN="$DUMPBIN -symbols -headers"
5586 ;;
5587 *)
5588 DUMPBIN=:
5589 ;;
5590 esac
5591 fi
5592 AC_SUBST([DUMPBIN])
5593 if test : != "$DUMPBIN"; then
5594 NM=$DUMPBIN
5595 fi
5596 fi
5597 test -z "$NM" && NM=nm
5598 AC_SUBST([NM])
5599 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
5600
5601 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
5602 [lt_cv_nm_interface="BSD nm"
5603 echo "int some_variable = 0;" > conftest.$ac_ext
5604 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
5605 (eval "$ac_compile" 2>conftest.err)
5606 cat conftest.err >&AS_MESSAGE_LOG_FD
5607 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
5608 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5609 cat conftest.err >&AS_MESSAGE_LOG_FD
5610 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
5611 cat conftest.out >&AS_MESSAGE_LOG_FD
5612 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5613 lt_cv_nm_interface="MS dumpbin"
5614 fi
5615 rm -f conftest*])
5616 ])# LT_PATH_NM
5617
5618 # Old names:
5619 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
5620 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
5621 dnl aclocal-1.4 backwards compatibility:
5622 dnl AC_DEFUN([AM_PROG_NM], [])
5623 dnl AC_DEFUN([AC_PROG_NM], [])
5624
5625 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
5626 # --------------------------------
5627 # how to determine the name of the shared library
5628 # associated with a specific link library.
5629 # -- PORTME fill in with the dynamic library characteristics
5630 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
5631 [m4_require([_LT_DECL_EGREP])
5632 m4_require([_LT_DECL_OBJDUMP])
5633 m4_require([_LT_DECL_DLLTOOL])
5634 AC_CACHE_CHECK([how to associate runtime and link libraries],
5635 lt_cv_sharedlib_from_linklib_cmd,
5636 [lt_cv_sharedlib_from_linklib_cmd='unknown'
5637
5638 case $host_os in
5639 cygwin* | mingw* | pw32* | cegcc*)
5640 # two different shell functions defined in ltmain.sh;
5641 # decide which one to use based on capabilities of $DLLTOOL
5642 case `$DLLTOOL --help 2>&1` in
5643 *--identify-strict*)
5644 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5645 ;;
5646 *)
5647 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5648 ;;
5649 esac
5650 ;;
5651 *)
5652 # fallback: assume linklib IS sharedlib
5653 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5654 ;;
5655 esac
5656 ])
5657 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5658 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5659
5660 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
5661 [Command to associate shared and link libraries])
5662 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
5663
5664
5665 # _LT_PATH_MANIFEST_TOOL
5666 # ----------------------
5667 # locate the manifest tool
5668 m4_defun([_LT_PATH_MANIFEST_TOOL],
5669 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
5670 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5671 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
5672 [lt_cv_path_mainfest_tool=no
5673 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
5674 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5675 cat conftest.err >&AS_MESSAGE_LOG_FD
5676 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5677 lt_cv_path_mainfest_tool=yes
5678 fi
5679 rm -f conftest*])
5680 if test yes != "$lt_cv_path_mainfest_tool"; then
5681 MANIFEST_TOOL=:
5682 fi
5683 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
5684 ])# _LT_PATH_MANIFEST_TOOL
5685
5686
5687 # _LT_DLL_DEF_P([FILE])
5688 # ---------------------
5689 # True iff FILE is a Windows DLL '.def' file.
5690 # Keep in sync with func_dll_def_p in the libtool script
5691 AC_DEFUN([_LT_DLL_DEF_P],
5692 [dnl
5693 test DEF = "`$SED -n dnl
5694 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
5695 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
5696 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
5697 -e q dnl Only consider the first "real" line
5698 $1`" dnl
5699 ])# _LT_DLL_DEF_P
5700
5701
5702 # LT_LIB_M
5703 # --------
5704 # check for math library
5705 AC_DEFUN([LT_LIB_M],
5706 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
5707 LIBM=
5708 case $host in
5709 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
5710 # These system don't have libm, or don't need it
5711 ;;
5712 *-ncr-sysv4.3*)
5713 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
5714 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
5715 ;;
5716 *)
5717 AC_CHECK_LIB(m, cos, LIBM=-lm)
5718 ;;
5719 esac
5720 AC_SUBST([LIBM])
5721 ])# LT_LIB_M
5722
5723 # Old name:
5724 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
5725 dnl aclocal-1.4 backwards compatibility:
5726 dnl AC_DEFUN([AC_CHECK_LIBM], [])
5727
5728
5729 # _LT_COMPILER_NO_RTTI([TAGNAME])
5730 # -------------------------------
5731 m4_defun([_LT_COMPILER_NO_RTTI],
5732 [m4_require([_LT_TAG_COMPILER])dnl
5733
5734 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5735
5736 if test yes = "$GCC"; then
5737 case $cc_basename in
5738 nvcc*)
5739 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
5740 *)
5741 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
5742 esac
5743
5744 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5745 lt_cv_prog_compiler_rtti_exceptions,
5746 [-fno-rtti -fno-exceptions], [],
5747 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5748 fi
5749 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
5750 [Compiler flag to turn off builtin functions])
5751 ])# _LT_COMPILER_NO_RTTI
5752
5753
5754 # _LT_CMD_GLOBAL_SYMBOLS
5755 # ----------------------
5756 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
5757 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
5758 AC_REQUIRE([AC_PROG_CC])dnl
5759 AC_REQUIRE([AC_PROG_AWK])dnl
5760 AC_REQUIRE([LT_PATH_NM])dnl
5761 AC_REQUIRE([LT_PATH_LD])dnl
5762 m4_require([_LT_DECL_SED])dnl
5763 m4_require([_LT_DECL_EGREP])dnl
5764 m4_require([_LT_TAG_COMPILER])dnl
5765
5766 # Check for command to grab the raw symbol name followed by C symbol from nm.
5767 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5768 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5769 [
5770 # These are sane defaults that work on at least a few old systems.
5771 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5772
5773 # Character class describing NM global symbol codes.
5774 symcode='[[BCDEGRST]]'
5775
5776 # Regexp to match symbols that can be accessed directly from C.
5777 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5778
5779 # Define system-specific variables.
5780 case $host_os in
5781 aix*)
5782 symcode='[[BCDT]]'
5783 ;;
5784 cygwin* | mingw* | pw32* | cegcc*)
5785 symcode='[[ABCDGISTW]]'
5786 ;;
5787 hpux*)
5788 if test ia64 = "$host_cpu"; then
5789 symcode='[[ABCDEGRST]]'
5790 fi
5791 ;;
5792 irix* | nonstopux*)
5793 symcode='[[BCDEGRST]]'
5794 ;;
5795 osf*)
5796 symcode='[[BCDEGQRST]]'
5797 ;;
5798 solaris*)
5799 symcode='[[BDRT]]'
5800 ;;
5801 sco3.2v5*)
5802 symcode='[[DT]]'
5803 ;;
5804 sysv4.2uw2*)
5805 symcode='[[DT]]'
5806 ;;
5807 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5808 symcode='[[ABDT]]'
5809 ;;
5810 sysv4)
5811 symcode='[[DFNSTU]]'
5812 ;;
5813 esac
5814
5815 # If we're using GNU nm, then use its standard symbol codes.
5816 case `$NM -V 2>&1` in
5817 *GNU* | *'with BFD'*)
5818 symcode='[[ABCDGIRSTW]]' ;;
5819 esac
5820
5821 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5822 # Gets list of data symbols to import.
5823 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5824 # Adjust the below global symbol transforms to fixup imported variables.
5825 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5826 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5827 lt_c_name_lib_hook="\
5828 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5829 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5830 else
5831 # Disable hooks by default.
5832 lt_cv_sys_global_symbol_to_import=
5833 lt_cdecl_hook=
5834 lt_c_name_hook=
5835 lt_c_name_lib_hook=
5836 fi
5837
5838 # Transform an extracted symbol line into a proper C declaration.
5839 # Some systems (esp. on ia64) link data and code symbols differently,
5840 # so use this general approach.
5841 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5842 $lt_cdecl_hook\
5843 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5844 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5845
5846 # Transform an extracted symbol line into symbol name and symbol address
5847 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5848 $lt_c_name_hook\
5849 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5850 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5851
5852 # Transform an extracted symbol line into symbol name with lib prefix and
5853 # symbol address.
5854 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5855 $lt_c_name_lib_hook\
5856 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5857 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5858 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5859
5860 # Handle CRLF in mingw tool chain
5861 opt_cr=
5862 case $build_os in
5863 mingw*)
5864 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5865 ;;
5866 esac
5867
5868 # Try without a prefix underscore, then with it.
5869 for ac_symprfx in "" "_"; do
5870
5871 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5872 symxfrm="\\1 $ac_symprfx\\2 \\2"
5873
5874 # Write the raw and C identifiers.
5875 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5876 # Fake it for dumpbin and say T for any non-static function,
5877 # D for any global variable and I for any imported variable.
5878 # Also find C++ and __fastcall symbols from MSVC++,
5879 # which start with @ or ?.
5880 lt_cv_sys_global_symbol_pipe="$AWK ['"\
5881 " {last_section=section; section=\$ 3};"\
5882 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5883 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5884 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5885 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5886 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5887 " \$ 0!~/External *\|/{next};"\
5888 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5889 " {if(hide[section]) next};"\
5890 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5891 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5892 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5893 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5894 " ' prfx=^$ac_symprfx]"
5895 else
5896 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5897 fi
5898 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5899
5900 # Check to see that the pipe works correctly.
5901 pipe_works=no
5902
5903 rm -f conftest*
5904 cat > conftest.$ac_ext <<_LT_EOF
5905 #ifdef __cplusplus
5906 extern "C" {
5907 #endif
5908 char nm_test_var;
5909 void nm_test_func(void);
5910 void nm_test_func(void){}
5911 #ifdef __cplusplus
5912 }
5913 #endif
5914 int main(){nm_test_var='a';nm_test_func();return(0);}
5915 _LT_EOF
5916
5917 if AC_TRY_EVAL(ac_compile); then
5918 # Now try to grab the symbols.
5919 nlist=conftest.nm
5920 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&AS_MESSAGE_LOG_FD
5921 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&AS_MESSAGE_LOG_FD && test -s "$nlist"; then
5922 # Try sorting and uniquifying the output.
5923 if sort "$nlist" | uniq > "$nlist"T; then
5924 mv -f "$nlist"T "$nlist"
5925 else
5926 rm -f "$nlist"T
5927 fi
5928
5929 # Make sure that we snagged all the symbols we need.
5930 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5931 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5932 cat <<_LT_EOF > conftest.$ac_ext
5933 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5934 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5935 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5936 relocations are performed -- see ld's documentation on pseudo-relocs. */
5937 # define LT@&t@_DLSYM_CONST
5938 #elif defined __osf__
5939 /* This system does not cope well with relocations in const data. */
5940 # define LT@&t@_DLSYM_CONST
5941 #else
5942 # define LT@&t@_DLSYM_CONST const
5943 #endif
5944
5945 #ifdef __cplusplus
5946 extern "C" {
5947 #endif
5948
5949 _LT_EOF
5950 # Now generate the symbol file.
5951 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5952
5953 cat <<_LT_EOF >> conftest.$ac_ext
5954
5955 /* The mapping between symbol names and symbols. */
5956 LT@&t@_DLSYM_CONST struct {
5957 const char *name;
5958 void *address;
5959 }
5960 lt__PROGRAM__LTX_preloaded_symbols[[]] =
5961 {
5962 { "@PROGRAM@", (void *) 0 },
5963 _LT_EOF
5964 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5965 cat <<\_LT_EOF >> conftest.$ac_ext
5966 {0, (void *) 0}
5967 };
5968
5969 /* This works around a problem in FreeBSD linker */
5970 #ifdef FREEBSD_WORKAROUND
5971 static const void *lt_preloaded_setup() {
5972 return lt__PROGRAM__LTX_preloaded_symbols;
5973 }
5974 #endif
5975
5976 #ifdef __cplusplus
5977 }
5978 #endif
5979 _LT_EOF
5980 # Now try linking the two files.
5981 mv conftest.$ac_objext conftstm.$ac_objext
5982 lt_globsym_save_LIBS=$LIBS
5983 lt_globsym_save_CFLAGS=$CFLAGS
5984 LIBS=conftstm.$ac_objext
5985 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5986 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
5987 pipe_works=yes
5988 fi
5989 LIBS=$lt_globsym_save_LIBS
5990 CFLAGS=$lt_globsym_save_CFLAGS
5991 else
5992 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5993 fi
5994 else
5995 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5996 fi
5997 else
5998 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5999 fi
6000 else
6001 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6002 cat conftest.$ac_ext >&5
6003 fi
6004 rm -rf conftest* conftst*
6005
6006 # Do not use the global_symbol_pipe unless it works.
6007 if test yes = "$pipe_works"; then
6008 break
6009 else
6010 lt_cv_sys_global_symbol_pipe=
6011 fi
6012 done
6013 ])
6014 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6015 lt_cv_sys_global_symbol_to_cdecl=
6016 fi
6017 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6018 AC_MSG_RESULT(failed)
6019 else
6020 AC_MSG_RESULT(ok)
6021 fi
6022
6023 # Response file support.
6024 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6025 nm_file_list_spec='@'
6026 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
6027 nm_file_list_spec='@'
6028 fi
6029
6030 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
6031 [Take the output of nm and produce a listing of raw symbols and C names])
6032 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
6033 [Transform the output of nm in a proper C declaration])
6034 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
6035 [Transform the output of nm into a list of symbols to manually relocate])
6036 _LT_DECL([global_symbol_to_c_name_address],
6037 [lt_cv_sys_global_symbol_to_c_name_address], [1],
6038 [Transform the output of nm in a C name address pair])
6039 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
6040 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
6041 [Transform the output of nm in a C name address pair when lib prefix is needed])
6042 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
6043 [The name lister interface])
6044 _LT_DECL([], [nm_file_list_spec], [1],
6045 [Specify filename containing input files for $NM])
6046 ]) # _LT_CMD_GLOBAL_SYMBOLS
6047
6048
6049 # _LT_COMPILER_PIC([TAGNAME])
6050 # ---------------------------
6051 m4_defun([_LT_COMPILER_PIC],
6052 [m4_require([_LT_TAG_COMPILER])dnl
6053 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
6054 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
6055 _LT_TAGVAR(lt_prog_compiler_static, $1)=
6056
6057 m4_if([$1], [CXX], [
6058 # C++ specific cases for pic, static, wl, etc.
6059 if test yes = "$GXX"; then
6060 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6061 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6062
6063 case $host_os in
6064 aix*)
6065 # All AIX code is PIC.
6066 if test ia64 = "$host_cpu"; then
6067 # AIX 5 now supports IA64 processor
6068 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6069 fi
6070 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6071 ;;
6072
6073 amigaos*)
6074 case $host_cpu in
6075 powerpc)
6076 # see comment about AmigaOS4 .so support
6077 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6078 ;;
6079 m68k)
6080 # FIXME: we need at least 68020 code to build shared libraries, but
6081 # adding the '-m68020' flag to GCC prevents building anything better,
6082 # like '-m68040'.
6083 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6084 ;;
6085 esac
6086 ;;
6087
6088 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6089 # PIC is the default for these OSes.
6090 ;;
6091 mingw* | cygwin* | os2* | pw32* | cegcc*)
6092 # This hack is so that the source file can tell whether it is being
6093 # built for inclusion in a dll (and should export symbols for example).
6094 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6095 # (--disable-auto-import) libraries
6096 m4_if([$1], [GCJ], [],
6097 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6098 case $host_os in
6099 os2*)
6100 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
6101 ;;
6102 esac
6103 ;;
6104 darwin* | rhapsody*)
6105 # PIC is the default on this platform
6106 # Common symbols not allowed in MH_DYLIB files
6107 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6108 ;;
6109 *djgpp*)
6110 # DJGPP does not support shared libraries at all
6111 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
6112 ;;
6113 haiku*)
6114 # PIC is the default for Haiku.
6115 # The "-static" flag exists, but is broken.
6116 _LT_TAGVAR(lt_prog_compiler_static, $1)=
6117 ;;
6118 interix[[3-9]]*)
6119 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6120 # Instead, we relocate shared libraries at runtime.
6121 ;;
6122 sysv4*MP*)
6123 if test -d /usr/nec; then
6124 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6125 fi
6126 ;;
6127 hpux*)
6128 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6129 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6130 # sets the default TLS model and affects inlining.
6131 case $host_cpu in
6132 hppa*64*)
6133 ;;
6134 *)
6135 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6136 ;;
6137 esac
6138 ;;
6139 *qnx* | *nto*)
6140 # QNX uses GNU C++, but need to define -shared option too, otherwise
6141 # it will coredump.
6142 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6143 ;;
6144 *)
6145 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6146 ;;
6147 esac
6148 else
6149 case $host_os in
6150 aix[[4-9]]*)
6151 # All AIX code is PIC.
6152 if test ia64 = "$host_cpu"; then
6153 # AIX 5 now supports IA64 processor
6154 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6155 else
6156 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6157 fi
6158 ;;
6159 chorus*)
6160 case $cc_basename in
6161 cxch68*)
6162 # Green Hills C++ Compiler
6163 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
6164 ;;
6165 esac
6166 ;;
6167 mingw* | cygwin* | os2* | pw32* | cegcc*)
6168 # This hack is so that the source file can tell whether it is being
6169 # built for inclusion in a dll (and should export symbols for example).
6170 m4_if([$1], [GCJ], [],
6171 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6172 ;;
6173 dgux*)
6174 case $cc_basename in
6175 ec++*)
6176 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6177 ;;
6178 ghcx*)
6179 # Green Hills C++ Compiler
6180 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6181 ;;
6182 *)
6183 ;;
6184 esac
6185 ;;
6186 freebsd* | dragonfly*)
6187 # FreeBSD uses GNU C++
6188 ;;
6189 hpux9* | hpux10* | hpux11*)
6190 case $cc_basename in
6191 CC*)
6192 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6193 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
6194 if test ia64 != "$host_cpu"; then
6195 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6196 fi
6197 ;;
6198 aCC*)
6199 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6200 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
6201 case $host_cpu in
6202 hppa*64*|ia64*)
6203 # +Z the default
6204 ;;
6205 *)
6206 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6207 ;;
6208 esac
6209 ;;
6210 *)
6211 ;;
6212 esac
6213 ;;
6214 interix*)
6215 # This is c89, which is MS Visual C++ (no shared libs)
6216 # Anyone wants to do a port?
6217 ;;
6218 irix5* | irix6* | nonstopux*)
6219 case $cc_basename in
6220 CC*)
6221 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6222 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6223 # CC pic flag -KPIC is the default.
6224 ;;
6225 *)
6226 ;;
6227 esac
6228 ;;
6229 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6230 case $cc_basename in
6231 KCC*)
6232 # KAI C++ Compiler
6233 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6234 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6235 ;;
6236 ecpc* )
6237 # old Intel C++ for x86_64, which still supported -KPIC.
6238 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6239 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6240 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6241 ;;
6242 icpc* )
6243 # Intel C++, used to be incompatible with GCC.
6244 # ICC 10 doesn't accept -KPIC any more.
6245 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6246 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6247 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6248 ;;
6249 pgCC* | pgcpp*)
6250 # Portland Group C++ compiler
6251 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6252 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6253 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6254 ;;
6255 cxx*)
6256 # Compaq C++
6257 # Make sure the PIC flag is empty. It appears that all Alpha
6258 # Linux and Compaq Tru64 Unix objects are PIC.
6259 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
6260 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6261 ;;
6262 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
6263 # IBM XL 8.0, 9.0 on PPC and BlueGene
6264 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6265 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
6266 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
6267 ;;
6268 *)
6269 case `$CC -V 2>&1 | sed 5q` in
6270 *Sun\ C*)
6271 # Sun C++ 5.9
6272 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6273 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6274 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6275 ;;
6276 esac
6277 ;;
6278 esac
6279 ;;
6280 lynxos*)
6281 ;;
6282 m88k*)
6283 ;;
6284 mvs*)
6285 case $cc_basename in
6286 cxx*)
6287 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6288 ;;
6289 *)
6290 ;;
6291 esac
6292 ;;
6293 netbsd* | netbsdelf*-gnu)
6294 ;;
6295 *qnx* | *nto*)
6296 # QNX uses GNU C++, but need to define -shared option too, otherwise
6297 # it will coredump.
6298 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6299 ;;
6300 osf3* | osf4* | osf5*)
6301 case $cc_basename in
6302 KCC*)
6303 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6304 ;;
6305 RCC*)
6306 # Rational C++ 2.4.1
6307 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6308 ;;
6309 cxx*)
6310 # Digital/Compaq C++
6311 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6312 # Make sure the PIC flag is empty. It appears that all Alpha
6313 # Linux and Compaq Tru64 Unix objects are PIC.
6314 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
6315 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6316 ;;
6317 *)
6318 ;;
6319 esac
6320 ;;
6321 psos*)
6322 ;;
6323 solaris*)
6324 case $cc_basename in
6325 CC* | sunCC*)
6326 # Sun C++ 4.2, 5.x and Centerline C++
6327 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6328 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6329 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6330 ;;
6331 gcx*)
6332 # Green Hills C++ Compiler
6333 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6334 ;;
6335 *)
6336 ;;
6337 esac
6338 ;;
6339 sunos4*)
6340 case $cc_basename in
6341 CC*)
6342 # Sun C++ 4.x
6343 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6344 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6345 ;;
6346 lcc*)
6347 # Lucid
6348 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6349 ;;
6350 *)
6351 ;;
6352 esac
6353 ;;
6354 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6355 case $cc_basename in
6356 CC*)
6357 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6358 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6359 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6360 ;;
6361 esac
6362 ;;
6363 tandem*)
6364 case $cc_basename in
6365 NCC*)
6366 # NonStop-UX NCC 3.20
6367 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6368 ;;
6369 *)
6370 ;;
6371 esac
6372 ;;
6373 vxworks*)
6374 ;;
6375 *)
6376 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6377 ;;
6378 esac
6379 fi
6380 ],
6381 [
6382 if test yes = "$GCC"; then
6383 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6384 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6385
6386 case $host_os in
6387 aix*)
6388 # All AIX code is PIC.
6389 if test ia64 = "$host_cpu"; then
6390 # AIX 5 now supports IA64 processor
6391 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6392 fi
6393 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6394 ;;
6395
6396 amigaos*)
6397 case $host_cpu in
6398 powerpc)
6399 # see comment about AmigaOS4 .so support
6400 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6401 ;;
6402 m68k)
6403 # FIXME: we need at least 68020 code to build shared libraries, but
6404 # adding the '-m68020' flag to GCC prevents building anything better,
6405 # like '-m68040'.
6406 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6407 ;;
6408 esac
6409 ;;
6410
6411 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6412 # PIC is the default for these OSes.
6413 ;;
6414
6415 mingw* | cygwin* | pw32* | os2* | cegcc*)
6416 # This hack is so that the source file can tell whether it is being
6417 # built for inclusion in a dll (and should export symbols for example).
6418 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6419 # (--disable-auto-import) libraries
6420 m4_if([$1], [GCJ], [],
6421 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6422 case $host_os in
6423 os2*)
6424 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
6425 ;;
6426 esac
6427 ;;
6428
6429 darwin* | rhapsody*)
6430 # PIC is the default on this platform
6431 # Common symbols not allowed in MH_DYLIB files
6432 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6433 ;;
6434
6435 haiku*)
6436 # PIC is the default for Haiku.
6437 # The "-static" flag exists, but is broken.
6438 _LT_TAGVAR(lt_prog_compiler_static, $1)=
6439 ;;
6440
6441 hpux*)
6442 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6443 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6444 # sets the default TLS model and affects inlining.
6445 case $host_cpu in
6446 hppa*64*)
6447 # +Z the default
6448 ;;
6449 *)
6450 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6451 ;;
6452 esac
6453 ;;
6454
6455 interix[[3-9]]*)
6456 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6457 # Instead, we relocate shared libraries at runtime.
6458 ;;
6459
6460 msdosdjgpp*)
6461 # Just because we use GCC doesn't mean we suddenly get shared libraries
6462 # on systems that don't support them.
6463 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6464 enable_shared=no
6465 ;;
6466
6467 *nto* | *qnx*)
6468 # QNX uses GNU C++, but need to define -shared option too, otherwise
6469 # it will coredump.
6470 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6471 ;;
6472
6473 sysv4*MP*)
6474 if test -d /usr/nec; then
6475 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6476 fi
6477 ;;
6478
6479 *)
6480 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6481 ;;
6482 esac
6483
6484 case $cc_basename in
6485 nvcc*) # Cuda Compiler Driver 2.2
6486 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
6487 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
6488 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
6489 fi
6490 ;;
6491 esac
6492 else
6493 # PORTME Check for flag to pass linker flags through the system compiler.
6494 case $host_os in
6495 aix*)
6496 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6497 if test ia64 = "$host_cpu"; then
6498 # AIX 5 now supports IA64 processor
6499 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6500 else
6501 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6502 fi
6503 ;;
6504
6505 darwin* | rhapsody*)
6506 # PIC is the default on this platform
6507 # Common symbols not allowed in MH_DYLIB files
6508 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6509 case $cc_basename in
6510 nagfor*)
6511 # NAG Fortran compiler
6512 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
6513 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6514 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6515 ;;
6516 esac
6517 ;;
6518
6519 mingw* | cygwin* | pw32* | os2* | cegcc*)
6520 # This hack is so that the source file can tell whether it is being
6521 # built for inclusion in a dll (and should export symbols for example).
6522 m4_if([$1], [GCJ], [],
6523 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6524 case $host_os in
6525 os2*)
6526 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
6527 ;;
6528 esac
6529 ;;
6530
6531 hpux9* | hpux10* | hpux11*)
6532 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6533 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6534 # not for PA HP-UX.
6535 case $host_cpu in
6536 hppa*64*|ia64*)
6537 # +Z the default
6538 ;;
6539 *)
6540 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6541 ;;
6542 esac
6543 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6544 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
6545 ;;
6546
6547 irix5* | irix6* | nonstopux*)
6548 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6549 # PIC (with -KPIC) is the default.
6550 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6551 ;;
6552
6553 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6554 case $cc_basename in
6555 # old Intel for x86_64, which still supported -KPIC.
6556 ecc*)
6557 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6558 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6559 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6560 ;;
6561 # flang / f18. f95 an alias for gfortran or flang on Debian
6562 flang* | f18* | f95*)
6563 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6564 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6565 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6566 ;;
6567 # icc used to be incompatible with GCC.
6568 # ICC 10 doesn't accept -KPIC any more.
6569 icc* | ifort*)
6570 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6571 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6572 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6573 ;;
6574 # Lahey Fortran 8.1.
6575 lf95*)
6576 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6577 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
6578 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
6579 ;;
6580 nagfor*)
6581 # NAG Fortran compiler
6582 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
6583 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6584 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6585 ;;
6586 tcc*)
6587 # Fabrice Bellard et al's Tiny C Compiler
6588 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6589 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6590 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6591 ;;
6592 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
6593 # Portland Group compilers (*not* the Pentium gcc compiler,
6594 # which looks to be a dead project)
6595 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6596 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6597 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6598 ;;
6599 ccc*)
6600 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6601 # All Alpha code is PIC.
6602 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6603 ;;
6604 xl* | bgxl* | bgf* | mpixl*)
6605 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
6606 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6607 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
6608 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
6609 ;;
6610 *)
6611 case `$CC -V 2>&1 | sed 5q` in
6612 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
6613 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6614 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6615 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6616 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
6617 ;;
6618 *Sun\ F* | *Sun*Fortran*)
6619 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6620 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6621 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6622 ;;
6623 *Sun\ C*)
6624 # Sun C 5.9
6625 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6626 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6627 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6628 ;;
6629 *Intel*\ [[CF]]*Compiler*)
6630 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6631 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6632 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6633 ;;
6634 *Portland\ Group*)
6635 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6636 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6637 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6638 ;;
6639 esac
6640 ;;
6641 esac
6642 ;;
6643
6644 newsos6)
6645 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6646 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6647 ;;
6648
6649 *nto* | *qnx*)
6650 # QNX uses GNU C++, but need to define -shared option too, otherwise
6651 # it will coredump.
6652 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6653 ;;
6654
6655 osf3* | osf4* | osf5*)
6656 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6657 # All OSF/1 code is PIC.
6658 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6659 ;;
6660
6661 rdos*)
6662 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6663 ;;
6664
6665 solaris*)
6666 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6667 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6668 case $cc_basename in
6669 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
6670 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6671 *)
6672 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6673 esac
6674 ;;
6675
6676 sunos4*)
6677 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6678 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6679 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6680 ;;
6681
6682 sysv4 | sysv4.2uw2* | sysv4.3*)
6683 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6684 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6685 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6686 ;;
6687
6688 sysv4*MP*)
6689 if test -d /usr/nec; then
6690 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6691 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6692 fi
6693 ;;
6694
6695 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6696 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6697 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6698 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6699 ;;
6700
6701 unicos*)
6702 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6703 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6704 ;;
6705
6706 uts4*)
6707 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6708 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6709 ;;
6710
6711 *)
6712 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6713 ;;
6714 esac
6715 fi
6716 ])
6717 case $host_os in
6718 # For platforms that do not support PIC, -DPIC is meaningless:
6719 *djgpp*)
6720 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
6721 ;;
6722 *)
6723 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
6724 ;;
6725 esac
6726
6727 AC_CACHE_CHECK([for $compiler option to produce PIC],
6728 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
6729 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
6730 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
6731
6732 #
6733 # Check to make sure the PIC flag actually works.
6734 #
6735 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
6736 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
6737 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
6738 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
6739 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
6740 "" | " "*) ;;
6741 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6742 esac],
6743 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
6744 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6745 fi
6746 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
6747 [Additional compiler flags for building library objects])
6748
6749 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
6750 [How to pass a linker flag through the compiler])
6751 #
6752 # Check to make sure the static flag actually works.
6753 #
6754 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
6755 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6756 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6757 $lt_tmp_static_flag,
6758 [],
6759 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
6760 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
6761 [Compiler flag to prevent dynamic linking])
6762 ])# _LT_COMPILER_PIC
6763
6764
6765 # _LT_LINKER_SHLIBS([TAGNAME])
6766 # ----------------------------
6767 # See if the linker supports building shared libraries.
6768 m4_defun([_LT_LINKER_SHLIBS],
6769 [AC_REQUIRE([LT_PATH_LD])dnl
6770 AC_REQUIRE([LT_PATH_NM])dnl
6771 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6772 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6773 m4_require([_LT_DECL_EGREP])dnl
6774 m4_require([_LT_DECL_SED])dnl
6775 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
6776 m4_require([_LT_TAG_COMPILER])dnl
6777 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6778 m4_if([$1], [CXX], [
6779 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6780 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6781 case $host_os in
6782 aix[[4-9]]*)
6783 # If we're using GNU nm, then we don't want the "-C" option.
6784 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
6785 # Without the "-l" option, or with the "-B" option, AIX nm treats
6786 # weak defined symbols like other global defined symbols, whereas
6787 # GNU nm marks them as "W".
6788 # While the 'weak' keyword is ignored in the Export File, we need
6789 # it in the Import File for the 'aix-soname' feature, so we have
6790 # to replace the "-B" option with "-P" for AIX nm.
6791 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6792 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
6793 else
6794 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
6795 fi
6796 ;;
6797 pw32*)
6798 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
6799 ;;
6800 cygwin* | mingw* | cegcc*)
6801 case $cc_basename in
6802 cl*)
6803 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
6804 ;;
6805 *)
6806 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
6807 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
6808 ;;
6809 esac
6810 ;;
6811 linux* | k*bsd*-gnu | gnu*)
6812 _LT_TAGVAR(link_all_deplibs, $1)=no
6813 ;;
6814 *)
6815 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6816 ;;
6817 esac
6818 ], [
6819 runpath_var=
6820 _LT_TAGVAR(allow_undefined_flag, $1)=
6821 _LT_TAGVAR(always_export_symbols, $1)=no
6822 _LT_TAGVAR(archive_cmds, $1)=
6823 _LT_TAGVAR(archive_expsym_cmds, $1)=
6824 _LT_TAGVAR(compiler_needs_object, $1)=no
6825 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6826 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6827 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6828 _LT_TAGVAR(hardcode_automatic, $1)=no
6829 _LT_TAGVAR(hardcode_direct, $1)=no
6830 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6831 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6832 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6833 _LT_TAGVAR(hardcode_minus_L, $1)=no
6834 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6835 _LT_TAGVAR(inherit_rpath, $1)=no
6836 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6837 _LT_TAGVAR(module_cmds, $1)=
6838 _LT_TAGVAR(module_expsym_cmds, $1)=
6839 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
6840 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6841 _LT_TAGVAR(thread_safe_flag_spec, $1)=
6842 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6843 # include_expsyms should be a list of space-separated symbols to be *always*
6844 # included in the symbol list
6845 _LT_TAGVAR(include_expsyms, $1)=
6846 # exclude_expsyms can be an extended regexp of symbols to exclude
6847 # it will be wrapped by ' (' and ')$', so one must not match beginning or
6848 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
6849 # as well as any symbol that contains 'd'.
6850 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6851 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6852 # platforms (ab)use it in PIC code, but their linkers get confused if
6853 # the symbol is explicitly referenced. Since portable code cannot
6854 # rely on this symbol name, it's probably fine to never include it in
6855 # preloaded symbol tables.
6856 # Exclude shared library initialization/finalization symbols.
6857 dnl Note also adjust exclude_expsyms for C++ above.
6858 extract_expsyms_cmds=
6859
6860 case $host_os in
6861 cygwin* | mingw* | pw32* | cegcc*)
6862 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6863 # When not using gcc, we currently assume that we are using
6864 # Microsoft Visual C++.
6865 if test yes != "$GCC"; then
6866 with_gnu_ld=no
6867 fi
6868 ;;
6869 interix*)
6870 # we just hope/assume this is gcc and not c89 (= MSVC++)
6871 with_gnu_ld=yes
6872 ;;
6873 openbsd* | bitrig*)
6874 with_gnu_ld=no
6875 ;;
6876 linux* | k*bsd*-gnu | gnu*)
6877 _LT_TAGVAR(link_all_deplibs, $1)=no
6878 ;;
6879 esac
6880
6881 _LT_TAGVAR(ld_shlibs, $1)=yes
6882
6883 # On some targets, GNU ld is compatible enough with the native linker
6884 # that we're better off using the native interface for both.
6885 lt_use_gnu_ld_interface=no
6886 if test yes = "$with_gnu_ld"; then
6887 case $host_os in
6888 aix*)
6889 # The AIX port of GNU ld has always aspired to compatibility
6890 # with the native linker. However, as the warning in the GNU ld
6891 # block says, versions before 2.19.5* couldn't really create working
6892 # shared libraries, regardless of the interface used.
6893 case `$LD -v 2>&1` in
6894 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
6895 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
6896 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
6897 *)
6898 lt_use_gnu_ld_interface=yes
6899 ;;
6900 esac
6901 ;;
6902 *)
6903 lt_use_gnu_ld_interface=yes
6904 ;;
6905 esac
6906 fi
6907
6908 if test yes = "$lt_use_gnu_ld_interface"; then
6909 # If archive_cmds runs LD, not CC, wlarc should be empty
6910 wlarc='$wl'
6911
6912 # Set some defaults for GNU ld with shared library support. These
6913 # are reset later if shared libraries are not supported. Putting them
6914 # here allows them to be overridden if necessary.
6915 runpath_var=LD_RUN_PATH
6916 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6917 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6918 # ancient GNU ld didn't support --whole-archive et. al.
6919 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6920 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
6921 else
6922 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6923 fi
6924 supports_anon_versioning=no
6925 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
6926 *GNU\ gold*) supports_anon_versioning=yes ;;
6927 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6928 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6929 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6930 *\ 2.11.*) ;; # other 2.11 versions
6931 *) supports_anon_versioning=yes ;;
6932 esac
6933
6934 # See if GNU ld supports shared libraries.
6935 case $host_os in
6936 aix[[3-9]]*)
6937 # On AIX/PPC, the GNU linker is very broken
6938 if test ia64 != "$host_cpu"; then
6939 _LT_TAGVAR(ld_shlibs, $1)=no
6940 cat <<_LT_EOF 1>&2
6941
6942 *** Warning: the GNU linker, at least up to release 2.19, is reported
6943 *** to be unable to reliably create shared libraries on AIX.
6944 *** Therefore, libtool is disabling shared libraries support. If you
6945 *** really care for shared libraries, you may want to install binutils
6946 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
6947 *** You will then need to restart the configuration process.
6948
6949 _LT_EOF
6950 fi
6951 ;;
6952
6953 amigaos*)
6954 case $host_cpu in
6955 powerpc)
6956 # see comment about AmigaOS4 .so support
6957 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6958 _LT_TAGVAR(archive_expsym_cmds, $1)=''
6959 ;;
6960 m68k)
6961 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6962 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6963 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6964 ;;
6965 esac
6966 ;;
6967
6968 beos*)
6969 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6970 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6971 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6972 # support --undefined. This deserves some investigation. FIXME
6973 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6974 else
6975 _LT_TAGVAR(ld_shlibs, $1)=no
6976 fi
6977 ;;
6978
6979 cygwin* | mingw* | pw32* | cegcc*)
6980 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6981 # as there is no search path for DLLs.
6982 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6983 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
6984 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6985 _LT_TAGVAR(always_export_symbols, $1)=no
6986 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6987 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
6988 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
6989
6990 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6991 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6992 # If the export-symbols file already is a .def file, use it as
6993 # is; otherwise, prepend EXPORTS...
6994 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6995 cp $export_symbols $output_objdir/$soname.def;
6996 else
6997 echo EXPORTS > $output_objdir/$soname.def;
6998 cat $export_symbols >> $output_objdir/$soname.def;
6999 fi~
7000 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7001 else
7002 _LT_TAGVAR(ld_shlibs, $1)=no
7003 fi
7004 ;;
7005
7006 haiku*)
7007 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7008 _LT_TAGVAR(link_all_deplibs, $1)=yes
7009 ;;
7010
7011 os2*)
7012 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7013 _LT_TAGVAR(hardcode_minus_L, $1)=yes
7014 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7015 shrext_cmds=.dll
7016 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
7017 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
7018 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
7019 $ECHO EXPORTS >> $output_objdir/$libname.def~
7020 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
7021 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
7022 emximp -o $lib $output_objdir/$libname.def'
7023 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
7024 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
7025 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
7026 $ECHO EXPORTS >> $output_objdir/$libname.def~
7027 prefix_cmds="$SED"~
7028 if test EXPORTS = "`$SED 1q $export_symbols`"; then
7029 prefix_cmds="$prefix_cmds -e 1d";
7030 fi~
7031 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
7032 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
7033 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
7034 emximp -o $lib $output_objdir/$libname.def'
7035 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
7036 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7037 ;;
7038
7039 interix[[3-9]]*)
7040 _LT_TAGVAR(hardcode_direct, $1)=no
7041 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7042 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7043 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7044 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7045 # Instead, shared libraries are loaded at an image base (0x10000000 by
7046 # default) and relocated if they conflict, which is a slow very memory
7047 # consuming and fragmenting process. To avoid this, we pick a random,
7048 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7049 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7050 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7051 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7052 ;;
7053
7054 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7055 tmp_diet=no
7056 if test linux-dietlibc = "$host_os"; then
7057 case $cc_basename in
7058 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7059 esac
7060 fi
7061 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7062 && test no = "$tmp_diet"
7063 then
7064 tmp_addflag=' $pic_flag'
7065 tmp_sharedflag='-shared'
7066 case $cc_basename,$host_cpu in
7067 pgcc*) # Portland Group C compiler
7068 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
7069 tmp_addflag=' $pic_flag'
7070 ;;
7071 pgf77* | pgf90* | pgf95* | pgfortran*)
7072 # Portland Group f77 and f90 compilers
7073 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
7074 tmp_addflag=' $pic_flag -Mnomain' ;;
7075 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7076 tmp_addflag=' -i_dynamic' ;;
7077 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7078 tmp_addflag=' -i_dynamic -nofor_main' ;;
7079 ifc* | ifort*) # Intel Fortran compiler
7080 tmp_addflag=' -nofor_main' ;;
7081 lf95*) # Lahey Fortran 8.1
7082 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7083 tmp_sharedflag='--shared' ;;
7084 nagfor*) # NAGFOR 5.3
7085 tmp_sharedflag='-Wl,-shared' ;;
7086 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7087 tmp_sharedflag='-qmkshrobj'
7088 tmp_addflag= ;;
7089 nvcc*) # Cuda Compiler Driver 2.2
7090 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
7091 _LT_TAGVAR(compiler_needs_object, $1)=yes
7092 ;;
7093 esac
7094 case `$CC -V 2>&1 | sed 5q` in
7095 *Sun\ C*) # Sun C 5.9
7096 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
7097 _LT_TAGVAR(compiler_needs_object, $1)=yes
7098 tmp_sharedflag='-G' ;;
7099 *Sun\ F*) # Sun Fortran 8.3
7100 tmp_sharedflag='-G' ;;
7101 esac
7102 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7103
7104 if test yes = "$supports_anon_versioning"; then
7105 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7106 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7107 echo "local: *; };" >> $output_objdir/$libname.ver~
7108 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
7109 fi
7110
7111 case $cc_basename in
7112 tcc*)
7113 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
7114 ;;
7115 xlf* | bgf* | bgxlf* | mpixlf*)
7116 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7117 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
7118 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7119 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
7120 if test yes = "$supports_anon_versioning"; then
7121 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7122 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7123 echo "local: *; };" >> $output_objdir/$libname.ver~
7124 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7125 fi
7126 ;;
7127 esac
7128 else
7129 _LT_TAGVAR(ld_shlibs, $1)=no
7130 fi
7131 ;;
7132
7133 netbsd* | netbsdelf*-gnu)
7134 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7135 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7136 wlarc=
7137 else
7138 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7139 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
7140 fi
7141 ;;
7142
7143 solaris*)
7144 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7145 _LT_TAGVAR(ld_shlibs, $1)=no
7146 cat <<_LT_EOF 1>&2
7147
7148 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7149 *** create shared libraries on Solaris systems. Therefore, libtool
7150 *** is disabling shared libraries support. We urge you to upgrade GNU
7151 *** binutils to release 2.9.1 or newer. Another option is to modify
7152 *** your PATH or compiler configuration so that the native linker is
7153 *** used, and then restart.
7154
7155 _LT_EOF
7156 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7157 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7158 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
7159 else
7160 _LT_TAGVAR(ld_shlibs, $1)=no
7161 fi
7162 ;;
7163
7164 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7165 case `$LD -v 2>&1` in
7166 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
7167 _LT_TAGVAR(ld_shlibs, $1)=no
7168 cat <<_LT_EOF 1>&2
7169
7170 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
7171 *** reliably create shared libraries on SCO systems. Therefore, libtool
7172 *** is disabling shared libraries support. We urge you to upgrade GNU
7173 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7174 *** your PATH or compiler configuration so that the native linker is
7175 *** used, and then restart.
7176
7177 _LT_EOF
7178 ;;
7179 *)
7180 # For security reasons, it is highly recommended that you always
7181 # use absolute paths for naming shared libraries, and exclude the
7182 # DT_RUNPATH tag from executables and libraries. But doing so
7183 # requires that you compile everything twice, which is a pain.
7184 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7185 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7186 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7187 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
7188 else
7189 _LT_TAGVAR(ld_shlibs, $1)=no
7190 fi
7191 ;;
7192 esac
7193 ;;
7194
7195 sunos4*)
7196 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7197 wlarc=
7198 _LT_TAGVAR(hardcode_direct, $1)=yes
7199 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7200 ;;
7201
7202 *)
7203 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7204 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7205 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
7206 else
7207 _LT_TAGVAR(ld_shlibs, $1)=no
7208 fi
7209 ;;
7210 esac
7211
7212 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
7213 runpath_var=
7214 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7215 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7216 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7217 fi
7218 else
7219 # PORTME fill in a description of your system's linker (not GNU ld)
7220 case $host_os in
7221 aix3*)
7222 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7223 _LT_TAGVAR(always_export_symbols, $1)=yes
7224 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7225 # Note: this linker hardcodes the directories in LIBPATH if there
7226 # are no directories specified by -L.
7227 _LT_TAGVAR(hardcode_minus_L, $1)=yes
7228 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
7229 # Neither direct hardcoding nor static linking is supported with a
7230 # broken collect2.
7231 _LT_TAGVAR(hardcode_direct, $1)=unsupported
7232 fi
7233 ;;
7234
7235 aix[[4-9]]*)
7236 if test ia64 = "$host_cpu"; then
7237 # On IA64, the linker does run time linking by default, so we don't
7238 # have to do anything special.
7239 aix_use_runtimelinking=no
7240 exp_sym_flag='-Bexport'
7241 no_entry_flag=
7242 else
7243 # If we're using GNU nm, then we don't want the "-C" option.
7244 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
7245 # Without the "-l" option, or with the "-B" option, AIX nm treats
7246 # weak defined symbols like other global defined symbols, whereas
7247 # GNU nm marks them as "W".
7248 # While the 'weak' keyword is ignored in the Export File, we need
7249 # it in the Import File for the 'aix-soname' feature, so we have
7250 # to replace the "-B" option with "-P" for AIX nm.
7251 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7252 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
7253 else
7254 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
7255 fi
7256 aix_use_runtimelinking=no
7257
7258 # Test if we are trying to use run time linking or normal
7259 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7260 # have runtime linking enabled, and use it for executables.
7261 # For shared libraries, we enable/disable runtime linking
7262 # depending on the kind of the shared library created -
7263 # when "with_aix_soname,aix_use_runtimelinking" is:
7264 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
7265 # "aix,yes" lib.so shared, rtl:yes, for executables
7266 # lib.a static archive
7267 # "both,no" lib.so.V(shr.o) shared, rtl:yes
7268 # lib.a(lib.so.V) shared, rtl:no, for executables
7269 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
7270 # lib.a(lib.so.V) shared, rtl:no
7271 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
7272 # lib.a static archive
7273 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
7274 for ld_flag in $LDFLAGS; do
7275 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
7276 aix_use_runtimelinking=yes
7277 break
7278 fi
7279 done
7280 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
7281 # With aix-soname=svr4, we create the lib.so.V shared archives only,
7282 # so we don't have lib.a shared libs to link our executables.
7283 # We have to force runtime linking in this case.
7284 aix_use_runtimelinking=yes
7285 LDFLAGS="$LDFLAGS -Wl,-brtl"
7286 fi
7287 ;;
7288 esac
7289
7290 exp_sym_flag='-bexport'
7291 no_entry_flag='-bnoentry'
7292 fi
7293
7294 # When large executables or shared objects are built, AIX ld can
7295 # have problems creating the table of contents. If linking a library
7296 # or program results in "error TOC overflow" add -mminimal-toc to
7297 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7298 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7299
7300 _LT_TAGVAR(archive_cmds, $1)=''
7301 _LT_TAGVAR(hardcode_direct, $1)=yes
7302 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7303 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7304 _LT_TAGVAR(link_all_deplibs, $1)=yes
7305 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
7306 case $with_aix_soname,$aix_use_runtimelinking in
7307 aix,*) ;; # traditional, no import file
7308 svr4,* | *,yes) # use import file
7309 # The Import File defines what to hardcode.
7310 _LT_TAGVAR(hardcode_direct, $1)=no
7311 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7312 ;;
7313 esac
7314
7315 if test yes = "$GCC"; then
7316 case $host_os in aix4.[[012]]|aix4.[[012]].*)
7317 # We only want to do this on AIX 4.2 and lower, the check
7318 # below for broken collect2 doesn't work under 4.3+
7319 collect2name=`$CC -print-prog-name=collect2`
7320 if test -f "$collect2name" &&
7321 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7322 then
7323 # We have reworked collect2
7324 :
7325 else
7326 # We have old collect2
7327 _LT_TAGVAR(hardcode_direct, $1)=unsupported
7328 # It fails to find uninstalled libraries when the uninstalled
7329 # path is not listed in the libpath. Setting hardcode_minus_L
7330 # to unsupported forces relinking
7331 _LT_TAGVAR(hardcode_minus_L, $1)=yes
7332 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7333 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7334 fi
7335 ;;
7336 esac
7337 shared_flag='-shared'
7338 if test yes = "$aix_use_runtimelinking"; then
7339 shared_flag="$shared_flag "'$wl-G'
7340 fi
7341 # Need to ensure runtime linking is disabled for the traditional
7342 # shared library, or the linker may eventually find shared libraries
7343 # /with/ Import File - we do not want to mix them.
7344 shared_flag_aix='-shared'
7345 shared_flag_svr4='-shared $wl-G'
7346 else
7347 # not using gcc
7348 if test ia64 = "$host_cpu"; then
7349 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7350 # chokes on -Wl,-G. The following line is correct:
7351 shared_flag='-G'
7352 else
7353 if test yes = "$aix_use_runtimelinking"; then
7354 shared_flag='$wl-G'
7355 else
7356 shared_flag='$wl-bM:SRE'
7357 fi
7358 shared_flag_aix='$wl-bM:SRE'
7359 shared_flag_svr4='$wl-G'
7360 fi
7361 fi
7362
7363 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
7364 # It seems that -bexpall does not export symbols beginning with
7365 # underscore (_), so it is better to generate a list of symbols to export.
7366 _LT_TAGVAR(always_export_symbols, $1)=yes
7367 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
7368 # Warning - without using the other runtime loading flags (-brtl),
7369 # -berok will link without error, but may produce a broken library.
7370 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
7371 # Determine the default libpath from the value encoded in an
7372 # empty executable.
7373 _LT_SYS_MODULE_PATH_AIX([$1])
7374 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
7375 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
7376 else
7377 if test ia64 = "$host_cpu"; then
7378 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
7379 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7380 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
7381 else
7382 # Determine the default libpath from the value encoded in an
7383 # empty executable.
7384 _LT_SYS_MODULE_PATH_AIX([$1])
7385 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
7386 # Warning - without using the other run time loading flags,
7387 # -berok will link without error, but may produce a broken library.
7388 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
7389 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
7390 if test yes = "$with_gnu_ld"; then
7391 # We only use this code for GNU lds that support --whole-archive.
7392 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
7393 else
7394 # Exported symbols can be pulled into shared objects from archives
7395 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7396 fi
7397 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7398 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
7399 # -brtl affects multiple linker settings, -berok does not and is overridden later
7400 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
7401 if test svr4 != "$with_aix_soname"; then
7402 # This is similar to how AIX traditionally builds its shared libraries.
7403 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
7404 fi
7405 if test aix != "$with_aix_soname"; then
7406 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
7407 else
7408 # used by -dlpreopen to get the symbols
7409 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
7410 fi
7411 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
7412 fi
7413 fi
7414 ;;
7415
7416 amigaos*)
7417 case $host_cpu in
7418 powerpc)
7419 # see comment about AmigaOS4 .so support
7420 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7421 _LT_TAGVAR(archive_expsym_cmds, $1)=''
7422 ;;
7423 m68k)
7424 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7425 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7426 _LT_TAGVAR(hardcode_minus_L, $1)=yes
7427 ;;
7428 esac
7429 ;;
7430
7431 bsdi[[45]]*)
7432 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
7433 ;;
7434
7435 cygwin* | mingw* | pw32* | cegcc*)
7436 # When not using gcc, we currently assume that we are using
7437 # Microsoft Visual C++.
7438 # hardcode_libdir_flag_spec is actually meaningless, as there is
7439 # no search path for DLLs.
7440 case $cc_basename in
7441 cl*)
7442 # Native MSVC
7443 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7444 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7445 _LT_TAGVAR(always_export_symbols, $1)=yes
7446 _LT_TAGVAR(file_list_spec, $1)='@'
7447 # Tell ltmain to make .lib files, not .a files.
7448 libext=lib
7449 # Tell ltmain to make .dll files, not .so files.
7450 shrext_cmds=.dll
7451 # FIXME: Setting linknames here is a bad hack.
7452 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
7453 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
7454 cp "$export_symbols" "$output_objdir/$soname.def";
7455 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
7456 else
7457 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
7458 fi~
7459 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
7460 linknames='
7461 # The linker will not automatically build a static lib if we build a DLL.
7462 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
7463 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7464 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
7465 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
7466 # Don't use ranlib
7467 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
7468 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
7469 lt_tool_outputfile="@TOOL_OUTPUT@"~
7470 case $lt_outputfile in
7471 *.exe|*.EXE) ;;
7472 *)
7473 lt_outputfile=$lt_outputfile.exe
7474 lt_tool_outputfile=$lt_tool_outputfile.exe
7475 ;;
7476 esac~
7477 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
7478 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
7479 $RM "$lt_outputfile.manifest";
7480 fi'
7481 ;;
7482 *)
7483 # Assume MSVC wrapper
7484 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7485 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7486 # Tell ltmain to make .lib files, not .a files.
7487 libext=lib
7488 # Tell ltmain to make .dll files, not .so files.
7489 shrext_cmds=.dll
7490 # FIXME: Setting linknames here is a bad hack.
7491 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
7492 # The linker will automatically build a .lib file if we build a DLL.
7493 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
7494 # FIXME: Should let the user specify the lib program.
7495 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
7496 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7497 ;;
7498 esac
7499 ;;
7500
7501 darwin* | rhapsody*)
7502 _LT_DARWIN_LINKER_FEATURES($1)
7503 ;;
7504
7505 dgux*)
7506 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7507 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7508 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7509 ;;
7510
7511 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7512 # support. Future versions do this automatically, but an explicit c++rt0.o
7513 # does not break anything, and helps significantly (at the cost of a little
7514 # extra space).
7515 freebsd2.2*)
7516 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7517 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7518 _LT_TAGVAR(hardcode_direct, $1)=yes
7519 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7520 ;;
7521
7522 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7523 freebsd2.*)
7524 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7525 _LT_TAGVAR(hardcode_direct, $1)=yes
7526 _LT_TAGVAR(hardcode_minus_L, $1)=yes
7527 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7528 ;;
7529
7530 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7531 freebsd* | dragonfly*)
7532 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7533 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7534 _LT_TAGVAR(hardcode_direct, $1)=yes
7535 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7536 ;;
7537
7538 hpux9*)
7539 if test yes = "$GCC"; then
7540 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
7541 else
7542 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
7543 fi
7544 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
7545 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7546 _LT_TAGVAR(hardcode_direct, $1)=yes
7547
7548 # hardcode_minus_L: Not really in the search PATH,
7549 # but as the default location of the library.
7550 _LT_TAGVAR(hardcode_minus_L, $1)=yes
7551 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7552 ;;
7553
7554 hpux10*)
7555 if test yes,no = "$GCC,$with_gnu_ld"; then
7556 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7557 else
7558 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7559 fi
7560 if test no = "$with_gnu_ld"; then
7561 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
7562 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7563 _LT_TAGVAR(hardcode_direct, $1)=yes
7564 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7565 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7566 # hardcode_minus_L: Not really in the search PATH,
7567 # but as the default location of the library.
7568 _LT_TAGVAR(hardcode_minus_L, $1)=yes
7569 fi
7570 ;;
7571
7572 hpux11*)
7573 if test yes,no = "$GCC,$with_gnu_ld"; then
7574 case $host_cpu in
7575 hppa*64*)
7576 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
7577 ;;
7578 ia64*)
7579 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7580 ;;
7581 *)
7582 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7583 ;;
7584 esac
7585 else
7586 case $host_cpu in
7587 hppa*64*)
7588 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
7589 ;;
7590 ia64*)
7591 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7592 ;;
7593 *)
7594 m4_if($1, [], [
7595 # Older versions of the 11.00 compiler do not understand -b yet
7596 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
7597 _LT_LINKER_OPTION([if $CC understands -b],
7598 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
7599 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
7600 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
7601 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
7602 ;;
7603 esac
7604 fi
7605 if test no = "$with_gnu_ld"; then
7606 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
7607 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7608
7609 case $host_cpu in
7610 hppa*64*|ia64*)
7611 _LT_TAGVAR(hardcode_direct, $1)=no
7612 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7613 ;;
7614 *)
7615 _LT_TAGVAR(hardcode_direct, $1)=yes
7616 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7617 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7618
7619 # hardcode_minus_L: Not really in the search PATH,
7620 # but as the default location of the library.
7621 _LT_TAGVAR(hardcode_minus_L, $1)=yes
7622 ;;
7623 esac
7624 fi
7625 ;;
7626
7627 irix5* | irix6* | nonstopux*)
7628 if test yes = "$GCC"; then
7629 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
7630 # Try to use the -exported_symbol ld option, if it does not
7631 # work, assume that -exports_file does not work either and
7632 # implicitly export all symbols.
7633 # This should be the same for all languages, so no per-tag cache variable.
7634 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
7635 [lt_cv_irix_exported_symbol],
7636 [save_LDFLAGS=$LDFLAGS
7637 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
7638 AC_LINK_IFELSE(
7639 [AC_LANG_SOURCE(
7640 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
7641 [C++], [[int foo (void) { return 0; }]],
7642 [Fortran 77], [[
7643 subroutine foo
7644 end]],
7645 [Fortran], [[
7646 subroutine foo
7647 end]])])],
7648 [lt_cv_irix_exported_symbol=yes],
7649 [lt_cv_irix_exported_symbol=no])
7650 LDFLAGS=$save_LDFLAGS])
7651 if test yes = "$lt_cv_irix_exported_symbol"; then
7652 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
7653 fi
7654 _LT_TAGVAR(link_all_deplibs, $1)=no
7655 else
7656 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
7657 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
7658 fi
7659 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
7660 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7661 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7662 _LT_TAGVAR(inherit_rpath, $1)=yes
7663 _LT_TAGVAR(link_all_deplibs, $1)=yes
7664 ;;
7665
7666 linux*)
7667 case $cc_basename in
7668 tcc*)
7669 # Fabrice Bellard et al's Tiny C Compiler
7670 _LT_TAGVAR(ld_shlibs, $1)=yes
7671 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7672 ;;
7673 esac
7674 ;;
7675
7676 netbsd* | netbsdelf*-gnu)
7677 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7678 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7679 else
7680 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7681 fi
7682 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7683 _LT_TAGVAR(hardcode_direct, $1)=yes
7684 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7685 ;;
7686
7687 newsos6)
7688 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7689 _LT_TAGVAR(hardcode_direct, $1)=yes
7690 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7691 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7692 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7693 ;;
7694
7695 *nto* | *qnx*)
7696 ;;
7697
7698 openbsd* | bitrig*)
7699 if test -f /usr/libexec/ld.so; then
7700 _LT_TAGVAR(hardcode_direct, $1)=yes
7701 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7702 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7703 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7704 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7705 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
7706 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7707 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7708 else
7709 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7710 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7711 fi
7712 else
7713 _LT_TAGVAR(ld_shlibs, $1)=no
7714 fi
7715 ;;
7716
7717 os2*)
7718 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7719 _LT_TAGVAR(hardcode_minus_L, $1)=yes
7720 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7721 shrext_cmds=.dll
7722 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
7723 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
7724 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
7725 $ECHO EXPORTS >> $output_objdir/$libname.def~
7726 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
7727 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
7728 emximp -o $lib $output_objdir/$libname.def'
7729 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
7730 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
7731 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
7732 $ECHO EXPORTS >> $output_objdir/$libname.def~
7733 prefix_cmds="$SED"~
7734 if test EXPORTS = "`$SED 1q $export_symbols`"; then
7735 prefix_cmds="$prefix_cmds -e 1d";
7736 fi~
7737 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
7738 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
7739 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
7740 emximp -o $lib $output_objdir/$libname.def'
7741 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
7742 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7743 ;;
7744
7745 osf3*)
7746 if test yes = "$GCC"; then
7747 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7748 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
7749 else
7750 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7751 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
7752 fi
7753 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
7754 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7755 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7756 ;;
7757
7758 osf4* | osf5*) # as osf3* with the addition of -msym flag
7759 if test yes = "$GCC"; then
7760 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7761 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
7762 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7763 else
7764 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7765 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
7766 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
7767 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
7768
7769 # Both c and cxx compiler support -rpath directly
7770 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7771 fi
7772 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
7773 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7774 ;;
7775
7776 solaris*)
7777 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
7778 if test yes = "$GCC"; then
7779 wlarc='$wl'
7780 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
7781 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7782 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7783 else
7784 case `$CC -V 2>&1` in
7785 *"Compilers 5.0"*)
7786 wlarc=''
7787 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
7788 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7789 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7790 ;;
7791 *)
7792 wlarc='$wl'
7793 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7794 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7795 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7796 ;;
7797 esac
7798 fi
7799 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7800 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7801 case $host_os in
7802 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7803 *)
7804 # The compiler driver will combine and reorder linker options,
7805 # but understands '-z linker_flag'. GCC discards it without '$wl',
7806 # but is careful enough not to reorder.
7807 # Supported since Solaris 2.6 (maybe 2.5.1?)
7808 if test yes = "$GCC"; then
7809 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
7810 else
7811 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7812 fi
7813 ;;
7814 esac
7815 _LT_TAGVAR(link_all_deplibs, $1)=yes
7816 ;;
7817
7818 sunos4*)
7819 if test sequent = "$host_vendor"; then
7820 # Use $CC to link under sequent, because it throws in some extra .o
7821 # files that make .init and .fini sections work.
7822 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7823 else
7824 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7825 fi
7826 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7827 _LT_TAGVAR(hardcode_direct, $1)=yes
7828 _LT_TAGVAR(hardcode_minus_L, $1)=yes
7829 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7830 ;;
7831
7832 sysv4)
7833 case $host_vendor in
7834 sni)
7835 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7836 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7837 ;;
7838 siemens)
7839 ## LD is ld it makes a PLAMLIB
7840 ## CC just makes a GrossModule.
7841 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7842 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7843 _LT_TAGVAR(hardcode_direct, $1)=no
7844 ;;
7845 motorola)
7846 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7847 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7848 ;;
7849 esac
7850 runpath_var='LD_RUN_PATH'
7851 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7852 ;;
7853
7854 sysv4.3*)
7855 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7856 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7857 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7858 ;;
7859
7860 sysv4*MP*)
7861 if test -d /usr/nec; then
7862 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7863 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7864 runpath_var=LD_RUN_PATH
7865 hardcode_runpath_var=yes
7866 _LT_TAGVAR(ld_shlibs, $1)=yes
7867 fi
7868 ;;
7869
7870 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7871 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7872 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7873 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7874 runpath_var='LD_RUN_PATH'
7875
7876 if test yes = "$GCC"; then
7877 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7878 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7879 else
7880 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7881 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7882 fi
7883 ;;
7884
7885 sysv5* | sco3.2v5* | sco5v6*)
7886 # Note: We CANNOT use -z defs as we might desire, because we do not
7887 # link with -lc, and that would cause any symbols used from libc to
7888 # always be unresolved, which means just about no library would
7889 # ever link correctly. If we're not using GNU ld we use -z text
7890 # though, which does catch some bad symbols but isn't as heavy-handed
7891 # as -z defs.
7892 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7893 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
7894 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7895 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7896 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
7897 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7898 _LT_TAGVAR(link_all_deplibs, $1)=yes
7899 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
7900 runpath_var='LD_RUN_PATH'
7901
7902 if test yes = "$GCC"; then
7903 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7904 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7905 else
7906 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7907 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7908 fi
7909 ;;
7910
7911 uts4*)
7912 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7913 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7914 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7915 ;;
7916
7917 *)
7918 _LT_TAGVAR(ld_shlibs, $1)=no
7919 ;;
7920 esac
7921
7922 if test sni = "$host_vendor"; then
7923 case $host in
7924 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7925 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
7926 ;;
7927 esac
7928 fi
7929 fi
7930 ])
7931 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7932 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
7933
7934 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
7935
7936 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
7937 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
7938 _LT_DECL([], [extract_expsyms_cmds], [2],
7939 [The commands to extract the exported symbol list from a shared archive])
7940
7941 #
7942 # Do we need to explicitly link libc?
7943 #
7944 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
7945 x|xyes)
7946 # Assume -lc should be added
7947 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7948
7949 if test yes,yes = "$GCC,$enable_shared"; then
7950 case $_LT_TAGVAR(archive_cmds, $1) in
7951 *'~'*)
7952 # FIXME: we may have to deal with multi-command sequences.
7953 ;;
7954 '$CC '*)
7955 # Test whether the compiler implicitly links with -lc since on some
7956 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7957 # to ld, don't add -lc before -lgcc.
7958 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
7959 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
7960 [$RM conftest*
7961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7962
7963 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7964 soname=conftest
7965 lib=conftest
7966 libobjs=conftest.$ac_objext
7967 deplibs=
7968 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
7969 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7970 compiler_flags=-v
7971 linker_flags=-v
7972 verstring=
7973 output_objdir=.
7974 libname=conftest
7975 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
7976 _LT_TAGVAR(allow_undefined_flag, $1)=
7977 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7978 then
7979 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7980 else
7981 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7982 fi
7983 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7984 else
7985 cat conftest.err 1>&5
7986 fi
7987 $RM conftest*
7988 ])
7989 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
7990 ;;
7991 esac
7992 fi
7993 ;;
7994 esac
7995
7996 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
7997 [Whether or not to add -lc for building shared libraries])
7998 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
7999 [enable_shared_with_static_runtimes], [0],
8000 [Whether or not to disallow shared libs when runtime libs are static])
8001 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
8002 [Compiler flag to allow reflexive dlopens])
8003 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
8004 [Compiler flag to generate shared objects directly from archives])
8005 _LT_TAGDECL([], [compiler_needs_object], [1],
8006 [Whether the compiler copes with passing no objects directly])
8007 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
8008 [Create an old-style archive from a shared archive])
8009 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
8010 [Create a temporary old-style archive to link instead of a shared archive])
8011 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
8012 _LT_TAGDECL([], [archive_expsym_cmds], [2])
8013 _LT_TAGDECL([], [module_cmds], [2],
8014 [Commands used to build a loadable module if different from building
8015 a shared archive.])
8016 _LT_TAGDECL([], [module_expsym_cmds], [2])
8017 _LT_TAGDECL([], [with_gnu_ld], [1],
8018 [Whether we are building with GNU ld or not])
8019 _LT_TAGDECL([], [allow_undefined_flag], [1],
8020 [Flag that allows shared libraries with undefined symbols to be built])
8021 _LT_TAGDECL([], [no_undefined_flag], [1],
8022 [Flag that enforces no undefined symbols])
8023 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
8024 [Flag to hardcode $libdir into a binary during linking.
8025 This must work even if $libdir does not exist])
8026 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
8027 [Whether we need a single "-rpath" flag with a separated argument])
8028 _LT_TAGDECL([], [hardcode_direct], [0],
8029 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
8030 DIR into the resulting binary])
8031 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
8032 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
8033 DIR into the resulting binary and the resulting library dependency is
8034 "absolute", i.e impossible to change by setting $shlibpath_var if the
8035 library is relocated])
8036 _LT_TAGDECL([], [hardcode_minus_L], [0],
8037 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
8038 into the resulting binary])
8039 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
8040 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
8041 into the resulting binary])
8042 _LT_TAGDECL([], [hardcode_automatic], [0],
8043 [Set to "yes" if building a shared library automatically hardcodes DIR
8044 into the library and all subsequent libraries and executables linked
8045 against it])
8046 _LT_TAGDECL([], [inherit_rpath], [0],
8047 [Set to yes if linker adds runtime paths of dependent libraries
8048 to runtime path list])
8049 _LT_TAGDECL([], [link_all_deplibs], [0],
8050 [Whether libtool must link a program against all its dependency libraries])
8051 _LT_TAGDECL([], [always_export_symbols], [0],
8052 [Set to "yes" if exported symbols are required])
8053 _LT_TAGDECL([], [export_symbols_cmds], [2],
8054 [The commands to list exported symbols])
8055 _LT_TAGDECL([], [exclude_expsyms], [1],
8056 [Symbols that should not be listed in the preloaded symbols])
8057 _LT_TAGDECL([], [include_expsyms], [1],
8058 [Symbols that must always be exported])
8059 _LT_TAGDECL([], [prelink_cmds], [2],
8060 [Commands necessary for linking programs (against libraries) with templates])
8061 _LT_TAGDECL([], [postlink_cmds], [2],
8062 [Commands necessary for finishing linking programs])
8063 _LT_TAGDECL([], [file_list_spec], [1],
8064 [Specify filename containing input files])
8065 dnl FIXME: Not yet implemented
8066 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
8067 dnl [Compiler flag to generate thread safe objects])
8068 ])# _LT_LINKER_SHLIBS
8069
8070
8071 # _LT_LANG_C_CONFIG([TAG])
8072 # ------------------------
8073 # Ensure that the configuration variables for a C compiler are suitably
8074 # defined. These variables are subsequently used by _LT_CONFIG to write
8075 # the compiler configuration to 'libtool'.
8076 m4_defun([_LT_LANG_C_CONFIG],
8077 [m4_require([_LT_DECL_EGREP])dnl
8078 lt_save_CC=$CC
8079 AC_LANG_PUSH(C)
8080
8081 # Source file extension for C test sources.
8082 ac_ext=c
8083
8084 # Object file extension for compiled C test sources.
8085 objext=o
8086 _LT_TAGVAR(objext, $1)=$objext
8087
8088 # Code to be used in simple compile tests
8089 lt_simple_compile_test_code="int some_variable = 0;"
8090
8091 # Code to be used in simple link tests
8092 lt_simple_link_test_code='int main(){return(0);}'
8093
8094 _LT_TAG_COMPILER
8095 # Save the default compiler, since it gets overwritten when the other
8096 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8097 compiler_DEFAULT=$CC
8098
8099 # save warnings/boilerplate of simple test code
8100 _LT_COMPILER_BOILERPLATE
8101 _LT_LINKER_BOILERPLATE
8102
8103 if test -n "$compiler"; then
8104 _LT_COMPILER_NO_RTTI($1)
8105 _LT_COMPILER_PIC($1)
8106 _LT_COMPILER_C_O($1)
8107 _LT_COMPILER_FILE_LOCKS($1)
8108 _LT_LINKER_SHLIBS($1)
8109 _LT_SYS_DYNAMIC_LINKER($1)
8110 _LT_LINKER_HARDCODE_LIBPATH($1)
8111 LT_SYS_DLOPEN_SELF
8112 _LT_CMD_STRIPLIB
8113
8114 # Report what library types will actually be built
8115 AC_MSG_CHECKING([if libtool supports shared libraries])
8116 AC_MSG_RESULT([$can_build_shared])
8117
8118 AC_MSG_CHECKING([whether to build shared libraries])
8119 test no = "$can_build_shared" && enable_shared=no
8120
8121 # On AIX, shared libraries and static libraries use the same namespace, and
8122 # are all built from PIC.
8123 case $host_os in
8124 aix3*)
8125 test yes = "$enable_shared" && enable_static=no
8126 if test -n "$RANLIB"; then
8127 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8128 postinstall_cmds='$RANLIB $lib'
8129 fi
8130 ;;
8131
8132 aix[[4-9]]*)
8133 if test ia64 != "$host_cpu"; then
8134 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
8135 yes,aix,yes) ;; # shared object as lib.so file only
8136 yes,svr4,*) ;; # shared object as lib.so archive member only
8137 yes,*) enable_static=no ;; # shared object in lib.a archive as well
8138 esac
8139 fi
8140 ;;
8141 esac
8142 AC_MSG_RESULT([$enable_shared])
8143
8144 AC_MSG_CHECKING([whether to build static libraries])
8145 # Make sure either enable_shared or enable_static is yes.
8146 test yes = "$enable_shared" || enable_static=yes
8147 AC_MSG_RESULT([$enable_static])
8148
8149 _LT_CONFIG($1)
8150 fi
8151 AC_LANG_POP
8152 CC=$lt_save_CC
8153 ])# _LT_LANG_C_CONFIG
8154
8155
8156 # _LT_LANG_CXX_CONFIG([TAG])
8157 # --------------------------
8158 # Ensure that the configuration variables for a C++ compiler are suitably
8159 # defined. These variables are subsequently used by _LT_CONFIG to write
8160 # the compiler configuration to 'libtool'.
8161 m4_defun([_LT_LANG_CXX_CONFIG],
8162 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8163 m4_require([_LT_DECL_EGREP])dnl
8164 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
8165 if test -n "$CXX" && ( test no != "$CXX" &&
8166 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
8167 (test g++ != "$CXX"))); then
8168 AC_PROG_CXXCPP
8169 else
8170 _lt_caught_CXX_error=yes
8171 fi
8172
8173 AC_LANG_PUSH(C++)
8174 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8175 _LT_TAGVAR(allow_undefined_flag, $1)=
8176 _LT_TAGVAR(always_export_symbols, $1)=no
8177 _LT_TAGVAR(archive_expsym_cmds, $1)=
8178 _LT_TAGVAR(compiler_needs_object, $1)=no
8179 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
8180 _LT_TAGVAR(hardcode_direct, $1)=no
8181 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
8182 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8183 _LT_TAGVAR(hardcode_libdir_separator, $1)=
8184 _LT_TAGVAR(hardcode_minus_L, $1)=no
8185 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8186 _LT_TAGVAR(hardcode_automatic, $1)=no
8187 _LT_TAGVAR(inherit_rpath, $1)=no
8188 _LT_TAGVAR(module_cmds, $1)=
8189 _LT_TAGVAR(module_expsym_cmds, $1)=
8190 _LT_TAGVAR(link_all_deplibs, $1)=unknown
8191 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8192 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8193 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8194 _LT_TAGVAR(no_undefined_flag, $1)=
8195 _LT_TAGVAR(whole_archive_flag_spec, $1)=
8196 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8197
8198 # Source file extension for C++ test sources.
8199 ac_ext=cpp
8200
8201 # Object file extension for compiled C++ test sources.
8202 objext=o
8203 _LT_TAGVAR(objext, $1)=$objext
8204
8205 # No sense in running all these tests if we already determined that
8206 # the CXX compiler isn't working. Some variables (like enable_shared)
8207 # are currently assumed to apply to all compilers on this platform,
8208 # and will be corrupted by setting them based on a non-working compiler.
8209 if test yes != "$_lt_caught_CXX_error"; then
8210 # Code to be used in simple compile tests
8211 lt_simple_compile_test_code="int some_variable = 0;"
8212
8213 # Code to be used in simple link tests
8214 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
8215
8216 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8217 _LT_TAG_COMPILER
8218
8219 # save warnings/boilerplate of simple test code
8220 _LT_COMPILER_BOILERPLATE
8221 _LT_LINKER_BOILERPLATE
8222
8223 # Allow CC to be a program name with arguments.
8224 lt_save_CC=$CC
8225 lt_save_CFLAGS=$CFLAGS
8226 lt_save_LD=$LD
8227 lt_save_GCC=$GCC
8228 GCC=$GXX
8229 lt_save_with_gnu_ld=$with_gnu_ld
8230 lt_save_path_LD=$lt_cv_path_LD
8231 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8232 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8233 else
8234 $as_unset lt_cv_prog_gnu_ld
8235 fi
8236 if test -n "${lt_cv_path_LDCXX+set}"; then
8237 lt_cv_path_LD=$lt_cv_path_LDCXX
8238 else
8239 $as_unset lt_cv_path_LD
8240 fi
8241 test -z "${LDCXX+set}" || LD=$LDCXX
8242 CC=${CXX-"c++"}
8243 CFLAGS=$CXXFLAGS
8244 compiler=$CC
8245 _LT_TAGVAR(compiler, $1)=$CC
8246 _LT_CC_BASENAME([$compiler])
8247
8248 if test -n "$compiler"; then
8249 # We don't want -fno-exception when compiling C++ code, so set the
8250 # no_builtin_flag separately
8251 if test yes = "$GXX"; then
8252 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
8253 else
8254 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
8255 fi
8256
8257 if test yes = "$GXX"; then
8258 # Set up default GNU C++ configuration
8259
8260 LT_PATH_LD
8261
8262 # Check if GNU C++ uses GNU ld as the underlying linker, since the
8263 # archiving commands below assume that GNU ld is being used.
8264 if test yes = "$with_gnu_ld"; then
8265 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
8266 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8267
8268 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8269 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
8270
8271 # If archive_cmds runs LD, not CC, wlarc should be empty
8272 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
8273 # investigate it a little bit more. (MM)
8274 wlarc='$wl'
8275
8276 # ancient GNU ld didn't support --whole-archive et. al.
8277 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
8278 $GREP 'no-whole-archive' > /dev/null; then
8279 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8280 else
8281 _LT_TAGVAR(whole_archive_flag_spec, $1)=
8282 fi
8283 else
8284 with_gnu_ld=no
8285 wlarc=
8286
8287 # A generic and very simple default shared library creation
8288 # command for GNU C++ for the case where it uses the native
8289 # linker, instead of GNU ld. If possible, this setting should
8290 # overridden to take advantage of the native linker features on
8291 # the platform it is being used on.
8292 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8293 fi
8294
8295 # Commands to make compiler produce verbose output that lists
8296 # what "hidden" libraries, object files and flags are used when
8297 # linking a shared library.
8298 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
8299
8300 else
8301 GXX=no
8302 with_gnu_ld=no
8303 wlarc=
8304 fi
8305
8306 # PORTME: fill in a description of your system's C++ link characteristics
8307 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
8308 _LT_TAGVAR(ld_shlibs, $1)=yes
8309 case $host_os in
8310 aix3*)
8311 # FIXME: insert proper C++ library support
8312 _LT_TAGVAR(ld_shlibs, $1)=no
8313 ;;
8314 aix[[4-9]]*)
8315 if test ia64 = "$host_cpu"; then
8316 # On IA64, the linker does run time linking by default, so we don't
8317 # have to do anything special.
8318 aix_use_runtimelinking=no
8319 exp_sym_flag='-Bexport'
8320 no_entry_flag=
8321 else
8322 aix_use_runtimelinking=no
8323
8324 # Test if we are trying to use run time linking or normal
8325 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8326 # have runtime linking enabled, and use it for executables.
8327 # For shared libraries, we enable/disable runtime linking
8328 # depending on the kind of the shared library created -
8329 # when "with_aix_soname,aix_use_runtimelinking" is:
8330 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
8331 # "aix,yes" lib.so shared, rtl:yes, for executables
8332 # lib.a static archive
8333 # "both,no" lib.so.V(shr.o) shared, rtl:yes
8334 # lib.a(lib.so.V) shared, rtl:no, for executables
8335 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8336 # lib.a(lib.so.V) shared, rtl:no
8337 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
8338 # lib.a static archive
8339 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
8340 for ld_flag in $LDFLAGS; do
8341 case $ld_flag in
8342 *-brtl*)
8343 aix_use_runtimelinking=yes
8344 break
8345 ;;
8346 esac
8347 done
8348 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8349 # With aix-soname=svr4, we create the lib.so.V shared archives only,
8350 # so we don't have lib.a shared libs to link our executables.
8351 # We have to force runtime linking in this case.
8352 aix_use_runtimelinking=yes
8353 LDFLAGS="$LDFLAGS -Wl,-brtl"
8354 fi
8355 ;;
8356 esac
8357
8358 exp_sym_flag='-bexport'
8359 no_entry_flag='-bnoentry'
8360 fi
8361
8362 # When large executables or shared objects are built, AIX ld can
8363 # have problems creating the table of contents. If linking a library
8364 # or program results in "error TOC overflow" add -mminimal-toc to
8365 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8366 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8367
8368 _LT_TAGVAR(archive_cmds, $1)=''
8369 _LT_TAGVAR(hardcode_direct, $1)=yes
8370 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8371 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
8372 _LT_TAGVAR(link_all_deplibs, $1)=yes
8373 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
8374 case $with_aix_soname,$aix_use_runtimelinking in
8375 aix,*) ;; # no import file
8376 svr4,* | *,yes) # use import file
8377 # The Import File defines what to hardcode.
8378 _LT_TAGVAR(hardcode_direct, $1)=no
8379 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
8380 ;;
8381 esac
8382
8383 if test yes = "$GXX"; then
8384 case $host_os in aix4.[[012]]|aix4.[[012]].*)
8385 # We only want to do this on AIX 4.2 and lower, the check
8386 # below for broken collect2 doesn't work under 4.3+
8387 collect2name=`$CC -print-prog-name=collect2`
8388 if test -f "$collect2name" &&
8389 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8390 then
8391 # We have reworked collect2
8392 :
8393 else
8394 # We have old collect2
8395 _LT_TAGVAR(hardcode_direct, $1)=unsupported
8396 # It fails to find uninstalled libraries when the uninstalled
8397 # path is not listed in the libpath. Setting hardcode_minus_L
8398 # to unsupported forces relinking
8399 _LT_TAGVAR(hardcode_minus_L, $1)=yes
8400 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8401 _LT_TAGVAR(hardcode_libdir_separator, $1)=
8402 fi
8403 esac
8404 shared_flag='-shared'
8405 if test yes = "$aix_use_runtimelinking"; then
8406 shared_flag=$shared_flag' $wl-G'
8407 fi
8408 # Need to ensure runtime linking is disabled for the traditional
8409 # shared library, or the linker may eventually find shared libraries
8410 # /with/ Import File - we do not want to mix them.
8411 shared_flag_aix='-shared'
8412 shared_flag_svr4='-shared $wl-G'
8413 else
8414 # not using gcc
8415 if test ia64 = "$host_cpu"; then
8416 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8417 # chokes on -Wl,-G. The following line is correct:
8418 shared_flag='-G'
8419 else
8420 if test yes = "$aix_use_runtimelinking"; then
8421 shared_flag='$wl-G'
8422 else
8423 shared_flag='$wl-bM:SRE'
8424 fi
8425 shared_flag_aix='$wl-bM:SRE'
8426 shared_flag_svr4='$wl-G'
8427 fi
8428 fi
8429
8430 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
8431 # It seems that -bexpall does not export symbols beginning with
8432 # underscore (_), so it is better to generate a list of symbols to
8433 # export.
8434 _LT_TAGVAR(always_export_symbols, $1)=yes
8435 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8436 # Warning - without using the other runtime loading flags (-brtl),
8437 # -berok will link without error, but may produce a broken library.
8438 # The "-G" linker flag allows undefined symbols.
8439 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
8440 # Determine the default libpath from the value encoded in an empty
8441 # executable.
8442 _LT_SYS_MODULE_PATH_AIX([$1])
8443 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
8444
8445 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
8446 else
8447 if test ia64 = "$host_cpu"; then
8448 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
8449 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
8450 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
8451 else
8452 # Determine the default libpath from the value encoded in an
8453 # empty executable.
8454 _LT_SYS_MODULE_PATH_AIX([$1])
8455 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
8456 # Warning - without using the other run time loading flags,
8457 # -berok will link without error, but may produce a broken library.
8458 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
8459 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
8460 if test yes = "$with_gnu_ld"; then
8461 # We only use this code for GNU lds that support --whole-archive.
8462 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
8463 else
8464 # Exported symbols can be pulled into shared objects from archives
8465 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
8466 fi
8467 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8468 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
8469 # -brtl affects multiple linker settings, -berok does not and is overridden later
8470 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
8471 if test svr4 != "$with_aix_soname"; then
8472 # This is similar to how AIX traditionally builds its shared
8473 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
8474 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
8475 fi
8476 if test aix != "$with_aix_soname"; then
8477 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
8478 else
8479 # used by -dlpreopen to get the symbols
8480 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
8481 fi
8482 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
8483 fi
8484 fi
8485 ;;
8486
8487 beos*)
8488 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8489 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8490 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8491 # support --undefined. This deserves some investigation. FIXME
8492 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8493 else
8494 _LT_TAGVAR(ld_shlibs, $1)=no
8495 fi
8496 ;;
8497
8498 chorus*)
8499 case $cc_basename in
8500 *)
8501 # FIXME: insert proper C++ library support
8502 _LT_TAGVAR(ld_shlibs, $1)=no
8503 ;;
8504 esac
8505 ;;
8506
8507 cygwin* | mingw* | pw32* | cegcc*)
8508 case $GXX,$cc_basename in
8509 ,cl* | no,cl*)
8510 # Native MSVC
8511 # hardcode_libdir_flag_spec is actually meaningless, as there is
8512 # no search path for DLLs.
8513 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
8514 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8515 _LT_TAGVAR(always_export_symbols, $1)=yes
8516 _LT_TAGVAR(file_list_spec, $1)='@'
8517 # Tell ltmain to make .lib files, not .a files.
8518 libext=lib
8519 # Tell ltmain to make .dll files, not .so files.
8520 shrext_cmds=.dll
8521 # FIXME: Setting linknames here is a bad hack.
8522 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
8523 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
8524 cp "$export_symbols" "$output_objdir/$soname.def";
8525 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
8526 else
8527 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
8528 fi~
8529 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8530 linknames='
8531 # The linker will not automatically build a static lib if we build a DLL.
8532 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
8533 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8534 # Don't use ranlib
8535 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
8536 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
8537 lt_tool_outputfile="@TOOL_OUTPUT@"~
8538 case $lt_outputfile in
8539 *.exe|*.EXE) ;;
8540 *)
8541 lt_outputfile=$lt_outputfile.exe
8542 lt_tool_outputfile=$lt_tool_outputfile.exe
8543 ;;
8544 esac~
8545 func_to_tool_file "$lt_outputfile"~
8546 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
8547 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8548 $RM "$lt_outputfile.manifest";
8549 fi'
8550 ;;
8551 *)
8552 # g++
8553 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
8554 # as there is no search path for DLLs.
8555 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8556 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
8557 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8558 _LT_TAGVAR(always_export_symbols, $1)=no
8559 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8560
8561 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8562 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8563 # If the export-symbols file already is a .def file, use it as
8564 # is; otherwise, prepend EXPORTS...
8565 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
8566 cp $export_symbols $output_objdir/$soname.def;
8567 else
8568 echo EXPORTS > $output_objdir/$soname.def;
8569 cat $export_symbols >> $output_objdir/$soname.def;
8570 fi~
8571 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8572 else
8573 _LT_TAGVAR(ld_shlibs, $1)=no
8574 fi
8575 ;;
8576 esac
8577 ;;
8578 darwin* | rhapsody*)
8579 _LT_DARWIN_LINKER_FEATURES($1)
8580 ;;
8581
8582 os2*)
8583 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8584 _LT_TAGVAR(hardcode_minus_L, $1)=yes
8585 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8586 shrext_cmds=.dll
8587 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8588 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8589 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8590 $ECHO EXPORTS >> $output_objdir/$libname.def~
8591 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8592 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8593 emximp -o $lib $output_objdir/$libname.def'
8594 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8595 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8596 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8597 $ECHO EXPORTS >> $output_objdir/$libname.def~
8598 prefix_cmds="$SED"~
8599 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8600 prefix_cmds="$prefix_cmds -e 1d";
8601 fi~
8602 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8603 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8604 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8605 emximp -o $lib $output_objdir/$libname.def'
8606 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8607 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8608 ;;
8609
8610 dgux*)
8611 case $cc_basename in
8612 ec++*)
8613 # FIXME: insert proper C++ library support
8614 _LT_TAGVAR(ld_shlibs, $1)=no
8615 ;;
8616 ghcx*)
8617 # Green Hills C++ Compiler
8618 # FIXME: insert proper C++ library support
8619 _LT_TAGVAR(ld_shlibs, $1)=no
8620 ;;
8621 *)
8622 # FIXME: insert proper C++ library support
8623 _LT_TAGVAR(ld_shlibs, $1)=no
8624 ;;
8625 esac
8626 ;;
8627
8628 freebsd2.*)
8629 # C++ shared libraries reported to be fairly broken before
8630 # switch to ELF
8631 _LT_TAGVAR(ld_shlibs, $1)=no
8632 ;;
8633
8634 freebsd-elf*)
8635 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8636 ;;
8637
8638 freebsd* | dragonfly*)
8639 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
8640 # conventions
8641 _LT_TAGVAR(ld_shlibs, $1)=yes
8642 ;;
8643
8644 haiku*)
8645 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8646 _LT_TAGVAR(link_all_deplibs, $1)=yes
8647 ;;
8648
8649 hpux9*)
8650 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
8651 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8652 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
8653 _LT_TAGVAR(hardcode_direct, $1)=yes
8654 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
8655 # but as the default
8656 # location of the library.
8657
8658 case $cc_basename in
8659 CC*)
8660 # FIXME: insert proper C++ library support
8661 _LT_TAGVAR(ld_shlibs, $1)=no
8662 ;;
8663 aCC*)
8664 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
8665 # Commands to make compiler produce verbose output that lists
8666 # what "hidden" libraries, object files and flags are used when
8667 # linking a shared library.
8668 #
8669 # There doesn't appear to be a way to prevent this compiler from
8670 # explicitly linking system object files so we need to strip them
8671 # from the output so that they don't get included in the library
8672 # dependencies.
8673 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8674 ;;
8675 *)
8676 if test yes = "$GXX"; then
8677 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
8678 else
8679 # FIXME: insert proper C++ library support
8680 _LT_TAGVAR(ld_shlibs, $1)=no
8681 fi
8682 ;;
8683 esac
8684 ;;
8685
8686 hpux10*|hpux11*)
8687 if test no = "$with_gnu_ld"; then
8688 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
8689 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8690
8691 case $host_cpu in
8692 hppa*64*|ia64*)
8693 ;;
8694 *)
8695 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
8696 ;;
8697 esac
8698 fi
8699 case $host_cpu in
8700 hppa*64*|ia64*)
8701 _LT_TAGVAR(hardcode_direct, $1)=no
8702 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8703 ;;
8704 *)
8705 _LT_TAGVAR(hardcode_direct, $1)=yes
8706 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8707 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
8708 # but as the default
8709 # location of the library.
8710 ;;
8711 esac
8712
8713 case $cc_basename in
8714 CC*)
8715 # FIXME: insert proper C++ library support
8716 _LT_TAGVAR(ld_shlibs, $1)=no
8717 ;;
8718 aCC*)
8719 case $host_cpu in
8720 hppa*64*)
8721 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8722 ;;
8723 ia64*)
8724 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8725 ;;
8726 *)
8727 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8728 ;;
8729 esac
8730 # Commands to make compiler produce verbose output that lists
8731 # what "hidden" libraries, object files and flags are used when
8732 # linking a shared library.
8733 #
8734 # There doesn't appear to be a way to prevent this compiler from
8735 # explicitly linking system object files so we need to strip them
8736 # from the output so that they don't get included in the library
8737 # dependencies.
8738 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8739 ;;
8740 *)
8741 if test yes = "$GXX"; then
8742 if test no = "$with_gnu_ld"; then
8743 case $host_cpu in
8744 hppa*64*)
8745 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8746 ;;
8747 ia64*)
8748 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8749 ;;
8750 *)
8751 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8752 ;;
8753 esac
8754 fi
8755 else
8756 # FIXME: insert proper C++ library support
8757 _LT_TAGVAR(ld_shlibs, $1)=no
8758 fi
8759 ;;
8760 esac
8761 ;;
8762
8763 interix[[3-9]]*)
8764 _LT_TAGVAR(hardcode_direct, $1)=no
8765 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8766 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
8767 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
8768 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8769 # Instead, shared libraries are loaded at an image base (0x10000000 by
8770 # default) and relocated if they conflict, which is a slow very memory
8771 # consuming and fragmenting process. To avoid this, we pick a random,
8772 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8773 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8774 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8775 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8776 ;;
8777 irix5* | irix6*)
8778 case $cc_basename in
8779 CC*)
8780 # SGI C++
8781 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
8782
8783 # Archives containing C++ object files must be created using
8784 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
8785 # necessary to make sure instantiated templates are included
8786 # in the archive.
8787 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
8788 ;;
8789 *)
8790 if test yes = "$GXX"; then
8791 if test no = "$with_gnu_ld"; then
8792 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
8793 else
8794 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
8795 fi
8796 fi
8797 _LT_TAGVAR(link_all_deplibs, $1)=yes
8798 ;;
8799 esac
8800 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8801 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8802 _LT_TAGVAR(inherit_rpath, $1)=yes
8803 ;;
8804
8805 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8806 case $cc_basename in
8807 KCC*)
8808 # Kuck and Associates, Inc. (KAI) C++ Compiler
8809
8810 # KCC will only create a shared library if the output file
8811 # ends with ".so" (or ".sl" for HP-UX), so rename the library
8812 # to its proper name (with version) after linking.
8813 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
8814 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
8815 # Commands to make compiler produce verbose output that lists
8816 # what "hidden" libraries, object files and flags are used when
8817 # linking a shared library.
8818 #
8819 # There doesn't appear to be a way to prevent this compiler from
8820 # explicitly linking system object files so we need to strip them
8821 # from the output so that they don't get included in the library
8822 # dependencies.
8823 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8824
8825 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
8826 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
8827
8828 # Archives containing C++ object files must be created using
8829 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
8830 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
8831 ;;
8832 icpc* | ecpc* )
8833 # Intel C++
8834 with_gnu_ld=yes
8835 # version 8.0 and above of icpc choke on multiply defined symbols
8836 # if we add $predep_objects and $postdep_objects, however 7.1 and
8837 # earlier do not add the objects themselves.
8838 case `$CC -V 2>&1` in
8839 *"Version 7."*)
8840 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
8841 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8842 ;;
8843 *) # Version 8.0 or newer
8844 tmp_idyn=
8845 case $host_cpu in
8846 ia64*) tmp_idyn=' -i_dynamic';;
8847 esac
8848 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8849 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8850 ;;
8851 esac
8852 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8853 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
8854 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
8855 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
8856 ;;
8857 pgCC* | pgcpp*)
8858 # Portland Group C++ compiler
8859 case `$CC -V` in
8860 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
8861 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
8862 rm -rf $tpldir~
8863 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
8864 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
8865 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
8866 rm -rf $tpldir~
8867 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
8868 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
8869 $RANLIB $oldlib'
8870 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
8871 rm -rf $tpldir~
8872 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8873 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
8874 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
8875 rm -rf $tpldir~
8876 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
8877 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8878 ;;
8879 *) # Version 6 and above use weak symbols
8880 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
8881 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8882 ;;
8883 esac
8884
8885 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
8886 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
8887 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8888 ;;
8889 cxx*)
8890 # Compaq C++
8891 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
8892 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
8893
8894 runpath_var=LD_RUN_PATH
8895 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8896 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8897
8898 # Commands to make compiler produce verbose output that lists
8899 # what "hidden" libraries, object files and flags are used when
8900 # linking a shared library.
8901 #
8902 # There doesn't appear to be a way to prevent this compiler from
8903 # explicitly linking system object files so we need to strip them
8904 # from the output so that they don't get included in the library
8905 # dependencies.
8906 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
8907 ;;
8908 xl* | mpixl* | bgxl*)
8909 # IBM XL 8.0 on PPC, with GNU ld
8910 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
8911 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
8912 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8913 if test yes = "$supports_anon_versioning"; then
8914 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
8915 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8916 echo "local: *; };" >> $output_objdir/$libname.ver~
8917 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8918 fi
8919 ;;
8920 *)
8921 case `$CC -V 2>&1 | sed 5q` in
8922 *Sun\ C*)
8923 # Sun C++ 5.9
8924 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
8925 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8926 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
8927 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8928 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8929 _LT_TAGVAR(compiler_needs_object, $1)=yes
8930
8931 # Not sure whether something based on
8932 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
8933 # would be better.
8934 output_verbose_link_cmd='func_echo_all'
8935
8936 # Archives containing C++ object files must be created using
8937 # "CC -xar", where "CC" is the Sun C++ compiler. This is
8938 # necessary to make sure instantiated templates are included
8939 # in the archive.
8940 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
8941 ;;
8942 esac
8943 ;;
8944 esac
8945 ;;
8946
8947 lynxos*)
8948 # FIXME: insert proper C++ library support
8949 _LT_TAGVAR(ld_shlibs, $1)=no
8950 ;;
8951
8952 m88k*)
8953 # FIXME: insert proper C++ library support
8954 _LT_TAGVAR(ld_shlibs, $1)=no
8955 ;;
8956
8957 mvs*)
8958 case $cc_basename in
8959 cxx*)
8960 # FIXME: insert proper C++ library support
8961 _LT_TAGVAR(ld_shlibs, $1)=no
8962 ;;
8963 *)
8964 # FIXME: insert proper C++ library support
8965 _LT_TAGVAR(ld_shlibs, $1)=no
8966 ;;
8967 esac
8968 ;;
8969
8970 netbsd*)
8971 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8972 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
8973 wlarc=
8974 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8975 _LT_TAGVAR(hardcode_direct, $1)=yes
8976 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8977 fi
8978 # Workaround some broken pre-1.5 toolchains
8979 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
8980 ;;
8981
8982 *nto* | *qnx*)
8983 _LT_TAGVAR(ld_shlibs, $1)=yes
8984 ;;
8985
8986 openbsd* | bitrig*)
8987 if test -f /usr/libexec/ld.so; then
8988 _LT_TAGVAR(hardcode_direct, $1)=yes
8989 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8990 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8991 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8992 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
8993 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
8994 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
8995 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
8996 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8997 fi
8998 output_verbose_link_cmd=func_echo_all
8999 else
9000 _LT_TAGVAR(ld_shlibs, $1)=no
9001 fi
9002 ;;
9003
9004 osf3* | osf4* | osf5*)
9005 case $cc_basename in
9006 KCC*)
9007 # Kuck and Associates, Inc. (KAI) C++ Compiler
9008
9009 # KCC will only create a shared library if the output file
9010 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9011 # to its proper name (with version) after linking.
9012 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9013
9014 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
9015 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
9016
9017 # Archives containing C++ object files must be created using
9018 # the KAI C++ compiler.
9019 case $host in
9020 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
9021 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
9022 esac
9023 ;;
9024 RCC*)
9025 # Rational C++ 2.4.1
9026 # FIXME: insert proper C++ library support
9027 _LT_TAGVAR(ld_shlibs, $1)=no
9028 ;;
9029 cxx*)
9030 case $host in
9031 osf3*)
9032 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
9033 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9034 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
9035 ;;
9036 *)
9037 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
9038 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9039 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9040 echo "-hidden">> $lib.exp~
9041 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
9042 $RM $lib.exp'
9043 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
9044 ;;
9045 esac
9046
9047 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
9048
9049 # Commands to make compiler produce verbose output that lists
9050 # what "hidden" libraries, object files and flags are used when
9051 # linking a shared library.
9052 #
9053 # There doesn't appear to be a way to prevent this compiler from
9054 # explicitly linking system object files so we need to strip them
9055 # from the output so that they don't get included in the library
9056 # dependencies.
9057 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
9058 ;;
9059 *)
9060 if test yes,no = "$GXX,$with_gnu_ld"; then
9061 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
9062 case $host in
9063 osf3*)
9064 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9065 ;;
9066 *)
9067 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9068 ;;
9069 esac
9070
9071 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
9072 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
9073
9074 # Commands to make compiler produce verbose output that lists
9075 # what "hidden" libraries, object files and flags are used when
9076 # linking a shared library.
9077 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
9078
9079 else
9080 # FIXME: insert proper C++ library support
9081 _LT_TAGVAR(ld_shlibs, $1)=no
9082 fi
9083 ;;
9084 esac
9085 ;;
9086
9087 psos*)
9088 # FIXME: insert proper C++ library support
9089 _LT_TAGVAR(ld_shlibs, $1)=no
9090 ;;
9091
9092 sunos4*)
9093 case $cc_basename in
9094 CC*)
9095 # Sun C++ 4.x
9096 # FIXME: insert proper C++ library support
9097 _LT_TAGVAR(ld_shlibs, $1)=no
9098 ;;
9099 lcc*)
9100 # Lucid
9101 # FIXME: insert proper C++ library support
9102 _LT_TAGVAR(ld_shlibs, $1)=no
9103 ;;
9104 *)
9105 # FIXME: insert proper C++ library support
9106 _LT_TAGVAR(ld_shlibs, $1)=no
9107 ;;
9108 esac
9109 ;;
9110
9111 solaris*)
9112 case $cc_basename in
9113 CC* | sunCC*)
9114 # Sun C++ 4.2, 5.x and Centerline C++
9115 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
9116 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
9117 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9118 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9119 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9120
9121 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
9122 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9123 case $host_os in
9124 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
9125 *)
9126 # The compiler driver will combine and reorder linker options,
9127 # but understands '-z linker_flag'.
9128 # Supported since Solaris 2.6 (maybe 2.5.1?)
9129 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
9130 ;;
9131 esac
9132 _LT_TAGVAR(link_all_deplibs, $1)=yes
9133
9134 output_verbose_link_cmd='func_echo_all'
9135
9136 # Archives containing C++ object files must be created using
9137 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9138 # necessary to make sure instantiated templates are included
9139 # in the archive.
9140 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
9141 ;;
9142 gcx*)
9143 # Green Hills C++ Compiler
9144 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
9145
9146 # The C++ compiler must be used to create the archive.
9147 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9148 ;;
9149 *)
9150 # GNU C++ compiler with Solaris linker
9151 if test yes,no = "$GXX,$with_gnu_ld"; then
9152 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
9153 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
9154 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
9155 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9156 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9157
9158 # Commands to make compiler produce verbose output that lists
9159 # what "hidden" libraries, object files and flags are used when
9160 # linking a shared library.
9161 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
9162 else
9163 # g++ 2.7 appears to require '-G' NOT '-shared' on this
9164 # platform.
9165 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
9166 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9167 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9168
9169 # Commands to make compiler produce verbose output that lists
9170 # what "hidden" libraries, object files and flags are used when
9171 # linking a shared library.
9172 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
9173 fi
9174
9175 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
9176 case $host_os in
9177 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
9178 *)
9179 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9180 ;;
9181 esac
9182 fi
9183 ;;
9184 esac
9185 ;;
9186
9187 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
9188 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
9189 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9190 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9191 runpath_var='LD_RUN_PATH'
9192
9193 case $cc_basename in
9194 CC*)
9195 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9196 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9197 ;;
9198 *)
9199 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9200 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9201 ;;
9202 esac
9203 ;;
9204
9205 sysv5* | sco3.2v5* | sco5v6*)
9206 # Note: We CANNOT use -z defs as we might desire, because we do not
9207 # link with -lc, and that would cause any symbols used from libc to
9208 # always be unresolved, which means just about no library would
9209 # ever link correctly. If we're not using GNU ld we use -z text
9210 # though, which does catch some bad symbols but isn't as heavy-handed
9211 # as -z defs.
9212 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
9213 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
9214 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9215 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9216 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
9217 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
9218 _LT_TAGVAR(link_all_deplibs, $1)=yes
9219 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
9220 runpath_var='LD_RUN_PATH'
9221
9222 case $cc_basename in
9223 CC*)
9224 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9225 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9226 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
9227 '"$_LT_TAGVAR(old_archive_cmds, $1)"
9228 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
9229 '"$_LT_TAGVAR(reload_cmds, $1)"
9230 ;;
9231 *)
9232 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9233 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9234 ;;
9235 esac
9236 ;;
9237
9238 tandem*)
9239 case $cc_basename in
9240 NCC*)
9241 # NonStop-UX NCC 3.20
9242 # FIXME: insert proper C++ library support
9243 _LT_TAGVAR(ld_shlibs, $1)=no
9244 ;;
9245 *)
9246 # FIXME: insert proper C++ library support
9247 _LT_TAGVAR(ld_shlibs, $1)=no
9248 ;;
9249 esac
9250 ;;
9251
9252 vxworks*)
9253 # FIXME: insert proper C++ library support
9254 _LT_TAGVAR(ld_shlibs, $1)=no
9255 ;;
9256
9257 *)
9258 # FIXME: insert proper C++ library support
9259 _LT_TAGVAR(ld_shlibs, $1)=no
9260 ;;
9261 esac
9262
9263 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
9264 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
9265
9266 _LT_TAGVAR(GCC, $1)=$GXX
9267 _LT_TAGVAR(LD, $1)=$LD
9268
9269 ## CAVEAT EMPTOR:
9270 ## There is no encapsulation within the following macros, do not change
9271 ## the running order or otherwise move them around unless you know exactly
9272 ## what you are doing...
9273 _LT_SYS_HIDDEN_LIBDEPS($1)
9274 _LT_COMPILER_PIC($1)
9275 _LT_COMPILER_C_O($1)
9276 _LT_COMPILER_FILE_LOCKS($1)
9277 _LT_LINKER_SHLIBS($1)
9278 _LT_SYS_DYNAMIC_LINKER($1)
9279 _LT_LINKER_HARDCODE_LIBPATH($1)
9280
9281 _LT_CONFIG($1)
9282 fi # test -n "$compiler"
9283
9284 CC=$lt_save_CC
9285 CFLAGS=$lt_save_CFLAGS
9286 LDCXX=$LD
9287 LD=$lt_save_LD
9288 GCC=$lt_save_GCC
9289 with_gnu_ld=$lt_save_with_gnu_ld
9290 lt_cv_path_LDCXX=$lt_cv_path_LD
9291 lt_cv_path_LD=$lt_save_path_LD
9292 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
9293 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
9294 fi # test yes != "$_lt_caught_CXX_error"
9295
9296 AC_LANG_POP
9297 ])# _LT_LANG_CXX_CONFIG
9298
9299
9300 # _LT_FUNC_STRIPNAME_CNF
9301 # ----------------------
9302 # func_stripname_cnf prefix suffix name
9303 # strip PREFIX and SUFFIX off of NAME.
9304 # PREFIX and SUFFIX must not contain globbing or regex special
9305 # characters, hashes, percent signs, but SUFFIX may contain a leading
9306 # dot (in which case that matches only a dot).
9307 #
9308 # This function is identical to the (non-XSI) version of func_stripname,
9309 # except this one can be used by m4 code that may be executed by configure,
9310 # rather than the libtool script.
9311 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
9312 AC_REQUIRE([_LT_DECL_SED])
9313 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
9314 func_stripname_cnf ()
9315 {
9316 case @S|@2 in
9317 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
9318 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
9319 esac
9320 } # func_stripname_cnf
9321 ])# _LT_FUNC_STRIPNAME_CNF
9322
9323
9324 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
9325 # ---------------------------------
9326 # Figure out "hidden" library dependencies from verbose
9327 # compiler output when linking a shared library.
9328 # Parse the compiler output and extract the necessary
9329 # objects, libraries and library flags.
9330 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
9331 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
9332 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
9333 # Dependencies to place before and after the object being linked:
9334 _LT_TAGVAR(predep_objects, $1)=
9335 _LT_TAGVAR(postdep_objects, $1)=
9336 _LT_TAGVAR(predeps, $1)=
9337 _LT_TAGVAR(postdeps, $1)=
9338 _LT_TAGVAR(compiler_lib_search_path, $1)=
9339
9340 dnl we can't use the lt_simple_compile_test_code here,
9341 dnl because it contains code intended for an executable,
9342 dnl not a library. It's possible we should let each
9343 dnl tag define a new lt_????_link_test_code variable,
9344 dnl but it's only used here...
9345 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
9346 int a;
9347 void foo (void) { a = 0; }
9348 _LT_EOF
9349 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
9350 class Foo
9351 {
9352 public:
9353 Foo (void) { a = 0; }
9354 private:
9355 int a;
9356 };
9357 _LT_EOF
9358 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
9359 subroutine foo
9360 implicit none
9361 integer*4 a
9362 a=0
9363 return
9364 end
9365 _LT_EOF
9366 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
9367 subroutine foo
9368 implicit none
9369 integer a
9370 a=0
9371 return
9372 end
9373 _LT_EOF
9374 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
9375 public class foo {
9376 private int a;
9377 public void bar (void) {
9378 a = 0;
9379 }
9380 };
9381 _LT_EOF
9382 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
9383 package foo
9384 func foo() {
9385 }
9386 _LT_EOF
9387 ])
9388
9389 _lt_libdeps_save_CFLAGS=$CFLAGS
9390 case "$CC $CFLAGS " in #(
9391 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
9392 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
9393 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
9394 esac
9395
9396 dnl Parse the compiler output and extract the necessary
9397 dnl objects, libraries and library flags.
9398 if AC_TRY_EVAL(ac_compile); then
9399 # Parse the compiler output and extract the necessary
9400 # objects, libraries and library flags.
9401
9402 # Sentinel used to keep track of whether or not we are before
9403 # the conftest object file.
9404 pre_test_object_deps_done=no
9405
9406 for p in `eval "$output_verbose_link_cmd"`; do
9407 case $prev$p in
9408
9409 -L* | -R* | -l*)
9410 # Some compilers place space between "-{L,R}" and the path.
9411 # Remove the space.
9412 if test x-L = "$p" ||
9413 test x-R = "$p"; then
9414 prev=$p
9415 continue
9416 fi
9417
9418 # Expand the sysroot to ease extracting the directories later.
9419 if test -z "$prev"; then
9420 case $p in
9421 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
9422 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
9423 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
9424 esac
9425 fi
9426 case $p in
9427 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
9428 esac
9429 if test no = "$pre_test_object_deps_done"; then
9430 case $prev in
9431 -L | -R)
9432 # Internal compiler library paths should come after those
9433 # provided the user. The postdeps already come after the
9434 # user supplied libs so there is no need to process them.
9435 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
9436 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
9437 else
9438 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
9439 fi
9440 ;;
9441 # The "-l" case would never come before the object being
9442 # linked, so don't bother handling this case.
9443 esac
9444 else
9445 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
9446 _LT_TAGVAR(postdeps, $1)=$prev$p
9447 else
9448 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
9449 fi
9450 fi
9451 prev=
9452 ;;
9453
9454 *.lto.$objext) ;; # Ignore GCC LTO objects
9455 *.$objext)
9456 # This assumes that the test object file only shows up
9457 # once in the compiler output.
9458 if test "$p" = "conftest.$objext"; then
9459 pre_test_object_deps_done=yes
9460 continue
9461 fi
9462
9463 if test no = "$pre_test_object_deps_done"; then
9464 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
9465 _LT_TAGVAR(predep_objects, $1)=$p
9466 else
9467 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
9468 fi
9469 else
9470 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
9471 _LT_TAGVAR(postdep_objects, $1)=$p
9472 else
9473 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
9474 fi
9475 fi
9476 ;;
9477
9478 *) ;; # Ignore the rest.
9479
9480 esac
9481 done
9482
9483 # Clean up.
9484 rm -f a.out a.exe
9485 else
9486 echo "libtool.m4: error: problem compiling $1 test program"
9487 fi
9488
9489 $RM -f confest.$objext
9490 CFLAGS=$_lt_libdeps_save_CFLAGS
9491
9492 # PORTME: override above test on systems where it is broken
9493 m4_if([$1], [CXX],
9494 [case $host_os in
9495 interix[[3-9]]*)
9496 # Interix 3.5 installs completely hosed .la files for C++, so rather than
9497 # hack all around it, let's just trust "g++" to DTRT.
9498 _LT_TAGVAR(predep_objects,$1)=
9499 _LT_TAGVAR(postdep_objects,$1)=
9500 _LT_TAGVAR(postdeps,$1)=
9501 ;;
9502 esac
9503 ])
9504
9505 case " $_LT_TAGVAR(postdeps, $1) " in
9506 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
9507 esac
9508 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
9509 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
9510 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
9511 fi
9512 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
9513 [The directories searched by this compiler when creating a shared library])
9514 _LT_TAGDECL([], [predep_objects], [1],
9515 [Dependencies to place before and after the objects being linked to
9516 create a shared library])
9517 _LT_TAGDECL([], [postdep_objects], [1])
9518 _LT_TAGDECL([], [predeps], [1])
9519 _LT_TAGDECL([], [postdeps], [1])
9520 _LT_TAGDECL([], [compiler_lib_search_path], [1],
9521 [The library search path used internally by the compiler when linking
9522 a shared library])
9523 ])# _LT_SYS_HIDDEN_LIBDEPS
9524
9525
9526 # _LT_LANG_F77_CONFIG([TAG])
9527 # --------------------------
9528 # Ensure that the configuration variables for a Fortran 77 compiler are
9529 # suitably defined. These variables are subsequently used by _LT_CONFIG
9530 # to write the compiler configuration to 'libtool'.
9531 m4_defun([_LT_LANG_F77_CONFIG],
9532 [AC_LANG_PUSH(Fortran 77)
9533 if test -z "$F77" || test no = "$F77"; then
9534 _lt_disable_F77=yes
9535 fi
9536
9537 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9538 _LT_TAGVAR(allow_undefined_flag, $1)=
9539 _LT_TAGVAR(always_export_symbols, $1)=no
9540 _LT_TAGVAR(archive_expsym_cmds, $1)=
9541 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
9542 _LT_TAGVAR(hardcode_direct, $1)=no
9543 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
9544 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
9545 _LT_TAGVAR(hardcode_libdir_separator, $1)=
9546 _LT_TAGVAR(hardcode_minus_L, $1)=no
9547 _LT_TAGVAR(hardcode_automatic, $1)=no
9548 _LT_TAGVAR(inherit_rpath, $1)=no
9549 _LT_TAGVAR(module_cmds, $1)=
9550 _LT_TAGVAR(module_expsym_cmds, $1)=
9551 _LT_TAGVAR(link_all_deplibs, $1)=unknown
9552 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9553 _LT_TAGVAR(reload_flag, $1)=$reload_flag
9554 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
9555 _LT_TAGVAR(no_undefined_flag, $1)=
9556 _LT_TAGVAR(whole_archive_flag_spec, $1)=
9557 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
9558
9559 # Source file extension for f77 test sources.
9560 ac_ext=f
9561
9562 # Object file extension for compiled f77 test sources.
9563 objext=o
9564 _LT_TAGVAR(objext, $1)=$objext
9565
9566 # No sense in running all these tests if we already determined that
9567 # the F77 compiler isn't working. Some variables (like enable_shared)
9568 # are currently assumed to apply to all compilers on this platform,
9569 # and will be corrupted by setting them based on a non-working compiler.
9570 if test yes != "$_lt_disable_F77"; then
9571 # Code to be used in simple compile tests
9572 lt_simple_compile_test_code="\
9573 subroutine t
9574 return
9575 end
9576 "
9577
9578 # Code to be used in simple link tests
9579 lt_simple_link_test_code="\
9580 program t
9581 end
9582 "
9583
9584 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9585 _LT_TAG_COMPILER
9586
9587 # save warnings/boilerplate of simple test code
9588 _LT_COMPILER_BOILERPLATE
9589 _LT_LINKER_BOILERPLATE
9590
9591 # Allow CC to be a program name with arguments.
9592 lt_save_CC=$CC
9593 lt_save_GCC=$GCC
9594 lt_save_CFLAGS=$CFLAGS
9595 CC=${F77-"f77"}
9596 CFLAGS=$FFLAGS
9597 compiler=$CC
9598 _LT_TAGVAR(compiler, $1)=$CC
9599 _LT_CC_BASENAME([$compiler])
9600 GCC=$G77
9601 if test -n "$compiler"; then
9602 AC_MSG_CHECKING([if libtool supports shared libraries])
9603 AC_MSG_RESULT([$can_build_shared])
9604
9605 AC_MSG_CHECKING([whether to build shared libraries])
9606 test no = "$can_build_shared" && enable_shared=no
9607
9608 # On AIX, shared libraries and static libraries use the same namespace, and
9609 # are all built from PIC.
9610 case $host_os in
9611 aix3*)
9612 test yes = "$enable_shared" && enable_static=no
9613 if test -n "$RANLIB"; then
9614 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9615 postinstall_cmds='$RANLIB $lib'
9616 fi
9617 ;;
9618 aix[[4-9]]*)
9619 if test ia64 != "$host_cpu"; then
9620 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
9621 yes,aix,yes) ;; # shared object as lib.so file only
9622 yes,svr4,*) ;; # shared object as lib.so archive member only
9623 yes,*) enable_static=no ;; # shared object in lib.a archive as well
9624 esac
9625 fi
9626 ;;
9627 esac
9628 AC_MSG_RESULT([$enable_shared])
9629
9630 AC_MSG_CHECKING([whether to build static libraries])
9631 # Make sure either enable_shared or enable_static is yes.
9632 test yes = "$enable_shared" || enable_static=yes
9633 AC_MSG_RESULT([$enable_static])
9634
9635 _LT_TAGVAR(GCC, $1)=$G77
9636 _LT_TAGVAR(LD, $1)=$LD
9637
9638 ## CAVEAT EMPTOR:
9639 ## There is no encapsulation within the following macros, do not change
9640 ## the running order or otherwise move them around unless you know exactly
9641 ## what you are doing...
9642 _LT_COMPILER_PIC($1)
9643 _LT_COMPILER_C_O($1)
9644 _LT_COMPILER_FILE_LOCKS($1)
9645 _LT_LINKER_SHLIBS($1)
9646 _LT_SYS_DYNAMIC_LINKER($1)
9647 _LT_LINKER_HARDCODE_LIBPATH($1)
9648
9649 _LT_CONFIG($1)
9650 fi # test -n "$compiler"
9651
9652 GCC=$lt_save_GCC
9653 CC=$lt_save_CC
9654 CFLAGS=$lt_save_CFLAGS
9655 fi # test yes != "$_lt_disable_F77"
9656
9657 AC_LANG_POP
9658 ])# _LT_LANG_F77_CONFIG
9659
9660
9661 # _LT_LANG_FC_CONFIG([TAG])
9662 # -------------------------
9663 # Ensure that the configuration variables for a Fortran compiler are
9664 # suitably defined. These variables are subsequently used by _LT_CONFIG
9665 # to write the compiler configuration to 'libtool'.
9666 m4_defun([_LT_LANG_FC_CONFIG],
9667 [AC_LANG_PUSH(Fortran)
9668
9669 if test -z "$FC" || test no = "$FC"; then
9670 _lt_disable_FC=yes
9671 fi
9672
9673 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9674 _LT_TAGVAR(allow_undefined_flag, $1)=
9675 _LT_TAGVAR(always_export_symbols, $1)=no
9676 _LT_TAGVAR(archive_expsym_cmds, $1)=
9677 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
9678 _LT_TAGVAR(hardcode_direct, $1)=no
9679 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
9680 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
9681 _LT_TAGVAR(hardcode_libdir_separator, $1)=
9682 _LT_TAGVAR(hardcode_minus_L, $1)=no
9683 _LT_TAGVAR(hardcode_automatic, $1)=no
9684 _LT_TAGVAR(inherit_rpath, $1)=no
9685 _LT_TAGVAR(module_cmds, $1)=
9686 _LT_TAGVAR(module_expsym_cmds, $1)=
9687 _LT_TAGVAR(link_all_deplibs, $1)=unknown
9688 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9689 _LT_TAGVAR(reload_flag, $1)=$reload_flag
9690 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
9691 _LT_TAGVAR(no_undefined_flag, $1)=
9692 _LT_TAGVAR(whole_archive_flag_spec, $1)=
9693 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
9694
9695 # Source file extension for fc test sources.
9696 ac_ext=${ac_fc_srcext-f}
9697
9698 # Object file extension for compiled fc test sources.
9699 objext=o
9700 _LT_TAGVAR(objext, $1)=$objext
9701
9702 # No sense in running all these tests if we already determined that
9703 # the FC compiler isn't working. Some variables (like enable_shared)
9704 # are currently assumed to apply to all compilers on this platform,
9705 # and will be corrupted by setting them based on a non-working compiler.
9706 if test yes != "$_lt_disable_FC"; then
9707 # Code to be used in simple compile tests
9708 lt_simple_compile_test_code="\
9709 subroutine t
9710 return
9711 end
9712 "
9713
9714 # Code to be used in simple link tests
9715 lt_simple_link_test_code="\
9716 program t
9717 end
9718 "
9719
9720 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9721 _LT_TAG_COMPILER
9722
9723 # save warnings/boilerplate of simple test code
9724 _LT_COMPILER_BOILERPLATE
9725 _LT_LINKER_BOILERPLATE
9726
9727 # Allow CC to be a program name with arguments.
9728 lt_save_CC=$CC
9729 lt_save_GCC=$GCC
9730 lt_save_CFLAGS=$CFLAGS
9731 CC=${FC-"f95"}
9732 CFLAGS=$FCFLAGS
9733 compiler=$CC
9734 GCC=$ac_cv_fc_compiler_gnu
9735
9736 _LT_TAGVAR(compiler, $1)=$CC
9737 _LT_CC_BASENAME([$compiler])
9738
9739 if test -n "$compiler"; then
9740 AC_MSG_CHECKING([if libtool supports shared libraries])
9741 AC_MSG_RESULT([$can_build_shared])
9742
9743 AC_MSG_CHECKING([whether to build shared libraries])
9744 test no = "$can_build_shared" && enable_shared=no
9745
9746 # On AIX, shared libraries and static libraries use the same namespace, and
9747 # are all built from PIC.
9748 case $host_os in
9749 aix3*)
9750 test yes = "$enable_shared" && enable_static=no
9751 if test -n "$RANLIB"; then
9752 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9753 postinstall_cmds='$RANLIB $lib'
9754 fi
9755 ;;
9756 aix[[4-9]]*)
9757 if test ia64 != "$host_cpu"; then
9758 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
9759 yes,aix,yes) ;; # shared object as lib.so file only
9760 yes,svr4,*) ;; # shared object as lib.so archive member only
9761 yes,*) enable_static=no ;; # shared object in lib.a archive as well
9762 esac
9763 fi
9764 ;;
9765 esac
9766 AC_MSG_RESULT([$enable_shared])
9767
9768 AC_MSG_CHECKING([whether to build static libraries])
9769 # Make sure either enable_shared or enable_static is yes.
9770 test yes = "$enable_shared" || enable_static=yes
9771 AC_MSG_RESULT([$enable_static])
9772
9773 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
9774 _LT_TAGVAR(LD, $1)=$LD
9775
9776 ## CAVEAT EMPTOR:
9777 ## There is no encapsulation within the following macros, do not change
9778 ## the running order or otherwise move them around unless you know exactly
9779 ## what you are doing...
9780 _LT_SYS_HIDDEN_LIBDEPS($1)
9781 _LT_COMPILER_PIC($1)
9782 _LT_COMPILER_C_O($1)
9783 _LT_COMPILER_FILE_LOCKS($1)
9784 _LT_LINKER_SHLIBS($1)
9785 _LT_SYS_DYNAMIC_LINKER($1)
9786 _LT_LINKER_HARDCODE_LIBPATH($1)
9787
9788 _LT_CONFIG($1)
9789 fi # test -n "$compiler"
9790
9791 GCC=$lt_save_GCC
9792 CC=$lt_save_CC
9793 CFLAGS=$lt_save_CFLAGS
9794 fi # test yes != "$_lt_disable_FC"
9795
9796 AC_LANG_POP
9797 ])# _LT_LANG_FC_CONFIG
9798
9799
9800 # _LT_LANG_GCJ_CONFIG([TAG])
9801 # --------------------------
9802 # Ensure that the configuration variables for the GNU Java Compiler compiler
9803 # are suitably defined. These variables are subsequently used by _LT_CONFIG
9804 # to write the compiler configuration to 'libtool'.
9805 m4_defun([_LT_LANG_GCJ_CONFIG],
9806 [AC_REQUIRE([LT_PROG_GCJ])dnl
9807 AC_LANG_SAVE
9808
9809 # Source file extension for Java test sources.
9810 ac_ext=java
9811
9812 # Object file extension for compiled Java test sources.
9813 objext=o
9814 _LT_TAGVAR(objext, $1)=$objext
9815
9816 # Code to be used in simple compile tests
9817 lt_simple_compile_test_code="class foo {}"
9818
9819 # Code to be used in simple link tests
9820 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
9821
9822 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9823 _LT_TAG_COMPILER
9824
9825 # save warnings/boilerplate of simple test code
9826 _LT_COMPILER_BOILERPLATE
9827 _LT_LINKER_BOILERPLATE
9828
9829 # Allow CC to be a program name with arguments.
9830 lt_save_CC=$CC
9831 lt_save_CFLAGS=$CFLAGS
9832 lt_save_GCC=$GCC
9833 GCC=yes
9834 CC=${GCJ-"gcj"}
9835 CFLAGS=$GCJFLAGS
9836 compiler=$CC
9837 _LT_TAGVAR(compiler, $1)=$CC
9838 _LT_TAGVAR(LD, $1)=$LD
9839 _LT_CC_BASENAME([$compiler])
9840
9841 # GCJ did not exist at the time GCC didn't implicitly link libc in.
9842 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9843
9844 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9845 _LT_TAGVAR(reload_flag, $1)=$reload_flag
9846 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
9847
9848 if test -n "$compiler"; then
9849 _LT_COMPILER_NO_RTTI($1)
9850 _LT_COMPILER_PIC($1)
9851 _LT_COMPILER_C_O($1)
9852 _LT_COMPILER_FILE_LOCKS($1)
9853 _LT_LINKER_SHLIBS($1)
9854 _LT_LINKER_HARDCODE_LIBPATH($1)
9855
9856 _LT_CONFIG($1)
9857 fi
9858
9859 AC_LANG_RESTORE
9860
9861 GCC=$lt_save_GCC
9862 CC=$lt_save_CC
9863 CFLAGS=$lt_save_CFLAGS
9864 ])# _LT_LANG_GCJ_CONFIG
9865
9866
9867 # _LT_LANG_GO_CONFIG([TAG])
9868 # --------------------------
9869 # Ensure that the configuration variables for the GNU Go compiler
9870 # are suitably defined. These variables are subsequently used by _LT_CONFIG
9871 # to write the compiler configuration to 'libtool'.
9872 m4_defun([_LT_LANG_GO_CONFIG],
9873 [AC_REQUIRE([LT_PROG_GO])dnl
9874 AC_LANG_SAVE
9875
9876 # Source file extension for Go test sources.
9877 ac_ext=go
9878
9879 # Object file extension for compiled Go test sources.
9880 objext=o
9881 _LT_TAGVAR(objext, $1)=$objext
9882
9883 # Code to be used in simple compile tests
9884 lt_simple_compile_test_code="package main; func main() { }"
9885
9886 # Code to be used in simple link tests
9887 lt_simple_link_test_code='package main; func main() { }'
9888
9889 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9890 _LT_TAG_COMPILER
9891
9892 # save warnings/boilerplate of simple test code
9893 _LT_COMPILER_BOILERPLATE
9894 _LT_LINKER_BOILERPLATE
9895
9896 # Allow CC to be a program name with arguments.
9897 lt_save_CC=$CC
9898 lt_save_CFLAGS=$CFLAGS
9899 lt_save_GCC=$GCC
9900 GCC=yes
9901 CC=${GOC-"gccgo"}
9902 CFLAGS=$GOFLAGS
9903 compiler=$CC
9904 _LT_TAGVAR(compiler, $1)=$CC
9905 _LT_TAGVAR(LD, $1)=$LD
9906 _LT_CC_BASENAME([$compiler])
9907
9908 # Go did not exist at the time GCC didn't implicitly link libc in.
9909 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9910
9911 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9912 _LT_TAGVAR(reload_flag, $1)=$reload_flag
9913 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
9914
9915 if test -n "$compiler"; then
9916 _LT_COMPILER_NO_RTTI($1)
9917 _LT_COMPILER_PIC($1)
9918 _LT_COMPILER_C_O($1)
9919 _LT_COMPILER_FILE_LOCKS($1)
9920 _LT_LINKER_SHLIBS($1)
9921 _LT_LINKER_HARDCODE_LIBPATH($1)
9922
9923 _LT_CONFIG($1)
9924 fi
9925
9926 AC_LANG_RESTORE
9927
9928 GCC=$lt_save_GCC
9929 CC=$lt_save_CC
9930 CFLAGS=$lt_save_CFLAGS
9931 ])# _LT_LANG_GO_CONFIG
9932
9933
9934 # _LT_LANG_RC_CONFIG([TAG])
9935 # -------------------------
9936 # Ensure that the configuration variables for the Windows resource compiler
9937 # are suitably defined. These variables are subsequently used by _LT_CONFIG
9938 # to write the compiler configuration to 'libtool'.
9939 m4_defun([_LT_LANG_RC_CONFIG],
9940 [AC_REQUIRE([LT_PROG_RC])dnl
9941 AC_LANG_SAVE
9942
9943 # Source file extension for RC test sources.
9944 ac_ext=rc
9945
9946 # Object file extension for compiled RC test sources.
9947 objext=o
9948 _LT_TAGVAR(objext, $1)=$objext
9949
9950 # Code to be used in simple compile tests
9951 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
9952
9953 # Code to be used in simple link tests
9954 lt_simple_link_test_code=$lt_simple_compile_test_code
9955
9956 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9957 _LT_TAG_COMPILER
9958
9959 # save warnings/boilerplate of simple test code
9960 _LT_COMPILER_BOILERPLATE
9961 _LT_LINKER_BOILERPLATE
9962
9963 # Allow CC to be a program name with arguments.
9964 lt_save_CC=$CC
9965 lt_save_CFLAGS=$CFLAGS
9966 lt_save_GCC=$GCC
9967 GCC=
9968 CC=${RC-"windres"}
9969 CFLAGS=
9970 compiler=$CC
9971 _LT_TAGVAR(compiler, $1)=$CC
9972 _LT_CC_BASENAME([$compiler])
9973 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
9974
9975 if test -n "$compiler"; then
9976 :
9977 _LT_CONFIG($1)
9978 fi
9979
9980 GCC=$lt_save_GCC
9981 AC_LANG_RESTORE
9982 CC=$lt_save_CC
9983 CFLAGS=$lt_save_CFLAGS
9984 ])# _LT_LANG_RC_CONFIG
9985
9986
9987 # LT_PROG_GCJ
9988 # -----------
9989 AC_DEFUN([LT_PROG_GCJ],
9990 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
9991 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
9992 [AC_CHECK_TOOL(GCJ, gcj,)
9993 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
9994 AC_SUBST(GCJFLAGS)])])[]dnl
9995 ])
9996
9997 # Old name:
9998 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
9999 dnl aclocal-1.4 backwards compatibility:
10000 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
10001
10002
10003 # LT_PROG_GO
10004 # ----------
10005 AC_DEFUN([LT_PROG_GO],
10006 [AC_CHECK_TOOL(GOC, gccgo,)
10007 ])
10008
10009
10010 # LT_PROG_RC
10011 # ----------
10012 AC_DEFUN([LT_PROG_RC],
10013 [AC_CHECK_TOOL(RC, windres,)
10014 ])
10015
10016 # Old name:
10017 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
10018 dnl aclocal-1.4 backwards compatibility:
10019 dnl AC_DEFUN([LT_AC_PROG_RC], [])
10020
10021
10022 # _LT_DECL_EGREP
10023 # --------------
10024 # If we don't have a new enough Autoconf to choose the best grep
10025 # available, choose the one first in the user's PATH.
10026 m4_defun([_LT_DECL_EGREP],
10027 [AC_REQUIRE([AC_PROG_EGREP])dnl
10028 AC_REQUIRE([AC_PROG_FGREP])dnl
10029 test -z "$GREP" && GREP=grep
10030 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
10031 _LT_DECL([], [EGREP], [1], [An ERE matcher])
10032 _LT_DECL([], [FGREP], [1], [A literal string matcher])
10033 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
10034 AC_SUBST([GREP])
10035 ])
10036
10037
10038 # _LT_DECL_OBJDUMP
10039 # --------------
10040 # If we don't have a new enough Autoconf to choose the best objdump
10041 # available, choose the one first in the user's PATH.
10042 m4_defun([_LT_DECL_OBJDUMP],
10043 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
10044 test -z "$OBJDUMP" && OBJDUMP=objdump
10045 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
10046 AC_SUBST([OBJDUMP])
10047 ])
10048
10049 # _LT_DECL_DLLTOOL
10050 # ----------------
10051 # Ensure DLLTOOL variable is set.
10052 m4_defun([_LT_DECL_DLLTOOL],
10053 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
10054 test -z "$DLLTOOL" && DLLTOOL=dlltool
10055 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
10056 AC_SUBST([DLLTOOL])
10057 ])
10058
10059 # _LT_DECL_SED
10060 # ------------
10061 # Check for a fully-functional sed program, that truncates
10062 # as few characters as possible. Prefer GNU sed if found.
10063 m4_defun([_LT_DECL_SED],
10064 [AC_PROG_SED
10065 test -z "$SED" && SED=sed
10066 Xsed="$SED -e 1s/^X//"
10067 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
10068 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
10069 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
10070 ])# _LT_DECL_SED
10071
10072 m4_ifndef([AC_PROG_SED], [
10073 # NOTE: This macro has been submitted for inclusion into #
10074 # GNU Autoconf as AC_PROG_SED. When it is available in #
10075 # a released version of Autoconf we should remove this #
10076 # macro and use it instead. #
10077
10078 m4_defun([AC_PROG_SED],
10079 [AC_MSG_CHECKING([for a sed that does not truncate output])
10080 AC_CACHE_VAL(lt_cv_path_SED,
10081 [# Loop through the user's path and test for sed and gsed.
10082 # Then use that list of sed's as ones to test for truncation.
10083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084 for as_dir in $PATH
10085 do
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
10088 for lt_ac_prog in sed gsed; do
10089 for ac_exec_ext in '' $ac_executable_extensions; do
10090 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10091 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10092 fi
10093 done
10094 done
10095 done
10096 IFS=$as_save_IFS
10097 lt_ac_max=0
10098 lt_ac_count=0
10099 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10100 # along with /bin/sed that truncates output.
10101 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10102 test ! -f "$lt_ac_sed" && continue
10103 cat /dev/null > conftest.in
10104 lt_ac_count=0
10105 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10106 # Check for GNU sed and select it if it is found.
10107 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10108 lt_cv_path_SED=$lt_ac_sed
10109 break
10110 fi
10111 while true; do
10112 cat conftest.in conftest.in >conftest.tmp
10113 mv conftest.tmp conftest.in
10114 cp conftest.in conftest.nl
10115 echo >>conftest.nl
10116 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10117 cmp -s conftest.out conftest.nl || break
10118 # 10000 chars as input seems more than enough
10119 test 10 -lt "$lt_ac_count" && break
10120 lt_ac_count=`expr $lt_ac_count + 1`
10121 if test "$lt_ac_count" -gt "$lt_ac_max"; then
10122 lt_ac_max=$lt_ac_count
10123 lt_cv_path_SED=$lt_ac_sed
10124 fi
10125 done
10126 done
10127 ])
10128 SED=$lt_cv_path_SED
10129 AC_SUBST([SED])
10130 AC_MSG_RESULT([$SED])
10131 ])#AC_PROG_SED
10132 ])#m4_ifndef
10133
10134 # Old name:
10135 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
10136 dnl aclocal-1.4 backwards compatibility:
10137 dnl AC_DEFUN([LT_AC_PROG_SED], [])
10138
10139
10140 # _LT_CHECK_SHELL_FEATURES
10141 # ------------------------
10142 # Find out whether the shell is Bourne or XSI compatible,
10143 # or has some other useful features.
10144 m4_defun([_LT_CHECK_SHELL_FEATURES],
10145 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10146 lt_unset=unset
10147 else
10148 lt_unset=false
10149 fi
10150 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
10151
10152 # test EBCDIC or ASCII
10153 case `echo X|tr X '\101'` in
10154 A) # ASCII based system
10155 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10156 lt_SP2NL='tr \040 \012'
10157 lt_NL2SP='tr \015\012 \040\040'
10158 ;;
10159 *) # EBCDIC based system
10160 lt_SP2NL='tr \100 \n'
10161 lt_NL2SP='tr \r\n \100\100'
10162 ;;
10163 esac
10164 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
10165 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
10166 ])# _LT_CHECK_SHELL_FEATURES
10167
10168
10169 # _LT_PATH_CONVERSION_FUNCTIONS
10170 # -----------------------------
10171 # Determine what file name conversion functions should be used by
10172 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
10173 # for certain cross-compile configurations and native mingw.
10174 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
10175 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
10176 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
10177 AC_MSG_CHECKING([how to convert $build file names to $host format])
10178 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
10179 [case $host in
10180 *-*-mingw* )
10181 case $build in
10182 *-*-mingw* ) # actually msys
10183 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10184 ;;
10185 *-*-cygwin* )
10186 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10187 ;;
10188 * ) # otherwise, assume *nix
10189 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10190 ;;
10191 esac
10192 ;;
10193 *-*-cygwin* )
10194 case $build in
10195 *-*-mingw* ) # actually msys
10196 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10197 ;;
10198 *-*-cygwin* )
10199 lt_cv_to_host_file_cmd=func_convert_file_noop
10200 ;;
10201 * ) # otherwise, assume *nix
10202 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10203 ;;
10204 esac
10205 ;;
10206 * ) # unhandled hosts (and "normal" native builds)
10207 lt_cv_to_host_file_cmd=func_convert_file_noop
10208 ;;
10209 esac
10210 ])
10211 to_host_file_cmd=$lt_cv_to_host_file_cmd
10212 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
10213 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
10214 [0], [convert $build file names to $host format])dnl
10215
10216 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
10217 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
10218 [#assume ordinary cross tools, or native build.
10219 lt_cv_to_tool_file_cmd=func_convert_file_noop
10220 case $host in
10221 *-*-mingw* )
10222 case $build in
10223 *-*-mingw* ) # actually msys
10224 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10225 ;;
10226 esac
10227 ;;
10228 esac
10229 ])
10230 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10231 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
10232 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
10233 [0], [convert $build files to toolchain format])dnl
10234 ])# _LT_PATH_CONVERSION_FUNCTIONS
10235
10236 # Helper functions for option handling. -*- Autoconf -*-
10237 #
10238 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
10239 # Foundation, Inc.
10240 # Written by Gary V. Vaughan, 2004
10241 #
10242 # This file is free software; the Free Software Foundation gives
10243 # unlimited permission to copy and/or distribute it, with or without
10244 # modifications, as long as this notice is preserved.
10245
10246 # serial 8 ltoptions.m4
10247
10248 # This is to help aclocal find these macros, as it can't see m4_define.
10249 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
10250
10251
10252 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
10253 # ------------------------------------------
10254 m4_define([_LT_MANGLE_OPTION],
10255 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
10256
10257
10258 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
10259 # ---------------------------------------
10260 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
10261 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
10262 # saved as a flag.
10263 m4_define([_LT_SET_OPTION],
10264 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
10265 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
10266 _LT_MANGLE_DEFUN([$1], [$2]),
10267 [m4_warning([Unknown $1 option '$2'])])[]dnl
10268 ])
10269
10270
10271 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
10272 # ------------------------------------------------------------
10273 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
10274 m4_define([_LT_IF_OPTION],
10275 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
10276
10277
10278 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
10279 # -------------------------------------------------------
10280 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
10281 # are set.
10282 m4_define([_LT_UNLESS_OPTIONS],
10283 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
10284 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
10285 [m4_define([$0_found])])])[]dnl
10286 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
10287 ])[]dnl
10288 ])
10289
10290
10291 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
10292 # ----------------------------------------
10293 # OPTION-LIST is a space-separated list of Libtool options associated
10294 # with MACRO-NAME. If any OPTION has a matching handler declared with
10295 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
10296 # the unknown option and exit.
10297 m4_defun([_LT_SET_OPTIONS],
10298 [# Set options
10299 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
10300 [_LT_SET_OPTION([$1], _LT_Option)])
10301
10302 m4_if([$1],[LT_INIT],[
10303 dnl
10304 dnl Simply set some default values (i.e off) if boolean options were not
10305 dnl specified:
10306 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
10307 ])
10308 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
10309 ])
10310 dnl
10311 dnl If no reference was made to various pairs of opposing options, then
10312 dnl we run the default mode handler for the pair. For example, if neither
10313 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
10314 dnl archives by default:
10315 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
10316 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
10317 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
10318 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
10319 [_LT_ENABLE_FAST_INSTALL])
10320 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
10321 [_LT_WITH_AIX_SONAME([aix])])
10322 ])
10323 ])# _LT_SET_OPTIONS
10324
10325
10326
10327 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
10328 # -----------------------------------------
10329 m4_define([_LT_MANGLE_DEFUN],
10330 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
10331
10332
10333 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
10334 # -----------------------------------------------
10335 m4_define([LT_OPTION_DEFINE],
10336 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
10337 ])# LT_OPTION_DEFINE
10338
10339
10340 # dlopen
10341 # ------
10342 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
10343 ])
10344
10345 AU_DEFUN([AC_LIBTOOL_DLOPEN],
10346 [_LT_SET_OPTION([LT_INIT], [dlopen])
10347 AC_DIAGNOSE([obsolete],
10348 [$0: Remove this warning and the call to _LT_SET_OPTION when you
10349 put the 'dlopen' option into LT_INIT's first parameter.])
10350 ])
10351
10352 dnl aclocal-1.4 backwards compatibility:
10353 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
10354
10355
10356 # win32-dll
10357 # ---------
10358 # Declare package support for building win32 dll's.
10359 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
10360 [enable_win32_dll=yes
10361
10362 case $host in
10363 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10364 AC_CHECK_TOOL(AS, as, false)
10365 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
10366 AC_CHECK_TOOL(OBJDUMP, objdump, false)
10367 ;;
10368 esac
10369
10370 test -z "$AS" && AS=as
10371 _LT_DECL([], [AS], [1], [Assembler program])dnl
10372
10373 test -z "$DLLTOOL" && DLLTOOL=dlltool
10374 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
10375
10376 test -z "$OBJDUMP" && OBJDUMP=objdump
10377 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
10378 ])# win32-dll
10379
10380 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
10381 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
10382 _LT_SET_OPTION([LT_INIT], [win32-dll])
10383 AC_DIAGNOSE([obsolete],
10384 [$0: Remove this warning and the call to _LT_SET_OPTION when you
10385 put the 'win32-dll' option into LT_INIT's first parameter.])
10386 ])
10387
10388 dnl aclocal-1.4 backwards compatibility:
10389 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
10390
10391
10392 # _LT_ENABLE_SHARED([DEFAULT])
10393 # ----------------------------
10394 # implement the --enable-shared flag, and supports the 'shared' and
10395 # 'disable-shared' LT_INIT options.
10396 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
10397 m4_define([_LT_ENABLE_SHARED],
10398 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
10399 AC_ARG_ENABLE([shared],
10400 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
10401 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
10402 [p=${PACKAGE-default}
10403 case $enableval in
10404 yes) enable_shared=yes ;;
10405 no) enable_shared=no ;;
10406 *)
10407 enable_shared=no
10408 # Look at the argument we got. We use all the common list separators.
10409 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10410 for pkg in $enableval; do
10411 IFS=$lt_save_ifs
10412 if test "X$pkg" = "X$p"; then
10413 enable_shared=yes
10414 fi
10415 done
10416 IFS=$lt_save_ifs
10417 ;;
10418 esac],
10419 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
10420
10421 _LT_DECL([build_libtool_libs], [enable_shared], [0],
10422 [Whether or not to build shared libraries])
10423 ])# _LT_ENABLE_SHARED
10424
10425 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
10426 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
10427
10428 # Old names:
10429 AC_DEFUN([AC_ENABLE_SHARED],
10430 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
10431 ])
10432
10433 AC_DEFUN([AC_DISABLE_SHARED],
10434 [_LT_SET_OPTION([LT_INIT], [disable-shared])
10435 ])
10436
10437 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
10438 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
10439
10440 dnl aclocal-1.4 backwards compatibility:
10441 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
10442 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
10443
10444
10445
10446 # _LT_ENABLE_STATIC([DEFAULT])
10447 # ----------------------------
10448 # implement the --enable-static flag, and support the 'static' and
10449 # 'disable-static' LT_INIT options.
10450 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
10451 m4_define([_LT_ENABLE_STATIC],
10452 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
10453 AC_ARG_ENABLE([static],
10454 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
10455 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
10456 [p=${PACKAGE-default}
10457 case $enableval in
10458 yes) enable_static=yes ;;
10459 no) enable_static=no ;;
10460 *)
10461 enable_static=no
10462 # Look at the argument we got. We use all the common list separators.
10463 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10464 for pkg in $enableval; do
10465 IFS=$lt_save_ifs
10466 if test "X$pkg" = "X$p"; then
10467 enable_static=yes
10468 fi
10469 done
10470 IFS=$lt_save_ifs
10471 ;;
10472 esac],
10473 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
10474
10475 _LT_DECL([build_old_libs], [enable_static], [0],
10476 [Whether or not to build static libraries])
10477 ])# _LT_ENABLE_STATIC
10478
10479 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
10480 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
10481
10482 # Old names:
10483 AC_DEFUN([AC_ENABLE_STATIC],
10484 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
10485 ])
10486
10487 AC_DEFUN([AC_DISABLE_STATIC],
10488 [_LT_SET_OPTION([LT_INIT], [disable-static])
10489 ])
10490
10491 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
10492 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
10493
10494 dnl aclocal-1.4 backwards compatibility:
10495 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
10496 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
10497
10498
10499
10500 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
10501 # ----------------------------------
10502 # implement the --enable-fast-install flag, and support the 'fast-install'
10503 # and 'disable-fast-install' LT_INIT options.
10504 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
10505 m4_define([_LT_ENABLE_FAST_INSTALL],
10506 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
10507 AC_ARG_ENABLE([fast-install],
10508 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
10509 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
10510 [p=${PACKAGE-default}
10511 case $enableval in
10512 yes) enable_fast_install=yes ;;
10513 no) enable_fast_install=no ;;
10514 *)
10515 enable_fast_install=no
10516 # Look at the argument we got. We use all the common list separators.
10517 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10518 for pkg in $enableval; do
10519 IFS=$lt_save_ifs
10520 if test "X$pkg" = "X$p"; then
10521 enable_fast_install=yes
10522 fi
10523 done
10524 IFS=$lt_save_ifs
10525 ;;
10526 esac],
10527 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
10528
10529 _LT_DECL([fast_install], [enable_fast_install], [0],
10530 [Whether or not to optimize for fast installation])dnl
10531 ])# _LT_ENABLE_FAST_INSTALL
10532
10533 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
10534 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
10535
10536 # Old names:
10537 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
10538 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
10539 AC_DIAGNOSE([obsolete],
10540 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
10541 the 'fast-install' option into LT_INIT's first parameter.])
10542 ])
10543
10544 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
10545 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
10546 AC_DIAGNOSE([obsolete],
10547 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
10548 the 'disable-fast-install' option into LT_INIT's first parameter.])
10549 ])
10550
10551 dnl aclocal-1.4 backwards compatibility:
10552 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
10553 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
10554
10555
10556 # _LT_WITH_AIX_SONAME([DEFAULT])
10557 # ----------------------------------
10558 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
10559 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
10560 # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
10561 m4_define([_LT_WITH_AIX_SONAME],
10562 [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
10563 shared_archive_member_spec=
10564 case $host,$enable_shared in
10565 power*-*-aix[[5-9]]*,yes)
10566 AC_MSG_CHECKING([which variant of shared library versioning to provide])
10567 AC_ARG_WITH([aix-soname],
10568 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
10569 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
10570 [case $withval in
10571 aix|svr4|both)
10572 ;;
10573 *)
10574 AC_MSG_ERROR([Unknown argument to --with-aix-soname])
10575 ;;
10576 esac
10577 lt_cv_with_aix_soname=$with_aix_soname],
10578 [AC_CACHE_VAL([lt_cv_with_aix_soname],
10579 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
10580 with_aix_soname=$lt_cv_with_aix_soname])
10581 AC_MSG_RESULT([$with_aix_soname])
10582 if test aix != "$with_aix_soname"; then
10583 # For the AIX way of multilib, we name the shared archive member
10584 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10585 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10586 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10587 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10588 if test 64 = "${OBJECT_MODE-32}"; then
10589 shared_archive_member_spec=shr_64
10590 else
10591 shared_archive_member_spec=shr
10592 fi
10593 fi
10594 ;;
10595 *)
10596 with_aix_soname=aix
10597 ;;
10598 esac
10599
10600 _LT_DECL([], [shared_archive_member_spec], [0],
10601 [Shared archive member basename, for filename based shared library versioning on AIX])dnl
10602 ])# _LT_WITH_AIX_SONAME
10603
10604 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
10605 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
10606 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
10607
10608
10609 # _LT_WITH_PIC([MODE])
10610 # --------------------
10611 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
10612 # LT_INIT options.
10613 # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
10614 m4_define([_LT_WITH_PIC],
10615 [AC_ARG_WITH([pic],
10616 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
10617 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
10618 [lt_p=${PACKAGE-default}
10619 case $withval in
10620 yes|no) pic_mode=$withval ;;
10621 *)
10622 pic_mode=default
10623 # Look at the argument we got. We use all the common list separators.
10624 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10625 for lt_pkg in $withval; do
10626 IFS=$lt_save_ifs
10627 if test "X$lt_pkg" = "X$lt_p"; then
10628 pic_mode=yes
10629 fi
10630 done
10631 IFS=$lt_save_ifs
10632 ;;
10633 esac],
10634 [pic_mode=m4_default([$1], [default])])
10635
10636 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
10637 ])# _LT_WITH_PIC
10638
10639 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
10640 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
10641
10642 # Old name:
10643 AU_DEFUN([AC_LIBTOOL_PICMODE],
10644 [_LT_SET_OPTION([LT_INIT], [pic-only])
10645 AC_DIAGNOSE([obsolete],
10646 [$0: Remove this warning and the call to _LT_SET_OPTION when you
10647 put the 'pic-only' option into LT_INIT's first parameter.])
10648 ])
10649
10650 dnl aclocal-1.4 backwards compatibility:
10651 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
10652
10653
10654 m4_define([_LTDL_MODE], [])
10655 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
10656 [m4_define([_LTDL_MODE], [nonrecursive])])
10657 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
10658 [m4_define([_LTDL_MODE], [recursive])])
10659 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
10660 [m4_define([_LTDL_MODE], [subproject])])
10661
10662 m4_define([_LTDL_TYPE], [])
10663 LT_OPTION_DEFINE([LTDL_INIT], [installable],
10664 [m4_define([_LTDL_TYPE], [installable])])
10665 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
10666 [m4_define([_LTDL_TYPE], [convenience])])
10667
10668 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
10669 #
10670 # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
10671 # Foundation, Inc.
10672 # Written by Gary V. Vaughan, 2004
10673 #
10674 # This file is free software; the Free Software Foundation gives
10675 # unlimited permission to copy and/or distribute it, with or without
10676 # modifications, as long as this notice is preserved.
10677
10678 # serial 6 ltsugar.m4
10679
10680 # This is to help aclocal find these macros, as it can't see m4_define.
10681 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
10682
10683
10684 # lt_join(SEP, ARG1, [ARG2...])
10685 # -----------------------------
10686 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
10687 # associated separator.
10688 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
10689 # versions in m4sugar had bugs.
10690 m4_define([lt_join],
10691 [m4_if([$#], [1], [],
10692 [$#], [2], [[$2]],
10693 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
10694 m4_define([_lt_join],
10695 [m4_if([$#$2], [2], [],
10696 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
10697
10698
10699 # lt_car(LIST)
10700 # lt_cdr(LIST)
10701 # ------------
10702 # Manipulate m4 lists.
10703 # These macros are necessary as long as will still need to support
10704 # Autoconf-2.59, which quotes differently.
10705 m4_define([lt_car], [[$1]])
10706 m4_define([lt_cdr],
10707 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
10708 [$#], 1, [],
10709 [m4_dquote(m4_shift($@))])])
10710 m4_define([lt_unquote], $1)
10711
10712
10713 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
10714 # ------------------------------------------
10715 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
10716 # Note that neither SEPARATOR nor STRING are expanded; they are appended
10717 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
10718 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
10719 # than defined and empty).
10720 #
10721 # This macro is needed until we can rely on Autoconf 2.62, since earlier
10722 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
10723 m4_define([lt_append],
10724 [m4_define([$1],
10725 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
10726
10727
10728
10729 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
10730 # ----------------------------------------------------------
10731 # Produce a SEP delimited list of all paired combinations of elements of
10732 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
10733 # has the form PREFIXmINFIXSUFFIXn.
10734 # Needed until we can rely on m4_combine added in Autoconf 2.62.
10735 m4_define([lt_combine],
10736 [m4_if(m4_eval([$# > 3]), [1],
10737 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
10738 [[m4_foreach([_Lt_prefix], [$2],
10739 [m4_foreach([_Lt_suffix],
10740 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
10741 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
10742
10743
10744 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
10745 # -----------------------------------------------------------------------
10746 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
10747 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
10748 m4_define([lt_if_append_uniq],
10749 [m4_ifdef([$1],
10750 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
10751 [lt_append([$1], [$2], [$3])$4],
10752 [$5])],
10753 [lt_append([$1], [$2], [$3])$4])])
10754
10755
10756 # lt_dict_add(DICT, KEY, VALUE)
10757 # -----------------------------
10758 m4_define([lt_dict_add],
10759 [m4_define([$1($2)], [$3])])
10760
10761
10762 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
10763 # --------------------------------------------
10764 m4_define([lt_dict_add_subkey],
10765 [m4_define([$1($2:$3)], [$4])])
10766
10767
10768 # lt_dict_fetch(DICT, KEY, [SUBKEY])
10769 # ----------------------------------
10770 m4_define([lt_dict_fetch],
10771 [m4_ifval([$3],
10772 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
10773 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
10774
10775
10776 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
10777 # -----------------------------------------------------------------
10778 m4_define([lt_if_dict_fetch],
10779 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
10780 [$5],
10781 [$6])])
10782
10783
10784 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
10785 # --------------------------------------------------------------
10786 m4_define([lt_dict_filter],
10787 [m4_if([$5], [], [],
10788 [lt_join(m4_quote(m4_default([$4], [[, ]])),
10789 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
10790 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
10791 ])
10792
10793 # ltversion.m4 -- version numbers -*- Autoconf -*-
10794 #
10795 # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
10796 # Written by Scott James Remnant, 2004
10797 #
10798 # This file is free software; the Free Software Foundation gives
10799 # unlimited permission to copy and/or distribute it, with or without
10800 # modifications, as long as this notice is preserved.
10801
10802 # @configure_input@
10803
10804 # serial 4179 ltversion.m4
10805 # This file is part of GNU Libtool
10806
10807 m4_define([LT_PACKAGE_VERSION], [2.4.6])
10808 m4_define([LT_PACKAGE_REVISION], [2.4.6])
10809
10810 AC_DEFUN([LTVERSION_VERSION],
10811 [macro_version='2.4.6'
10812 macro_revision='2.4.6'
10813 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
10814 _LT_DECL(, macro_revision, 0)
10815 ])
10816
10817 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
10818 #
10819 # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
10820 # Foundation, Inc.
10821 # Written by Scott James Remnant, 2004.
10822 #
10823 # This file is free software; the Free Software Foundation gives
10824 # unlimited permission to copy and/or distribute it, with or without
10825 # modifications, as long as this notice is preserved.
10826
10827 # serial 5 lt~obsolete.m4
10828
10829 # These exist entirely to fool aclocal when bootstrapping libtool.
10830 #
10831 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
10832 # which have later been changed to m4_define as they aren't part of the
10833 # exported API, or moved to Autoconf or Automake where they belong.
10834 #
10835 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
10836 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
10837 # using a macro with the same name in our local m4/libtool.m4 it'll
10838 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
10839 # and doesn't know about Autoconf macros at all.)
10840 #
10841 # So we provide this file, which has a silly filename so it's always
10842 # included after everything else. This provides aclocal with the
10843 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
10844 # because those macros already exist, or will be overwritten later.
10845 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
10846 #
10847 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
10848 # Yes, that means every name once taken will need to remain here until
10849 # we give up compatibility with versions before 1.7, at which point
10850 # we need to keep only those names which we still refer to.
10851
10852 # This is to help aclocal find these macros, as it can't see m4_define.
10853 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
10854
10855 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
10856 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
10857 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
10858 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
10859 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
10860 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
10861 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
10862 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
10863 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
10864 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
10865 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
10866 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
10867 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
10868 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
10869 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
10870 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
10871 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
10872 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
10873 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
10874 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
10875 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
10876 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
10877 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
10878 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
10879 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
10880 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
10881 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
10882 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
10883 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
10884 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
10885 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
10886 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
10887 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
10888 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
10889 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
10890 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
10891 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
10892 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
10893 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
10894 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
10895 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
10896 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
10897 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
10898 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
10899 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
10900 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
10901 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
10902 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
10903 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
10904 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
10905 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
10906 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
10907 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
10908 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
10909 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
10910 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
10911 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
10912 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
10913 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
10914 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
10915 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
10916
10917 # nls.m4 serial 6 (gettext-0.20.2)
10918 dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016, 2019-2020 Free
10919 dnl Software Foundation, Inc.
10920 dnl This file is free software; the Free Software Foundation
10921 dnl gives unlimited permission to copy and/or distribute it,
10922 dnl with or without modifications, as long as this notice is preserved.
10923 dnl
10924 dnl This file can be used in projects which are not available under
10925 dnl the GNU General Public License or the GNU Lesser General Public
10926 dnl License but which still want to provide support for the GNU gettext
10927 dnl functionality.
10928 dnl Please note that the actual code of the GNU gettext library is covered
10929 dnl by the GNU Lesser General Public License, and the rest of the GNU
10930 dnl gettext package is covered by the GNU General Public License.
10931 dnl They are *not* in the public domain.
10932
10933 dnl Authors:
10934 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
10935 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
10936
10937 AC_PREREQ([2.50])
10938
10939 AC_DEFUN([AM_NLS],
10940 [
10941 AC_MSG_CHECKING([whether NLS is requested])
10942 dnl Default is enabled NLS
10943 AC_ARG_ENABLE([nls],
10944 [ --disable-nls do not use Native Language Support],
10945 USE_NLS=$enableval, USE_NLS=yes)
10946 AC_MSG_RESULT([$USE_NLS])
10947 AC_SUBST([USE_NLS])
10948 ])
10949
10950 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
10951 # serial 12 (pkg-config-0.29.2)
10952
10953 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
10954 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
10955 dnl
10956 dnl This program is free software; you can redistribute it and/or modify
10957 dnl it under the terms of the GNU General Public License as published by
10958 dnl the Free Software Foundation; either version 2 of the License, or
10959 dnl (at your option) any later version.
10960 dnl
10961 dnl This program is distributed in the hope that it will be useful, but
10962 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
10963 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10964 dnl General Public License for more details.
10965 dnl
10966 dnl You should have received a copy of the GNU General Public License
10967 dnl along with this program; if not, write to the Free Software
10968 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
10969 dnl 02111-1307, USA.
10970 dnl
10971 dnl As a special exception to the GNU General Public License, if you
10972 dnl distribute this file as part of a program that contains a
10973 dnl configuration script generated by Autoconf, you may include it under
10974 dnl the same distribution terms that you use for the rest of that
10975 dnl program.
10976
10977 dnl PKG_PREREQ(MIN-VERSION)
10978 dnl -----------------------
10979 dnl Since: 0.29
10980 dnl
10981 dnl Verify that the version of the pkg-config macros are at least
10982 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
10983 dnl installed version of pkg-config, this checks the developer's version
10984 dnl of pkg.m4 when generating configure.
10985 dnl
10986 dnl To ensure that this macro is defined, also add:
10987 dnl m4_ifndef([PKG_PREREQ],
10988 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
10989 dnl
10990 dnl See the "Since" comment for each macro you use to see what version
10991 dnl of the macros you require.
10992 m4_defun([PKG_PREREQ],
10993 [m4_define([PKG_MACROS_VERSION], [0.29.2])
10994 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
10995 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
10996 ])dnl PKG_PREREQ
10997
10998 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
10999 dnl ----------------------------------
11000 dnl Since: 0.16
11001 dnl
11002 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
11003 dnl first found in the path. Checks that the version of pkg-config found
11004 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
11005 dnl used since that's the first version where most current features of
11006 dnl pkg-config existed.
11007 AC_DEFUN([PKG_PROG_PKG_CONFIG],
11008 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
11009 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
11010 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
11011 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
11012 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
11013 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
11014
11015 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11016 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
11017 fi
11018 if test -n "$PKG_CONFIG"; then
11019 _pkg_min_version=m4_default([$1], [0.9.0])
11020 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
11021 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11022 AC_MSG_RESULT([yes])
11023 else
11024 AC_MSG_RESULT([no])
11025 PKG_CONFIG=""
11026 fi
11027 fi[]dnl
11028 ])dnl PKG_PROG_PKG_CONFIG
11029
11030 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
11031 dnl -------------------------------------------------------------------
11032 dnl Since: 0.18
11033 dnl
11034 dnl Check to see whether a particular set of modules exists. Similar to
11035 dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
11036 dnl
11037 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
11038 dnl only at the first occurence in configure.ac, so if the first place
11039 dnl it's called might be skipped (such as if it is within an "if", you
11040 dnl have to call PKG_CHECK_EXISTS manually
11041 AC_DEFUN([PKG_CHECK_EXISTS],
11042 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
11043 if test -n "$PKG_CONFIG" && \
11044 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
11045 m4_default([$2], [:])
11046 m4_ifvaln([$3], [else
11047 $3])dnl
11048 fi])
11049
11050 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
11051 dnl ---------------------------------------------
11052 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
11053 dnl pkg_failed based on the result.
11054 m4_define([_PKG_CONFIG],
11055 [if test -n "$$1"; then
11056 pkg_cv_[]$1="$$1"
11057 elif test -n "$PKG_CONFIG"; then
11058 PKG_CHECK_EXISTS([$3],
11059 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
11060 test "x$?" != "x0" && pkg_failed=yes ],
11061 [pkg_failed=yes])
11062 else
11063 pkg_failed=untried
11064 fi[]dnl
11065 ])dnl _PKG_CONFIG
11066
11067 dnl _PKG_SHORT_ERRORS_SUPPORTED
11068 dnl ---------------------------
11069 dnl Internal check to see if pkg-config supports short errors.
11070 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
11071 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
11072 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11073 _pkg_short_errors_supported=yes
11074 else
11075 _pkg_short_errors_supported=no
11076 fi[]dnl
11077 ])dnl _PKG_SHORT_ERRORS_SUPPORTED
11078
11079
11080 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
11081 dnl [ACTION-IF-NOT-FOUND])
11082 dnl --------------------------------------------------------------
11083 dnl Since: 0.4.0
11084 dnl
11085 dnl Note that if there is a possibility the first call to
11086 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
11087 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
11088 AC_DEFUN([PKG_CHECK_MODULES],
11089 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
11090 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
11091 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
11092
11093 pkg_failed=no
11094 AC_MSG_CHECKING([for $2])
11095
11096 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
11097 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
11098
11099 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
11100 and $1[]_LIBS to avoid the need to call pkg-config.
11101 See the pkg-config man page for more details.])
11102
11103 if test $pkg_failed = yes; then
11104 AC_MSG_RESULT([no])
11105 _PKG_SHORT_ERRORS_SUPPORTED
11106 if test $_pkg_short_errors_supported = yes; then
11107 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
11108 else
11109 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
11110 fi
11111 # Put the nasty error message in config.log where it belongs
11112 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
11113
11114 m4_default([$4], [AC_MSG_ERROR(
11115 [Package requirements ($2) were not met:
11116
11117 $$1_PKG_ERRORS
11118
11119 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11120 installed software in a non-standard prefix.
11121
11122 _PKG_TEXT])[]dnl
11123 ])
11124 elif test $pkg_failed = untried; then
11125 AC_MSG_RESULT([no])
11126 m4_default([$4], [AC_MSG_FAILURE(
11127 [The pkg-config script could not be found or is too old. Make sure it
11128 is in your PATH or set the PKG_CONFIG environment variable to the full
11129 path to pkg-config.
11130
11131 _PKG_TEXT
11132
11133 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
11134 ])
11135 else
11136 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
11137 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
11138 AC_MSG_RESULT([yes])
11139 $3
11140 fi[]dnl
11141 ])dnl PKG_CHECK_MODULES
11142
11143
11144 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
11145 dnl [ACTION-IF-NOT-FOUND])
11146 dnl ---------------------------------------------------------------------
11147 dnl Since: 0.29
11148 dnl
11149 dnl Checks for existence of MODULES and gathers its build flags with
11150 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
11151 dnl and VARIABLE-PREFIX_LIBS from --libs.
11152 dnl
11153 dnl Note that if there is a possibility the first call to
11154 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
11155 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
11156 dnl configure.ac.
11157 AC_DEFUN([PKG_CHECK_MODULES_STATIC],
11158 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
11159 _save_PKG_CONFIG=$PKG_CONFIG
11160 PKG_CONFIG="$PKG_CONFIG --static"
11161 PKG_CHECK_MODULES($@)
11162 PKG_CONFIG=$_save_PKG_CONFIG[]dnl
11163 ])dnl PKG_CHECK_MODULES_STATIC
11164
11165
11166 dnl PKG_INSTALLDIR([DIRECTORY])
11167 dnl -------------------------
11168 dnl Since: 0.27
11169 dnl
11170 dnl Substitutes the variable pkgconfigdir as the location where a module
11171 dnl should install pkg-config .pc files. By default the directory is
11172 dnl $libdir/pkgconfig, but the default can be changed by passing
11173 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
11174 dnl parameter.
11175 AC_DEFUN([PKG_INSTALLDIR],
11176 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
11177 m4_pushdef([pkg_description],
11178 [pkg-config installation directory @<:@]pkg_default[@:>@])
11179 AC_ARG_WITH([pkgconfigdir],
11180 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
11181 [with_pkgconfigdir=]pkg_default)
11182 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
11183 m4_popdef([pkg_default])
11184 m4_popdef([pkg_description])
11185 ])dnl PKG_INSTALLDIR
11186
11187
11188 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
11189 dnl --------------------------------
11190 dnl Since: 0.27
11191 dnl
11192 dnl Substitutes the variable noarch_pkgconfigdir as the location where a
11193 dnl module should install arch-independent pkg-config .pc files. By
11194 dnl default the directory is $datadir/pkgconfig, but the default can be
11195 dnl changed by passing DIRECTORY. The user can override through the
11196 dnl --with-noarch-pkgconfigdir parameter.
11197 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
11198 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
11199 m4_pushdef([pkg_description],
11200 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
11201 AC_ARG_WITH([noarch-pkgconfigdir],
11202 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
11203 [with_noarch_pkgconfigdir=]pkg_default)
11204 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
11205 m4_popdef([pkg_default])
11206 m4_popdef([pkg_description])
11207 ])dnl PKG_NOARCH_INSTALLDIR
11208
11209
11210 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
11211 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
11212 dnl -------------------------------------------
11213 dnl Since: 0.28
11214 dnl
11215 dnl Retrieves the value of the pkg-config variable for the given module.
11216 AC_DEFUN([PKG_CHECK_VAR],
11217 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
11218 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
11219
11220 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
11221 AS_VAR_COPY([$1], [pkg_cv_][$1])
11222
11223 AS_VAR_IF([$1], [""], [$5], [$4])dnl
11224 ])dnl PKG_CHECK_VAR
11225
11226 dnl Copyright (c) 2002-2015
11227 dnl The Xfce development team. All rights reserved.
11228 dnl
11229 dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
11230 dnl
11231 dnl This program is free software; you can redistribute it and/or modify
11232 dnl it under the terms of the GNU General Public License as published by
11233 dnl the Free Software Foundation; either version 2 of the License, or
11234 dnl (at your option) any later version.
11235 dnl
11236 dnl This program is distributed in the hope that it will be useful,
11237 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11238 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11239 dnl GNU General Public License for more details.
11240 dnl
11241 dnl You should have received a copy of the GNU General Public License along
11242 dnl with this program; if not, write to the Free Software Foundation, Inc.,
11243 dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
11244 dnl
11245 dnl xdt-depends
11246 dnl -----------
11247 dnl Contains M4 macros to check for software dependencies.
11248 dnl Partly based on prior work of the XDG contributors.
11249 dnl
11250
11251
11252
11253 dnl We need recent a autoconf version
11254 AC_PREREQ([2.60])
11255
11256
11257
11258 dnl XDT_PROG_PKG_CONFIG()
11259 dnl
11260 dnl Checks for the freedesktop.org pkg-config
11261 dnl utility and sets the PKG_CONFIG environment
11262 dnl variable to the full path if found.
11263 dnl
11264 AC_DEFUN([XDT_PROG_PKG_CONFIG],
11265 [
11266 # minimum supported version of pkg-config
11267 xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
11268
11269 m4_ifdef([PKG_PROG_PKG_CONFIG],
11270 [
11271 PKG_PROG_PKG_CONFIG([$xdt_cv_PKG_CONFIG_MIN_VERSION])
11272
11273 if test x"$PKG_CONFIG" = x""; then
11274 echo
11275 echo "*** Your version of pkg-config is too old. You need atleast"
11276 echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
11277 echo "*** from the freedesktop.org software repository at"
11278 echo "***"
11279 echo "*** https://www.freedesktop.org/wiki/Software/pkg-config/"
11280 echo "***"
11281 exit 1;
11282 fi
11283 ],
11284 [
11285 echo
11286 echo "*** The pkg-config utility could not be found on your system."
11287 echo "*** Make sure it is in your path, or set the PKG_CONFIG"
11288 echo "*** environment variable to the full path to pkg-config."
11289 echo "*** You can download pkg-config from the freedesktop.org"
11290 echo "*** software repository at"
11291 echo "***"
11292 echo "*** https://www.freedesktop.org/wiki/Software/pkg-config/"
11293 echo "***"
11294 exit 1
11295 ])
11296 ])
11297
11298
11299
11300 dnl XDT_CHECK_PACKAGE(varname, package, version, [action-if], [action-if-not])
11301 dnl
11302 dnl Checks if "package" >= "version" is installed on the
11303 dnl target system, using the pkg-config utility. If the
11304 dnl dependency is met, "varname"_CFLAGS, "varname"_LIBS,
11305 dnl "varname"_VERSION and "varname"_REQUIRED_VERSION
11306 dnl will be set and marked for substition.
11307 dnl
11308 dnl "varname"_REQUIRED_VERSION will be set to the value of
11309 dnl "version". This is mostly useful to automatically
11310 dnl place the correct version information into the RPM
11311 dnl .spec file.
11312 dnl
11313 dnl In addition, if the dependency is met, "action-if" will
11314 dnl be executed if given.
11315 dnl
11316 dnl If the package check fails, "action-if-not" will be
11317 dnl executed. If this parameter isn't specified, a diagnostic
11318 dnl message will be printed and the configure script will
11319 dnl be terminated with exit code 1.
11320 dnl
11321 AC_DEFUN([XDT_CHECK_PACKAGE],
11322 [
11323 XDT_PROG_PKG_CONFIG()
11324
11325 AC_MSG_CHECKING([for $2 >= $3])
11326 if $PKG_CONFIG "--atleast-version=$3" "$2" >/dev/null 2>&1; then
11327 $1_VERSION=`$PKG_CONFIG --modversion "$2"`
11328 AC_MSG_RESULT([$$1_VERSION])
11329
11330 AC_MSG_CHECKING([$1_CFLAGS])
11331 $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
11332 AC_MSG_RESULT([$$1_CFLAGS])
11333
11334 AC_MSG_CHECKING([$1_LIBS])
11335 $1_LIBS=`$PKG_CONFIG --libs "$2"`
11336 AC_MSG_RESULT([$$1_LIBS])
11337
11338 $1_REQUIRED_VERSION=$3
11339
11340 AC_SUBST([$1_VERSION])
11341 AC_SUBST([$1_CFLAGS])
11342 AC_SUBST([$1_LIBS])
11343 AC_SUBST([$1_REQUIRED_VERSION])
11344
11345 ifelse([$4], , , [$4])
11346 elif $PKG_CONFIG --exists "$2" >/dev/null 2>&1; then
11347 xdt_cv_version=`$PKG_CONFIG --modversion "$2"`
11348 AC_MSG_RESULT([found, but $xdt_cv_version])
11349
11350 ifelse([$5], ,
11351 [
11352 echo "*** The required package $2 was found on your system,"
11353 echo "*** but the installed version ($xdt_cv_version) is too old."
11354 echo "*** Please upgrade $2 to atleast version $3, or adjust"
11355 echo "*** the PKG_CONFIG_PATH environment variable if you installed"
11356 echo "*** the new version of the package in a nonstandard prefix so"
11357 echo "*** pkg-config is able to find it."
11358 exit 1
11359 ], [$5])
11360 else
11361 AC_MSG_RESULT([not found])
11362
11363 ifelse([$5], ,
11364 [
11365 echo "*** The required package $2 was not found on your system."
11366 echo "*** Please install $2 (atleast version $3) or adjust"
11367 echo "*** the PKG_CONFIG_PATH environment variable if you"
11368 echo "*** installed the package in a nonstandard prefix so that"
11369 echo "*** pkg-config is able to find it."
11370 exit 1
11371 ], [$5])
11372 fi
11373 ])
11374
11375
11376
11377 dnl XDT_CHECK_OPTIONAL_PACKAGE(varname, package, version, optionname, helpstring, [default])
11378 dnl
11379 dnl Checks for an optional dependency on "package" >= "version". "default"
11380 dnl can be "yes" or "no" (defaults to "yes" if not specified) and controls
11381 dnl whether configure should check this dependency by default, or only if
11382 dnl the user explicitly enables it using a command line switch.
11383 dnl
11384 dnl This macro automatically adds a commandline switch based on the "optionname"
11385 dnl parameter (--enable-optionname/--disable-optionname), which allows the
11386 dnl user to explicitly control whether this optional dependency should be
11387 dnl enabled or not. The "helpstring" parameter gives a brief(!) description
11388 dnl about this dependency.
11389 dnl
11390 dnl If the user chose to enable this dependency and the required package
11391 dnl was found, this macro defines the variable "varname"_FOUND and sets it
11392 dnl to the string "yes", in addition to the 4 variables set by XDT_CHECK_PACKAGE.
11393 dnl But "varname"_FOUND will not be marked for substition. Furthermore,
11394 dnl a CPP define HAVE_"varname" will be placed in config.h (or added to
11395 dnl the cc command line, depending on your configure.ac) and set to
11396 dnl 1.
11397 dnl
11398 AC_DEFUN([XDT_CHECK_OPTIONAL_PACKAGE],
11399 [
11400 AC_REQUIRE([XDT_PROG_PKG_CONFIG])
11401
11402 AC_ARG_ENABLE([$4],
11403 AC_HELP_STRING([--enable-$4], [Enable checking for $5 (default=m4_default([$6], [yes]))])
11404 AC_HELP_STRING([--disable-$4], [Disable checking for $5]),
11405 [xdt_cv_$1_check=$enableval], [xdt_cv_$1_check=m4_default([$6], [yes])])
11406
11407 if test x"$xdt_cv_$1_check" = x"yes"; then
11408 if $PKG_CONFIG --exists "$2 >= $3" >/dev/null 2>&1; then
11409 XDT_CHECK_PACKAGE([$1], [$2], [$3],
11410 [
11411 AC_DEFINE([HAVE_$1], [1], [Define if $2 >= $3 present])
11412 $1_FOUND="yes"
11413 ])
11414 else
11415 AC_MSG_CHECKING([for optional package $2 >= $3])
11416 AC_MSG_RESULT([not found])
11417 fi
11418 else
11419 AC_MSG_CHECKING([for optional package $2])
11420 AC_MSG_RESULT([disabled])
11421 fi
11422
11423 AM_CONDITIONAL([HAVE_$1], [test x"$$1_FOUND" = x"yes"])
11424 ])
11425
11426
11427
11428 dnl XDT_CHECK_LIBX11()
11429 dnl
11430 dnl Executes various checks for X11. Sets LIBX11_CFLAGS, LIBX11_LDFLAGS
11431 dnl and LIBX11_LIBS (and marks them for substitution). In addition
11432 dnl HAVE_LIBX11 is set to 1 in config.h, if the X window system and
11433 dnl the development files are detected on the target system.
11434 dnl
11435 AC_DEFUN([XDT_CHECK_LIBX11],
11436 [
11437 AC_REQUIRE([AC_PATH_XTRA])
11438
11439 LIBX11_CFLAGS= LIBX11_LDFLAGS= LIBX11_LIBS=
11440 if test x"$no_x" != x"yes"; then
11441 AC_CHECK_LIB([X11], [main],
11442 [
11443 AC_DEFINE([HAVE_LIBX11], [1], [Define if libX11 is available])
11444 LIBX11_CFLAGS="$X_CFLAGS"
11445 for option in $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS; do
11446 case "$option" in
11447 -L*)
11448 path=`echo $option | sed 's/^-L//'`
11449 if test x"$path" != x""; then
11450 LIBX11_LDFLAGS="$LIBX11_LDFLAGS -L$path"
11451 fi
11452 ;;
11453 *)
11454 LIBX11_LIBS="$LIBX11_LIBS $option"
11455 ;;
11456 esac
11457 done
11458 if ! echo $LIBX11_LIBS | grep -- '-lX11' >/dev/null; then
11459 LIBX11_LIBS="$LIBX11_LIBS -lX11"
11460 fi
11461 ], [], [$X_CFLAGS $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS])
11462 fi
11463 AC_SUBST([LIBX11_CFLAGS])
11464 AC_SUBST([LIBX11_LDFLAGS])
11465 AC_SUBST([LIBX11_LIBS])
11466 ])
11467
11468
11469
11470 dnl XDT_CHECK_LIBX11_REQUIRE()
11471 dnl
11472 dnl Similar to XDT_CHECK_LIBX11(), but terminates with an error if
11473 dnl the X window system and development files aren't detected on the
11474 dnl target system.
11475 dnl
11476 AC_DEFUN([XDT_CHECK_LIBX11_REQUIRE],
11477 [
11478 AC_REQUIRE([XDT_CHECK_LIBX11])
11479
11480 if test x"$no_x" = x"yes"; then
11481 AC_MSG_ERROR([X Window system libraries and header files are required])
11482 fi
11483 ])
11484
11485
11486
11487 dnl XDT_CHECK_LIBSM()
11488 dnl
11489 dnl Checks whether the session management library is present on the
11490 dnl target system, and sets LIBSM_CFLAGS, LIBSM_LDFLAGS and LIBSM_LIBS
11491 dnl properly. In addition, HAVE_LIBSM will be set to 1 in config.h
11492 dnl if libSM is detected.
11493 dnl
11494 AC_DEFUN([XDT_CHECK_LIBSM],
11495 [
11496 AC_REQUIRE([XDT_CHECK_LIBX11])
11497
11498 LIBSM_CFLAGS= LIBSM_LDFLAGS= LIBSM_LIBS=
11499 if test x"$no_x" != x"yes"; then
11500 AC_CHECK_LIB([SM], [SmcSaveYourselfDone],
11501 [
11502 AC_DEFINE([HAVE_LIBSM], [1], [Define if libSM is available])
11503 LIBSM_CFLAGS="$LIBX11_CFLAGS"
11504 LIBSM_LDFLAGS="$LIBX11_LDFLAGS"
11505 LIBSM_LIBS="$LIBX11_LIBS"
11506 if ! echo $LIBSM_LIBS | grep -- '-lSM' >/dev/null; then
11507 LIBSM_LIBS="$LIBSM_LIBS -lSM -lICE"
11508 fi
11509 ], [], [$LIBX11_CFLAGS $LIBX11_LDFLAGS $LIBX11_LIBS -lICE])
11510 fi
11511 AC_SUBST([LIBSM_CFLAGS])
11512 AC_SUBST([LIBSM_LDFLAGS])
11513 AC_SUBST([LIBSM_LIBS])
11514 ])
11515
11516
11517
11518 dnl XDT_CHECK_LIBXPM()
11519 dnl
11520 dnl Checks if the Xpm library is present on the target system, and
11521 dnl sets LIBXPM_CFLAGS, LIBXPM_LDFLAGS and LIBXPM_LIBS. In addition,
11522 dnl HAVE_LIBXPM will be set to 1 in config.h if libXpm is detected.
11523 dnl
11524 AC_DEFUN([XDT_CHECK_LIBXPM],
11525 [
11526 AC_REQUIRE([XDT_CHECK_LIBX11])
11527
11528 LIBXPM_CFLAGS= LIBXPM_LDFLAGS= LIBXPM_LIBS=
11529 if test "$no_x" != "yes"; then
11530 AC_CHECK_LIB([Xpm], [main],
11531 [
11532 AC_DEFINE([HAVE_LIBXPM], [1], [Define if libXpm is available])
11533 LIBXPM_CFLAGS="$LIBX11_CFLAGS"
11534 LIBXPM_LDFLAGS="$LIBX11_LDFLAGS"
11535 LIBXPM_LIBS="$LIBX11_LIBS"
11536 if ! echo $LIBXPM_LIBS | grep -- '-lXpm' >/dev/null; then
11537 LIBXPM_LIBS="$LIBXPM_LIBS -lXpm"
11538 fi
11539 ], [], [$LIBX11_CFLAGS $LIBX11_LDFLAGS $LIBX11_LIBS -lXpm])
11540 fi
11541 AC_SUBST([LIBXPM_CFLAGS])
11542 AC_SUBST([LIBXPM_LDFLAGS])
11543 AC_SUBST([LIBXPM_LIBS])
11544 ])
11545
11546
11547
11548 dnl XDT_CHECK_LIBXPM_REQUIRE()
11549 dnl
11550 dnl Similar to XDT_CHECK_LIBXPM(), but fails if the Xpm library isn't
11551 dnl present on the target system.
11552 dnl
11553 AC_DEFUN([XDT_CHECK_LIBXPM_REQUIRE],
11554 [
11555 AC_REQUIRE([XDT_CHECK_LIBX11_REQUIRE])
11556 AC_REQUIRE([XDT_CHECK_LIBXPM])
11557
11558 if test x"$LIBXPM_LIBS" = x""; then
11559 AC_MSG_ERROR([The Xpm library was not found on your system])
11560 fi
11561 ])
11562
11563
11564 dnl Copyright (c) 2002-2015
11565 dnl The Xfce development team. All rights reserved.
11566 dnl
11567 dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
11568 dnl
11569 dnl This program is free software; you can redistribute it and/or modify
11570 dnl it under the terms of the GNU General Public License as published by
11571 dnl the Free Software Foundation; either version 2 of the License, or
11572 dnl (at your option) any later version.
11573 dnl
11574 dnl This program is distributed in the hope that it will be useful,
11575 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11576 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11577 dnl GNU General Public License for more details.
11578 dnl
11579 dnl You should have received a copy of the GNU General Public License along
11580 dnl with this program; if not, write to the Free Software Foundation, Inc.,
11581 dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
11582 dnl
11583 dnl xdt-depends
11584 dnl -----------
11585 dnl Contains M4 macros to check for software dependencies.
11586 dnl Partly based on prior work of the XDG contributors.
11587 dnl
11588
11589
11590
11591 dnl We need recent a autoconf version
11592 AC_PREREQ([2.60])
11593
11594
11595 dnl XDT_SUPPORTED_FLAGS(VAR, FLAGS)
11596 dnl
11597 dnl For each token in FLAGS, checks to be sure the compiler supports
11598 dnl the flag, and if so, adds each one to VAR.
11599 dnl
11600 AC_DEFUN([XDT_SUPPORTED_FLAGS],
11601 [
11602 for flag in $2; do
11603 AC_MSG_CHECKING([if $CC supports $flag])
11604 saved_CFLAGS="$CFLAGS"
11605 CFLAGS="$CFLAGS $flag"
11606 AC_COMPILE_IFELSE([AC_LANG_SOURCE([ ])], [flag_supported=yes], [flag_supported=no])
11607 CFLAGS="$saved_CFLAGS"
11608 AC_MSG_RESULT([$flag_supported])
11609
11610 if test "x$flag_supported" = "xyes"; then
11611 $1="$$1 $flag"
11612 fi
11613 done
11614 ])
11615
11616
11617
11618 dnl XDT_FEATURE_DEBUG(default_level=minimum)
11619 dnl
11620 AC_DEFUN([XDT_FEATURE_DEBUG],
11621 [
11622 dnl weird indentation to keep output indentation correct
11623 AC_ARG_ENABLE([debug],
11624 AC_HELP_STRING([--enable-debug@<:@=no|minimum|yes|full@:>@],
11625 [Build with debugging support @<:@default=m4_default([$1], [minimum])@:>@])
11626 AC_HELP_STRING([--disable-debug], [Include no debugging support]),
11627 [enable_debug=$enableval], [enable_debug=m4_default([$1], [minimum])])
11628
11629 AC_MSG_CHECKING([whether to build with debugging support])
11630 if test x"$enable_debug" = x"full" -o x"$enable_debug" = x"yes"; then
11631 AC_DEFINE([DEBUG], [1], [Define for debugging support])
11632
11633 xdt_cv_additional_CFLAGS="-DXFCE_DISABLE_DEPRECATED \
11634 -Wall -Wextra \
11635 -Wno-missing-field-initializers \
11636 -Wno-unused-parameter -Wold-style-definition \
11637 -Wdeclaration-after-statement \
11638 -Wmissing-declarations \
11639 -Wmissing-noreturn -Wpointer-arith \
11640 -Wcast-align -Wformat -Wformat-security -Wformat-y2k \
11641 -Winit-self -Wmissing-include-dirs -Wundef \
11642 -Wnested-externs"
11643 CPPFLAGS="$CPPFLAGS"
11644
11645 if test x`uname` = x"Linux"; then
11646 xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -fstack-protector"
11647 fi
11648
11649 dnl # signal.h inline is crapy on openbsd
11650 if test x`uname` != x"OpenBSD"; then
11651 xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -Wredundant-decls"
11652 fi
11653
11654 if test x"$enable_debug" = x"full"; then
11655 AC_DEFINE([DEBUG_TRACE], [1], [Define for tracing support])
11656 xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -O0 -g -Werror"
11657 CPPFLAGS="$CPPFLAGS -DG_ENABLE_DEBUG"
11658 AC_MSG_RESULT([full])
11659 else
11660 xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -g -Wshadow"
11661 AC_MSG_RESULT([yes])
11662 fi
11663
11664 XDT_SUPPORTED_FLAGS([supported_CFLAGS], [$xdt_cv_additional_CFLAGS])
11665
11666 ifelse([$CXX], , , [
11667 dnl FIXME: should test on c++ compiler, but the following line causes
11668 dnl autoconf errors for projects that don't check for a
11669 dnl c++ compiler at all.
11670 dnl AC_LANG_PUSH([C++])
11671 dnl XDT_SUPPORTED_FLAGS([supported_CXXFLAGS], [$xdt_cv_additional_CFLAGS])
11672 dnl AC_LANG_POP()
11673 dnl instead, just use supported_CFLAGS...
11674 supported_CXXFLAGS="$supported_CFLAGS"
11675 ])
11676
11677 CFLAGS="$CFLAGS $supported_CFLAGS"
11678 CXXFLAGS="$CXXFLAGS $supported_CXXFLAGS"
11679 else
11680 CPPFLAGS="$CPPFLAGS -DNDEBUG"
11681
11682 if test x"$enable_debug" = x"no"; then
11683 CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT"
11684 AC_MSG_RESULT([no])
11685 else
11686 AC_MSG_RESULT([minimum])
11687 fi
11688 fi
11689 ])
11690
11691
11692 dnl XDT_FEATURE_VISIBILITY()
11693 dnl
11694 dnl Checks to see if the compiler supports the 'visibility' attribute
11695 dnl If so, adds -DHAVE_GNUC_VISIBILTY to CPPFLAGS. Also sets the
11696 dnl automake conditional HAVE_GNUC_VISIBILITY.
11697 dnl
11698 AC_DEFUN([XDT_FEATURE_VISIBILITY],
11699 [
11700 AC_ARG_ENABLE([visibility],
11701 AC_HELP_STRING([--disable-visibility],
11702 [Don't use ELF visibility attributes]),
11703 [enable_visibility=$enableval], [enable_visibility=yes])
11704 have_gnuc_visibility=no
11705 if test "x$enable_visibility" != "xno"; then
11706 XDT_SUPPORTED_FLAGS([xdt_vis_test_cflags], [-Wall -Werror -Wno-unused-parameter])
11707 saved_CFLAGS="$CFLAGS"
11708 CFLAGS="$CFLAGS $xdt_vis_test_cflags"
11709 AC_MSG_CHECKING([whether $CC supports the GNUC visibility attribute])
11710 AC_COMPILE_IFELSE([AC_LANG_SOURCE(
11711 [
11712 void test_default (void);
11713 void test_hidden (void);
11714
11715 void __attribute__ ((visibility("default"))) test_default (void) {}
11716 void __attribute__ ((visibility("hidden"))) test_hidden (void) {}
11717
11718 int main (int argc, char **argv) {
11719 test_default ();
11720 test_hidden ();
11721 return 0;
11722 }
11723 ])],
11724 [
11725 have_gnuc_visibility=yes
11726 AC_MSG_RESULT([yes])
11727 ],
11728 [
11729 AC_MSG_RESULT([no])
11730 ])
11731 CFLAGS="$saved_CFLAGS"
11732 fi
11733
11734 if test "x$have_gnuc_visibility" = "xyes"; then
11735 CPPFLAGS="$CPPFLAGS -DHAVE_GNUC_VISIBILITY"
11736 xdt_vis_hidden_cflags=""
11737 XDT_SUPPORTED_FLAGS([xdt_vis_hidden_cflags], [-xldscope=hidden])
11738 if test "x$xdt_vis_hidden_cflags" = "x"; then
11739 XDT_SUPPORTED_FLAGS([xdt_vis_hidden_cflags], [-fvisibility=hidden])
11740 fi
11741 CFLAGS="$CFLAGS $xdt_vis_hidden_cflags"
11742 fi
11743
11744 AM_CONDITIONAL([HAVE_GNUC_VISIBILITY], [test "x$have_gnuc_visibility" = "xyes"])
11745 ])
11746
11747 dnl XDT_FEATURE_LINKER_OPTS
11748 dnl
11749 dnl Checks for and enables any special linker optimizations.
11750 dnl
11751 AC_DEFUN([XDT_FEATURE_LINKER_OPTS],
11752 [
11753 AC_ARG_ENABLE([linker-opts],
11754 AC_HELP_STRING([--disable-linker-opts],
11755 [Disable linker optimizations]),
11756 [enable_linker_opts=$enableval], [enable_linker_opts=yes])
11757
11758 if test "x$enable_linker_opts" != "xno"; then
11759 if test x`uname` != x"OpenBSD"; then
11760 AC_MSG_CHECKING([whether $LD accepts --as-needed])
11761 case `$LD --as-needed -v 2>&1 </dev/null` in
11762 *GNU* | *'with BFD'*)
11763 LDFLAGS="$LDFLAGS -Wl,--as-needed"
11764 AC_MSG_RESULT([yes])
11765 ;;
11766 *)
11767 AC_MSG_RESULT([no])
11768 ;;
11769 esac
11770 fi
11771 AC_MSG_CHECKING([whether $LD accepts -O1])
11772 case `$LD -O1 -v 2>&1 </dev/null` in
11773 *GNU* | *'with BFD'*)
11774 LDFLAGS="$LDFLAGS -Wl,-O1"
11775 AC_MSG_RESULT([yes])
11776 ;;
11777 *)
11778 AC_MSG_RESULT([no])
11779 ;;
11780 esac
11781 fi
11782 ])
11783
11784 dnl Copyright (c) 2002-2015
11785 dnl The Xfce development team. All rights reserved.
11786 dnl
11787 dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
11788 dnl
11789 dnl This program is free software; you can redistribute it and/or modify
11790 dnl it under the terms of the GNU General Public License as published by
11791 dnl the Free Software Foundation; either version 2 of the License, or
11792 dnl (at your option) any later version.
11793 dnl
11794 dnl This program is distributed in the hope that it will be useful,
11795 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11796 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11797 dnl GNU General Public License for more details.
11798 dnl
11799 dnl You should have received a copy of the GNU General Public License along
11800 dnl with this program; if not, write to the Free Software Foundation, Inc.,
11801 dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
11802 dnl
11803 dnl xdt-i18n
11804 dnl --------
11805 dnl Internalization M4 macros.
11806 dnl
11807
11808
11809 dnl XDT_I18N([LINGUAS][, PACKAGE])
11810 dnl
11811 dnl This macro takes care of setting up everything for i18n support.
11812 dnl
11813 dnl If LINGUAS isn't specified, it will automatically extract the linguas
11814 dnl from po/*.po.
11815 dnl
11816 dnl If PACKAGE isn't specified, it defaults to the package tarname; see
11817 dnl the description of AC_INIT() for an explanation of what makes up
11818 dnl the package tarname. Normally, you don't need to specify PACKAGE,
11819 dnl but you can stick with the default.
11820 dnl
11821 AC_DEFUN([XDT_I18N],
11822 [
11823 dnl Substitute GETTEXT_PACKAGE variable
11824 GETTEXT_PACKAGE=m4_default([$2], [AC_PACKAGE_TARNAME()])
11825 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Name of default gettext domain])
11826 AC_SUBST([GETTEXT_PACKAGE])
11827
11828 dnl gettext and stuff
11829 ALL_LINGUAS="m4_ifblank(
11830 [$1],
11831 [esyscmd([echo $(for i in po/*.po; do test -e "$i" && basename -- "$i" .po; done) | tr -d '\n'])],
11832 [$1])"
11833 AM_GLIB_GNU_GETTEXT()
11834
11835 dnl This is required on some Linux systems
11836 AC_CHECK_FUNC([bind_textdomain_codeset])
11837
11838 dnl Determine where to install locale files
11839 AC_MSG_CHECKING([for locales directory])
11840 AC_ARG_WITH([locales-dir],
11841 [
11842 AC_HELP_STRING([--with-locales-dir=DIR], [Install locales into DIR])
11843 ], [localedir=$withval],
11844 [
11845 if test x"$CATOBJEXT" = x".mo"; then
11846 localedir=$libdir/locale
11847 else
11848 localedir=$datarootdir/locale
11849 fi
11850 ])
11851 AC_MSG_RESULT([$localedir])
11852 AC_SUBST([localedir])
11853
11854 dnl Determine additional xgettext flags
11855 AC_MSG_CHECKING([for additional xgettext flags])
11856 if test x"$XGETTEXT_ARGS" = x""; then
11857 XGETTEXT_ARGS="--keyword=Q_ --from-code=UTF-8";
11858 else
11859 XGETTEXT_ARGS="$XGETTEXT_ARGS --keyword=Q_ --from-code=UTF-8";
11860 fi
11861 AC_SUBST([XGETTEXT_ARGS])
11862 AC_MSG_RESULT([$XGETTEXT_ARGS])
11863 ])
11864
11865
2392 m4_include([m4/libtool.m4])
2393 m4_include([m4/ltoptions.m4])
2394 m4_include([m4/ltsugar.m4])
2395 m4_include([m4/ltversion.m4])
2396 m4_include([m4/lt~obsolete.m4])
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-02-24'
2 # Copyright 1992-2022 Free Software Foundation, Inc.
3
4 # shellcheck disable=SC2006,SC2268 # see below for rationale
5
6 timestamp='2022-01-09'
57
68 # This file is free software; you can redistribute it and/or modify it
79 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
10 # the Free Software Foundation, either version 3 of the License, or
911 # (at your option) any later version.
1012 #
1113 # This program is distributed in the hope that it will be useful, but
2628 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
2729 #
2830 # You can get the latest version of this script from:
29 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
31 # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
3032 #
3133 # Please send patches to <config-patches@gnu.org>.
34
35
36 # The "shellcheck disable" line above the timestamp inhibits complaints
37 # about features and limitations of the classic Bourne shell that were
38 # superseded or lifted in POSIX. However, this script identifies a wide
39 # variety of pre-POSIX systems that do not have POSIX shells at all, and
40 # even some reasonably current systems (Solaris 10 as case-in-point) still
41 # have a pre-POSIX /bin/sh.
3242
3343
3444 me=`echo "$0" | sed -e 's,.*/,,'`
4959 GNU config.guess ($timestamp)
5060
5161 Originally written by Per Bothner.
52 Copyright 1992-2018 Free Software Foundation, Inc.
62 Copyright 1992-2022 Free Software Foundation, Inc.
5363
5464 This is free software; see the source for copying conditions. There is NO
5565 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
8393 exit 1
8494 fi
8595
86 trap 'exit 1' 1 2 15
96 # Just in case it came from the environment.
97 GUESS=
8798
8899 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
89100 # compiler to aid in system detection is discouraged as it requires
95106
96107 # Portable tmp directory creation inspired by the Autoconf team.
97108
98 set_cc_for_build='
99 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
100 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
101 : ${TMPDIR=/tmp} ;
102 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
103 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
104 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
105 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
106 dummy=$tmp/dummy ;
107 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
108 case $CC_FOR_BUILD,$HOST_CC,$CC in
109 ,,) echo "int x;" > "$dummy.c" ;
110 for c in cc gcc c89 c99 ; do
111 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
112 CC_FOR_BUILD="$c"; break ;
113 fi ;
114 done ;
115 if test x"$CC_FOR_BUILD" = x ; then
116 CC_FOR_BUILD=no_compiler_found ;
117 fi
118 ;;
119 ,,*) CC_FOR_BUILD=$CC ;;
120 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
121 esac ; set_cc_for_build= ;'
109 tmp=
110 # shellcheck disable=SC2172
111 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15
112
113 set_cc_for_build() {
114 # prevent multiple calls if $tmp is already set
115 test "$tmp" && return 0
116 : "${TMPDIR=/tmp}"
117 # shellcheck disable=SC2039,SC3028
118 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
119 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
120 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
121 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
122 dummy=$tmp/dummy
123 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
124 ,,) echo "int x;" > "$dummy.c"
125 for driver in cc gcc c89 c99 ; do
126 if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
127 CC_FOR_BUILD=$driver
128 break
129 fi
130 done
131 if test x"$CC_FOR_BUILD" = x ; then
132 CC_FOR_BUILD=no_compiler_found
133 fi
134 ;;
135 ,,*) CC_FOR_BUILD=$CC ;;
136 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
137 esac
138 }
122139
123140 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
124141 # (ghazi@noc.rutgers.edu 1994-08-24)
125 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
142 if test -f /.attbin/uname ; then
126143 PATH=$PATH:/.attbin ; export PATH
127144 fi
128145
129146 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
130147 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
131 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
148 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
132149 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
133150
134 case "$UNAME_SYSTEM" in
151 case $UNAME_SYSTEM in
135152 Linux|GNU|GNU/*)
136 # If the system lacks a compiler, then just pick glibc.
137 # We could probably try harder.
138 LIBC=gnu
139
140 eval "$set_cc_for_build"
153 LIBC=unknown
154
155 set_cc_for_build
141156 cat <<-EOF > "$dummy.c"
142157 #include <features.h>
143158 #if defined(__UCLIBC__)
144159 LIBC=uclibc
145160 #elif defined(__dietlibc__)
146161 LIBC=dietlibc
162 #elif defined(__GLIBC__)
163 LIBC=gnu
147164 #else
148 LIBC=gnu
165 #include <stdarg.h>
166 /* First heuristic to detect musl libc. */
167 #ifdef __DEFINED_va_list
168 LIBC=musl
169 #endif
149170 #endif
150171 EOF
151 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
152
153 # If ldd exists, use it to detect musl libc.
154 if command -v ldd >/dev/null && \
155 ldd --version 2>&1 | grep -q ^musl
156 then
157 LIBC=musl
172 cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
173 eval "$cc_set_libc"
174
175 # Second heuristic to detect musl libc.
176 if [ "$LIBC" = unknown ] &&
177 command -v ldd >/dev/null &&
178 ldd --version 2>&1 | grep -q ^musl; then
179 LIBC=musl
180 fi
181
182 # If the system lacks a compiler, then just pick glibc.
183 # We could probably try harder.
184 if [ "$LIBC" = unknown ]; then
185 LIBC=gnu
158186 fi
159187 ;;
160188 esac
161189
162190 # Note: order is significant - the case branches are not exclusive.
163191
164 case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
192 case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in
165193 *:NetBSD:*:*)
166194 # NetBSD (nbsd) targets should (where applicable) match one or
167195 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
173201 #
174202 # Note: NetBSD doesn't particularly care about the vendor
175203 # portion of the name. We always set it to "unknown".
176 sysctl="sysctl -n hw.machine_arch"
177204 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
178 "/sbin/$sysctl" 2>/dev/null || \
179 "/usr/sbin/$sysctl" 2>/dev/null || \
205 /sbin/sysctl -n hw.machine_arch 2>/dev/null || \
206 /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \
180207 echo unknown)`
181 case "$UNAME_MACHINE_ARCH" in
208 case $UNAME_MACHINE_ARCH in
209 aarch64eb) machine=aarch64_be-unknown ;;
182210 armeb) machine=armeb-unknown ;;
183211 arm*) machine=arm-unknown ;;
184212 sh3el) machine=shl-unknown ;;
187215 earmv*)
188216 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
189217 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
190 machine="${arch}${endian}"-unknown
218 machine=${arch}${endian}-unknown
191219 ;;
192 *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
220 *) machine=$UNAME_MACHINE_ARCH-unknown ;;
193221 esac
194222 # The Operating System including object format, if it has switched
195223 # to ELF recently (or will in the future) and ABI.
196 case "$UNAME_MACHINE_ARCH" in
224 case $UNAME_MACHINE_ARCH in
197225 earm*)
198226 os=netbsdelf
199227 ;;
200228 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
201 eval "$set_cc_for_build"
229 set_cc_for_build
202230 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
203231 | grep -q __ELF__
204232 then
214242 ;;
215243 esac
216244 # Determine ABI tags.
217 case "$UNAME_MACHINE_ARCH" in
245 case $UNAME_MACHINE_ARCH in
218246 earm*)
219247 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
220248 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
225253 # thus, need a distinct triplet. However, they do not need
226254 # kernel version information, so it can be replaced with a
227255 # suitable tag, in the style of linux-gnu.
228 case "$UNAME_VERSION" in
256 case $UNAME_VERSION in
229257 Debian*)
230258 release='-gnu'
231259 ;;
236264 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
237265 # contains redundant information, the shorter form:
238266 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
239 echo "$machine-${os}${release}${abi}"
240 exit ;;
267 GUESS=$machine-${os}${release}${abi-}
268 ;;
241269 *:Bitrig:*:*)
242270 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
243 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
244 exit ;;
271 GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE
272 ;;
245273 *:OpenBSD:*:*)
246274 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
247 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
248 exit ;;
275 GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE
276 ;;
277 *:SecBSD:*:*)
278 UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'`
279 GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE
280 ;;
249281 *:LibertyBSD:*:*)
250282 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
251 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
252 exit ;;
283 GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE
284 ;;
253285 *:MidnightBSD:*:*)
254 echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
255 exit ;;
286 GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE
287 ;;
256288 *:ekkoBSD:*:*)
257 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
258 exit ;;
289 GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE
290 ;;
259291 *:SolidBSD:*:*)
260 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
261 exit ;;
292 GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE
293 ;;
294 *:OS108:*:*)
295 GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE
296 ;;
262297 macppc:MirBSD:*:*)
263 echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
264 exit ;;
298 GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE
299 ;;
265300 *:MirBSD:*:*)
266 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
267 exit ;;
301 GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE
302 ;;
268303 *:Sortix:*:*)
269 echo "$UNAME_MACHINE"-unknown-sortix
270 exit ;;
304 GUESS=$UNAME_MACHINE-unknown-sortix
305 ;;
306 *:Twizzler:*:*)
307 GUESS=$UNAME_MACHINE-unknown-twizzler
308 ;;
271309 *:Redox:*:*)
272 echo "$UNAME_MACHINE"-unknown-redox
273 exit ;;
310 GUESS=$UNAME_MACHINE-unknown-redox
311 ;;
274312 mips:OSF1:*.*)
275 echo mips-dec-osf1
276 exit ;;
313 GUESS=mips-dec-osf1
314 ;;
277315 alpha:OSF1:*:*)
316 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
317 trap '' 0
278318 case $UNAME_RELEASE in
279319 *4.0)
280320 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
288328 # covers most systems running today. This code pipes the CPU
289329 # types through head -n 1, so we only detect the type of CPU 0.
290330 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
291 case "$ALPHA_CPU_TYPE" in
331 case $ALPHA_CPU_TYPE in
292332 "EV4 (21064)")
293333 UNAME_MACHINE=alpha ;;
294334 "EV4.5 (21064)")
325365 # A Tn.n version is a released field test version.
326366 # A Xn.n version is an unreleased experimental baselevel.
327367 # 1.2 uses "1.2" for uname -r.
328 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
329 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
330 exitcode=$?
331 trap '' 0
332 exit $exitcode ;;
368 OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
369 GUESS=$UNAME_MACHINE-dec-osf$OSF_REL
370 ;;
333371 Amiga*:UNIX_System_V:4.0:*)
334 echo m68k-unknown-sysv4
335 exit ;;
372 GUESS=m68k-unknown-sysv4
373 ;;
336374 *:[Aa]miga[Oo][Ss]:*:*)
337 echo "$UNAME_MACHINE"-unknown-amigaos
338 exit ;;
375 GUESS=$UNAME_MACHINE-unknown-amigaos
376 ;;
339377 *:[Mm]orph[Oo][Ss]:*:*)
340 echo "$UNAME_MACHINE"-unknown-morphos
341 exit ;;
378 GUESS=$UNAME_MACHINE-unknown-morphos
379 ;;
342380 *:OS/390:*:*)
343 echo i370-ibm-openedition
344 exit ;;
381 GUESS=i370-ibm-openedition
382 ;;
345383 *:z/VM:*:*)
346 echo s390-ibm-zvmoe
347 exit ;;
384 GUESS=s390-ibm-zvmoe
385 ;;
348386 *:OS400:*:*)
349 echo powerpc-ibm-os400
350 exit ;;
387 GUESS=powerpc-ibm-os400
388 ;;
351389 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
352 echo arm-acorn-riscix"$UNAME_RELEASE"
353 exit ;;
390 GUESS=arm-acorn-riscix$UNAME_RELEASE
391 ;;
354392 arm*:riscos:*:*|arm*:RISCOS:*:*)
355 echo arm-unknown-riscos
356 exit ;;
393 GUESS=arm-unknown-riscos
394 ;;
357395 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
358 echo hppa1.1-hitachi-hiuxmpp
359 exit ;;
396 GUESS=hppa1.1-hitachi-hiuxmpp
397 ;;
360398 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
361399 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
362 if test "`(/bin/universe) 2>/dev/null`" = att ; then
363 echo pyramid-pyramid-sysv3
364 else
365 echo pyramid-pyramid-bsd
366 fi
367 exit ;;
400 case `(/bin/universe) 2>/dev/null` in
401 att) GUESS=pyramid-pyramid-sysv3 ;;
402 *) GUESS=pyramid-pyramid-bsd ;;
403 esac
404 ;;
368405 NILE*:*:*:dcosx)
369 echo pyramid-pyramid-svr4
370 exit ;;
406 GUESS=pyramid-pyramid-svr4
407 ;;
371408 DRS?6000:unix:4.0:6*)
372 echo sparc-icl-nx6
373 exit ;;
409 GUESS=sparc-icl-nx6
410 ;;
374411 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
375412 case `/usr/bin/uname -p` in
376 sparc) echo sparc-icl-nx7; exit ;;
377 esac ;;
413 sparc) GUESS=sparc-icl-nx7 ;;
414 esac
415 ;;
378416 s390x:SunOS:*:*)
379 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
380 exit ;;
417 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
418 GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL
419 ;;
381420 sun4H:SunOS:5.*:*)
382 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
383 exit ;;
421 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
422 GUESS=sparc-hal-solaris2$SUN_REL
423 ;;
384424 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
385 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
386 exit ;;
425 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
426 GUESS=sparc-sun-solaris2$SUN_REL
427 ;;
387428 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
388 echo i386-pc-auroraux"$UNAME_RELEASE"
389 exit ;;
429 GUESS=i386-pc-auroraux$UNAME_RELEASE
430 ;;
390431 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
391 eval "$set_cc_for_build"
432 set_cc_for_build
392433 SUN_ARCH=i386
393434 # If there is a compiler, see if it is configured for 64-bit objects.
394435 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
395436 # This test works for both compilers.
396 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
437 if test "$CC_FOR_BUILD" != no_compiler_found; then
397438 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
398 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
439 (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \
399440 grep IS_64BIT_ARCH >/dev/null
400441 then
401442 SUN_ARCH=x86_64
402443 fi
403444 fi
404 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
405 exit ;;
445 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
446 GUESS=$SUN_ARCH-pc-solaris2$SUN_REL
447 ;;
406448 sun4*:SunOS:6*:*)
407449 # According to config.sub, this is the proper way to canonicalize
408450 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
409451 # it's likely to be more like Solaris than SunOS4.
410 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
411 exit ;;
452 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
453 GUESS=sparc-sun-solaris3$SUN_REL
454 ;;
412455 sun4*:SunOS:*:*)
413 case "`/usr/bin/arch -k`" in
456 case `/usr/bin/arch -k` in
414457 Series*|S4*)
415458 UNAME_RELEASE=`uname -v`
416459 ;;
417460 esac
418461 # Japanese Language versions have a version number like `4.1.3-JL'.
419 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
420 exit ;;
462 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'`
463 GUESS=sparc-sun-sunos$SUN_REL
464 ;;
421465 sun3*:SunOS:*:*)
422 echo m68k-sun-sunos"$UNAME_RELEASE"
423 exit ;;
466 GUESS=m68k-sun-sunos$UNAME_RELEASE
467 ;;
424468 sun*:*:4.2BSD:*)
425469 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
426470 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
427 case "`/bin/arch`" in
471 case `/bin/arch` in
428472 sun3)
429 echo m68k-sun-sunos"$UNAME_RELEASE"
473 GUESS=m68k-sun-sunos$UNAME_RELEASE
430474 ;;
431475 sun4)
432 echo sparc-sun-sunos"$UNAME_RELEASE"
476 GUESS=sparc-sun-sunos$UNAME_RELEASE
433477 ;;
434478 esac
435 exit ;;
479 ;;
436480 aushp:SunOS:*:*)
437 echo sparc-auspex-sunos"$UNAME_RELEASE"
438 exit ;;
481 GUESS=sparc-auspex-sunos$UNAME_RELEASE
482 ;;
439483 # The situation for MiNT is a little confusing. The machine name
440484 # can be virtually everything (everything which is not
441485 # "atarist" or "atariste" at least should have a processor
445489 # MiNT. But MiNT is downward compatible to TOS, so this should
446490 # be no problem.
447491 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
448 echo m68k-atari-mint"$UNAME_RELEASE"
449 exit ;;
492 GUESS=m68k-atari-mint$UNAME_RELEASE
493 ;;
450494 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
451 echo m68k-atari-mint"$UNAME_RELEASE"
452 exit ;;
495 GUESS=m68k-atari-mint$UNAME_RELEASE
496 ;;
453497 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
454 echo m68k-atari-mint"$UNAME_RELEASE"
455 exit ;;
498 GUESS=m68k-atari-mint$UNAME_RELEASE
499 ;;
456500 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
457 echo m68k-milan-mint"$UNAME_RELEASE"
458 exit ;;
501 GUESS=m68k-milan-mint$UNAME_RELEASE
502 ;;
459503 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
460 echo m68k-hades-mint"$UNAME_RELEASE"
461 exit ;;
504 GUESS=m68k-hades-mint$UNAME_RELEASE
505 ;;
462506 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
463 echo m68k-unknown-mint"$UNAME_RELEASE"
464 exit ;;
507 GUESS=m68k-unknown-mint$UNAME_RELEASE
508 ;;
465509 m68k:machten:*:*)
466 echo m68k-apple-machten"$UNAME_RELEASE"
467 exit ;;
510 GUESS=m68k-apple-machten$UNAME_RELEASE
511 ;;
468512 powerpc:machten:*:*)
469 echo powerpc-apple-machten"$UNAME_RELEASE"
470 exit ;;
513 GUESS=powerpc-apple-machten$UNAME_RELEASE
514 ;;
471515 RISC*:Mach:*:*)
472 echo mips-dec-mach_bsd4.3
473 exit ;;
516 GUESS=mips-dec-mach_bsd4.3
517 ;;
474518 RISC*:ULTRIX:*:*)
475 echo mips-dec-ultrix"$UNAME_RELEASE"
476 exit ;;
519 GUESS=mips-dec-ultrix$UNAME_RELEASE
520 ;;
477521 VAX*:ULTRIX*:*:*)
478 echo vax-dec-ultrix"$UNAME_RELEASE"
479 exit ;;
522 GUESS=vax-dec-ultrix$UNAME_RELEASE
523 ;;
480524 2020:CLIX:*:* | 2430:CLIX:*:*)
481 echo clipper-intergraph-clix"$UNAME_RELEASE"
482 exit ;;
525 GUESS=clipper-intergraph-clix$UNAME_RELEASE
526 ;;
483527 mips:*:*:UMIPS | mips:*:*:RISCos)
484 eval "$set_cc_for_build"
528 set_cc_for_build
485529 sed 's/^ //' << EOF > "$dummy.c"
486530 #ifdef __cplusplus
487531 #include <stdio.h> /* for printf() prototype */
507551 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
508552 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
509553 { echo "$SYSTEM_NAME"; exit; }
510 echo mips-mips-riscos"$UNAME_RELEASE"
511 exit ;;
554 GUESS=mips-mips-riscos$UNAME_RELEASE
555 ;;
512556 Motorola:PowerMAX_OS:*:*)
513 echo powerpc-motorola-powermax
514 exit ;;
557 GUESS=powerpc-motorola-powermax
558 ;;
515559 Motorola:*:4.3:PL8-*)
516 echo powerpc-harris-powermax
517 exit ;;
560 GUESS=powerpc-harris-powermax
561 ;;
518562 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
519 echo powerpc-harris-powermax
520 exit ;;
563 GUESS=powerpc-harris-powermax
564 ;;
521565 Night_Hawk:Power_UNIX:*:*)
522 echo powerpc-harris-powerunix
523 exit ;;
566 GUESS=powerpc-harris-powerunix
567 ;;
524568 m88k:CX/UX:7*:*)
525 echo m88k-harris-cxux7
526 exit ;;
569 GUESS=m88k-harris-cxux7
570 ;;
527571 m88k:*:4*:R4*)
528 echo m88k-motorola-sysv4
529 exit ;;
572 GUESS=m88k-motorola-sysv4
573 ;;
530574 m88k:*:3*:R3*)
531 echo m88k-motorola-sysv3
532 exit ;;
575 GUESS=m88k-motorola-sysv3
576 ;;
533577 AViiON:dgux:*:*)
534578 # DG/UX returns AViiON for all architectures
535579 UNAME_PROCESSOR=`/usr/bin/uname -p`
536 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
580 if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110
537581 then
538 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
539 [ "$TARGET_BINARY_INTERFACE"x = x ]
582 if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \
583 test "$TARGET_BINARY_INTERFACE"x = x
540584 then
541 echo m88k-dg-dgux"$UNAME_RELEASE"
585 GUESS=m88k-dg-dgux$UNAME_RELEASE
542586 else
543 echo m88k-dg-dguxbcs"$UNAME_RELEASE"
587 GUESS=m88k-dg-dguxbcs$UNAME_RELEASE
544588 fi
545589 else
546 echo i586-dg-dgux"$UNAME_RELEASE"
547 fi
548 exit ;;
590 GUESS=i586-dg-dgux$UNAME_RELEASE
591 fi
592 ;;
549593 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
550 echo m88k-dolphin-sysv3
551 exit ;;
594 GUESS=m88k-dolphin-sysv3
595 ;;
552596 M88*:*:R3*:*)
553597 # Delta 88k system running SVR3
554 echo m88k-motorola-sysv3
555 exit ;;
598 GUESS=m88k-motorola-sysv3
599 ;;
556600 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
557 echo m88k-tektronix-sysv3
558 exit ;;
601 GUESS=m88k-tektronix-sysv3
602 ;;
559603 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
560 echo m68k-tektronix-bsd
561 exit ;;
604 GUESS=m68k-tektronix-bsd
605 ;;
562606 *:IRIX*:*:*)
563 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
564 exit ;;
607 IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'`
608 GUESS=mips-sgi-irix$IRIX_REL
609 ;;
565610 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
566 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
567 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
611 GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id
612 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
568613 i*86:AIX:*:*)
569 echo i386-ibm-aix
570 exit ;;
614 GUESS=i386-ibm-aix
615 ;;
571616 ia64:AIX:*:*)
572 if [ -x /usr/bin/oslevel ] ; then
617 if test -x /usr/bin/oslevel ; then
573618 IBM_REV=`/usr/bin/oslevel`
574619 else
575 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
576 fi
577 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
578 exit ;;
620 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
621 fi
622 GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV
623 ;;
579624 *:AIX:2:3)
580625 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
581 eval "$set_cc_for_build"
626 set_cc_for_build
582627 sed 's/^ //' << EOF > "$dummy.c"
583628 #include <sys/systemcfg.h>
584629
592637 EOF
593638 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
594639 then
595 echo "$SYSTEM_NAME"
640 GUESS=$SYSTEM_NAME
596641 else
597 echo rs6000-ibm-aix3.2.5
642 GUESS=rs6000-ibm-aix3.2.5
598643 fi
599644 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
600 echo rs6000-ibm-aix3.2.4
645 GUESS=rs6000-ibm-aix3.2.4
601646 else
602 echo rs6000-ibm-aix3.2
603 fi
604 exit ;;
647 GUESS=rs6000-ibm-aix3.2
648 fi
649 ;;
605650 *:AIX:*:[4567])
606651 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
607652 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
609654 else
610655 IBM_ARCH=powerpc
611656 fi
612 if [ -x /usr/bin/lslpp ] ; then
613 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
657 if test -x /usr/bin/lslpp ; then
658 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \
614659 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
615660 else
616 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
617 fi
618 echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
619 exit ;;
661 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
662 fi
663 GUESS=$IBM_ARCH-ibm-aix$IBM_REV
664 ;;
620665 *:AIX:*:*)
621 echo rs6000-ibm-aix
622 exit ;;
666 GUESS=rs6000-ibm-aix
667 ;;
623668 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
624 echo romp-ibm-bsd4.4
625 exit ;;
669 GUESS=romp-ibm-bsd4.4
670 ;;
626671 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
627 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to
628 exit ;; # report: romp-ibm BSD 4.3
672 GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to
673 ;; # report: romp-ibm BSD 4.3
629674 *:BOSX:*:*)
630 echo rs6000-bull-bosx
631 exit ;;
675 GUESS=rs6000-bull-bosx
676 ;;
632677 DPX/2?00:B.O.S.:*:*)
633 echo m68k-bull-sysv3
634 exit ;;
678 GUESS=m68k-bull-sysv3
679 ;;
635680 9000/[34]??:4.3bsd:1.*:*)
636 echo m68k-hp-bsd
637 exit ;;
681 GUESS=m68k-hp-bsd
682 ;;
638683 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
639 echo m68k-hp-bsd4.4
640 exit ;;
684 GUESS=m68k-hp-bsd4.4
685 ;;
641686 9000/[34678]??:HP-UX:*:*)
642 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
643 case "$UNAME_MACHINE" in
687 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
688 case $UNAME_MACHINE in
644689 9000/31?) HP_ARCH=m68000 ;;
645690 9000/[34]??) HP_ARCH=m68k ;;
646691 9000/[678][0-9][0-9])
647 if [ -x /usr/bin/getconf ]; then
692 if test -x /usr/bin/getconf; then
648693 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
649694 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
650 case "$sc_cpu_version" in
695 case $sc_cpu_version in
651696 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
652697 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
653698 532) # CPU_PA_RISC2_0
654 case "$sc_kernel_bits" in
699 case $sc_kernel_bits in
655700 32) HP_ARCH=hppa2.0n ;;
656701 64) HP_ARCH=hppa2.0w ;;
657702 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
658703 esac ;;
659704 esac
660705 fi
661 if [ "$HP_ARCH" = "" ]; then
662 eval "$set_cc_for_build"
706 if test "$HP_ARCH" = ""; then
707 set_cc_for_build
663708 sed 's/^ //' << EOF > "$dummy.c"
664709
665710 #define _HPUX_SOURCE
697742 test -z "$HP_ARCH" && HP_ARCH=hppa
698743 fi ;;
699744 esac
700 if [ "$HP_ARCH" = hppa2.0w ]
745 if test "$HP_ARCH" = hppa2.0w
701746 then
702 eval "$set_cc_for_build"
747 set_cc_for_build
703748
704749 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
705750 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
718763 HP_ARCH=hppa64
719764 fi
720765 fi
721 echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
722 exit ;;
766 GUESS=$HP_ARCH-hp-hpux$HPUX_REV
767 ;;
723768 ia64:HP-UX:*:*)
724 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
725 echo ia64-hp-hpux"$HPUX_REV"
726 exit ;;
769 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
770 GUESS=ia64-hp-hpux$HPUX_REV
771 ;;
727772 3050*:HI-UX:*:*)
728 eval "$set_cc_for_build"
773 set_cc_for_build
729774 sed 's/^ //' << EOF > "$dummy.c"
730775 #include <unistd.h>
731776 int
753798 EOF
754799 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
755800 { echo "$SYSTEM_NAME"; exit; }
756 echo unknown-hitachi-hiuxwe2
757 exit ;;
801 GUESS=unknown-hitachi-hiuxwe2
802 ;;
758803 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
759 echo hppa1.1-hp-bsd
760 exit ;;
804 GUESS=hppa1.1-hp-bsd
805 ;;
761806 9000/8??:4.3bsd:*:*)
762 echo hppa1.0-hp-bsd
763 exit ;;
807 GUESS=hppa1.0-hp-bsd
808 ;;
764809 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
765 echo hppa1.0-hp-mpeix
766 exit ;;
810 GUESS=hppa1.0-hp-mpeix
811 ;;
767812 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
768 echo hppa1.1-hp-osf
769 exit ;;
813 GUESS=hppa1.1-hp-osf
814 ;;
770815 hp8??:OSF1:*:*)
771 echo hppa1.0-hp-osf
772 exit ;;
816 GUESS=hppa1.0-hp-osf
817 ;;
773818 i*86:OSF1:*:*)
774 if [ -x /usr/sbin/sysversion ] ; then
775 echo "$UNAME_MACHINE"-unknown-osf1mk
819 if test -x /usr/sbin/sysversion ; then
820 GUESS=$UNAME_MACHINE-unknown-osf1mk
776821 else
777 echo "$UNAME_MACHINE"-unknown-osf1
778 fi
779 exit ;;
822 GUESS=$UNAME_MACHINE-unknown-osf1
823 fi
824 ;;
780825 parisc*:Lites*:*:*)
781 echo hppa1.1-hp-lites
782 exit ;;
826 GUESS=hppa1.1-hp-lites
827 ;;
783828 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
784 echo c1-convex-bsd
785 exit ;;
829 GUESS=c1-convex-bsd
830 ;;
786831 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
787832 if getsysinfo -f scalar_acc
788833 then echo c32-convex-bsd
790835 fi
791836 exit ;;
792837 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
793 echo c34-convex-bsd
794 exit ;;
838 GUESS=c34-convex-bsd
839 ;;
795840 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
796 echo c38-convex-bsd
797 exit ;;
841 GUESS=c38-convex-bsd
842 ;;
798843 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
799 echo c4-convex-bsd
800 exit ;;
844 GUESS=c4-convex-bsd
845 ;;
801846 CRAY*Y-MP:*:*:*)
802 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
803 exit ;;
847 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
848 GUESS=ymp-cray-unicos$CRAY_REL
849 ;;
804850 CRAY*[A-Z]90:*:*:*)
805851 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
806852 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
808854 -e 's/\.[^.]*$/.X/'
809855 exit ;;
810856 CRAY*TS:*:*:*)
811 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
812 exit ;;
857 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
858 GUESS=t90-cray-unicos$CRAY_REL
859 ;;
813860 CRAY*T3E:*:*:*)
814 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
815 exit ;;
861 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
862 GUESS=alphaev5-cray-unicosmk$CRAY_REL
863 ;;
816864 CRAY*SV1:*:*:*)
817 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
818 exit ;;
865 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
866 GUESS=sv1-cray-unicos$CRAY_REL
867 ;;
819868 *:UNICOS/mp:*:*)
820 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
821 exit ;;
869 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
870 GUESS=craynv-cray-unicosmp$CRAY_REL
871 ;;
822872 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
823873 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
824874 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
825875 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
826 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
827 exit ;;
876 GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
877 ;;
828878 5000:UNIX_System_V:4.*:*)
829879 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
830880 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
831 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
832 exit ;;
881 GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
882 ;;
833883 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
834 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
835 exit ;;
884 GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE
885 ;;
836886 sparc*:BSD/OS:*:*)
837 echo sparc-unknown-bsdi"$UNAME_RELEASE"
838 exit ;;
887 GUESS=sparc-unknown-bsdi$UNAME_RELEASE
888 ;;
839889 *:BSD/OS:*:*)
840 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
841 exit ;;
890 GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE
891 ;;
892 arm:FreeBSD:*:*)
893 UNAME_PROCESSOR=`uname -p`
894 set_cc_for_build
895 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
896 | grep -q __ARM_PCS_VFP
897 then
898 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
899 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi
900 else
901 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
902 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf
903 fi
904 ;;
842905 *:FreeBSD:*:*)
843906 UNAME_PROCESSOR=`/usr/bin/uname -p`
844 case "$UNAME_PROCESSOR" in
907 case $UNAME_PROCESSOR in
845908 amd64)
846909 UNAME_PROCESSOR=x86_64 ;;
847910 i386)
848911 UNAME_PROCESSOR=i586 ;;
849912 esac
850 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
851 exit ;;
913 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
914 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL
915 ;;
852916 i*:CYGWIN*:*)
853 echo "$UNAME_MACHINE"-pc-cygwin
854 exit ;;
917 GUESS=$UNAME_MACHINE-pc-cygwin
918 ;;
855919 *:MINGW64*:*)
856 echo "$UNAME_MACHINE"-pc-mingw64
857 exit ;;
920 GUESS=$UNAME_MACHINE-pc-mingw64
921 ;;
858922 *:MINGW*:*)
859 echo "$UNAME_MACHINE"-pc-mingw32
860 exit ;;
923 GUESS=$UNAME_MACHINE-pc-mingw32
924 ;;
861925 *:MSYS*:*)
862 echo "$UNAME_MACHINE"-pc-msys
863 exit ;;
926 GUESS=$UNAME_MACHINE-pc-msys
927 ;;
864928 i*:PW*:*)
865 echo "$UNAME_MACHINE"-pc-pw32
866 exit ;;
929 GUESS=$UNAME_MACHINE-pc-pw32
930 ;;
931 *:SerenityOS:*:*)
932 GUESS=$UNAME_MACHINE-pc-serenity
933 ;;
867934 *:Interix*:*)
868 case "$UNAME_MACHINE" in
935 case $UNAME_MACHINE in
869936 x86)
870 echo i586-pc-interix"$UNAME_RELEASE"
871 exit ;;
937 GUESS=i586-pc-interix$UNAME_RELEASE
938 ;;
872939 authenticamd | genuineintel | EM64T)
873 echo x86_64-unknown-interix"$UNAME_RELEASE"
874 exit ;;
940 GUESS=x86_64-unknown-interix$UNAME_RELEASE
941 ;;
875942 IA64)
876 echo ia64-unknown-interix"$UNAME_RELEASE"
877 exit ;;
943 GUESS=ia64-unknown-interix$UNAME_RELEASE
944 ;;
878945 esac ;;
879946 i*:UWIN*:*)
880 echo "$UNAME_MACHINE"-pc-uwin
881 exit ;;
947 GUESS=$UNAME_MACHINE-pc-uwin
948 ;;
882949 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
883 echo x86_64-unknown-cygwin
884 exit ;;
950 GUESS=x86_64-pc-cygwin
951 ;;
885952 prep*:SunOS:5.*:*)
886 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
887 exit ;;
953 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
954 GUESS=powerpcle-unknown-solaris2$SUN_REL
955 ;;
888956 *:GNU:*:*)
889957 # the GNU system
890 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
891 exit ;;
958 GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'`
959 GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'`
960 GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL
961 ;;
892962 *:GNU/*:*:*)
893963 # other systems with GNU libc and userland
894 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
895 exit ;;
896 i*86:Minix:*:*)
897 echo "$UNAME_MACHINE"-pc-minix
898 exit ;;
964 GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"`
965 GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
966 GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC
967 ;;
968 *:Minix:*:*)
969 GUESS=$UNAME_MACHINE-unknown-minix
970 ;;
899971 aarch64:Linux:*:*)
900 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
901 exit ;;
972 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
973 ;;
902974 aarch64_be:Linux:*:*)
903975 UNAME_MACHINE=aarch64_be
904 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
905 exit ;;
976 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
977 ;;
906978 alpha:Linux:*:*)
907 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
979 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in
908980 EV5) UNAME_MACHINE=alphaev5 ;;
909981 EV56) UNAME_MACHINE=alphaev56 ;;
910982 PCA56) UNAME_MACHINE=alphapca56 ;;
915987 esac
916988 objdump --private-headers /bin/sh | grep -q ld.so.1
917989 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
918 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
919 exit ;;
920 arc:Linux:*:* | arceb:Linux:*:*)
921 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
922 exit ;;
990 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
991 ;;
992 arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*)
993 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
994 ;;
923995 arm*:Linux:*:*)
924 eval "$set_cc_for_build"
996 set_cc_for_build
925997 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
926998 | grep -q __ARM_EABI__
927999 then
928 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1000 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
9291001 else
9301002 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
9311003 | grep -q __ARM_PCS_VFP
9321004 then
933 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
1005 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi
9341006 else
935 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
1007 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf
9361008 fi
9371009 fi
938 exit ;;
1010 ;;
9391011 avr32*:Linux:*:*)
940 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
941 exit ;;
1012 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1013 ;;
9421014 cris:Linux:*:*)
943 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
944 exit ;;
1015 GUESS=$UNAME_MACHINE-axis-linux-$LIBC
1016 ;;
9451017 crisv32:Linux:*:*)
946 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
947 exit ;;
1018 GUESS=$UNAME_MACHINE-axis-linux-$LIBC
1019 ;;
9481020 e2k:Linux:*:*)
949 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
950 exit ;;
1021 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1022 ;;
9511023 frv:Linux:*:*)
952 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
953 exit ;;
1024 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1025 ;;
9541026 hexagon:Linux:*:*)
955 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
956 exit ;;
1027 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1028 ;;
9571029 i*86:Linux:*:*)
958 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
959 exit ;;
1030 GUESS=$UNAME_MACHINE-pc-linux-$LIBC
1031 ;;
9601032 ia64:Linux:*:*)
961 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
962 exit ;;
1033 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1034 ;;
9631035 k1om:Linux:*:*)
964 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
965 exit ;;
1036 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1037 ;;
1038 loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*)
1039 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1040 ;;
9661041 m32r*:Linux:*:*)
967 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
968 exit ;;
1042 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1043 ;;
9691044 m68*:Linux:*:*)
970 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
971 exit ;;
1045 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1046 ;;
9721047 mips:Linux:*:* | mips64:Linux:*:*)
973 eval "$set_cc_for_build"
1048 set_cc_for_build
1049 IS_GLIBC=0
1050 test x"${LIBC}" = xgnu && IS_GLIBC=1
9741051 sed 's/^ //' << EOF > "$dummy.c"
9751052 #undef CPU
976 #undef ${UNAME_MACHINE}
977 #undef ${UNAME_MACHINE}el
1053 #undef mips
1054 #undef mipsel
1055 #undef mips64
1056 #undef mips64el
1057 #if ${IS_GLIBC} && defined(_ABI64)
1058 LIBCABI=gnuabi64
1059 #else
1060 #if ${IS_GLIBC} && defined(_ABIN32)
1061 LIBCABI=gnuabin32
1062 #else
1063 LIBCABI=${LIBC}
1064 #endif
1065 #endif
1066
1067 #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
1068 CPU=mipsisa64r6
1069 #else
1070 #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
1071 CPU=mipsisa32r6
1072 #else
1073 #if defined(__mips64)
1074 CPU=mips64
1075 #else
1076 CPU=mips
1077 #endif
1078 #endif
1079 #endif
1080
9781081 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
979 CPU=${UNAME_MACHINE}el
1082 MIPS_ENDIAN=el
9801083 #else
9811084 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
982 CPU=${UNAME_MACHINE}
1085 MIPS_ENDIAN=
9831086 #else
984 CPU=
1087 MIPS_ENDIAN=
9851088 #endif
9861089 #endif
9871090 EOF
988 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
989 test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
1091 cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`
1092 eval "$cc_set_vars"
1093 test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; }
9901094 ;;
9911095 mips64el:Linux:*:*)
992 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
993 exit ;;
1096 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1097 ;;
9941098 openrisc*:Linux:*:*)
995 echo or1k-unknown-linux-"$LIBC"
996 exit ;;
1099 GUESS=or1k-unknown-linux-$LIBC
1100 ;;
9971101 or32:Linux:*:* | or1k*:Linux:*:*)
998 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
999 exit ;;
1102 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1103 ;;
10001104 padre:Linux:*:*)
1001 echo sparc-unknown-linux-"$LIBC"
1002 exit ;;
1105 GUESS=sparc-unknown-linux-$LIBC
1106 ;;
10031107 parisc64:Linux:*:* | hppa64:Linux:*:*)
1004 echo hppa64-unknown-linux-"$LIBC"
1005 exit ;;
1108 GUESS=hppa64-unknown-linux-$LIBC
1109 ;;
10061110 parisc:Linux:*:* | hppa:Linux:*:*)
10071111 # Look for CPU level
10081112 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1009 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
1010 PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
1011 *) echo hppa-unknown-linux-"$LIBC" ;;
1113 PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;;
1114 PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;;
1115 *) GUESS=hppa-unknown-linux-$LIBC ;;
10121116 esac
1013 exit ;;
1117 ;;
10141118 ppc64:Linux:*:*)
1015 echo powerpc64-unknown-linux-"$LIBC"
1016 exit ;;
1119 GUESS=powerpc64-unknown-linux-$LIBC
1120 ;;
10171121 ppc:Linux:*:*)
1018 echo powerpc-unknown-linux-"$LIBC"
1019 exit ;;
1122 GUESS=powerpc-unknown-linux-$LIBC
1123 ;;
10201124 ppc64le:Linux:*:*)
1021 echo powerpc64le-unknown-linux-"$LIBC"
1022 exit ;;
1125 GUESS=powerpc64le-unknown-linux-$LIBC
1126 ;;
10231127 ppcle:Linux:*:*)
1024 echo powerpcle-unknown-linux-"$LIBC"
1025 exit ;;
1026 riscv32:Linux:*:* | riscv64:Linux:*:*)
1027 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1028 exit ;;
1128 GUESS=powerpcle-unknown-linux-$LIBC
1129 ;;
1130 riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*)
1131 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1132 ;;
10291133 s390:Linux:*:* | s390x:Linux:*:*)
1030 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
1031 exit ;;
1134 GUESS=$UNAME_MACHINE-ibm-linux-$LIBC
1135 ;;
10321136 sh64*:Linux:*:*)
1033 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1034 exit ;;
1137 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1138 ;;
10351139 sh*:Linux:*:*)
1036 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1037 exit ;;
1140 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1141 ;;
10381142 sparc:Linux:*:* | sparc64:Linux:*:*)
1039 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1040 exit ;;
1143 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1144 ;;
10411145 tile*:Linux:*:*)
1042 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1043 exit ;;
1146 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1147 ;;
10441148 vax:Linux:*:*)
1045 echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
1046 exit ;;
1149 GUESS=$UNAME_MACHINE-dec-linux-$LIBC
1150 ;;
10471151 x86_64:Linux:*:*)
1048 if objdump -f /bin/sh | grep -q elf32-x86-64; then
1049 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32
1050 else
1051 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
1052 fi
1053 exit ;;
1152 set_cc_for_build
1153 LIBCABI=$LIBC
1154 if test "$CC_FOR_BUILD" != no_compiler_found; then
1155 if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \
1156 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1157 grep IS_X32 >/dev/null
1158 then
1159 LIBCABI=${LIBC}x32
1160 fi
1161 fi
1162 GUESS=$UNAME_MACHINE-pc-linux-$LIBCABI
1163 ;;
10541164 xtensa*:Linux:*:*)
1055 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1056 exit ;;
1165 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1166 ;;
10571167 i*86:DYNIX/ptx:4*:*)
10581168 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
10591169 # earlier versions are messed up and put the nodename in both
10601170 # sysname and nodename.
1061 echo i386-sequent-sysv4
1062 exit ;;
1171 GUESS=i386-sequent-sysv4
1172 ;;
10631173 i*86:UNIX_SV:4.2MP:2.*)
10641174 # Unixware is an offshoot of SVR4, but it has its own version
10651175 # number series starting with 2...
10661176 # I am not positive that other SVR4 systems won't match this,
10671177 # I just have to hope. -- rms.
10681178 # Use sysv4.2uw... so that sysv4* matches it.
1069 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
1070 exit ;;
1179 GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION
1180 ;;
10711181 i*86:OS/2:*:*)
10721182 # If we were able to find `uname', then EMX Unix compatibility
10731183 # is probably installed.
1074 echo "$UNAME_MACHINE"-pc-os2-emx
1075 exit ;;
1184 GUESS=$UNAME_MACHINE-pc-os2-emx
1185 ;;
10761186 i*86:XTS-300:*:STOP)
1077 echo "$UNAME_MACHINE"-unknown-stop
1078 exit ;;
1187 GUESS=$UNAME_MACHINE-unknown-stop
1188 ;;
10791189 i*86:atheos:*:*)
1080 echo "$UNAME_MACHINE"-unknown-atheos
1081 exit ;;
1190 GUESS=$UNAME_MACHINE-unknown-atheos
1191 ;;
10821192 i*86:syllable:*:*)
1083 echo "$UNAME_MACHINE"-pc-syllable
1084 exit ;;
1193 GUESS=$UNAME_MACHINE-pc-syllable
1194 ;;
10851195 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1086 echo i386-unknown-lynxos"$UNAME_RELEASE"
1087 exit ;;
1196 GUESS=i386-unknown-lynxos$UNAME_RELEASE
1197 ;;
10881198 i*86:*DOS:*:*)
1089 echo "$UNAME_MACHINE"-pc-msdosdjgpp
1090 exit ;;
1199 GUESS=$UNAME_MACHINE-pc-msdosdjgpp
1200 ;;
10911201 i*86:*:4.*:*)
10921202 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
10931203 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1094 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
1204 GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL
10951205 else
1096 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
1097 fi
1098 exit ;;
1206 GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL
1207 fi
1208 ;;
10991209 i*86:*:5:[678]*)
11001210 # UnixWare 7.x, OpenUNIX and OpenServer 6.
11011211 case `/bin/uname -X | grep "^Machine"` in
11031213 *Pentium) UNAME_MACHINE=i586 ;;
11041214 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
11051215 esac
1106 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
1107 exit ;;
1216 GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1217 ;;
11081218 i*86:*:3.2:*)
11091219 if test -f /usr/options/cb.name; then
11101220 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1111 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
1221 GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL
11121222 elif /bin/uname -X 2>/dev/null >/dev/null ; then
11131223 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
11141224 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
11181228 && UNAME_MACHINE=i686
11191229 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
11201230 && UNAME_MACHINE=i686
1121 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
1231 GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL
11221232 else
1123 echo "$UNAME_MACHINE"-pc-sysv32
1124 fi
1125 exit ;;
1233 GUESS=$UNAME_MACHINE-pc-sysv32
1234 fi
1235 ;;
11261236 pc:*:*:*)
11271237 # Left here for compatibility:
11281238 # uname -m prints for DJGPP always 'pc', but it prints nothing about
11301240 # Note: whatever this is, it MUST be the same as what config.sub
11311241 # prints for the "djgpp" host, or else GDB configure will decide that
11321242 # this is a cross-build.
1133 echo i586-pc-msdosdjgpp
1134 exit ;;
1243 GUESS=i586-pc-msdosdjgpp
1244 ;;
11351245 Intel:Mach:3*:*)
1136 echo i386-pc-mach3
1137 exit ;;
1246 GUESS=i386-pc-mach3
1247 ;;
11381248 paragon:*:*:*)
1139 echo i860-intel-osf1
1140 exit ;;
1249 GUESS=i860-intel-osf1
1250 ;;
11411251 i860:*:4.*:*) # i860-SVR4
11421252 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1143 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
1253 GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4
11441254 else # Add other i860-SVR4 vendors below as they are discovered.
1145 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4
1146 fi
1147 exit ;;
1255 GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4
1256 fi
1257 ;;
11481258 mini*:CTIX:SYS*5:*)
11491259 # "miniframe"
1150 echo m68010-convergent-sysv
1151 exit ;;
1260 GUESS=m68010-convergent-sysv
1261 ;;
11521262 mc68k:UNIX:SYSTEM5:3.51m)
1153 echo m68k-convergent-sysv
1154 exit ;;
1263 GUESS=m68k-convergent-sysv
1264 ;;
11551265 M680?0:D-NIX:5.3:*)
1156 echo m68k-diab-dnix
1157 exit ;;
1266 GUESS=m68k-diab-dnix
1267 ;;
11581268 M68*:*:R3V[5678]*:*)
11591269 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
11601270 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
11791289 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
11801290 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11811291 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1182 echo m68k-unknown-lynxos"$UNAME_RELEASE"
1183 exit ;;
1292 GUESS=m68k-unknown-lynxos$UNAME_RELEASE
1293 ;;
11841294 mc68030:UNIX_System_V:4.*:*)
1185 echo m68k-atari-sysv4
1186 exit ;;
1295 GUESS=m68k-atari-sysv4
1296 ;;
11871297 TSUNAMI:LynxOS:2.*:*)
1188 echo sparc-unknown-lynxos"$UNAME_RELEASE"
1189 exit ;;
1298 GUESS=sparc-unknown-lynxos$UNAME_RELEASE
1299 ;;
11901300 rs6000:LynxOS:2.*:*)
1191 echo rs6000-unknown-lynxos"$UNAME_RELEASE"
1192 exit ;;
1301 GUESS=rs6000-unknown-lynxos$UNAME_RELEASE
1302 ;;
11931303 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1194 echo powerpc-unknown-lynxos"$UNAME_RELEASE"
1195 exit ;;
1304 GUESS=powerpc-unknown-lynxos$UNAME_RELEASE
1305 ;;
11961306 SM[BE]S:UNIX_SV:*:*)
1197 echo mips-dde-sysv"$UNAME_RELEASE"
1198 exit ;;
1307 GUESS=mips-dde-sysv$UNAME_RELEASE
1308 ;;
11991309 RM*:ReliantUNIX-*:*:*)
1200 echo mips-sni-sysv4
1201 exit ;;
1310 GUESS=mips-sni-sysv4
1311 ;;
12021312 RM*:SINIX-*:*:*)
1203 echo mips-sni-sysv4
1204 exit ;;
1313 GUESS=mips-sni-sysv4
1314 ;;
12051315 *:SINIX-*:*:*)
12061316 if uname -p 2>/dev/null >/dev/null ; then
12071317 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1208 echo "$UNAME_MACHINE"-sni-sysv4
1318 GUESS=$UNAME_MACHINE-sni-sysv4
12091319 else
1210 echo ns32k-sni-sysv
1211 fi
1212 exit ;;
1320 GUESS=ns32k-sni-sysv
1321 fi
1322 ;;
12131323 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
12141324 # says <Richard.M.Bartel@ccMail.Census.GOV>
1215 echo i586-unisys-sysv4
1216 exit ;;
1325 GUESS=i586-unisys-sysv4
1326 ;;
12171327 *:UNIX_System_V:4*:FTX*)
12181328 # From Gerald Hewes <hewes@openmarket.com>.
12191329 # How about differentiating between stratus architectures? -djm
1220 echo hppa1.1-stratus-sysv4
1221 exit ;;
1330 GUESS=hppa1.1-stratus-sysv4
1331 ;;
12221332 *:*:*:FTX*)
12231333 # From seanf@swdc.stratus.com.
1224 echo i860-stratus-sysv4
1225 exit ;;
1334 GUESS=i860-stratus-sysv4
1335 ;;
12261336 i*86:VOS:*:*)
12271337 # From Paul.Green@stratus.com.
1228 echo "$UNAME_MACHINE"-stratus-vos
1229 exit ;;
1338 GUESS=$UNAME_MACHINE-stratus-vos
1339 ;;
12301340 *:VOS:*:*)
12311341 # From Paul.Green@stratus.com.
1232 echo hppa1.1-stratus-vos
1233 exit ;;
1342 GUESS=hppa1.1-stratus-vos
1343 ;;
12341344 mc68*:A/UX:*:*)
1235 echo m68k-apple-aux"$UNAME_RELEASE"
1236 exit ;;
1345 GUESS=m68k-apple-aux$UNAME_RELEASE
1346 ;;
12371347 news*:NEWS-OS:6*:*)
1238 echo mips-sony-newsos6
1239 exit ;;
1348 GUESS=mips-sony-newsos6
1349 ;;
12401350 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1241 if [ -d /usr/nec ]; then
1242 echo mips-nec-sysv"$UNAME_RELEASE"
1351 if test -d /usr/nec; then
1352 GUESS=mips-nec-sysv$UNAME_RELEASE
12431353 else
1244 echo mips-unknown-sysv"$UNAME_RELEASE"
1245 fi
1246 exit ;;
1354 GUESS=mips-unknown-sysv$UNAME_RELEASE
1355 fi
1356 ;;
12471357 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1248 echo powerpc-be-beos
1249 exit ;;
1358 GUESS=powerpc-be-beos
1359 ;;
12501360 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1251 echo powerpc-apple-beos
1252 exit ;;
1361 GUESS=powerpc-apple-beos
1362 ;;
12531363 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1254 echo i586-pc-beos
1255 exit ;;
1364 GUESS=i586-pc-beos
1365 ;;
12561366 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1257 echo i586-pc-haiku
1258 exit ;;
1367 GUESS=i586-pc-haiku
1368 ;;
12591369 x86_64:Haiku:*:*)
1260 echo x86_64-unknown-haiku
1261 exit ;;
1370 GUESS=x86_64-unknown-haiku
1371 ;;
12621372 SX-4:SUPER-UX:*:*)
1263 echo sx4-nec-superux"$UNAME_RELEASE"
1264 exit ;;
1373 GUESS=sx4-nec-superux$UNAME_RELEASE
1374 ;;
12651375 SX-5:SUPER-UX:*:*)
1266 echo sx5-nec-superux"$UNAME_RELEASE"
1267 exit ;;
1376 GUESS=sx5-nec-superux$UNAME_RELEASE
1377 ;;
12681378 SX-6:SUPER-UX:*:*)
1269 echo sx6-nec-superux"$UNAME_RELEASE"
1270 exit ;;
1379 GUESS=sx6-nec-superux$UNAME_RELEASE
1380 ;;
12711381 SX-7:SUPER-UX:*:*)
1272 echo sx7-nec-superux"$UNAME_RELEASE"
1273 exit ;;
1382 GUESS=sx7-nec-superux$UNAME_RELEASE
1383 ;;
12741384 SX-8:SUPER-UX:*:*)
1275 echo sx8-nec-superux"$UNAME_RELEASE"
1276 exit ;;
1385 GUESS=sx8-nec-superux$UNAME_RELEASE
1386 ;;
12771387 SX-8R:SUPER-UX:*:*)
1278 echo sx8r-nec-superux"$UNAME_RELEASE"
1279 exit ;;
1388 GUESS=sx8r-nec-superux$UNAME_RELEASE
1389 ;;
12801390 SX-ACE:SUPER-UX:*:*)
1281 echo sxace-nec-superux"$UNAME_RELEASE"
1282 exit ;;
1391 GUESS=sxace-nec-superux$UNAME_RELEASE
1392 ;;
12831393 Power*:Rhapsody:*:*)
1284 echo powerpc-apple-rhapsody"$UNAME_RELEASE"
1285 exit ;;
1394 GUESS=powerpc-apple-rhapsody$UNAME_RELEASE
1395 ;;
12861396 *:Rhapsody:*:*)
1287 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
1288 exit ;;
1397 GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE
1398 ;;
1399 arm64:Darwin:*:*)
1400 GUESS=aarch64-apple-darwin$UNAME_RELEASE
1401 ;;
12891402 *:Darwin:*:*)
1290 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1291 eval "$set_cc_for_build"
1292 if test "$UNAME_PROCESSOR" = unknown ; then
1293 UNAME_PROCESSOR=powerpc
1294 fi
1295 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
1296 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
1297 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1298 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1299 grep IS_64BIT_ARCH >/dev/null
1300 then
1301 case $UNAME_PROCESSOR in
1302 i386) UNAME_PROCESSOR=x86_64 ;;
1303 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1304 esac
1305 fi
1306 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1307 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1308 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1309 grep IS_PPC >/dev/null
1310 then
1311 UNAME_PROCESSOR=powerpc
1312 fi
1403 UNAME_PROCESSOR=`uname -p`
1404 case $UNAME_PROCESSOR in
1405 unknown) UNAME_PROCESSOR=powerpc ;;
1406 esac
1407 if command -v xcode-select > /dev/null 2> /dev/null && \
1408 ! xcode-select --print-path > /dev/null 2> /dev/null ; then
1409 # Avoid executing cc if there is no toolchain installed as
1410 # cc will be a stub that puts up a graphical alert
1411 # prompting the user to install developer tools.
1412 CC_FOR_BUILD=no_compiler_found
1413 else
1414 set_cc_for_build
1415 fi
1416 if test "$CC_FOR_BUILD" != no_compiler_found; then
1417 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1418 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1419 grep IS_64BIT_ARCH >/dev/null
1420 then
1421 case $UNAME_PROCESSOR in
1422 i386) UNAME_PROCESSOR=x86_64 ;;
1423 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1424 esac
1425 fi
1426 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1427 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1428 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1429 grep IS_PPC >/dev/null
1430 then
1431 UNAME_PROCESSOR=powerpc
13131432 fi
13141433 elif test "$UNAME_PROCESSOR" = i386 ; then
1315 # Avoid executing cc on OS X 10.9, as it ships with a stub
1316 # that puts up a graphical alert prompting to install
1317 # developer tools. Any system running Mac OS X 10.7 or
1318 # later (Darwin 11 and later) is required to have a 64-bit
1319 # processor. This is not true of the ARM version of Darwin
1320 # that Apple uses in portable devices.
1321 UNAME_PROCESSOR=x86_64
1322 fi
1323 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
1324 exit ;;
1434 # uname -m returns i386 or x86_64
1435 UNAME_PROCESSOR=$UNAME_MACHINE
1436 fi
1437 GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE
1438 ;;
13251439 *:procnto*:*:* | *:QNX:[0123456789]*:*)
13261440 UNAME_PROCESSOR=`uname -p`
13271441 if test "$UNAME_PROCESSOR" = x86; then
13281442 UNAME_PROCESSOR=i386
13291443 UNAME_MACHINE=pc
13301444 fi
1331 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
1332 exit ;;
1445 GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE
1446 ;;
13331447 *:QNX:*:4*)
1334 echo i386-pc-qnx
1335 exit ;;
1448 GUESS=i386-pc-qnx
1449 ;;
13361450 NEO-*:NONSTOP_KERNEL:*:*)
1337 echo neo-tandem-nsk"$UNAME_RELEASE"
1338 exit ;;
1451 GUESS=neo-tandem-nsk$UNAME_RELEASE
1452 ;;
13391453 NSE-*:NONSTOP_KERNEL:*:*)
1340 echo nse-tandem-nsk"$UNAME_RELEASE"
1341 exit ;;
1454 GUESS=nse-tandem-nsk$UNAME_RELEASE
1455 ;;
13421456 NSR-*:NONSTOP_KERNEL:*:*)
1343 echo nsr-tandem-nsk"$UNAME_RELEASE"
1344 exit ;;
1457 GUESS=nsr-tandem-nsk$UNAME_RELEASE
1458 ;;
13451459 NSV-*:NONSTOP_KERNEL:*:*)
1346 echo nsv-tandem-nsk"$UNAME_RELEASE"
1347 exit ;;
1460 GUESS=nsv-tandem-nsk$UNAME_RELEASE
1461 ;;
13481462 NSX-*:NONSTOP_KERNEL:*:*)
1349 echo nsx-tandem-nsk"$UNAME_RELEASE"
1350 exit ;;
1463 GUESS=nsx-tandem-nsk$UNAME_RELEASE
1464 ;;
13511465 *:NonStop-UX:*:*)
1352 echo mips-compaq-nonstopux
1353 exit ;;
1466 GUESS=mips-compaq-nonstopux
1467 ;;
13541468 BS2000:POSIX*:*:*)
1355 echo bs2000-siemens-sysv
1356 exit ;;
1469 GUESS=bs2000-siemens-sysv
1470 ;;
13571471 DS/*:UNIX_System_V:*:*)
1358 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
1359 exit ;;
1472 GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE
1473 ;;
13601474 *:Plan9:*:*)
13611475 # "uname -m" is not consistent, so use $cputype instead. 386
13621476 # is converted to i386 for consistency with other x86
13631477 # operating systems.
1364 if test "$cputype" = 386; then
1478 if test "${cputype-}" = 386; then
13651479 UNAME_MACHINE=i386
1366 else
1367 UNAME_MACHINE="$cputype"
1368 fi
1369 echo "$UNAME_MACHINE"-unknown-plan9
1370 exit ;;
1480 elif test "x${cputype-}" != x; then
1481 UNAME_MACHINE=$cputype
1482 fi
1483 GUESS=$UNAME_MACHINE-unknown-plan9
1484 ;;
13711485 *:TOPS-10:*:*)
1372 echo pdp10-unknown-tops10
1373 exit ;;
1486 GUESS=pdp10-unknown-tops10
1487 ;;
13741488 *:TENEX:*:*)
1375 echo pdp10-unknown-tenex
1376 exit ;;
1489 GUESS=pdp10-unknown-tenex
1490 ;;
13771491 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1378 echo pdp10-dec-tops20
1379 exit ;;
1492 GUESS=pdp10-dec-tops20
1493 ;;
13801494 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1381 echo pdp10-xkl-tops20
1382 exit ;;
1495 GUESS=pdp10-xkl-tops20
1496 ;;
13831497 *:TOPS-20:*:*)
1384 echo pdp10-unknown-tops20
1385 exit ;;
1498 GUESS=pdp10-unknown-tops20
1499 ;;
13861500 *:ITS:*:*)
1387 echo pdp10-unknown-its
1388 exit ;;
1501 GUESS=pdp10-unknown-its
1502 ;;
13891503 SEI:*:*:SEIUX)
1390 echo mips-sei-seiux"$UNAME_RELEASE"
1391 exit ;;
1504 GUESS=mips-sei-seiux$UNAME_RELEASE
1505 ;;
13921506 *:DragonFly:*:*)
1393 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
1394 exit ;;
1507 DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
1508 GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL
1509 ;;
13951510 *:*VMS:*:*)
13961511 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1397 case "$UNAME_MACHINE" in
1398 A*) echo alpha-dec-vms ; exit ;;
1399 I*) echo ia64-dec-vms ; exit ;;
1400 V*) echo vax-dec-vms ; exit ;;
1512 case $UNAME_MACHINE in
1513 A*) GUESS=alpha-dec-vms ;;
1514 I*) GUESS=ia64-dec-vms ;;
1515 V*) GUESS=vax-dec-vms ;;
14011516 esac ;;
14021517 *:XENIX:*:SysV)
1403 echo i386-pc-xenix
1404 exit ;;
1518 GUESS=i386-pc-xenix
1519 ;;
14051520 i*86:skyos:*:*)
1406 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
1407 exit ;;
1521 SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`
1522 GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL
1523 ;;
14081524 i*86:rdos:*:*)
1409 echo "$UNAME_MACHINE"-pc-rdos
1410 exit ;;
1411 i*86:AROS:*:*)
1412 echo "$UNAME_MACHINE"-pc-aros
1413 exit ;;
1525 GUESS=$UNAME_MACHINE-pc-rdos
1526 ;;
1527 i*86:Fiwix:*:*)
1528 GUESS=$UNAME_MACHINE-pc-fiwix
1529 ;;
1530 *:AROS:*:*)
1531 GUESS=$UNAME_MACHINE-unknown-aros
1532 ;;
14141533 x86_64:VMkernel:*:*)
1415 echo "$UNAME_MACHINE"-unknown-esx
1416 exit ;;
1534 GUESS=$UNAME_MACHINE-unknown-esx
1535 ;;
14171536 amd64:Isilon\ OneFS:*:*)
1418 echo x86_64-unknown-onefs
1419 exit ;;
1537 GUESS=x86_64-unknown-onefs
1538 ;;
1539 *:Unleashed:*:*)
1540 GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE
1541 ;;
14201542 esac
14211543
1544 # Do we have a guess based on uname results?
1545 if test "x$GUESS" != x; then
1546 echo "$GUESS"
1547 exit
1548 fi
1549
1550 # No uname command or uname output not recognized.
1551 set_cc_for_build
1552 cat > "$dummy.c" <<EOF
1553 #ifdef _SEQUENT_
1554 #include <sys/types.h>
1555 #include <sys/utsname.h>
1556 #endif
1557 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
1558 #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1559 #include <signal.h>
1560 #if defined(_SIZE_T_) || defined(SIGLOST)
1561 #include <sys/utsname.h>
1562 #endif
1563 #endif
1564 #endif
1565 main ()
1566 {
1567 #if defined (sony)
1568 #if defined (MIPSEB)
1569 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1570 I don't know.... */
1571 printf ("mips-sony-bsd\n"); exit (0);
1572 #else
1573 #include <sys/param.h>
1574 printf ("m68k-sony-newsos%s\n",
1575 #ifdef NEWSOS4
1576 "4"
1577 #else
1578 ""
1579 #endif
1580 ); exit (0);
1581 #endif
1582 #endif
1583
1584 #if defined (NeXT)
1585 #if !defined (__ARCHITECTURE__)
1586 #define __ARCHITECTURE__ "m68k"
1587 #endif
1588 int version;
1589 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1590 if (version < 4)
1591 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1592 else
1593 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1594 exit (0);
1595 #endif
1596
1597 #if defined (MULTIMAX) || defined (n16)
1598 #if defined (UMAXV)
1599 printf ("ns32k-encore-sysv\n"); exit (0);
1600 #else
1601 #if defined (CMU)
1602 printf ("ns32k-encore-mach\n"); exit (0);
1603 #else
1604 printf ("ns32k-encore-bsd\n"); exit (0);
1605 #endif
1606 #endif
1607 #endif
1608
1609 #if defined (__386BSD__)
1610 printf ("i386-pc-bsd\n"); exit (0);
1611 #endif
1612
1613 #if defined (sequent)
1614 #if defined (i386)
1615 printf ("i386-sequent-dynix\n"); exit (0);
1616 #endif
1617 #if defined (ns32000)
1618 printf ("ns32k-sequent-dynix\n"); exit (0);
1619 #endif
1620 #endif
1621
1622 #if defined (_SEQUENT_)
1623 struct utsname un;
1624
1625 uname(&un);
1626 if (strncmp(un.version, "V2", 2) == 0) {
1627 printf ("i386-sequent-ptx2\n"); exit (0);
1628 }
1629 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1630 printf ("i386-sequent-ptx1\n"); exit (0);
1631 }
1632 printf ("i386-sequent-ptx\n"); exit (0);
1633 #endif
1634
1635 #if defined (vax)
1636 #if !defined (ultrix)
1637 #include <sys/param.h>
1638 #if defined (BSD)
1639 #if BSD == 43
1640 printf ("vax-dec-bsd4.3\n"); exit (0);
1641 #else
1642 #if BSD == 199006
1643 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1644 #else
1645 printf ("vax-dec-bsd\n"); exit (0);
1646 #endif
1647 #endif
1648 #else
1649 printf ("vax-dec-bsd\n"); exit (0);
1650 #endif
1651 #else
1652 #if defined(_SIZE_T_) || defined(SIGLOST)
1653 struct utsname un;
1654 uname (&un);
1655 printf ("vax-dec-ultrix%s\n", un.release); exit (0);
1656 #else
1657 printf ("vax-dec-ultrix\n"); exit (0);
1658 #endif
1659 #endif
1660 #endif
1661 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
1662 #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1663 #if defined(_SIZE_T_) || defined(SIGLOST)
1664 struct utsname *un;
1665 uname (&un);
1666 printf ("mips-dec-ultrix%s\n", un.release); exit (0);
1667 #else
1668 printf ("mips-dec-ultrix\n"); exit (0);
1669 #endif
1670 #endif
1671 #endif
1672
1673 #if defined (alliant) && defined (i860)
1674 printf ("i860-alliant-bsd\n"); exit (0);
1675 #endif
1676
1677 exit (1);
1678 }
1679 EOF
1680
1681 $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` &&
1682 { echo "$SYSTEM_NAME"; exit; }
1683
1684 # Apollos put the system type in the environment.
1685 test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; }
1686
14221687 echo "$0: unable to guess system type" >&2
14231688
1424 case "$UNAME_MACHINE:$UNAME_SYSTEM" in
1689 case $UNAME_MACHINE:$UNAME_SYSTEM in
14251690 mips:Linux | mips64:Linux)
14261691 # If we got here on MIPS GNU/Linux, output extra information.
14271692 cat >&2 <<EOF
14381703 operating system you are using. If your script is old, overwrite *all*
14391704 copies of config.guess and config.sub with the latest versions from:
14401705
1441 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
1706 https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
14421707 and
1443 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
1708 https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
1709 EOF
1710
1711 our_year=`echo $timestamp | sed 's,-.*,,'`
1712 thisyear=`date +%Y`
1713 # shellcheck disable=SC2003
1714 script_age=`expr "$thisyear" - "$our_year"`
1715 if test "$script_age" -lt 3 ; then
1716 cat >&2 <<EOF
14441717
14451718 If $0 has already been updated, send the following data and any
14461719 information you think might be pertinent to config-patches@gnu.org to
14681741 UNAME_SYSTEM = "$UNAME_SYSTEM"
14691742 UNAME_VERSION = "$UNAME_VERSION"
14701743 EOF
1744 fi
14711745
14721746 exit 1
14731747
14741748 # Local variables:
1475 # eval: (add-hook 'write-file-functions 'time-stamp)
1749 # eval: (add-hook 'before-save-hook 'time-stamp)
14761750 # time-stamp-start: "timestamp='"
14771751 # time-stamp-format: "%:y-%02m-%02d"
14781752 # time-stamp-end: "'"
55 /* Define for tracing support */
66 #undef DEBUG_TRACE
77
8 /* always defined to indicate that i18n is enabled */
9 #undef ENABLE_NLS
10
118 /* Name of default gettext domain */
129 #undef GETTEXT_PACKAGE
1310
14 /* Define to 1 if you have the `bind_textdomain_codeset' function. */
15 #undef HAVE_BIND_TEXTDOMAIN_CODESET
16
17 /* Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the
18 CoreFoundation framework. */
19 #undef HAVE_CFLOCALECOPYCURRENT
20
21 /* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in
22 the CoreFoundation framework. */
23 #undef HAVE_CFPREFERENCESCOPYAPPVALUE
24
25 /* Define to 1 if you have the `dcgettext' function. */
26 #undef HAVE_DCGETTEXT
11 /* Use GLib structured logging */
12 #undef G_LOG_USE_STRUCTURED
2713
2814 /* Define to 1 if you have the <dlfcn.h> header file. */
2915 #undef HAVE_DLFCN_H
3016
31 /* Define if the GNU gettext() function is already present or preinstalled. */
32 #undef HAVE_GETTEXT
33
3417 /* Define to 1 if you have the <inttypes.h> header file. */
3518 #undef HAVE_INTTYPES_H
36
37 /* Define if your <locale.h> file defines LC_MESSAGES. */
38 #undef HAVE_LC_MESSAGES
39
40 /* Define to 1 if you have the <locale.h> header file. */
41 #undef HAVE_LOCALE_H
4219
4320 /* Define to 1 if you have the <stdint.h> header file. */
4421 #undef HAVE_STDINT_H
+1545
-1456
config.sub less more
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-02-22'
2 # Copyright 1992-2022 Free Software Foundation, Inc.
3
4 # shellcheck disable=SC2006,SC2268 # see below for rationale
5
6 timestamp='2022-01-03'
57
68 # This file is free software; you can redistribute it and/or modify it
79 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
10 # the Free Software Foundation, either version 3 of the License, or
911 # (at your option) any later version.
1012 #
1113 # This program is distributed in the hope that it will be useful, but
3234 # Otherwise, we print the canonical config type on stdout and succeed.
3335
3436 # You can get the latest version of this script from:
35 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
37 # https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
3638
3739 # This file is supposed to be the same for all GNU packages
3840 # and recognize all the CPU types, system types and aliases
4951 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
5052 # It is wrong to echo any other type of specification.
5153
54 # The "shellcheck disable" line above the timestamp inhibits complaints
55 # about features and limitations of the classic Bourne shell that were
56 # superseded or lifted in POSIX. However, this script identifies a wide
57 # variety of pre-POSIX systems that do not have POSIX shells at all, and
58 # even some reasonably current systems (Solaris 10 as case-in-point) still
59 # have a pre-POSIX /bin/sh.
60
5261 me=`echo "$0" | sed -e 's,.*/,,'`
5362
5463 usage="\
6675 version="\
6776 GNU config.sub ($timestamp)
6877
69 Copyright 1992-2018 Free Software Foundation, Inc.
78 Copyright 1992-2022 Free Software Foundation, Inc.
7079
7180 This is free software; see the source for copying conditions. There is NO
7281 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
8897 - ) # Use stdin as input.
8998 break ;;
9099 -* )
91 echo "$me: invalid option $1$help"
100 echo "$me: invalid option $1$help" >&2
92101 exit 1 ;;
93102
94103 *local*)
109118 exit 1;;
110119 esac
111120
112 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
113 # Here we must recognize all the valid KERNEL-OS combinations.
114 maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
115 case $maybe_os in
116 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
117 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
118 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
119 kopensolaris*-gnu* | cloudabi*-eabi* | \
120 storm-chaos* | os2-emx* | rtmk-nova*)
121 os=-$maybe_os
122 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
123 ;;
124 android-linux)
125 os=-linux-android
126 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
127 ;;
128 *)
129 basic_machine=`echo "$1" | sed 's/-[^-]*$//'`
130 if [ "$basic_machine" != "$1" ]
131 then os=`echo "$1" | sed 's/.*-/-/'`
132 else os=; fi
133 ;;
121 # Split fields of configuration type
122 # shellcheck disable=SC2162
123 saved_IFS=$IFS
124 IFS="-" read field1 field2 field3 field4 <<EOF
125 $1
126 EOF
127 IFS=$saved_IFS
128
129 # Separate into logical components for further validation
130 case $1 in
131 *-*-*-*-*)
132 echo Invalid configuration \`"$1"\': more than four components >&2
133 exit 1
134 ;;
135 *-*-*-*)
136 basic_machine=$field1-$field2
137 basic_os=$field3-$field4
138 ;;
139 *-*-*)
140 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
141 # parts
142 maybe_os=$field2-$field3
143 case $maybe_os in
144 nto-qnx* | linux-* | uclinux-uclibc* \
145 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
146 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
147 | storm-chaos* | os2-emx* | rtmk-nova*)
148 basic_machine=$field1
149 basic_os=$maybe_os
150 ;;
151 android-linux)
152 basic_machine=$field1-unknown
153 basic_os=linux-android
154 ;;
155 *)
156 basic_machine=$field1-$field2
157 basic_os=$field3
158 ;;
159 esac
160 ;;
161 *-*)
162 # A lone config we happen to match not fitting any pattern
163 case $field1-$field2 in
164 decstation-3100)
165 basic_machine=mips-dec
166 basic_os=
167 ;;
168 *-*)
169 # Second component is usually, but not always the OS
170 case $field2 in
171 # Prevent following clause from handling this valid os
172 sun*os*)
173 basic_machine=$field1
174 basic_os=$field2
175 ;;
176 zephyr*)
177 basic_machine=$field1-unknown
178 basic_os=$field2
179 ;;
180 # Manufacturers
181 dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
182 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
183 | unicom* | ibm* | next | hp | isi* | apollo | altos* \
184 | convergent* | ncr* | news | 32* | 3600* | 3100* \
185 | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
186 | ultra | tti* | harris | dolphin | highlevel | gould \
187 | cbm | ns | masscomp | apple | axis | knuth | cray \
188 | microblaze* | sim | cisco \
189 | oki | wec | wrs | winbond)
190 basic_machine=$field1-$field2
191 basic_os=
192 ;;
193 *)
194 basic_machine=$field1
195 basic_os=$field2
196 ;;
197 esac
198 ;;
199 esac
200 ;;
201 *)
202 # Convert single-component short-hands not valid as part of
203 # multi-component configurations.
204 case $field1 in
205 386bsd)
206 basic_machine=i386-pc
207 basic_os=bsd
208 ;;
209 a29khif)
210 basic_machine=a29k-amd
211 basic_os=udi
212 ;;
213 adobe68k)
214 basic_machine=m68010-adobe
215 basic_os=scout
216 ;;
217 alliant)
218 basic_machine=fx80-alliant
219 basic_os=
220 ;;
221 altos | altos3068)
222 basic_machine=m68k-altos
223 basic_os=
224 ;;
225 am29k)
226 basic_machine=a29k-none
227 basic_os=bsd
228 ;;
229 amdahl)
230 basic_machine=580-amdahl
231 basic_os=sysv
232 ;;
233 amiga)
234 basic_machine=m68k-unknown
235 basic_os=
236 ;;
237 amigaos | amigados)
238 basic_machine=m68k-unknown
239 basic_os=amigaos
240 ;;
241 amigaunix | amix)
242 basic_machine=m68k-unknown
243 basic_os=sysv4
244 ;;
245 apollo68)
246 basic_machine=m68k-apollo
247 basic_os=sysv
248 ;;
249 apollo68bsd)
250 basic_machine=m68k-apollo
251 basic_os=bsd
252 ;;
253 aros)
254 basic_machine=i386-pc
255 basic_os=aros
256 ;;
257 aux)
258 basic_machine=m68k-apple
259 basic_os=aux
260 ;;
261 balance)
262 basic_machine=ns32k-sequent
263 basic_os=dynix
264 ;;
265 blackfin)
266 basic_machine=bfin-unknown
267 basic_os=linux
268 ;;
269 cegcc)
270 basic_machine=arm-unknown
271 basic_os=cegcc
272 ;;
273 convex-c1)
274 basic_machine=c1-convex
275 basic_os=bsd
276 ;;
277 convex-c2)
278 basic_machine=c2-convex
279 basic_os=bsd
280 ;;
281 convex-c32)
282 basic_machine=c32-convex
283 basic_os=bsd
284 ;;
285 convex-c34)
286 basic_machine=c34-convex
287 basic_os=bsd
288 ;;
289 convex-c38)
290 basic_machine=c38-convex
291 basic_os=bsd
292 ;;
293 cray)
294 basic_machine=j90-cray
295 basic_os=unicos
296 ;;
297 crds | unos)
298 basic_machine=m68k-crds
299 basic_os=
300 ;;
301 da30)
302 basic_machine=m68k-da30
303 basic_os=
304 ;;
305 decstation | pmax | pmin | dec3100 | decstatn)
306 basic_machine=mips-dec
307 basic_os=
308 ;;
309 delta88)
310 basic_machine=m88k-motorola
311 basic_os=sysv3
312 ;;
313 dicos)
314 basic_machine=i686-pc
315 basic_os=dicos
316 ;;
317 djgpp)
318 basic_machine=i586-pc
319 basic_os=msdosdjgpp
320 ;;
321 ebmon29k)
322 basic_machine=a29k-amd
323 basic_os=ebmon
324 ;;
325 es1800 | OSE68k | ose68k | ose | OSE)
326 basic_machine=m68k-ericsson
327 basic_os=ose
328 ;;
329 gmicro)
330 basic_machine=tron-gmicro
331 basic_os=sysv
332 ;;
333 go32)
334 basic_machine=i386-pc
335 basic_os=go32
336 ;;
337 h8300hms)
338 basic_machine=h8300-hitachi
339 basic_os=hms
340 ;;
341 h8300xray)
342 basic_machine=h8300-hitachi
343 basic_os=xray
344 ;;
345 h8500hms)
346 basic_machine=h8500-hitachi
347 basic_os=hms
348 ;;
349 harris)
350 basic_machine=m88k-harris
351 basic_os=sysv3
352 ;;
353 hp300 | hp300hpux)
354 basic_machine=m68k-hp
355 basic_os=hpux
356 ;;
357 hp300bsd)
358 basic_machine=m68k-hp
359 basic_os=bsd
360 ;;
361 hppaosf)
362 basic_machine=hppa1.1-hp
363 basic_os=osf
364 ;;
365 hppro)
366 basic_machine=hppa1.1-hp
367 basic_os=proelf
368 ;;
369 i386mach)
370 basic_machine=i386-mach
371 basic_os=mach
372 ;;
373 isi68 | isi)
374 basic_machine=m68k-isi
375 basic_os=sysv
376 ;;
377 m68knommu)
378 basic_machine=m68k-unknown
379 basic_os=linux
380 ;;
381 magnum | m3230)
382 basic_machine=mips-mips
383 basic_os=sysv
384 ;;
385 merlin)
386 basic_machine=ns32k-utek
387 basic_os=sysv
388 ;;
389 mingw64)
390 basic_machine=x86_64-pc
391 basic_os=mingw64
392 ;;
393 mingw32)
394 basic_machine=i686-pc
395 basic_os=mingw32
396 ;;
397 mingw32ce)
398 basic_machine=arm-unknown
399 basic_os=mingw32ce
400 ;;
401 monitor)
402 basic_machine=m68k-rom68k
403 basic_os=coff
404 ;;
405 morphos)
406 basic_machine=powerpc-unknown
407 basic_os=morphos
408 ;;
409 moxiebox)
410 basic_machine=moxie-unknown
411 basic_os=moxiebox
412 ;;
413 msdos)
414 basic_machine=i386-pc
415 basic_os=msdos
416 ;;
417 msys)
418 basic_machine=i686-pc
419 basic_os=msys
420 ;;
421 mvs)
422 basic_machine=i370-ibm
423 basic_os=mvs
424 ;;
425 nacl)
426 basic_machine=le32-unknown
427 basic_os=nacl
428 ;;
429 ncr3000)
430 basic_machine=i486-ncr
431 basic_os=sysv4
432 ;;
433 netbsd386)
434 basic_machine=i386-pc
435 basic_os=netbsd
436 ;;
437 netwinder)
438 basic_machine=armv4l-rebel
439 basic_os=linux
440 ;;
441 news | news700 | news800 | news900)
442 basic_machine=m68k-sony
443 basic_os=newsos
444 ;;
445 news1000)
446 basic_machine=m68030-sony
447 basic_os=newsos
448 ;;
449 necv70)
450 basic_machine=v70-nec
451 basic_os=sysv
452 ;;
453 nh3000)
454 basic_machine=m68k-harris
455 basic_os=cxux
456 ;;
457 nh[45]000)
458 basic_machine=m88k-harris
459 basic_os=cxux
460 ;;
461 nindy960)
462 basic_machine=i960-intel
463 basic_os=nindy
464 ;;
465 mon960)
466 basic_machine=i960-intel
467 basic_os=mon960
468 ;;
469 nonstopux)
470 basic_machine=mips-compaq
471 basic_os=nonstopux
472 ;;
473 os400)
474 basic_machine=powerpc-ibm
475 basic_os=os400
476 ;;
477 OSE68000 | ose68000)
478 basic_machine=m68000-ericsson
479 basic_os=ose
480 ;;
481 os68k)
482 basic_machine=m68k-none
483 basic_os=os68k
484 ;;
485 paragon)
486 basic_machine=i860-intel
487 basic_os=osf
488 ;;
489 parisc)
490 basic_machine=hppa-unknown
491 basic_os=linux
492 ;;
493 psp)
494 basic_machine=mipsallegrexel-sony
495 basic_os=psp
496 ;;
497 pw32)
498 basic_machine=i586-unknown
499 basic_os=pw32
500 ;;
501 rdos | rdos64)
502 basic_machine=x86_64-pc
503 basic_os=rdos
504 ;;
505 rdos32)
506 basic_machine=i386-pc
507 basic_os=rdos
508 ;;
509 rom68k)
510 basic_machine=m68k-rom68k
511 basic_os=coff
512 ;;
513 sa29200)
514 basic_machine=a29k-amd
515 basic_os=udi
516 ;;
517 sei)
518 basic_machine=mips-sei
519 basic_os=seiux
520 ;;
521 sequent)
522 basic_machine=i386-sequent
523 basic_os=
524 ;;
525 sps7)
526 basic_machine=m68k-bull
527 basic_os=sysv2
528 ;;
529 st2000)
530 basic_machine=m68k-tandem
531 basic_os=
532 ;;
533 stratus)
534 basic_machine=i860-stratus
535 basic_os=sysv4
536 ;;
537 sun2)
538 basic_machine=m68000-sun
539 basic_os=
540 ;;
541 sun2os3)
542 basic_machine=m68000-sun
543 basic_os=sunos3
544 ;;
545 sun2os4)
546 basic_machine=m68000-sun
547 basic_os=sunos4
548 ;;
549 sun3)
550 basic_machine=m68k-sun
551 basic_os=
552 ;;
553 sun3os3)
554 basic_machine=m68k-sun
555 basic_os=sunos3
556 ;;
557 sun3os4)
558 basic_machine=m68k-sun
559 basic_os=sunos4
560 ;;
561 sun4)
562 basic_machine=sparc-sun
563 basic_os=
564 ;;
565 sun4os3)
566 basic_machine=sparc-sun
567 basic_os=sunos3
568 ;;
569 sun4os4)
570 basic_machine=sparc-sun
571 basic_os=sunos4
572 ;;
573 sun4sol2)
574 basic_machine=sparc-sun
575 basic_os=solaris2
576 ;;
577 sun386 | sun386i | roadrunner)
578 basic_machine=i386-sun
579 basic_os=
580 ;;
581 sv1)
582 basic_machine=sv1-cray
583 basic_os=unicos
584 ;;
585 symmetry)
586 basic_machine=i386-sequent
587 basic_os=dynix
588 ;;
589 t3e)
590 basic_machine=alphaev5-cray
591 basic_os=unicos
592 ;;
593 t90)
594 basic_machine=t90-cray
595 basic_os=unicos
596 ;;
597 toad1)
598 basic_machine=pdp10-xkl
599 basic_os=tops20
600 ;;
601 tpf)
602 basic_machine=s390x-ibm
603 basic_os=tpf
604 ;;
605 udi29k)
606 basic_machine=a29k-amd
607 basic_os=udi
608 ;;
609 ultra3)
610 basic_machine=a29k-nyu
611 basic_os=sym1
612 ;;
613 v810 | necv810)
614 basic_machine=v810-nec
615 basic_os=none
616 ;;
617 vaxv)
618 basic_machine=vax-dec
619 basic_os=sysv
620 ;;
621 vms)
622 basic_machine=vax-dec
623 basic_os=vms
624 ;;
625 vsta)
626 basic_machine=i386-pc
627 basic_os=vsta
628 ;;
629 vxworks960)
630 basic_machine=i960-wrs
631 basic_os=vxworks
632 ;;
633 vxworks68)
634 basic_machine=m68k-wrs
635 basic_os=vxworks
636 ;;
637 vxworks29k)
638 basic_machine=a29k-wrs
639 basic_os=vxworks
640 ;;
641 xbox)
642 basic_machine=i686-pc
643 basic_os=mingw32
644 ;;
645 ymp)
646 basic_machine=ymp-cray
647 basic_os=unicos
648 ;;
649 *)
650 basic_machine=$1
651 basic_os=
652 ;;
653 esac
654 ;;
134655 esac
135656
136 ### Let's recognize common machines as not being operating systems so
137 ### that things like config.sub decstation-3100 work. We also
138 ### recognize some manufacturers as not being operating systems, so we
139 ### can provide default operating systems below.
140 case $os in
141 -sun*os*)
142 # Prevent following clause from handling this invalid input.
143 ;;
144 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
145 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
146 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
147 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
148 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
149 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
150 -apple | -axis | -knuth | -cray | -microblaze*)
151 os=
152 basic_machine=$1
153 ;;
154 -bluegene*)
155 os=-cnk
156 ;;
157 -sim | -cisco | -oki | -wec | -winbond)
158 os=
159 basic_machine=$1
160 ;;
161 -scout)
162 ;;
163 -wrs)
164 os=-vxworks
165 basic_machine=$1
166 ;;
167 -chorusos*)
168 os=-chorusos
169 basic_machine=$1
170 ;;
171 -chorusrdb)
172 os=-chorusrdb
173 basic_machine=$1
174 ;;
175 -hiux*)
176 os=-hiuxwe2
177 ;;
178 -sco6)
179 os=-sco5v6
180 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
181 ;;
182 -sco5)
183 os=-sco3.2v5
184 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
185 ;;
186 -sco4)
187 os=-sco3.2v4
188 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
189 ;;
190 -sco3.2.[4-9]*)
191 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
192 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
193 ;;
194 -sco3.2v[4-9]*)
195 # Don't forget version if it is 3.2v4 or newer.
196 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
197 ;;
198 -sco5v6*)
199 # Don't forget version if it is 3.2v4 or newer.
200 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
201 ;;
202 -sco*)
203 os=-sco3.2v2
204 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
205 ;;
206 -udk*)
207 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
208 ;;
209 -isc)
210 os=-isc2.2
211 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
212 ;;
213 -clix*)
214 basic_machine=clipper-intergraph
215 ;;
216 -isc*)
217 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
218 ;;
219 -lynx*178)
220 os=-lynxos178
221 ;;
222 -lynx*5)
223 os=-lynxos5
224 ;;
225 -lynx*)
226 os=-lynxos
227 ;;
228 -ptx*)
229 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`
230 ;;
231 -psos*)
232 os=-psos
233 ;;
234 -mint | -mint[0-9]*)
235 basic_machine=m68k-atari
236 os=-mint
237 ;;
238 esac
239
240 # Decode aliases for certain CPU-COMPANY combinations.
657 # Decode 1-component or ad-hoc basic machines
241658 case $basic_machine in
242 # Recognize the basic CPU types without company name.
243 # Some are omitted here because they have special meanings below.
244 1750a | 580 \
245 | a29k \
246 | aarch64 | aarch64_be \
247 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
248 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
249 | am33_2.0 \
250 | arc | arceb \
251 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
252 | avr | avr32 \
253 | ba \
254 | be32 | be64 \
255 | bfin \
256 | c4x | c8051 | clipper \
257 | d10v | d30v | dlx | dsp16xx \
258 | e2k | epiphany \
259 | fido | fr30 | frv | ft32 \
260 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
261 | hexagon \
262 | i370 | i860 | i960 | ia16 | ia64 \
263 | ip2k | iq2000 \
264 | k1om \
265 | le32 | le64 \
266 | lm32 \
267 | m32c | m32r | m32rle | m68000 | m68k | m88k \
268 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
269 | mips | mipsbe | mipseb | mipsel | mipsle \
270 | mips16 \
271 | mips64 | mips64el \
272 | mips64octeon | mips64octeonel \
273 | mips64orion | mips64orionel \
274 | mips64r5900 | mips64r5900el \
275 | mips64vr | mips64vrel \
276 | mips64vr4100 | mips64vr4100el \
277 | mips64vr4300 | mips64vr4300el \
278 | mips64vr5000 | mips64vr5000el \
279 | mips64vr5900 | mips64vr5900el \
280 | mipsisa32 | mipsisa32el \
281 | mipsisa32r2 | mipsisa32r2el \
282 | mipsisa32r6 | mipsisa32r6el \
283 | mipsisa64 | mipsisa64el \
284 | mipsisa64r2 | mipsisa64r2el \
285 | mipsisa64r6 | mipsisa64r6el \
286 | mipsisa64sb1 | mipsisa64sb1el \
287 | mipsisa64sr71k | mipsisa64sr71kel \
288 | mipsr5900 | mipsr5900el \
289 | mipstx39 | mipstx39el \
290 | mn10200 | mn10300 \
291 | moxie \
292 | mt \
293 | msp430 \
294 | nds32 | nds32le | nds32be \
295 | nios | nios2 | nios2eb | nios2el \
296 | ns16k | ns32k \
297 | open8 | or1k | or1knd | or32 \
298 | pdp10 | pj | pjl \
299 | powerpc | powerpc64 | powerpc64le | powerpcle \
300 | pru \
301 | pyramid \
302 | riscv32 | riscv64 \
303 | rl78 | rx \
304 | score \
305 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
306 | sh64 | sh64le \
307 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
308 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
309 | spu \
310 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
311 | ubicom32 \
312 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
313 | visium \
314 | wasm32 \
315 | x86 | xc16x | xstormy16 | xtensa \
316 | z8k | z80)
317 basic_machine=$basic_machine-unknown
318 ;;
319 c54x)
320 basic_machine=tic54x-unknown
321 ;;
322 c55x)
323 basic_machine=tic55x-unknown
324 ;;
325 c6x)
326 basic_machine=tic6x-unknown
659 # Here we handle the default manufacturer of certain CPU types. It is in
660 # some cases the only manufacturer, in others, it is the most popular.
661 w89k)
662 cpu=hppa1.1
663 vendor=winbond
664 ;;
665 op50n)
666 cpu=hppa1.1
667 vendor=oki
668 ;;
669 op60c)
670 cpu=hppa1.1
671 vendor=oki
672 ;;
673 ibm*)
674 cpu=i370
675 vendor=ibm
676 ;;
677 orion105)
678 cpu=clipper
679 vendor=highlevel
680 ;;
681 mac | mpw | mac-mpw)
682 cpu=m68k
683 vendor=apple
684 ;;
685 pmac | pmac-mpw)
686 cpu=powerpc
687 vendor=apple
688 ;;
689
690 # Recognize the various machine names and aliases which stand
691 # for a CPU type and a company and sometimes even an OS.
692 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
693 cpu=m68000
694 vendor=att
695 ;;
696 3b*)
697 cpu=we32k
698 vendor=att
699 ;;
700 bluegene*)
701 cpu=powerpc
702 vendor=ibm
703 basic_os=cnk
704 ;;
705 decsystem10* | dec10*)
706 cpu=pdp10
707 vendor=dec
708 basic_os=tops10
709 ;;
710 decsystem20* | dec20*)
711 cpu=pdp10
712 vendor=dec
713 basic_os=tops20
714 ;;
715 delta | 3300 | motorola-3300 | motorola-delta \
716 | 3300-motorola | delta-motorola)
717 cpu=m68k
718 vendor=motorola
719 ;;
720 dpx2*)
721 cpu=m68k
722 vendor=bull
723 basic_os=sysv3
724 ;;
725 encore | umax | mmax)
726 cpu=ns32k
727 vendor=encore
728 ;;
729 elxsi)
730 cpu=elxsi
731 vendor=elxsi
732 basic_os=${basic_os:-bsd}
733 ;;
734 fx2800)
735 cpu=i860
736 vendor=alliant
737 ;;
738 genix)
739 cpu=ns32k
740 vendor=ns
741 ;;
742 h3050r* | hiux*)
743 cpu=hppa1.1
744 vendor=hitachi
745 basic_os=hiuxwe2
746 ;;
747 hp3k9[0-9][0-9] | hp9[0-9][0-9])
748 cpu=hppa1.0
749 vendor=hp
750 ;;
751 hp9k2[0-9][0-9] | hp9k31[0-9])
752 cpu=m68000
753 vendor=hp
754 ;;
755 hp9k3[2-9][0-9])
756 cpu=m68k
757 vendor=hp
758 ;;
759 hp9k6[0-9][0-9] | hp6[0-9][0-9])
760 cpu=hppa1.0
761 vendor=hp
762 ;;
763 hp9k7[0-79][0-9] | hp7[0-79][0-9])
764 cpu=hppa1.1
765 vendor=hp
766 ;;
767 hp9k78[0-9] | hp78[0-9])
768 # FIXME: really hppa2.0-hp
769 cpu=hppa1.1
770 vendor=hp
771 ;;
772 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
773 # FIXME: really hppa2.0-hp
774 cpu=hppa1.1
775 vendor=hp
776 ;;
777 hp9k8[0-9][13679] | hp8[0-9][13679])
778 cpu=hppa1.1
779 vendor=hp
780 ;;
781 hp9k8[0-9][0-9] | hp8[0-9][0-9])
782 cpu=hppa1.0
783 vendor=hp
784 ;;
785 i*86v32)
786 cpu=`echo "$1" | sed -e 's/86.*/86/'`
787 vendor=pc
788 basic_os=sysv32
789 ;;
790 i*86v4*)
791 cpu=`echo "$1" | sed -e 's/86.*/86/'`
792 vendor=pc
793 basic_os=sysv4
794 ;;
795 i*86v)
796 cpu=`echo "$1" | sed -e 's/86.*/86/'`
797 vendor=pc
798 basic_os=sysv
799 ;;
800 i*86sol2)
801 cpu=`echo "$1" | sed -e 's/86.*/86/'`
802 vendor=pc
803 basic_os=solaris2
804 ;;
805 j90 | j90-cray)
806 cpu=j90
807 vendor=cray
808 basic_os=${basic_os:-unicos}
809 ;;
810 iris | iris4d)
811 cpu=mips
812 vendor=sgi
813 case $basic_os in
814 irix*)
815 ;;
816 *)
817 basic_os=irix4
818 ;;
819 esac
820 ;;
821 miniframe)
822 cpu=m68000
823 vendor=convergent
824 ;;
825 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
826 cpu=m68k
827 vendor=atari
828 basic_os=mint
829 ;;
830 news-3600 | risc-news)
831 cpu=mips
832 vendor=sony
833 basic_os=newsos
834 ;;
835 next | m*-next)
836 cpu=m68k
837 vendor=next
838 case $basic_os in
839 openstep*)
840 ;;
841 nextstep*)
842 ;;
843 ns2*)
844 basic_os=nextstep2
845 ;;
846 *)
847 basic_os=nextstep3
848 ;;
849 esac
850 ;;
851 np1)
852 cpu=np1
853 vendor=gould
854 ;;
855 op50n-* | op60c-*)
856 cpu=hppa1.1
857 vendor=oki
858 basic_os=proelf
859 ;;
860 pa-hitachi)
861 cpu=hppa1.1
862 vendor=hitachi
863 basic_os=hiuxwe2
864 ;;
865 pbd)
866 cpu=sparc
867 vendor=tti
868 ;;
869 pbb)
870 cpu=m68k
871 vendor=tti
872 ;;
873 pc532)
874 cpu=ns32k
875 vendor=pc532
876 ;;
877 pn)
878 cpu=pn
879 vendor=gould
880 ;;
881 power)
882 cpu=power
883 vendor=ibm
884 ;;
885 ps2)
886 cpu=i386
887 vendor=ibm
888 ;;
889 rm[46]00)
890 cpu=mips
891 vendor=siemens
892 ;;
893 rtpc | rtpc-*)
894 cpu=romp
895 vendor=ibm
896 ;;
897 sde)
898 cpu=mipsisa32
899 vendor=sde
900 basic_os=${basic_os:-elf}
901 ;;
902 simso-wrs)
903 cpu=sparclite
904 vendor=wrs
905 basic_os=vxworks
906 ;;
907 tower | tower-32)
908 cpu=m68k
909 vendor=ncr
910 ;;
911 vpp*|vx|vx-*)
912 cpu=f301
913 vendor=fujitsu
914 ;;
915 w65)
916 cpu=w65
917 vendor=wdc
918 ;;
919 w89k-*)
920 cpu=hppa1.1
921 vendor=winbond
922 basic_os=proelf
923 ;;
924 none)
925 cpu=none
926 vendor=none
327927 ;;
328928 leon|leon[3-9])
329 basic_machine=sparc-$basic_machine
330 ;;
331 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
332 basic_machine=$basic_machine-unknown
333 os=-none
334 ;;
335 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
336 ;;
337 ms1)
338 basic_machine=mt-unknown
339 ;;
340
341 strongarm | thumb | xscale)
342 basic_machine=arm-unknown
343 ;;
344 xgate)
345 basic_machine=$basic_machine-unknown
346 os=-none
347 ;;
348 xscaleeb)
349 basic_machine=armeb-unknown
350 ;;
351
352 xscaleel)
353 basic_machine=armel-unknown
354 ;;
355
929 cpu=sparc
930 vendor=$basic_machine
931 ;;
932 leon-*|leon[3-9]-*)
933 cpu=sparc
934 vendor=`echo "$basic_machine" | sed 's/-.*//'`
935 ;;
936
937 *-*)
938 # shellcheck disable=SC2162
939 saved_IFS=$IFS
940 IFS="-" read cpu vendor <<EOF
941 $basic_machine
942 EOF
943 IFS=$saved_IFS
944 ;;
356945 # We use `pc' rather than `unknown'
357946 # because (1) that's what they normally are, and
358947 # (2) the word "unknown" tends to confuse beginning users.
359948 i*86 | x86_64)
360 basic_machine=$basic_machine-pc
361 ;;
362 # Object if more than one company name word.
363 *-*-*)
364 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
365 exit 1
366 ;;
367 # Recognize the basic CPU types with company name.
368 580-* \
369 | a29k-* \
370 | aarch64-* | aarch64_be-* \
371 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
372 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
373 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
374 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
375 | avr-* | avr32-* \
376 | ba-* \
377 | be32-* | be64-* \
378 | bfin-* | bs2000-* \
379 | c[123]* | c30-* | [cjt]90-* | c4x-* \
380 | c8051-* | clipper-* | craynv-* | cydra-* \
381 | d10v-* | d30v-* | dlx-* \
382 | e2k-* | elxsi-* \
383 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
384 | h8300-* | h8500-* \
385 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
386 | hexagon-* \
387 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
388 | ip2k-* | iq2000-* \
389 | k1om-* \
390 | le32-* | le64-* \
391 | lm32-* \
392 | m32c-* | m32r-* | m32rle-* \
393 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
394 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
395 | microblaze-* | microblazeel-* \
396 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
397 | mips16-* \
398 | mips64-* | mips64el-* \
399 | mips64octeon-* | mips64octeonel-* \
400 | mips64orion-* | mips64orionel-* \
401 | mips64r5900-* | mips64r5900el-* \
402 | mips64vr-* | mips64vrel-* \
403 | mips64vr4100-* | mips64vr4100el-* \
404 | mips64vr4300-* | mips64vr4300el-* \
405 | mips64vr5000-* | mips64vr5000el-* \
406 | mips64vr5900-* | mips64vr5900el-* \
407 | mipsisa32-* | mipsisa32el-* \
408 | mipsisa32r2-* | mipsisa32r2el-* \
409 | mipsisa32r6-* | mipsisa32r6el-* \
410 | mipsisa64-* | mipsisa64el-* \
411 | mipsisa64r2-* | mipsisa64r2el-* \
412 | mipsisa64r6-* | mipsisa64r6el-* \
413 | mipsisa64sb1-* | mipsisa64sb1el-* \
414 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
415 | mipsr5900-* | mipsr5900el-* \
416 | mipstx39-* | mipstx39el-* \
417 | mmix-* \
418 | mt-* \
419 | msp430-* \
420 | nds32-* | nds32le-* | nds32be-* \
421 | nios-* | nios2-* | nios2eb-* | nios2el-* \
422 | none-* | np1-* | ns16k-* | ns32k-* \
423 | open8-* \
424 | or1k*-* \
425 | orion-* \
426 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
427 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
428 | pru-* \
429 | pyramid-* \
430 | riscv32-* | riscv64-* \
431 | rl78-* | romp-* | rs6000-* | rx-* \
432 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
433 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
434 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
435 | sparclite-* \
436 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
437 | tahoe-* \
438 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
439 | tile*-* \
440 | tron-* \
441 | ubicom32-* \
442 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
443 | vax-* \
444 | visium-* \
445 | wasm32-* \
446 | we32k-* \
447 | x86-* | x86_64-* | xc16x-* | xps100-* \
448 | xstormy16-* | xtensa*-* \
449 | ymp-* \
450 | z8k-* | z80-*)
451 ;;
452 # Recognize the basic CPU types without company name, with glob match.
453 xtensa*)
454 basic_machine=$basic_machine-unknown
455 ;;
456 # Recognize the various machine names and aliases which stand
457 # for a CPU type and a company and sometimes even an OS.
458 386bsd)
459 basic_machine=i386-pc
460 os=-bsd
461 ;;
462 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
463 basic_machine=m68000-att
464 ;;
465 3b*)
466 basic_machine=we32k-att
467 ;;
468 a29khif)
469 basic_machine=a29k-amd
470 os=-udi
471 ;;
472 abacus)
473 basic_machine=abacus-unknown
474 ;;
475 adobe68k)
476 basic_machine=m68010-adobe
477 os=-scout
478 ;;
479 alliant | fx80)
480 basic_machine=fx80-alliant
481 ;;
482 altos | altos3068)
483 basic_machine=m68k-altos
484 ;;
485 am29k)
486 basic_machine=a29k-none
487 os=-bsd
488 ;;
489 amd64)
490 basic_machine=x86_64-pc
491 ;;
949 cpu=$basic_machine
950 vendor=pc
951 ;;
952 # These rules are duplicated from below for sake of the special case above;
953 # i.e. things that normalized to x86 arches should also default to "pc"
954 pc98)
955 cpu=i386
956 vendor=pc
957 ;;
958 x64 | amd64)
959 cpu=x86_64
960 vendor=pc
961 ;;
962 # Recognize the basic CPU types without company name.
963 *)
964 cpu=$basic_machine
965 vendor=unknown
966 ;;
967 esac
968
969 unset -v basic_machine
970
971 # Decode basic machines in the full and proper CPU-Company form.
972 case $cpu-$vendor in
973 # Here we handle the default manufacturer of certain CPU types in canonical form. It is in
974 # some cases the only manufacturer, in others, it is the most popular.
975 craynv-unknown)
976 vendor=cray
977 basic_os=${basic_os:-unicosmp}
978 ;;
979 c90-unknown | c90-cray)
980 vendor=cray
981 basic_os=${Basic_os:-unicos}
982 ;;
983 fx80-unknown)
984 vendor=alliant
985 ;;
986 romp-unknown)
987 vendor=ibm
988 ;;
989 mmix-unknown)
990 vendor=knuth
991 ;;
992 microblaze-unknown | microblazeel-unknown)
993 vendor=xilinx
994 ;;
995 rs6000-unknown)
996 vendor=ibm
997 ;;
998 vax-unknown)
999 vendor=dec
1000 ;;
1001 pdp11-unknown)
1002 vendor=dec
1003 ;;
1004 we32k-unknown)
1005 vendor=att
1006 ;;
1007 cydra-unknown)
1008 vendor=cydrome
1009 ;;
1010 i370-ibm*)
1011 vendor=ibm
1012 ;;
1013 orion-unknown)
1014 vendor=highlevel
1015 ;;
1016 xps-unknown | xps100-unknown)
1017 cpu=xps100
1018 vendor=honeywell
1019 ;;
1020
1021 # Here we normalize CPU types with a missing or matching vendor
1022 armh-unknown | armh-alt)
1023 cpu=armv7l
1024 vendor=alt
1025 basic_os=${basic_os:-linux-gnueabihf}
1026 ;;
1027 dpx20-unknown | dpx20-bull)
1028 cpu=rs6000
1029 vendor=bull
1030 basic_os=${basic_os:-bosx}
1031 ;;
1032
1033 # Here we normalize CPU types irrespective of the vendor
4921034 amd64-*)
493 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
494 ;;
495 amdahl)
496 basic_machine=580-amdahl
497 os=-sysv
498 ;;
499 amiga | amiga-*)
500 basic_machine=m68k-unknown
501 ;;
502 amigaos | amigados)
503 basic_machine=m68k-unknown
504 os=-amigaos
505 ;;
506 amigaunix | amix)
507 basic_machine=m68k-unknown
508 os=-sysv4
509 ;;
510 apollo68)
511 basic_machine=m68k-apollo
512 os=-sysv
513 ;;
514 apollo68bsd)
515 basic_machine=m68k-apollo
516 os=-bsd
517 ;;
518 aros)
519 basic_machine=i386-pc
520 os=-aros
521 ;;
522 asmjs)
523 basic_machine=asmjs-unknown
524 ;;
525 aux)
526 basic_machine=m68k-apple
527 os=-aux
528 ;;
529 balance)
530 basic_machine=ns32k-sequent
531 os=-dynix
532 ;;
533 blackfin)
534 basic_machine=bfin-unknown
535 os=-linux
1035 cpu=x86_64
5361036 ;;
5371037 blackfin-*)
538 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
539 os=-linux
540 ;;
541 bluegene*)
542 basic_machine=powerpc-ibm
543 os=-cnk
1038 cpu=bfin
1039 basic_os=linux
5441040 ;;
5451041 c54x-*)
546 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1042 cpu=tic54x
5471043 ;;
5481044 c55x-*)
549 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1045 cpu=tic55x
5501046 ;;
5511047 c6x-*)
552 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
553 ;;
554 c90)
555 basic_machine=c90-cray
556 os=-unicos
557 ;;
558 cegcc)
559 basic_machine=arm-unknown
560 os=-cegcc
561 ;;
562 convex-c1)
563 basic_machine=c1-convex
564 os=-bsd
565 ;;
566 convex-c2)
567 basic_machine=c2-convex
568 os=-bsd
569 ;;
570 convex-c32)
571 basic_machine=c32-convex
572 os=-bsd
573 ;;
574 convex-c34)
575 basic_machine=c34-convex
576 os=-bsd
577 ;;
578 convex-c38)
579 basic_machine=c38-convex
580 os=-bsd
581 ;;
582 cray | j90)
583 basic_machine=j90-cray
584 os=-unicos
585 ;;
586 craynv)
587 basic_machine=craynv-cray
588 os=-unicosmp
589 ;;
590 cr16 | cr16-*)
591 basic_machine=cr16-unknown
592 os=-elf
593 ;;
594 crds | unos)
595 basic_machine=m68k-crds
596 ;;
597 crisv32 | crisv32-* | etraxfs*)
598 basic_machine=crisv32-axis
599 ;;
600 cris | cris-* | etrax*)
601 basic_machine=cris-axis
602 ;;
603 crx)
604 basic_machine=crx-unknown
605 os=-elf
606 ;;
607 da30 | da30-*)
608 basic_machine=m68k-da30
609 ;;
610 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
611 basic_machine=mips-dec
612 ;;
613 decsystem10* | dec10*)
614 basic_machine=pdp10-dec
615 os=-tops10
616 ;;
617 decsystem20* | dec20*)
618 basic_machine=pdp10-dec
619 os=-tops20
620 ;;
621 delta | 3300 | motorola-3300 | motorola-delta \
622 | 3300-motorola | delta-motorola)
623 basic_machine=m68k-motorola
624 ;;
625 delta88)
626 basic_machine=m88k-motorola
627 os=-sysv3
628 ;;
629 dicos)
630 basic_machine=i686-pc
631 os=-dicos
632 ;;
633 djgpp)
634 basic_machine=i586-pc
635 os=-msdosdjgpp
636 ;;
637 dpx20 | dpx20-*)
638 basic_machine=rs6000-bull
639 os=-bosx
640 ;;
641 dpx2*)
642 basic_machine=m68k-bull
643 os=-sysv3
644 ;;
645 e500v[12])
646 basic_machine=powerpc-unknown
647 os=$os"spe"
1048 cpu=tic6x
6481049 ;;
6491050 e500v[12]-*)
650 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
651 os=$os"spe"
652 ;;
653 ebmon29k)
654 basic_machine=a29k-amd
655 os=-ebmon
656 ;;
657 elxsi)
658 basic_machine=elxsi-elxsi
659 os=-bsd
660 ;;
661 encore | umax | mmax)
662 basic_machine=ns32k-encore
663 ;;
664 es1800 | OSE68k | ose68k | ose | OSE)
665 basic_machine=m68k-ericsson
666 os=-ose
667 ;;
668 fx2800)
669 basic_machine=i860-alliant
670 ;;
671 genix)
672 basic_machine=ns32k-ns
673 ;;
674 gmicro)
675 basic_machine=tron-gmicro
676 os=-sysv
677 ;;
678 go32)
679 basic_machine=i386-pc
680 os=-go32
681 ;;
682 h3050r* | hiux*)
683 basic_machine=hppa1.1-hitachi
684 os=-hiuxwe2
685 ;;
686 h8300hms)
687 basic_machine=h8300-hitachi
688 os=-hms
689 ;;
690 h8300xray)
691 basic_machine=h8300-hitachi
692 os=-xray
693 ;;
694 h8500hms)
695 basic_machine=h8500-hitachi
696 os=-hms
697 ;;
698 harris)
699 basic_machine=m88k-harris
700 os=-sysv3
701 ;;
702 hp300-*)
703 basic_machine=m68k-hp
704 ;;
705 hp300bsd)
706 basic_machine=m68k-hp
707 os=-bsd
708 ;;
709 hp300hpux)
710 basic_machine=m68k-hp
711 os=-hpux
712 ;;
713 hp3k9[0-9][0-9] | hp9[0-9][0-9])
714 basic_machine=hppa1.0-hp
715 ;;
716 hp9k2[0-9][0-9] | hp9k31[0-9])
717 basic_machine=m68000-hp
718 ;;
719 hp9k3[2-9][0-9])
720 basic_machine=m68k-hp
721 ;;
722 hp9k6[0-9][0-9] | hp6[0-9][0-9])
723 basic_machine=hppa1.0-hp
724 ;;
725 hp9k7[0-79][0-9] | hp7[0-79][0-9])
726 basic_machine=hppa1.1-hp
727 ;;
728 hp9k78[0-9] | hp78[0-9])
729 # FIXME: really hppa2.0-hp
730 basic_machine=hppa1.1-hp
731 ;;
732 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
733 # FIXME: really hppa2.0-hp
734 basic_machine=hppa1.1-hp
735 ;;
736 hp9k8[0-9][13679] | hp8[0-9][13679])
737 basic_machine=hppa1.1-hp
738 ;;
739 hp9k8[0-9][0-9] | hp8[0-9][0-9])
740 basic_machine=hppa1.0-hp
741 ;;
742 hppaosf)
743 basic_machine=hppa1.1-hp
744 os=-osf
745 ;;
746 hppro)
747 basic_machine=hppa1.1-hp
748 os=-proelf
749 ;;
750 i370-ibm* | ibm*)
751 basic_machine=i370-ibm
752 ;;
753 i*86v32)
754 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
755 os=-sysv32
756 ;;
757 i*86v4*)
758 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
759 os=-sysv4
760 ;;
761 i*86v)
762 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
763 os=-sysv
764 ;;
765 i*86sol2)
766 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
767 os=-solaris2
768 ;;
769 i386mach)
770 basic_machine=i386-mach
771 os=-mach
772 ;;
773 vsta)
774 basic_machine=i386-unknown
775 os=-vsta
776 ;;
777 iris | iris4d)
778 basic_machine=mips-sgi
779 case $os in
780 -irix*)
781 ;;
782 *)
783 os=-irix4
784 ;;
1051 cpu=powerpc
1052 basic_os=${basic_os}"spe"
1053 ;;
1054 mips3*-*)
1055 cpu=mips64
1056 ;;
1057 ms1-*)
1058 cpu=mt
1059 ;;
1060 m68knommu-*)
1061 cpu=m68k
1062 basic_os=linux
1063 ;;
1064 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1065 cpu=s12z
1066 ;;
1067 openrisc-*)
1068 cpu=or32
1069 ;;
1070 parisc-*)
1071 cpu=hppa
1072 basic_os=linux
1073 ;;
1074 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1075 cpu=i586
1076 ;;
1077 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1078 cpu=i686
1079 ;;
1080 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1081 cpu=i686
1082 ;;
1083 pentium4-*)
1084 cpu=i786
1085 ;;
1086 pc98-*)
1087 cpu=i386
1088 ;;
1089 ppc-* | ppcbe-*)
1090 cpu=powerpc
1091 ;;
1092 ppcle-* | powerpclittle-*)
1093 cpu=powerpcle
1094 ;;
1095 ppc64-*)
1096 cpu=powerpc64
1097 ;;
1098 ppc64le-* | powerpc64little-*)
1099 cpu=powerpc64le
1100 ;;
1101 sb1-*)
1102 cpu=mipsisa64sb1
1103 ;;
1104 sb1el-*)
1105 cpu=mipsisa64sb1el
1106 ;;
1107 sh5e[lb]-*)
1108 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
1109 ;;
1110 spur-*)
1111 cpu=spur
1112 ;;
1113 strongarm-* | thumb-*)
1114 cpu=arm
1115 ;;
1116 tx39-*)
1117 cpu=mipstx39
1118 ;;
1119 tx39el-*)
1120 cpu=mipstx39el
1121 ;;
1122 x64-*)
1123 cpu=x86_64
1124 ;;
1125 xscale-* | xscalee[bl]-*)
1126 cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1127 ;;
1128 arm64-* | aarch64le-*)
1129 cpu=aarch64
1130 ;;
1131
1132 # Recognize the canonical CPU Types that limit and/or modify the
1133 # company names they are paired with.
1134 cr16-*)
1135 basic_os=${basic_os:-elf}
1136 ;;
1137 crisv32-* | etraxfs*-*)
1138 cpu=crisv32
1139 vendor=axis
1140 ;;
1141 cris-* | etrax*-*)
1142 cpu=cris
1143 vendor=axis
1144 ;;
1145 crx-*)
1146 basic_os=${basic_os:-elf}
1147 ;;
1148 neo-tandem)
1149 cpu=neo
1150 vendor=tandem
1151 ;;
1152 nse-tandem)
1153 cpu=nse
1154 vendor=tandem
1155 ;;
1156 nsr-tandem)
1157 cpu=nsr
1158 vendor=tandem
1159 ;;
1160 nsv-tandem)
1161 cpu=nsv
1162 vendor=tandem
1163 ;;
1164 nsx-tandem)
1165 cpu=nsx
1166 vendor=tandem
1167 ;;
1168 mipsallegrexel-sony)
1169 cpu=mipsallegrexel
1170 vendor=sony
1171 ;;
1172 tile*-*)
1173 basic_os=${basic_os:-linux-gnu}
1174 ;;
1175
1176 *)
1177 # Recognize the canonical CPU types that are allowed with any
1178 # company name.
1179 case $cpu in
1180 1750a | 580 \
1181 | a29k \
1182 | aarch64 | aarch64_be \
1183 | abacus \
1184 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1185 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1186 | alphapca5[67] | alpha64pca5[67] \
1187 | am33_2.0 \
1188 | amdgcn \
1189 | arc | arceb | arc32 | arc64 \
1190 | arm | arm[lb]e | arme[lb] | armv* \
1191 | avr | avr32 \
1192 | asmjs \
1193 | ba \
1194 | be32 | be64 \
1195 | bfin | bpf | bs2000 \
1196 | c[123]* | c30 | [cjt]90 | c4x \
1197 | c8051 | clipper | craynv | csky | cydra \
1198 | d10v | d30v | dlx | dsp16xx \
1199 | e2k | elxsi | epiphany \
1200 | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
1201 | h8300 | h8500 \
1202 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1203 | hexagon \
1204 | i370 | i*86 | i860 | i960 | ia16 | ia64 \
1205 | ip2k | iq2000 \
1206 | k1om \
1207 | le32 | le64 \
1208 | lm32 \
1209 | loongarch32 | loongarch64 | loongarchx32 \
1210 | m32c | m32r | m32rle \
1211 | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
1212 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
1213 | m88110 | m88k | maxq | mb | mcore | mep | metag \
1214 | microblaze | microblazeel \
1215 | mips | mipsbe | mipseb | mipsel | mipsle \
1216 | mips16 \
1217 | mips64 | mips64eb | mips64el \
1218 | mips64octeon | mips64octeonel \
1219 | mips64orion | mips64orionel \
1220 | mips64r5900 | mips64r5900el \
1221 | mips64vr | mips64vrel \
1222 | mips64vr4100 | mips64vr4100el \
1223 | mips64vr4300 | mips64vr4300el \
1224 | mips64vr5000 | mips64vr5000el \
1225 | mips64vr5900 | mips64vr5900el \
1226 | mipsisa32 | mipsisa32el \
1227 | mipsisa32r2 | mipsisa32r2el \
1228 | mipsisa32r3 | mipsisa32r3el \
1229 | mipsisa32r5 | mipsisa32r5el \
1230 | mipsisa32r6 | mipsisa32r6el \
1231 | mipsisa64 | mipsisa64el \
1232 | mipsisa64r2 | mipsisa64r2el \
1233 | mipsisa64r3 | mipsisa64r3el \
1234 | mipsisa64r5 | mipsisa64r5el \
1235 | mipsisa64r6 | mipsisa64r6el \
1236 | mipsisa64sb1 | mipsisa64sb1el \
1237 | mipsisa64sr71k | mipsisa64sr71kel \
1238 | mipsr5900 | mipsr5900el \
1239 | mipstx39 | mipstx39el \
1240 | mmix \
1241 | mn10200 | mn10300 \
1242 | moxie \
1243 | mt \
1244 | msp430 \
1245 | nds32 | nds32le | nds32be \
1246 | nfp \
1247 | nios | nios2 | nios2eb | nios2el \
1248 | none | np1 | ns16k | ns32k | nvptx \
1249 | open8 \
1250 | or1k* \
1251 | or32 \
1252 | orion \
1253 | picochip \
1254 | pdp10 | pdp11 | pj | pjl | pn | power \
1255 | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
1256 | pru \
1257 | pyramid \
1258 | riscv | riscv32 | riscv32be | riscv64 | riscv64be \
1259 | rl78 | romp | rs6000 | rx \
1260 | s390 | s390x \
1261 | score \
1262 | sh | shl \
1263 | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
1264 | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
1265 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
1266 | sparclite \
1267 | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
1268 | spu \
1269 | tahoe \
1270 | thumbv7* \
1271 | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
1272 | tron \
1273 | ubicom32 \
1274 | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
1275 | vax \
1276 | visium \
1277 | w65 \
1278 | wasm32 | wasm64 \
1279 | we32k \
1280 | x86 | x86_64 | xc16x | xgate | xps100 \
1281 | xstormy16 | xtensa* \
1282 | ymp \
1283 | z8k | z80)
1284 ;;
1285
1286 *)
1287 echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
1288 exit 1
1289 ;;
7851290 esac
7861291 ;;
787 isi68 | isi)
788 basic_machine=m68k-isi
789 os=-sysv
790 ;;
791 leon-*|leon[3-9]-*)
792 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
793 ;;
794 m68knommu)
795 basic_machine=m68k-unknown
796 os=-linux
797 ;;
798 m68knommu-*)
799 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
800 os=-linux
801 ;;
802 magnum | m3230)
803 basic_machine=mips-mips
804 os=-sysv
805 ;;
806 merlin)
807 basic_machine=ns32k-utek
808 os=-sysv
809 ;;
810 microblaze*)
811 basic_machine=microblaze-xilinx
812 ;;
813 mingw64)
814 basic_machine=x86_64-pc
815 os=-mingw64
816 ;;
817 mingw32)
818 basic_machine=i686-pc
819 os=-mingw32
820 ;;
821 mingw32ce)
822 basic_machine=arm-unknown
823 os=-mingw32ce
824 ;;
825 miniframe)
826 basic_machine=m68000-convergent
827 ;;
828 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
829 basic_machine=m68k-atari
830 os=-mint
831 ;;
832 mips3*-*)
833 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
834 ;;
835 mips3*)
836 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
837 ;;
838 monitor)
839 basic_machine=m68k-rom68k
840 os=-coff
841 ;;
842 morphos)
843 basic_machine=powerpc-unknown
844 os=-morphos
845 ;;
846 moxiebox)
847 basic_machine=moxie-unknown
848 os=-moxiebox
849 ;;
850 msdos)
851 basic_machine=i386-pc
852 os=-msdos
853 ;;
854 ms1-*)
855 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
856 ;;
857 msys)
858 basic_machine=i686-pc
859 os=-msys
860 ;;
861 mvs)
862 basic_machine=i370-ibm
863 os=-mvs
864 ;;
865 nacl)
866 basic_machine=le32-unknown
867 os=-nacl
868 ;;
869 ncr3000)
870 basic_machine=i486-ncr
871 os=-sysv4
872 ;;
873 netbsd386)
874 basic_machine=i386-unknown
875 os=-netbsd
876 ;;
877 netwinder)
878 basic_machine=armv4l-rebel
879 os=-linux
880 ;;
881 news | news700 | news800 | news900)
882 basic_machine=m68k-sony
883 os=-newsos
884 ;;
885 news1000)
886 basic_machine=m68030-sony
887 os=-newsos
888 ;;
889 news-3600 | risc-news)
890 basic_machine=mips-sony
891 os=-newsos
892 ;;
893 necv70)
894 basic_machine=v70-nec
895 os=-sysv
896 ;;
897 next | m*-next)
898 basic_machine=m68k-next
899 case $os in
900 -nextstep* )
901 ;;
902 -ns2*)
903 os=-nextstep2
904 ;;
905 *)
906 os=-nextstep3
907 ;;
908 esac
909 ;;
910 nh3000)
911 basic_machine=m68k-harris
912 os=-cxux
913 ;;
914 nh[45]000)
915 basic_machine=m88k-harris
916 os=-cxux
917 ;;
918 nindy960)
919 basic_machine=i960-intel
920 os=-nindy
921 ;;
922 mon960)
923 basic_machine=i960-intel
924 os=-mon960
925 ;;
926 nonstopux)
927 basic_machine=mips-compaq
928 os=-nonstopux
929 ;;
930 np1)
931 basic_machine=np1-gould
932 ;;
933 neo-tandem)
934 basic_machine=neo-tandem
935 ;;
936 nse-tandem)
937 basic_machine=nse-tandem
938 ;;
939 nsr-tandem)
940 basic_machine=nsr-tandem
941 ;;
942 nsv-tandem)
943 basic_machine=nsv-tandem
944 ;;
945 nsx-tandem)
946 basic_machine=nsx-tandem
947 ;;
948 op50n-* | op60c-*)
949 basic_machine=hppa1.1-oki
950 os=-proelf
951 ;;
952 openrisc | openrisc-*)
953 basic_machine=or32-unknown
954 ;;
955 os400)
956 basic_machine=powerpc-ibm
957 os=-os400
958 ;;
959 OSE68000 | ose68000)
960 basic_machine=m68000-ericsson
961 os=-ose
962 ;;
963 os68k)
964 basic_machine=m68k-none
965 os=-os68k
966 ;;
967 pa-hitachi)
968 basic_machine=hppa1.1-hitachi
969 os=-hiuxwe2
970 ;;
971 paragon)
972 basic_machine=i860-intel
973 os=-osf
974 ;;
975 parisc)
976 basic_machine=hppa-unknown
977 os=-linux
978 ;;
979 parisc-*)
980 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
981 os=-linux
982 ;;
983 pbd)
984 basic_machine=sparc-tti
985 ;;
986 pbb)
987 basic_machine=m68k-tti
988 ;;
989 pc532 | pc532-*)
990 basic_machine=ns32k-pc532
991 ;;
992 pc98)
993 basic_machine=i386-pc
994 ;;
995 pc98-*)
996 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
997 ;;
998 pentium | p5 | k5 | k6 | nexgen | viac3)
999 basic_machine=i586-pc
1000 ;;
1001 pentiumpro | p6 | 6x86 | athlon | athlon_*)
1002 basic_machine=i686-pc
1003 ;;
1004 pentiumii | pentium2 | pentiumiii | pentium3)
1005 basic_machine=i686-pc
1006 ;;
1007 pentium4)
1008 basic_machine=i786-pc
1009 ;;
1010 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1011 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1012 ;;
1013 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1014 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1015 ;;
1016 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1017 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1018 ;;
1019 pentium4-*)
1020 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1021 ;;
1022 pn)
1023 basic_machine=pn-gould
1024 ;;
1025 power) basic_machine=power-ibm
1026 ;;
1027 ppc | ppcbe) basic_machine=powerpc-unknown
1028 ;;
1029 ppc-* | ppcbe-*)
1030 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1031 ;;
1032 ppcle | powerpclittle)
1033 basic_machine=powerpcle-unknown
1034 ;;
1035 ppcle-* | powerpclittle-*)
1036 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1037 ;;
1038 ppc64) basic_machine=powerpc64-unknown
1039 ;;
1040 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1041 ;;
1042 ppc64le | powerpc64little)
1043 basic_machine=powerpc64le-unknown
1044 ;;
1045 ppc64le-* | powerpc64little-*)
1046 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1047 ;;
1048 ps2)
1049 basic_machine=i386-ibm
1050 ;;
1051 pw32)
1052 basic_machine=i586-unknown
1053 os=-pw32
1054 ;;
1055 rdos | rdos64)
1056 basic_machine=x86_64-pc
1057 os=-rdos
1058 ;;
1059 rdos32)
1060 basic_machine=i386-pc
1061 os=-rdos
1062 ;;
1063 rom68k)
1064 basic_machine=m68k-rom68k
1065 os=-coff
1066 ;;
1067 rm[46]00)
1068 basic_machine=mips-siemens
1069 ;;
1070 rtpc | rtpc-*)
1071 basic_machine=romp-ibm
1072 ;;
1073 s390 | s390-*)
1074 basic_machine=s390-ibm
1075 ;;
1076 s390x | s390x-*)
1077 basic_machine=s390x-ibm
1078 ;;
1079 sa29200)
1080 basic_machine=a29k-amd
1081 os=-udi
1082 ;;
1083 sb1)
1084 basic_machine=mipsisa64sb1-unknown
1085 ;;
1086 sb1el)
1087 basic_machine=mipsisa64sb1el-unknown
1088 ;;
1089 sde)
1090 basic_machine=mipsisa32-sde
1091 os=-elf
1092 ;;
1093 sei)
1094 basic_machine=mips-sei
1095 os=-seiux
1096 ;;
1097 sequent)
1098 basic_machine=i386-sequent
1099 ;;
1100 sh5el)
1101 basic_machine=sh5le-unknown
1102 ;;
1103 simso-wrs)
1104 basic_machine=sparclite-wrs
1105 os=-vxworks
1106 ;;
1107 sps7)
1108 basic_machine=m68k-bull
1109 os=-sysv2
1110 ;;
1111 spur)
1112 basic_machine=spur-unknown
1113 ;;
1114 st2000)
1115 basic_machine=m68k-tandem
1116 ;;
1117 stratus)
1118 basic_machine=i860-stratus
1119 os=-sysv4
1120 ;;
1121 strongarm-* | thumb-*)
1122 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1123 ;;
1124 sun2)
1125 basic_machine=m68000-sun
1126 ;;
1127 sun2os3)
1128 basic_machine=m68000-sun
1129 os=-sunos3
1130 ;;
1131 sun2os4)
1132 basic_machine=m68000-sun
1133 os=-sunos4
1134 ;;
1135 sun3os3)
1136 basic_machine=m68k-sun
1137 os=-sunos3
1138 ;;
1139 sun3os4)
1140 basic_machine=m68k-sun
1141 os=-sunos4
1142 ;;
1143 sun4os3)
1144 basic_machine=sparc-sun
1145 os=-sunos3
1146 ;;
1147 sun4os4)
1148 basic_machine=sparc-sun
1149 os=-sunos4
1150 ;;
1151 sun4sol2)
1152 basic_machine=sparc-sun
1153 os=-solaris2
1154 ;;
1155 sun3 | sun3-*)
1156 basic_machine=m68k-sun
1157 ;;
1158 sun4)
1159 basic_machine=sparc-sun
1160 ;;
1161 sun386 | sun386i | roadrunner)
1162 basic_machine=i386-sun
1163 ;;
1164 sv1)
1165 basic_machine=sv1-cray
1166 os=-unicos
1167 ;;
1168 symmetry)
1169 basic_machine=i386-sequent
1170 os=-dynix
1171 ;;
1172 t3e)
1173 basic_machine=alphaev5-cray
1174 os=-unicos
1175 ;;
1176 t90)
1177 basic_machine=t90-cray
1178 os=-unicos
1179 ;;
1180 tile*)
1181 basic_machine=$basic_machine-unknown
1182 os=-linux-gnu
1183 ;;
1184 tx39)
1185 basic_machine=mipstx39-unknown
1186 ;;
1187 tx39el)
1188 basic_machine=mipstx39el-unknown
1189 ;;
1190 toad1)
1191 basic_machine=pdp10-xkl
1192 os=-tops20
1193 ;;
1194 tower | tower-32)
1195 basic_machine=m68k-ncr
1196 ;;
1197 tpf)
1198 basic_machine=s390x-ibm
1199 os=-tpf
1200 ;;
1201 udi29k)
1202 basic_machine=a29k-amd
1203 os=-udi
1204 ;;
1205 ultra3)
1206 basic_machine=a29k-nyu
1207 os=-sym1
1208 ;;
1209 v810 | necv810)
1210 basic_machine=v810-nec
1211 os=-none
1212 ;;
1213 vaxv)
1214 basic_machine=vax-dec
1215 os=-sysv
1216 ;;
1217 vms)
1218 basic_machine=vax-dec
1219 os=-vms
1220 ;;
1221 vpp*|vx|vx-*)
1222 basic_machine=f301-fujitsu
1223 ;;
1224 vxworks960)
1225 basic_machine=i960-wrs
1226 os=-vxworks
1227 ;;
1228 vxworks68)
1229 basic_machine=m68k-wrs
1230 os=-vxworks
1231 ;;
1232 vxworks29k)
1233 basic_machine=a29k-wrs
1234 os=-vxworks
1235 ;;
1236 w65*)
1237 basic_machine=w65-wdc
1238 os=-none
1239 ;;
1240 w89k-*)
1241 basic_machine=hppa1.1-winbond
1242 os=-proelf
1243 ;;
1244 x64)
1245 basic_machine=x86_64-pc
1246 ;;
1247 xbox)
1248 basic_machine=i686-pc
1249 os=-mingw32
1250 ;;
1251 xps | xps100)
1252 basic_machine=xps100-honeywell
1253 ;;
1254 xscale-* | xscalee[bl]-*)
1255 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
1256 ;;
1257 ymp)
1258 basic_machine=ymp-cray
1259 os=-unicos
1260 ;;
1261 none)
1262 basic_machine=none-none
1263 os=-none
1264 ;;
1265
1266 # Here we handle the default manufacturer of certain CPU types. It is in
1267 # some cases the only manufacturer, in others, it is the most popular.
1268 w89k)
1269 basic_machine=hppa1.1-winbond
1270 ;;
1271 op50n)
1272 basic_machine=hppa1.1-oki
1273 ;;
1274 op60c)
1275 basic_machine=hppa1.1-oki
1276 ;;
1277 romp)
1278 basic_machine=romp-ibm
1279 ;;
1280 mmix)
1281 basic_machine=mmix-knuth
1282 ;;
1283 rs6000)
1284 basic_machine=rs6000-ibm
1285 ;;
1286 vax)
1287 basic_machine=vax-dec
1288 ;;
1289 pdp11)
1290 basic_machine=pdp11-dec
1291 ;;
1292 we32k)
1293 basic_machine=we32k-att
1294 ;;
1295 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1296 basic_machine=sh-unknown
1297 ;;
1298 cydra)
1299 basic_machine=cydra-cydrome
1300 ;;
1301 orion)
1302 basic_machine=orion-highlevel
1303 ;;
1304 orion105)
1305 basic_machine=clipper-highlevel
1306 ;;
1307 mac | mpw | mac-mpw)
1308 basic_machine=m68k-apple
1309 ;;
1310 pmac | pmac-mpw)
1311 basic_machine=powerpc-apple
1312 ;;
1313 *-unknown)
1314 # Make sure to match an already-canonicalized machine name.
1292 esac
1293
1294 # Here we canonicalize certain aliases for manufacturers.
1295 case $vendor in
1296 digital*)
1297 vendor=dec
1298 ;;
1299 commodore*)
1300 vendor=cbm
13151301 ;;
13161302 *)
1317 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
1318 exit 1
13191303 ;;
13201304 esac
13211305
1322 # Here we canonicalize certain aliases for manufacturers.
1323 case $basic_machine in
1324 *-digital*)
1325 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
1326 ;;
1327 *-commodore*)
1328 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
1306 # Decode manufacturer-specific aliases for certain operating systems.
1307
1308 if test x$basic_os != x
1309 then
1310
1311 # First recognize some ad-hoc cases, or perhaps split kernel-os, or else just
1312 # set os.
1313 case $basic_os in
1314 gnu/linux*)
1315 kernel=linux
1316 os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'`
1317 ;;
1318 os2-emx)
1319 kernel=os2
1320 os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'`
1321 ;;
1322 nto-qnx*)
1323 kernel=nto
1324 os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'`
1325 ;;
1326 *-*)
1327 # shellcheck disable=SC2162
1328 saved_IFS=$IFS
1329 IFS="-" read kernel os <<EOF
1330 $basic_os
1331 EOF
1332 IFS=$saved_IFS
1333 ;;
1334 # Default OS when just kernel was specified
1335 nto*)
1336 kernel=nto
1337 os=`echo "$basic_os" | sed -e 's|nto|qnx|'`
1338 ;;
1339 linux*)
1340 kernel=linux
1341 os=`echo "$basic_os" | sed -e 's|linux|gnu|'`
13291342 ;;
13301343 *)
1344 kernel=
1345 os=$basic_os
13311346 ;;
13321347 esac
13331348
1334 # Decode manufacturer-specific aliases for certain operating systems.
1335
1336 if [ x"$os" != x"" ]
1337 then
1349 # Now, normalize the OS (knowing we just have one component, it's not a kernel,
1350 # etc.)
13381351 case $os in
13391352 # First match some system type aliases that might get confused
13401353 # with valid system types.
1341 # -solaris* is a basic system type, with this one exception.
1342 -auroraux)
1343 os=-auroraux
1344 ;;
1345 -solaris1 | -solaris1.*)
1346 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1347 ;;
1348 -solaris)
1349 os=-solaris2
1350 ;;
1351 -unixware*)
1352 os=-sysv4.2uw
1353 ;;
1354 -gnu/linux*)
1355 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1354 # solaris* is a basic system type, with this one exception.
1355 auroraux)
1356 os=auroraux
1357 ;;
1358 bluegene*)
1359 os=cnk
1360 ;;
1361 solaris1 | solaris1.*)
1362 os=`echo "$os" | sed -e 's|solaris1|sunos4|'`
1363 ;;
1364 solaris)
1365 os=solaris2
1366 ;;
1367 unixware*)
1368 os=sysv4.2uw
13561369 ;;
13571370 # es1800 is here to avoid being matched by es* (a different OS)
1358 -es1800*)
1359 os=-ose
1360 ;;
1361 # Now accept the basic system types.
1362 # The portable systems comes first.
1363 # Each alternative MUST end in a * to match a version number.
1364 # -sysv* is not here because it comes later, after sysvr4.
1365 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1366 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1367 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1368 | -sym* | -kopensolaris* | -plan9* \
1369 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1370 | -aos* | -aros* | -cloudabi* | -sortix* \
1371 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1372 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1373 | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \
1374 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
1375 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1376 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1377 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1378 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1379 | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
1380 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1381 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1382 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1383 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1384 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \
1385 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1386 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1387 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1388 | -morphos* | -superux* | -rtmk* | -windiss* \
1389 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1390 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1391 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
1392 | -midnightbsd*)
1393 # Remember, each alternative MUST END IN *, to match a version number.
1394 ;;
1395 -qnx*)
1396 case $basic_machine in
1397 x86-* | i*86-*)
1398 ;;
1399 *)
1400 os=-nto$os
1401 ;;
1402 esac
1403 ;;
1404 -nto-qnx*)
1405 ;;
1406 -nto*)
1407 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1408 ;;
1409 -sim | -xray | -os68k* | -v88r* \
1410 | -windows* | -osx | -abug | -netware* | -os9* \
1411 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1412 ;;
1413 -mac*)
1371 es1800*)
1372 os=ose
1373 ;;
1374 # Some version numbers need modification
1375 chorusos*)
1376 os=chorusos
1377 ;;
1378 isc)
1379 os=isc2.2
1380 ;;
1381 sco6)
1382 os=sco5v6
1383 ;;
1384 sco5)
1385 os=sco3.2v5
1386 ;;
1387 sco4)
1388 os=sco3.2v4
1389 ;;
1390 sco3.2.[4-9]*)
1391 os=`echo "$os" | sed -e 's/sco3.2./sco3.2v/'`
1392 ;;
1393 sco*v* | scout)
1394 # Don't match below
1395 ;;
1396 sco*)
1397 os=sco3.2v2
1398 ;;
1399 psos*)
1400 os=psos
1401 ;;
1402 qnx*)
1403 os=qnx
1404 ;;
1405 hiux*)
1406 os=hiuxwe2
1407 ;;
1408 lynx*178)
1409 os=lynxos178
1410 ;;
1411 lynx*5)
1412 os=lynxos5
1413 ;;
1414 lynxos*)
1415 # don't get caught up in next wildcard
1416 ;;
1417 lynx*)
1418 os=lynxos
1419 ;;
1420 mac[0-9]*)
14141421 os=`echo "$os" | sed -e 's|mac|macos|'`
14151422 ;;
1416 -linux-dietlibc)
1417 os=-linux-dietlibc
1418 ;;
1419 -linux*)
1420 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1421 ;;
1422 -sunos5*)
1423 opened*)
1424 os=openedition
1425 ;;
1426 os400*)
1427 os=os400
1428 ;;
1429 sunos5*)
14231430 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
14241431 ;;
1425 -sunos6*)
1432 sunos6*)
14261433 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
14271434 ;;
1428 -opened*)
1429 os=-openedition
1430 ;;
1431 -os400*)
1432 os=-os400
1433 ;;
1434 -wince*)
1435 os=-wince
1436 ;;
1437 -utek*)
1438 os=-bsd
1439 ;;
1440 -dynix*)
1441 os=-bsd
1442 ;;
1443 -acis*)
1444 os=-aos
1445 ;;
1446 -atheos*)
1447 os=-atheos
1448 ;;
1449 -syllable*)
1450 os=-syllable
1451 ;;
1452 -386bsd)
1453 os=-bsd
1454 ;;
1455 -ctix* | -uts*)
1456 os=-sysv
1457 ;;
1458 -nova*)
1459 os=-rtmk-nova
1460 ;;
1461 -ns2)
1462 os=-nextstep2
1463 ;;
1464 -nsk*)
1465 os=-nsk
1435 wince*)
1436 os=wince
1437 ;;
1438 utek*)
1439 os=bsd
1440 ;;
1441 dynix*)
1442 os=bsd
1443 ;;
1444 acis*)
1445 os=aos
1446 ;;
1447 atheos*)
1448 os=atheos
1449 ;;
1450 syllable*)
1451 os=syllable
1452 ;;
1453 386bsd)
1454 os=bsd
1455 ;;
1456 ctix* | uts*)
1457 os=sysv
1458 ;;
1459 nova*)
1460 os=rtmk-nova
1461 ;;
1462 ns2)
1463 os=nextstep2
14661464 ;;
14671465 # Preserve the version number of sinix5.
1468 -sinix5.*)
1469 os=`echo $os | sed -e 's|sinix|sysv|'`
1470 ;;
1471 -sinix*)
1472 os=-sysv4
1473 ;;
1474 -tpf*)
1475 os=-tpf
1476 ;;
1477 -triton*)
1478 os=-sysv3
1479 ;;
1480 -oss*)
1481 os=-sysv3
1482 ;;
1483 -svr4*)
1484 os=-sysv4
1485 ;;
1486 -svr3)
1487 os=-sysv3
1488 ;;
1489 -sysvr4)
1490 os=-sysv4
1491 ;;
1492 # This must come after -sysvr4.
1493 -sysv*)
1494 ;;
1495 -ose*)
1496 os=-ose
1497 ;;
1498 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1499 os=-mint
1500 ;;
1501 -zvmoe)
1502 os=-zvmoe
1503 ;;
1504 -dicos*)
1505 os=-dicos
1506 ;;
1507 -pikeos*)
1466 sinix5.*)
1467 os=`echo "$os" | sed -e 's|sinix|sysv|'`
1468 ;;
1469 sinix*)
1470 os=sysv4
1471 ;;
1472 tpf*)
1473 os=tpf
1474 ;;
1475 triton*)
1476 os=sysv3
1477 ;;
1478 oss*)
1479 os=sysv3
1480 ;;
1481 svr4*)
1482 os=sysv4
1483 ;;
1484 svr3)
1485 os=sysv3
1486 ;;
1487 sysvr4)
1488 os=sysv4
1489 ;;
1490 ose*)
1491 os=ose
1492 ;;
1493 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1494 os=mint
1495 ;;
1496 dicos*)
1497 os=dicos
1498 ;;
1499 pikeos*)
15081500 # Until real need of OS specific support for
15091501 # particular features comes up, bare metal
15101502 # configurations are quite functional.
1511 case $basic_machine in
1503 case $cpu in
15121504 arm*)
1513 os=-eabi
1505 os=eabi
15141506 ;;
15151507 *)
1516 os=-elf
1508 os=elf
15171509 ;;
15181510 esac
15191511 ;;
1520 -nacl*)
1521 ;;
1522 -ios)
1523 ;;
1524 -none)
1525 ;;
15261512 *)
1527 # Get rid of the `-' at the beginning of $os.
1528 os=`echo $os | sed 's/[^-]*-//'`
1529 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
1530 exit 1
1513 # No normalization, but not necessarily accepted, that comes below.
15311514 ;;
15321515 esac
1516
15331517 else
15341518
15351519 # Here we handle the default operating systems that come with various machines.
15421526 # will signal an error saying that MANUFACTURER isn't an operating
15431527 # system, and we'll never get to this point.
15441528
1545 case $basic_machine in
1529 kernel=
1530 case $cpu-$vendor in
15461531 score-*)
1547 os=-elf
1532 os=elf
15481533 ;;
15491534 spu-*)
1550 os=-elf
1535 os=elf
15511536 ;;
15521537 *-acorn)
1553 os=-riscix1.2
1538 os=riscix1.2
15541539 ;;
15551540 arm*-rebel)
1556 os=-linux
1541 kernel=linux
1542 os=gnu
15571543 ;;
15581544 arm*-semi)
1559 os=-aout
1545 os=aout
15601546 ;;
15611547 c4x-* | tic4x-*)
1562 os=-coff
1548 os=coff
15631549 ;;
15641550 c8051-*)
1565 os=-elf
1551 os=elf
1552 ;;
1553 clipper-intergraph)
1554 os=clix
15661555 ;;
15671556 hexagon-*)
1568 os=-elf
1557 os=elf
15691558 ;;
15701559 tic54x-*)
1571 os=-coff
1560 os=coff
15721561 ;;
15731562 tic55x-*)
1574 os=-coff
1563 os=coff
15751564 ;;
15761565 tic6x-*)
1577 os=-coff
1566 os=coff
15781567 ;;
15791568 # This must come before the *-dec entry.
15801569 pdp10-*)
1581 os=-tops20
1570 os=tops20
15821571 ;;
15831572 pdp11-*)
1584 os=-none
1573 os=none
15851574 ;;
15861575 *-dec | vax-*)
1587 os=-ultrix4.2
1576 os=ultrix4.2
15881577 ;;
15891578 m68*-apollo)
1590 os=-domain
1579 os=domain
15911580 ;;
15921581 i386-sun)
1593 os=-sunos4.0.2
1582 os=sunos4.0.2
15941583 ;;
15951584 m68000-sun)
1596 os=-sunos3
1585 os=sunos3
15971586 ;;
15981587 m68*-cisco)
1599 os=-aout
1588 os=aout
16001589 ;;
16011590 mep-*)
1602 os=-elf
1591 os=elf
16031592 ;;
16041593 mips*-cisco)
1605 os=-elf
1594 os=elf
16061595 ;;
16071596 mips*-*)
1608 os=-elf
1597 os=elf
16091598 ;;
16101599 or32-*)
1611 os=-coff
1600 os=coff
16121601 ;;
16131602 *-tti) # must be before sparc entry or we get the wrong os.
1614 os=-sysv3
1603 os=sysv3
16151604 ;;
16161605 sparc-* | *-sun)
1617 os=-sunos4.1.1
1606 os=sunos4.1.1
16181607 ;;
16191608 pru-*)
1620 os=-elf
1609 os=elf
16211610 ;;
16221611 *-be)
1623 os=-beos
1612 os=beos
16241613 ;;
16251614 *-ibm)
1626 os=-aix
1615 os=aix
16271616 ;;
16281617 *-knuth)
1629 os=-mmixware
1618 os=mmixware
16301619 ;;
16311620 *-wec)
1632 os=-proelf
1621 os=proelf
16331622 ;;
16341623 *-winbond)
1635 os=-proelf
1624 os=proelf
16361625 ;;
16371626 *-oki)
1638 os=-proelf
1627 os=proelf
16391628 ;;
16401629 *-hp)
1641 os=-hpux
1630 os=hpux
16421631 ;;
16431632 *-hitachi)
1644 os=-hiux
1633 os=hiux
16451634 ;;
16461635 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1647 os=-sysv
1636 os=sysv
16481637 ;;
16491638 *-cbm)
1650 os=-amigaos
1639 os=amigaos
16511640 ;;
16521641 *-dg)
1653 os=-dgux
1642 os=dgux
16541643 ;;
16551644 *-dolphin)
1656 os=-sysv3
1645 os=sysv3
16571646 ;;
16581647 m68k-ccur)
1659 os=-rtu
1648 os=rtu
16601649 ;;
16611650 m88k-omron*)
1662 os=-luna
1651 os=luna
16631652 ;;
16641653 *-next)
1665 os=-nextstep
1654 os=nextstep
16661655 ;;
16671656 *-sequent)
1668 os=-ptx
1657 os=ptx
16691658 ;;
16701659 *-crds)
1671 os=-unos
1660 os=unos
16721661 ;;
16731662 *-ns)
1674 os=-genix
1663 os=genix
16751664 ;;
16761665 i370-*)
1677 os=-mvs
1666 os=mvs
16781667 ;;
16791668 *-gould)
1680 os=-sysv
1669 os=sysv
16811670 ;;
16821671 *-highlevel)
1683 os=-bsd
1672 os=bsd
16841673 ;;
16851674 *-encore)
1686 os=-bsd
1675 os=bsd
16871676 ;;
16881677 *-sgi)
1689 os=-irix
1678 os=irix
16901679 ;;
16911680 *-siemens)
1692 os=-sysv4
1681 os=sysv4
16931682 ;;
16941683 *-masscomp)
1695 os=-rtu
1684 os=rtu
16961685 ;;
16971686 f30[01]-fujitsu | f700-fujitsu)
1698 os=-uxpv
1687 os=uxpv
16991688 ;;
17001689 *-rom68k)
1701 os=-coff
1690 os=coff
17021691 ;;
17031692 *-*bug)
1704 os=-coff
1693 os=coff
17051694 ;;
17061695 *-apple)
1707 os=-macos
1696 os=macos
17081697 ;;
17091698 *-atari*)
1710 os=-mint
1699 os=mint
1700 ;;
1701 *-wrs)
1702 os=vxworks
17111703 ;;
17121704 *)
1713 os=-none
1705 os=none
17141706 ;;
17151707 esac
1708
17161709 fi
1710
1711 # Now, validate our (potentially fixed-up) OS.
1712 case $os in
1713 # Sometimes we do "kernel-libc", so those need to count as OSes.
1714 musl* | newlib* | relibc* | uclibc*)
1715 ;;
1716 # Likewise for "kernel-abi"
1717 eabi* | gnueabi*)
1718 ;;
1719 # VxWorks passes extra cpu info in the 4th filed.
1720 simlinux | simwindows | spe)
1721 ;;
1722 # Now accept the basic system types.
1723 # The portable systems comes first.
1724 # Each alternative MUST end in a * to match a version number.
1725 gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
1726 | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \
1727 | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
1728 | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \
1729 | hiux* | abug | nacl* | netware* | windows* \
1730 | os9* | macos* | osx* | ios* \
1731 | mpw* | magic* | mmixware* | mon960* | lnews* \
1732 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
1733 | aos* | aros* | cloudabi* | sortix* | twizzler* \
1734 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
1735 | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
1736 | mirbsd* | netbsd* | dicos* | openedition* | ose* \
1737 | bitrig* | openbsd* | secbsd* | solidbsd* | libertybsd* | os108* \
1738 | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \
1739 | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
1740 | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
1741 | udi* | lites* | ieee* | go32* | aux* | hcos* \
1742 | chorusrdb* | cegcc* | glidix* | serenity* \
1743 | cygwin* | msys* | pe* | moss* | proelf* | rtems* \
1744 | midipix* | mingw32* | mingw64* | mint* \
1745 | uxpv* | beos* | mpeix* | udk* | moxiebox* \
1746 | interix* | uwin* | mks* | rhapsody* | darwin* \
1747 | openstep* | oskit* | conix* | pw32* | nonstopux* \
1748 | storm-chaos* | tops10* | tenex* | tops20* | its* \
1749 | os2* | vos* | palmos* | uclinux* | nucleus* | morphos* \
1750 | scout* | superux* | sysv* | rtmk* | tpf* | windiss* \
1751 | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
1752 | skyos* | haiku* | rdos* | toppers* | drops* | es* \
1753 | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
1754 | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
1755 | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \
1756 | fiwix* )
1757 ;;
1758 # This one is extra strict with allowed versions
1759 sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
1760 # Don't forget version if it is 3.2v4 or newer.
1761 ;;
1762 none)
1763 ;;
1764 *)
1765 echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2
1766 exit 1
1767 ;;
1768 esac
1769
1770 # As a final step for OS-related things, validate the OS-kernel combination
1771 # (given a valid OS), if there is a kernel.
1772 case $kernel-$os in
1773 linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \
1774 | linux-musl* | linux-relibc* | linux-uclibc* )
1775 ;;
1776 uclinux-uclibc* )
1777 ;;
1778 -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* )
1779 # These are just libc implementations, not actual OSes, and thus
1780 # require a kernel.
1781 echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2
1782 exit 1
1783 ;;
1784 kfreebsd*-gnu* | kopensolaris*-gnu*)
1785 ;;
1786 vxworks-simlinux | vxworks-simwindows | vxworks-spe)
1787 ;;
1788 nto-qnx*)
1789 ;;
1790 os2-emx)
1791 ;;
1792 *-eabi* | *-gnueabi*)
1793 ;;
1794 -*)
1795 # Blank kernel with real OS is always fine.
1796 ;;
1797 *-*)
1798 echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2
1799 exit 1
1800 ;;
1801 esac
17171802
17181803 # Here we handle the case where we know the os, and the CPU type, but not the
17191804 # manufacturer. We pick the logical manufacturer.
1720 vendor=unknown
1721 case $basic_machine in
1722 *-unknown)
1723 case $os in
1724 -riscix*)
1805 case $vendor in
1806 unknown)
1807 case $cpu-$os in
1808 *-riscix*)
17251809 vendor=acorn
17261810 ;;
1727 -sunos*)
1811 *-sunos*)
17281812 vendor=sun
17291813 ;;
1730 -cnk*|-aix*)
1814 *-cnk* | *-aix*)
17311815 vendor=ibm
17321816 ;;
1733 -beos*)
1817 *-beos*)
17341818 vendor=be
17351819 ;;
1736 -hpux*)
1820 *-hpux*)
17371821 vendor=hp
17381822 ;;
1739 -mpeix*)
1823 *-mpeix*)
17401824 vendor=hp
17411825 ;;
1742 -hiux*)
1826 *-hiux*)
17431827 vendor=hitachi
17441828 ;;
1745 -unos*)
1829 *-unos*)
17461830 vendor=crds
17471831 ;;
1748 -dgux*)
1832 *-dgux*)
17491833 vendor=dg
17501834 ;;
1751 -luna*)
1835 *-luna*)
17521836 vendor=omron
17531837 ;;
1754 -genix*)
1838 *-genix*)
17551839 vendor=ns
17561840 ;;
1757 -mvs* | -opened*)
1841 *-clix*)
1842 vendor=intergraph
1843 ;;
1844 *-mvs* | *-opened*)
17581845 vendor=ibm
17591846 ;;
1760 -os400*)
1847 *-os400*)
17611848 vendor=ibm
17621849 ;;
1763 -ptx*)
1850 s390-* | s390x-*)
1851 vendor=ibm
1852 ;;
1853 *-ptx*)
17641854 vendor=sequent
17651855 ;;
1766 -tpf*)
1856 *-tpf*)
17671857 vendor=ibm
17681858 ;;
1769 -vxsim* | -vxworks* | -windiss*)
1859 *-vxsim* | *-vxworks* | *-windiss*)
17701860 vendor=wrs
17711861 ;;
1772 -aux*)
1862 *-aux*)
17731863 vendor=apple
17741864 ;;
1775 -hms*)
1865 *-hms*)
17761866 vendor=hitachi
17771867 ;;
1778 -mpw* | -macos*)
1868 *-mpw* | *-macos*)
17791869 vendor=apple
17801870 ;;
1781 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1871 *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*)
17821872 vendor=atari
17831873 ;;
1784 -vos*)
1874 *-vos*)
17851875 vendor=stratus
17861876 ;;
17871877 esac
1788 basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`
17891878 ;;
17901879 esac
17911880
1792 echo "$basic_machine$os"
1881 echo "$cpu-$vendor-${kernel:+$kernel-}$os"
17931882 exit
17941883
17951884 # Local variables:
1796 # eval: (add-hook 'write-file-functions 'time-stamp)
1885 # eval: (add-hook 'before-save-hook 'time-stamp)
17971886 # time-stamp-start: "timestamp='"
17981887 # time-stamp-format: "%:y-%02m-%02d"
17991888 # time-stamp-end: "'"
678678 PKG_CONFIG_LIBDIR
679679 PKG_CONFIG_PATH
680680 PKG_CONFIG
681 XGETTEXT_ARGS
682 MKINSTALLDIRS
683 POSUB
684 POFILES
685 PO_IN_DATADIR_FALSE
686 PO_IN_DATADIR_TRUE
687 INTLLIBS
688 INSTOBJEXT
689 GMOFILES
690 DATADIRNAME
691 CATOBJEXT
692 CATALOGS
693 MSGFMT_OPTS
694 INTL_MACOSX_LIBS
695681 GETTEXT_PACKAGE
696682 LT_SYS_LIBRARY_PATH
697683 OTOOL64
705691 AR
706692 DLLTOOL
707693 OBJDUMP
694 FILECMD
708695 LN_S
709696 NM
710697 ac_ct_DUMPBIN
52485235
52495236
52505237
5251 macro_version='2.4.6'
5252 macro_revision='2.4.6'
5238 macro_version='2.4.7'
5239 macro_revision='2.4.7'
52535240
52545241
52555242
58775864 mingw*) lt_bad_file=conftest.nm/nofile ;;
58785865 *) lt_bad_file=/dev/null ;;
58795866 esac
5880 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5867 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
58815868 *$lt_bad_file* | *'Invalid file or object type'*)
58825869 lt_cv_path_NM="$tmp_nm -B"
58835870 break 2
58845871 ;;
58855872 *)
5886 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5873 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
58875874 */dev/null*)
58885875 lt_cv_path_NM="$tmp_nm -p"
58895876 break 2
60216008 fi
60226009 fi
60236010
6024 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6011 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
60256012 *COFF*)
60266013 DUMPBIN="$DUMPBIN -symbols -headers"
60276014 ;;
61256112 lt_cv_sys_max_cmd_len=8192;
61266113 ;;
61276114
6128 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6115 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
61296116 # This has been around since 386BSD, at least. Likely further.
61306117 if test -x /sbin/sysctl; then
61316118 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
61686155 sysv5* | sco5v6* | sysv4.2uw2*)
61696156 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
61706157 if test -n "$kargmax"; then
6171 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6158 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
61726159 else
61736160 lt_cv_sys_max_cmd_len=32768
61746161 fi
63746361
63756362
63766363 if test -n "$ac_tool_prefix"; then
6364 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6365 set dummy ${ac_tool_prefix}file; ac_word=$2
6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367 printf %s "checking for $ac_word... " >&6; }
6368 if test ${ac_cv_prog_FILECMD+y}
6369 then :
6370 printf %s "(cached) " >&6
6371 else $as_nop
6372 if test -n "$FILECMD"; then
6373 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6374 else
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6377 do
6378 IFS=$as_save_IFS
6379 case $as_dir in #(((
6380 '') as_dir=./ ;;
6381 */) ;;
6382 *) as_dir=$as_dir/ ;;
6383 esac
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6386 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6388 break 2
6389 fi
6390 done
6391 done
6392 IFS=$as_save_IFS
6393
6394 fi
6395 fi
6396 FILECMD=$ac_cv_prog_FILECMD
6397 if test -n "$FILECMD"; then
6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6399 printf "%s\n" "$FILECMD" >&6; }
6400 else
6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 printf "%s\n" "no" >&6; }
6403 fi
6404
6405
6406 fi
6407 if test -z "$ac_cv_prog_FILECMD"; then
6408 ac_ct_FILECMD=$FILECMD
6409 # Extract the first word of "file", so it can be a program name with args.
6410 set dummy file; ac_word=$2
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 printf %s "checking for $ac_word... " >&6; }
6413 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6414 then :
6415 printf %s "(cached) " >&6
6416 else $as_nop
6417 if test -n "$ac_ct_FILECMD"; then
6418 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6419 else
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6422 do
6423 IFS=$as_save_IFS
6424 case $as_dir in #(((
6425 '') as_dir=./ ;;
6426 */) ;;
6427 *) as_dir=$as_dir/ ;;
6428 esac
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6431 ac_cv_prog_ac_ct_FILECMD="file"
6432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6433 break 2
6434 fi
6435 done
6436 done
6437 IFS=$as_save_IFS
6438
6439 fi
6440 fi
6441 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6442 if test -n "$ac_ct_FILECMD"; then
6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6444 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6445 else
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 printf "%s\n" "no" >&6; }
6448 fi
6449
6450 if test "x$ac_ct_FILECMD" = x; then
6451 FILECMD=":"
6452 else
6453 case $cross_compiling:$ac_tool_warned in
6454 yes:)
6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6456 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6457 ac_tool_warned=yes ;;
6458 esac
6459 FILECMD=$ac_ct_FILECMD
6460 fi
6461 else
6462 FILECMD="$ac_cv_prog_FILECMD"
6463 fi
6464
6465
6466
6467
6468
6469
6470
6471 if test -n "$ac_tool_prefix"; then
63776472 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
63786473 set dummy ${ac_tool_prefix}objdump; ac_word=$2
63796474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
65166611
65176612 bsdi[45]*)
65186613 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6519 lt_cv_file_magic_cmd='/usr/bin/file -L'
6614 lt_cv_file_magic_cmd='$FILECMD -L'
65206615 lt_cv_file_magic_test_file=/shlib/libc.so
65216616 ;;
65226617
65506645 lt_cv_deplibs_check_method=pass_all
65516646 ;;
65526647
6553 freebsd* | dragonfly*)
6648 freebsd* | dragonfly* | midnightbsd*)
65546649 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
65556650 case $host_cpu in
65566651 i*86 )
65576652 # Not sure whether the presence of OpenBSD here was a mistake.
65586653 # Let's accept both of them until this is cleared up.
65596654 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6560 lt_cv_file_magic_cmd=/usr/bin/file
6655 lt_cv_file_magic_cmd=$FILECMD
65616656 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
65626657 ;;
65636658 esac
65716666 ;;
65726667
65736668 hpux10.20* | hpux11*)
6574 lt_cv_file_magic_cmd=/usr/bin/file
6669 lt_cv_file_magic_cmd=$FILECMD
65756670 case $host_cpu in
65766671 ia64*)
65776672 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
66186713
66196714 newos6*)
66206715 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6621 lt_cv_file_magic_cmd=/usr/bin/file
6716 lt_cv_file_magic_cmd=$FILECMD
66226717 lt_cv_file_magic_test_file=/usr/lib/libnls.so
66236718 ;;
66246719
69927087 fi
69937088
69947089 : ${AR=ar}
6995 : ${AR_FLAGS=cr}
6996
6997
6998
6999
7000
7090
7091
7092
7093
7094
7095
7096 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7097 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7098 # higher priority because thats what people were doing historically (setting
7099 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7100 # variable obsoleted/removed.
7101
7102 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7103 lt_ar_flags=$AR_FLAGS
7104
7105
7106
7107
7108
7109
7110 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7111 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
70017112
70027113
70037114
74157526
74167527 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
74177528 # Gets list of data symbols to import.
7418 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7529 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
74197530 # Adjust the below global symbol transforms to fixup imported variables.
74207531 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
74217532 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
74337544 # Transform an extracted symbol line into a proper C declaration.
74347545 # Some systems (esp. on ia64) link data and code symbols differently,
74357546 # so use this general approach.
7436 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7547 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
74377548 $lt_cdecl_hook\
74387549 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
74397550 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
74407551
74417552 # Transform an extracted symbol line into symbol name and symbol address
7442 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7553 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
74437554 $lt_c_name_hook\
74447555 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
74457556 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
74467557
74477558 # Transform an extracted symbol line into symbol name with lib prefix and
74487559 # symbol address.
7449 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7560 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
74507561 $lt_c_name_lib_hook\
74517562 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
74527563 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
74707581 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
74717582 # Fake it for dumpbin and say T for any non-static function,
74727583 # D for any global variable and I for any imported variable.
7473 # Also find C++ and __fastcall symbols from MSVC++,
7584 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
74747585 # which start with @ or ?.
74757586 lt_cv_sys_global_symbol_pipe="$AWK '"\
74767587 " {last_section=section; section=\$ 3};"\
74887599 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
74897600 " ' prfx=^$ac_symprfx"
74907601 else
7491 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7602 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
74927603 fi
7493 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7604 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
74947605
74957606 # Check to see that the pipe works correctly.
74967607 pipe_works=no
76907801 fi
76917802 ;; #(
76927803 /*)
7693 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7804 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
76947805 ;; #(
76957806 no|'')
76967807 ;; #(
78157926 ac_status=$?
78167927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78177928 test $ac_status = 0; }; then
7818 case `/usr/bin/file conftest.$ac_objext` in
7929 case `$FILECMD conftest.$ac_objext` in
78197930 *ELF-32*)
78207931 HPUX_IA64_MODE=32
78217932 ;;
78367947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78377948 test $ac_status = 0; }; then
78387949 if test yes = "$lt_cv_prog_gnu_ld"; then
7839 case `/usr/bin/file conftest.$ac_objext` in
7950 case `$FILECMD conftest.$ac_objext` in
78407951 *32-bit*)
78417952 LD="${LD-ld} -melf32bsmip"
78427953 ;;
78487959 ;;
78497960 esac
78507961 else
7851 case `/usr/bin/file conftest.$ac_objext` in
7962 case `$FILECMD conftest.$ac_objext` in
78527963 *32-bit*)
78537964 LD="${LD-ld} -32"
78547965 ;;
78747985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78757986 test $ac_status = 0; }; then
78767987 emul=elf
7877 case `/usr/bin/file conftest.$ac_objext` in
7988 case `$FILECMD conftest.$ac_objext` in
78787989 *32-bit*)
78797990 emul="${emul}32"
78807991 ;;
78827993 emul="${emul}64"
78837994 ;;
78847995 esac
7885 case `/usr/bin/file conftest.$ac_objext` in
7996 case `$FILECMD conftest.$ac_objext` in
78867997 *MSB*)
78877998 emul="${emul}btsmip"
78887999 ;;
78908001 emul="${emul}ltsmip"
78918002 ;;
78928003 esac
7893 case `/usr/bin/file conftest.$ac_objext` in
8004 case `$FILECMD conftest.$ac_objext` in
78948005 *N32*)
78958006 emul="${emul}n32"
78968007 ;;
79148025 ac_status=$?
79158026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79168027 test $ac_status = 0; }; then
7917 case `/usr/bin/file conftest.o` in
8028 case `$FILECMD conftest.o` in
79188029 *32-bit*)
79198030 case $host in
79208031 x86_64-*kfreebsd*-gnu)
79218032 LD="${LD-ld} -m elf_i386_fbsd"
79228033 ;;
79238034 x86_64-*linux*)
7924 case `/usr/bin/file conftest.o` in
8035 case `$FILECMD conftest.o` in
79258036 *x86-64*)
79268037 LD="${LD-ld} -m elf32_x86_64"
79278038 ;;
80298140 ac_status=$?
80308141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80318142 test $ac_status = 0; }; then
8032 case `/usr/bin/file conftest.o` in
8143 case `$FILECMD conftest.o` in
80338144 *64-bit*)
80348145 case $lt_cv_prog_gnu_ld in
80358146 yes*)
88128923 _LT_EOF
88138924 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
88148925 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8815 echo "$AR cr libconftest.a conftest.o" >&5
8816 $AR cr libconftest.a conftest.o 2>&5
8926 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8927 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
88178928 echo "$RANLIB libconftest.a" >&5
88188929 $RANLIB libconftest.a 2>&5
88198930 cat > conftest.c << _LT_EOF
88408951 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
88418952 darwin1.*)
88428953 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8843 darwin*) # darwin 5.x on
8844 # if running on 10.5 or later, the deployment target defaults
8845 # to the OS version, if on x86, and 10.4, the deployment
8846 # target defaults to 10.4. Don't you love it?
8847 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8848 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
8849 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8850 10.[012][,.]*)
8851 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8852 10.*|11.*)
8853 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8954 darwin*)
8955 case $MACOSX_DEPLOYMENT_TARGET,$host in
8956 10.[012],*|,*powerpc*-darwin[5-8]*)
8957 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8958 *)
8959 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
88548960 esac
88558961 ;;
88568962 esac
92379343 ofile=libtool
92389344 can_build_shared=yes
92399345
9240 # All known linkers require a '.a' archive for static linking (except MSVC,
9241 # which needs '.lib').
9346 # All known linkers require a '.a' archive for static linking (except MSVC and
9347 # ICC, which need '.lib').
92429348 libext=a
92439349
92449350 with_gnu_ld=$lt_cv_prog_gnu_ld
94569562 $RM -r conftest*
94579563
94589564
9565 ## CAVEAT EMPTOR:
9566 ## There is no encapsulation within the following macros, do not change
9567 ## the running order or otherwise move them around unless you know exactly
9568 ## what you are doing...
94599569 if test -n "$compiler"; then
94609570
94619571 lt_prog_compiler_no_builtin_flag=
97529862 lt_prog_compiler_static='-qstaticlink'
97539863 ;;
97549864 *)
9755 case `$CC -V 2>&1 | sed 5q` in
9865 case `$CC -V 2>&1 | $SED 5q` in
97569866 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
97579867 # Sun Fortran 8.3 passes all unrecognized flags to the linker
97589868 lt_prog_compiler_pic='-KPIC'
1017510285
1017610286 case $host_os in
1017710287 cygwin* | mingw* | pw32* | cegcc*)
10178 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10288 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
1017910289 # When not using gcc, we currently assume that we are using
10180 # Microsoft Visual C++.
10290 # Microsoft Visual C++ or Intel C++ Compiler.
1018110291 if test yes != "$GCC"; then
1018210292 with_gnu_ld=no
1018310293 fi
1018410294 ;;
1018510295 interix*)
10186 # we just hope/assume this is gcc and not c89 (= MSVC++)
10296 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
1018710297 with_gnu_ld=yes
1018810298 ;;
1018910299 openbsd* | bitrig*)
1023810348 whole_archive_flag_spec=
1023910349 fi
1024010350 supports_anon_versioning=no
10241 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10351 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
1024210352 *GNU\ gold*) supports_anon_versioning=yes ;;
1024310353 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
1024410354 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
1035010460 emximp -o $lib $output_objdir/$libname.def'
1035110461 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
1035210462 enable_shared_with_static_runtimes=yes
10463 file_list_spec='@'
1035310464 ;;
1035410465
1035510466 interix[3-9]*)
1036410475 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1036510476 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
1036610477 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10367 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10478 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1036810479 ;;
1036910480
1037010481 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1040710518 compiler_needs_object=yes
1040810519 ;;
1040910520 esac
10410 case `$CC -V 2>&1 | sed 5q` in
10521 case `$CC -V 2>&1 | $SED 5q` in
1041110522 *Sun\ C*) # Sun C 5.9
1041210523 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
1041310524 compiler_needs_object=yes
1041910530
1042010531 if test yes = "$supports_anon_versioning"; then
1042110532 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10422 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10533 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1042310534 echo "local: *; };" >> $output_objdir/$libname.ver~
1042410535 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
1042510536 fi
1042610537
1042710538 case $cc_basename in
1042810539 tcc*)
10540 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1042910541 export_dynamic_flag_spec='-rdynamic'
1043010542 ;;
1043110543 xlf* | bgf* | bgxlf* | mpixlf*)
1043510547 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
1043610548 if test yes = "$supports_anon_versioning"; then
1043710549 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10438 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10550 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1043910551 echo "local: *; };" >> $output_objdir/$libname.ver~
1044010552 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
1044110553 fi
1056710679 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
1056810680 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
1056910681 else
10570 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10682 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
1057110683 fi
1057210684 aix_use_runtimelinking=no
1057310685
1083810950
1083910951 cygwin* | mingw* | pw32* | cegcc*)
1084010952 # When not using gcc, we currently assume that we are using
10841 # Microsoft Visual C++.
10953 # Microsoft Visual C++ or Intel C++ Compiler.
1084210954 # hardcode_libdir_flag_spec is actually meaningless, as there is
1084310955 # no search path for DLLs.
1084410956 case $cc_basename in
10845 cl*)
10846 # Native MSVC
10957 cl* | icl*)
10958 # Native MSVC or ICC
1084710959 hardcode_libdir_flag_spec=' '
1084810960 allow_undefined_flag=unsupported
1084910961 always_export_symbols=yes
1088410996 fi'
1088510997 ;;
1088610998 *)
10887 # Assume MSVC wrapper
10999 # Assume MSVC and ICC wrapper
1088811000 hardcode_libdir_flag_spec=' '
1088911001 allow_undefined_flag=unsupported
1089011002 # Tell ltmain to make .lib files, not .a files.
1092511037 output_verbose_link_cmd=func_echo_all
1092611038 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
1092711039 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10928 archive_expsym_cmds="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"
10929 module_expsym_cmds="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"
11040 archive_expsym_cmds="$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"
11041 module_expsym_cmds="$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"
1093011042
1093111043 else
1093211044 ld_shlibs=no
1096011072 ;;
1096111073
1096211074 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10963 freebsd* | dragonfly*)
11075 freebsd* | dragonfly* | midnightbsd*)
1096411076 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1096511077 hardcode_libdir_flag_spec='-R$libdir'
1096611078 hardcode_direct=yes
1114111253 # Fabrice Bellard et al's Tiny C Compiler
1114211254 ld_shlibs=yes
1114311255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11256 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1114411257 ;;
1114511258 esac
1114611259 ;;
1121211325 emximp -o $lib $output_objdir/$libname.def'
1121311326 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
1121411327 enable_shared_with_static_runtimes=yes
11328 file_list_spec='@'
1121511329 ;;
1121611330
1121711331 osf3*)
1190412018 case $host_os in
1190512019 cygwin*)
1190612020 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11907 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12021 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1190812022
1190912023 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1191012024 ;;
1191412028 ;;
1191512029 pw32*)
1191612030 # pw32 DLLs use 'pw' prefix rather than 'lib'
11917 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12031 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1191812032 ;;
1191912033 esac
1192012034 dynamic_linker='Win32 ld.exe'
1192112035 ;;
1192212036
11923 *,cl*)
11924 # Native MSVC
12037 *,cl* | *,icl*)
12038 # Native MSVC or ICC
1192512039 libname_spec='$name'
1192612040 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1192712041 library_names_spec='$libname.dll.lib'
1194012054 done
1194112055 IFS=$lt_save_ifs
1194212056 # Convert to MSYS style.
11943 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12057 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
1194412058 ;;
1194512059 cygwin*)
1194612060 # Convert to unix form, then to dos form, then back to unix form
1197712091 ;;
1197812092
1197912093 *)
11980 # Assume MSVC wrapper
12094 # Assume MSVC and ICC wrapper
1198112095 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1198212096 dynamic_linker='Win32 ld.exe'
1198312097 ;;
1201012124 shlibpath_var=LD_LIBRARY_PATH
1201112125 ;;
1201212126
12013 freebsd* | dragonfly*)
12127 freebsd* | dragonfly* | midnightbsd*)
1201412128 # DragonFly does not have aout. When/if they implement a new
1201512129 # versioning mechanism, adjust this.
1201612130 if test -x /usr/bin/objformat; then
1317513289 old_striplib=
1317613290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
1317713291 printf %s "checking whether stripping libraries is possible... " >&6; }
13178 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13179 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13180 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13292 if test -z "$STRIP"; then
13293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294 printf "%s\n" "no" >&6; }
13295 else
13296 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13297 old_striplib="$STRIP --strip-debug"
13298 striplib="$STRIP --strip-unneeded"
13299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1318213300 printf "%s\n" "yes" >&6; }
13183 else
13184 # FIXME - insert some real tests, host_os isn't really good enough
13185 case $host_os in
13186 darwin*)
13187 if test -n "$STRIP"; then
13301 else
13302 case $host_os in
13303 darwin*)
13304 # FIXME - insert some real tests, host_os isn't really good enough
1318813305 striplib="$STRIP -x"
1318913306 old_striplib="$STRIP -S"
1319013307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1319113308 printf "%s\n" "yes" >&6; }
13192 else
13309 ;;
13310 freebsd*)
13311 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13312 old_striplib="$STRIP --strip-debug"
13313 striplib="$STRIP --strip-unneeded"
13314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13315 printf "%s\n" "yes" >&6; }
13316 else
13317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318 printf "%s\n" "no" >&6; }
13319 fi
13320 ;;
13321 *)
1319313322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1319413323 printf "%s\n" "no" >&6; }
13195 fi
13196 ;;
13197 *)
13198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199 printf "%s\n" "no" >&6; }
13200 ;;
13201 esac
13324 ;;
13325 esac
13326 fi
1320213327 fi
1320313328
1320413329
1329713422
1329813423 ALL_LINGUAS="ar ast be bg ca cs da de el en_AU en_CA en_GB es et eu fi fr gl he hi hr hu hye id is it ja ko ku lt lv ms nb nl oc pl pt pt_BR ru sk sl sq sr sv th tr ug uk ur ur_PK zh_CN zh_TW"
1329913424
13300 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13301 if test "x$ac_cv_header_locale_h" = xyes
13302 then :
13303 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
13304
13305 fi
13306
13307 if test $ac_cv_header_locale_h = yes; then
13308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13309 printf %s "checking for LC_MESSAGES... " >&6; }
13310 if test ${am_cv_val_LC_MESSAGES+y}
13311 then :
13312 printf %s "(cached) " >&6
13313 else $as_nop
13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h. */
13316 #include <locale.h>
13317 int
13318 main (void)
13319 {
13320 return LC_MESSAGES
13321 ;
13322 return 0;
13323 }
13324 _ACEOF
13325 if ac_fn_c_try_link "$LINENO"
13326 then :
13327 am_cv_val_LC_MESSAGES=yes
13328 else $as_nop
13329 am_cv_val_LC_MESSAGES=no
13330 fi
13331 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13332 conftest$ac_exeext conftest.$ac_ext
13333 fi
13334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13335 printf "%s\n" "$am_cv_val_LC_MESSAGES" >&6; }
13336 if test $am_cv_val_LC_MESSAGES = yes; then
13337
13338 printf "%s\n" "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13339
13340 fi
13341 fi
13342 USE_NLS=yes
13343
13344
13345 gt_cv_have_gettext=no
13346
13347 CATOBJEXT=NONE
13348 XGETTEXT=:
13349 INTLLIBS=
13350
13351
13352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13353 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
13354 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
13355 then :
13356 printf %s "(cached) " >&6
13357 else $as_nop
13358 gt_save_LIBS="$LIBS"
13359 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13362 #include <CoreFoundation/CFPreferences.h>
13363 int
13364 main (void)
13365 {
13366 CFPreferencesCopyAppValue(NULL, NULL)
13367 ;
13368 return 0;
13369 }
13370 _ACEOF
13371 if ac_fn_c_try_link "$LINENO"
13372 then :
13373 gt_cv_func_CFPreferencesCopyAppValue=yes
13374 else $as_nop
13375 gt_cv_func_CFPreferencesCopyAppValue=no
13376 fi
13377 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13378 conftest$ac_exeext conftest.$ac_ext
13379 LIBS="$gt_save_LIBS"
13380 fi
13381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13382 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13383 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13384
13385 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13386
13387 fi
13388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13389 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
13390 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
13391 then :
13392 printf %s "(cached) " >&6
13393 else $as_nop
13394 gt_save_LIBS="$LIBS"
13395 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h. */
13398 #include <CoreFoundation/CFLocale.h>
13399 int
13400 main (void)
13401 {
13402 CFLocaleCopyCurrent();
13403 ;
13404 return 0;
13405 }
13406 _ACEOF
13407 if ac_fn_c_try_link "$LINENO"
13408 then :
13409 gt_cv_func_CFLocaleCopyCurrent=yes
13410 else $as_nop
13411 gt_cv_func_CFLocaleCopyCurrent=no
13412 fi
13413 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13414 conftest$ac_exeext conftest.$ac_ext
13415 LIBS="$gt_save_LIBS"
13416 fi
13417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13418 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13419 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13420
13421 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13422
13423 fi
13424 INTL_MACOSX_LIBS=
13425 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13426 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13427 fi
13428
13429
13430
13431 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
13432 if test "x$ac_cv_header_libintl_h" = xyes
13433 then :
13434 gt_cv_func_dgettext_libintl="no"
13435 libintl_extra_libs=""
13436
13437 #
13438 # First check in libc
13439 #
13440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
13441 printf %s "checking for ngettext in libc... " >&6; }
13442 if test ${gt_cv_func_ngettext_libc+y}
13443 then :
13444 printf %s "(cached) " >&6
13445 else $as_nop
13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h. */
13448
13449 #include <libintl.h>
13450
13451 int
13452 main (void)
13453 {
13454 return !ngettext ("","", 1)
13455 ;
13456 return 0;
13457 }
13458 _ACEOF
13459 if ac_fn_c_try_link "$LINENO"
13460 then :
13461 gt_cv_func_ngettext_libc=yes
13462 else $as_nop
13463 gt_cv_func_ngettext_libc=no
13464 fi
13465 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13466 conftest$ac_exeext conftest.$ac_ext
13467
13468 fi
13469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
13470 printf "%s\n" "$gt_cv_func_ngettext_libc" >&6; }
13471
13472 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
13473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
13474 printf %s "checking for dgettext in libc... " >&6; }
13475 if test ${gt_cv_func_dgettext_libc+y}
13476 then :
13477 printf %s "(cached) " >&6
13478 else $as_nop
13479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13480 /* end confdefs.h. */
13481
13482 #include <libintl.h>
13483
13484 int
13485 main (void)
13486 {
13487 return !dgettext ("","")
13488 ;
13489 return 0;
13490 }
13491 _ACEOF
13492 if ac_fn_c_try_link "$LINENO"
13493 then :
13494 gt_cv_func_dgettext_libc=yes
13495 else $as_nop
13496 gt_cv_func_dgettext_libc=no
13497 fi
13498 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13499 conftest$ac_exeext conftest.$ac_ext
13500
13501 fi
13502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
13503 printf "%s\n" "$gt_cv_func_dgettext_libc" >&6; }
13504 fi
13505
13506 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
13507 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
13508 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes
13509 then :
13510 printf "%s\n" "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h
13511
13512 fi
13513
13514 fi
13515
13516 #
13517 # If we don't have everything we want, check in libintl
13518 #
13519 if test "$gt_cv_func_dgettext_libc" != "yes" \
13520 || test "$gt_cv_func_ngettext_libc" != "yes" \
13521 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
13522
13523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
13524 printf %s "checking for bindtextdomain in -lintl... " >&6; }
13525 if test ${ac_cv_lib_intl_bindtextdomain+y}
13526 then :
13527 printf %s "(cached) " >&6
13528 else $as_nop
13529 ac_check_lib_save_LIBS=$LIBS
13530 LIBS="-lintl $LIBS"
13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h. */
13533
13534 /* Override any GCC internal prototype to avoid an error.
13535 Use char because int might match the return type of a GCC
13536 builtin and then its argument prototype would still apply. */
13537 char bindtextdomain ();
13538 int
13539 main (void)
13540 {
13541 return bindtextdomain ();
13542 ;
13543 return 0;
13544 }
13545 _ACEOF
13546 if ac_fn_c_try_link "$LINENO"
13547 then :
13548 ac_cv_lib_intl_bindtextdomain=yes
13549 else $as_nop
13550 ac_cv_lib_intl_bindtextdomain=no
13551 fi
13552 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13553 conftest$ac_exeext conftest.$ac_ext
13554 LIBS=$ac_check_lib_save_LIBS
13555 fi
13556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
13557 printf "%s\n" "$ac_cv_lib_intl_bindtextdomain" >&6; }
13558 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes
13559 then :
13560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
13561 printf %s "checking for ngettext in -lintl... " >&6; }
13562 if test ${ac_cv_lib_intl_ngettext+y}
13563 then :
13564 printf %s "(cached) " >&6
13565 else $as_nop
13566 ac_check_lib_save_LIBS=$LIBS
13567 LIBS="-lintl $LIBS"
13568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13569 /* end confdefs.h. */
13570
13571 /* Override any GCC internal prototype to avoid an error.
13572 Use char because int might match the return type of a GCC
13573 builtin and then its argument prototype would still apply. */
13574 char ngettext ();
13575 int
13576 main (void)
13577 {
13578 return ngettext ();
13579 ;
13580 return 0;
13581 }
13582 _ACEOF
13583 if ac_fn_c_try_link "$LINENO"
13584 then :
13585 ac_cv_lib_intl_ngettext=yes
13586 else $as_nop
13587 ac_cv_lib_intl_ngettext=no
13588 fi
13589 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13590 conftest$ac_exeext conftest.$ac_ext
13591 LIBS=$ac_check_lib_save_LIBS
13592 fi
13593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
13594 printf "%s\n" "$ac_cv_lib_intl_ngettext" >&6; }
13595 if test "x$ac_cv_lib_intl_ngettext" = xyes
13596 then :
13597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13598 printf %s "checking for dgettext in -lintl... " >&6; }
13599 if test ${ac_cv_lib_intl_dgettext+y}
13600 then :
13601 printf %s "(cached) " >&6
13602 else $as_nop
13603 ac_check_lib_save_LIBS=$LIBS
13604 LIBS="-lintl $LIBS"
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h. */
13607
13608 /* Override any GCC internal prototype to avoid an error.
13609 Use char because int might match the return type of a GCC
13610 builtin and then its argument prototype would still apply. */
13611 char dgettext ();
13612 int
13613 main (void)
13614 {
13615 return dgettext ();
13616 ;
13617 return 0;
13618 }
13619 _ACEOF
13620 if ac_fn_c_try_link "$LINENO"
13621 then :
13622 ac_cv_lib_intl_dgettext=yes
13623 else $as_nop
13624 ac_cv_lib_intl_dgettext=no
13625 fi
13626 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13627 conftest$ac_exeext conftest.$ac_ext
13628 LIBS=$ac_check_lib_save_LIBS
13629 fi
13630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13631 printf "%s\n" "$ac_cv_lib_intl_dgettext" >&6; }
13632 if test "x$ac_cv_lib_intl_dgettext" = xyes
13633 then :
13634 gt_cv_func_dgettext_libintl=yes
13635 fi
13636
13637 fi
13638
13639 fi
13640
13641
13642 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
13643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
13644 printf %s "checking if -liconv is needed to use gettext... " >&6; }
13645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
13646 printf "%s\n" "" >&6; }
13647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
13648 printf %s "checking for ngettext in -lintl... " >&6; }
13649 if test ${ac_cv_lib_intl_ngettext+y}
13650 then :
13651 printf %s "(cached) " >&6
13652 else $as_nop
13653 ac_check_lib_save_LIBS=$LIBS
13654 LIBS="-lintl -liconv $LIBS"
13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656 /* end confdefs.h. */
13657
13658 /* Override any GCC internal prototype to avoid an error.
13659 Use char because int might match the return type of a GCC
13660 builtin and then its argument prototype would still apply. */
13661 char ngettext ();
13662 int
13663 main (void)
13664 {
13665 return ngettext ();
13666 ;
13667 return 0;
13668 }
13669 _ACEOF
13670 if ac_fn_c_try_link "$LINENO"
13671 then :
13672 ac_cv_lib_intl_ngettext=yes
13673 else $as_nop
13674 ac_cv_lib_intl_ngettext=no
13675 fi
13676 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13677 conftest$ac_exeext conftest.$ac_ext
13678 LIBS=$ac_check_lib_save_LIBS
13679 fi
13680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
13681 printf "%s\n" "$ac_cv_lib_intl_ngettext" >&6; }
13682 if test "x$ac_cv_lib_intl_ngettext" = xyes
13683 then :
13684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
13685 printf %s "checking for dcgettext in -lintl... " >&6; }
13686 if test ${ac_cv_lib_intl_dcgettext+y}
13687 then :
13688 printf %s "(cached) " >&6
13689 else $as_nop
13690 ac_check_lib_save_LIBS=$LIBS
13691 LIBS="-lintl -liconv $LIBS"
13692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13694
13695 /* Override any GCC internal prototype to avoid an error.
13696 Use char because int might match the return type of a GCC
13697 builtin and then its argument prototype would still apply. */
13698 char dcgettext ();
13699 int
13700 main (void)
13701 {
13702 return dcgettext ();
13703 ;
13704 return 0;
13705 }
13706 _ACEOF
13707 if ac_fn_c_try_link "$LINENO"
13708 then :
13709 ac_cv_lib_intl_dcgettext=yes
13710 else $as_nop
13711 ac_cv_lib_intl_dcgettext=no
13712 fi
13713 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13714 conftest$ac_exeext conftest.$ac_ext
13715 LIBS=$ac_check_lib_save_LIBS
13716 fi
13717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
13718 printf "%s\n" "$ac_cv_lib_intl_dcgettext" >&6; }
13719 if test "x$ac_cv_lib_intl_dcgettext" = xyes
13720 then :
13721 gt_cv_func_dgettext_libintl=yes
13722 libintl_extra_libs=-liconv
13723 else $as_nop
13724 :
13725 fi
13726
13727 else $as_nop
13728 :
13729 fi
13730
13731 fi
13732
13733 #
13734 # If we found libintl, then check in it for bind_textdomain_codeset();
13735 # we'll prefer libc if neither have bind_textdomain_codeset(),
13736 # and both have dgettext and ngettext
13737 #
13738 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
13739 glib_save_LIBS="$LIBS"
13740 LIBS="$LIBS -lintl $libintl_extra_libs"
13741 unset ac_cv_func_bind_textdomain_codeset
13742 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
13743 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes
13744 then :
13745 printf "%s\n" "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h
13746
13747 fi
13748
13749 LIBS="$glib_save_LIBS"
13750
13751 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
13752 gt_cv_func_dgettext_libc=no
13753 else
13754 if test "$gt_cv_func_dgettext_libc" = "yes" \
13755 && test "$gt_cv_func_ngettext_libc" = "yes"; then
13756 gt_cv_func_dgettext_libintl=no
13757 fi
13758 fi
13759 fi
13760 fi
13761
13762 if test "$gt_cv_func_dgettext_libc" = "yes" \
13763 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
13764 gt_cv_have_gettext=yes
13765 fi
13766
13767 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
13768 INTLLIBS="-lintl $libintl_extra_libs $INTL_MACOSX_LIBS"
13769 fi
13770
13771 if test "$gt_cv_have_gettext" = "yes"; then
13772
13773 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
13774
13775 # Extract the first word of "msgfmt", so it can be a program name with args.
13776 set dummy msgfmt; ac_word=$2
13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13778 printf %s "checking for $ac_word... " >&6; }
13779 if test ${ac_cv_path_MSGFMT+y}
13780 then :
13781 printf %s "(cached) " >&6
13782 else $as_nop
13783 case "$MSGFMT" in
13784 /*)
13785 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13786 ;;
13787 *)
13788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13789 for ac_dir in $PATH; do
13790 test -z "$ac_dir" && ac_dir=.
13791 if test -f $ac_dir/$ac_word; then
13792 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
13793 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13794 break
13795 fi
13796 fi
13797 done
13798 IFS="$ac_save_ifs"
13799 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
13800 ;;
13801 esac
13802 fi
13803 MSGFMT="$ac_cv_path_MSGFMT"
13804 if test "$MSGFMT" != "no"; then
13805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13806 printf "%s\n" "$MSGFMT" >&6; }
13807 else
13808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13809 printf "%s\n" "no" >&6; }
13810 fi
13811 if test "$MSGFMT" != "no"; then
13812 glib_save_LIBS="$LIBS"
13813 LIBS="$LIBS $INTLLIBS"
13814 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
13815 if test "x$ac_cv_func_dcgettext" = xyes
13816 then :
13817 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
13818
13819 fi
13820
13821 MSGFMT_OPTS=
13822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
13823 printf %s "checking if msgfmt accepts -c... " >&6; }
13824 cat >conftest.foo <<_ACEOF
13825
13826 msgid ""
13827 msgstr ""
13828 "Content-Type: text/plain; charset=UTF-8\n"
13829 "Project-Id-Version: test 1.0\n"
13830 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
13831 "Last-Translator: test <foo@bar.xx>\n"
13832 "Language-Team: C <LL@li.org>\n"
13833 "MIME-Version: 1.0\n"
13834 "Content-Transfer-Encoding: 8bit\n"
13835
13836 _ACEOF
13837 if { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
13838 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
13839 ac_status=$?
13840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13841 test $ac_status = 0; }; then
13842 MSGFMT_OPTS=-c; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13843 printf "%s\n" "yes" >&6; }
13844 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13845 printf "%s\n" "no" >&6; }
13846 echo "$as_me: failed input was:" >&5
13847 sed 's/^/| /' conftest.foo >&5
13848 fi
13849
13850 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13851 set dummy gmsgfmt; ac_word=$2
13852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13853 printf %s "checking for $ac_word... " >&6; }
13854 if test ${ac_cv_path_GMSGFMT+y}
13855 then :
13856 printf %s "(cached) " >&6
13857 else $as_nop
13858 case $GMSGFMT in
13859 [\\/]* | ?:[\\/]*)
13860 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13861 ;;
13862 *)
13863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13864 for as_dir in $PATH
13865 do
13866 IFS=$as_save_IFS
13867 case $as_dir in #(((
13868 '') as_dir=./ ;;
13869 */) ;;
13870 *) as_dir=$as_dir/ ;;
13871 esac
13872 for ac_exec_ext in '' $ac_executable_extensions; do
13873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13874 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
13875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13876 break 2
13877 fi
13878 done
13879 done
13880 IFS=$as_save_IFS
13881
13882 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13883 ;;
13884 esac
13885 fi
13886 GMSGFMT=$ac_cv_path_GMSGFMT
13887 if test -n "$GMSGFMT"; then
13888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13889 printf "%s\n" "$GMSGFMT" >&6; }
13890 else
13891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13892 printf "%s\n" "no" >&6; }
13893 fi
13894
13895
13896 # Extract the first word of "xgettext", so it can be a program name with args.
13897 set dummy xgettext; ac_word=$2
13898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13899 printf %s "checking for $ac_word... " >&6; }
13900 if test ${ac_cv_path_XGETTEXT+y}
13901 then :
13902 printf %s "(cached) " >&6
13903 else $as_nop
13904 case "$XGETTEXT" in
13905 /*)
13906 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13907 ;;
13908 *)
13909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13910 for ac_dir in $PATH; do
13911 test -z "$ac_dir" && ac_dir=.
13912 if test -f $ac_dir/$ac_word; then
13913 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13914 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13915 break
13916 fi
13917 fi
13918 done
13919 IFS="$ac_save_ifs"
13920 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13921 ;;
13922 esac
13923 fi
13924 XGETTEXT="$ac_cv_path_XGETTEXT"
13925 if test "$XGETTEXT" != ":"; then
13926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13927 printf "%s\n" "$XGETTEXT" >&6; }
13928 else
13929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13930 printf "%s\n" "no" >&6; }
13931 fi
13932
13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h. */
13935
13936 int
13937 main (void)
13938 {
13939 extern int _nl_msg_cat_cntr;
13940 return _nl_msg_cat_cntr
13941 ;
13942 return 0;
13943 }
13944 _ACEOF
13945 if ac_fn_c_try_link "$LINENO"
13946 then :
13947 CATOBJEXT=.gmo
13948 DATADIRNAME=share
13949 else $as_nop
13950 case $host in
13951 *-*-solaris*)
13952 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
13953 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes
13954 then :
13955 CATOBJEXT=.gmo
13956 DATADIRNAME=share
13957 else $as_nop
13958 CATOBJEXT=.mo
13959 DATADIRNAME=lib
13960 fi
13961
13962 ;;
13963 *-*-openbsd*)
13964 CATOBJEXT=.mo
13965 DATADIRNAME=share
13966 ;;
13967 *)
13968 CATOBJEXT=.mo
13969 DATADIRNAME=lib
13970 ;;
13971 esac
13972 fi
13973 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13974 conftest$ac_exeext conftest.$ac_ext
13975 LIBS="$glib_save_LIBS"
13976 INSTOBJEXT=.mo
13977 else
13978 gt_cv_have_gettext=no
13979 fi
13980 fi
13981
13982 fi
13983
13984
13985 if test "$gt_cv_have_gettext" = "yes" ; then
13986
13987 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
13988
13989 fi
13990
13991 if test "$XGETTEXT" != ":"; then
13992 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
13993 : ;
13994 else
13995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13996 printf "%s\n" "found xgettext program is not GNU xgettext; ignore it" >&6; }
13997 XGETTEXT=":"
13998 fi
13999 fi
14000
14001 # We need to process the po/ directory.
14002 POSUB=po
14003
14004 ac_config_commands="$ac_config_commands default-1"
14005
14006
14007 for lang in $ALL_LINGUAS; do
14008 GMOFILES="$GMOFILES $lang.gmo"
14009 POFILES="$POFILES $lang.po"
14010 done
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024 if test "$gt_cv_have_gettext" = "yes"; then
14025 if test "x$ALL_LINGUAS" = "x"; then
14026 LINGUAS=
14027 else
14028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14029 printf %s "checking for catalogs to be installed... " >&6; }
14030 NEW_LINGUAS=
14031 for presentlang in $ALL_LINGUAS; do
14032 useit=no
14033 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
14034 desiredlanguages="$LINGUAS"
14035 else
14036 desiredlanguages="$ALL_LINGUAS"
14037 fi
14038 for desiredlang in $desiredlanguages; do
14039 # Use the presentlang catalog if desiredlang is
14040 # a. equal to presentlang, or
14041 # b. a variant of presentlang (because in this case,
14042 # presentlang can be used as a fallback for messages
14043 # which are not translated in the desiredlang catalog).
14044 case "$desiredlang" in
14045 "$presentlang"*) useit=yes;;
14046 esac
14047 done
14048 if test $useit = yes; then
14049 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
14050 fi
14051 done
14052 LINGUAS=$NEW_LINGUAS
14053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14054 printf "%s\n" "$LINGUAS" >&6; }
14055 fi
14056
14057 if test -n "$LINGUAS"; then
14058 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
14059 fi
14060 fi
14061
14062 MKINSTALLDIRS=
14063 if test -n "$ac_aux_dir"; then
14064 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
14065 fi
14066 if test -z "$MKINSTALLDIRS"; then
14067 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14068 fi
14069
14070
14071 test -d po || mkdir po
14072 if test "x$srcdir" != "x."; then
14073 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
14074 posrcprefix="$srcdir/"
14075 else
14076 posrcprefix="../$srcdir/"
14077 fi
14078 else
14079 posrcprefix="../"
14080 fi
14081 rm -f po/POTFILES
14082 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
14083 < $srcdir/po/POTFILES.in > po/POTFILES
14084
14085
1408613425 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
1408713426 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes
1408813427 then :
1411013449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $localedir" >&5
1411113450 printf "%s\n" "$localedir" >&6; }
1411213451
14113
14114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional xgettext flags" >&5
14115 printf %s "checking for additional xgettext flags... " >&6; }
14116 if test x"$XGETTEXT_ARGS" = x""; then
14117 XGETTEXT_ARGS="--keyword=Q_ --from-code=UTF-8";
14118 else
14119 XGETTEXT_ARGS="$XGETTEXT_ARGS --keyword=Q_ --from-code=UTF-8";
14120 fi
14121
14122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT_ARGS" >&5
14123 printf "%s\n" "$XGETTEXT_ARGS" >&6; }
1412413452
1412513453
1412613454
1429913627
1430013628
1430113629
13630 if test x"LIBXFCE4UI" = x"GLIB"; then
13631
13632 printf "%s\n" "#define G_LOG_USE_STRUCTURED 1" >>confdefs.h
13633
13634 fi
13635
13636
13637
1430213638
1430313639 elif $PKG_CONFIG --exists "libxfce4ui-2" >/dev/null 2>&1; then
1430413640 xdt_cv_version=`$PKG_CONFIG --modversion "libxfce4ui-2"`
1450413840
1450513841
1450613842
13843 if test x"LIBXFCE4PANEL" = x"GLIB"; then
13844
13845 printf "%s\n" "#define G_LOG_USE_STRUCTURED 1" >>confdefs.h
13846
13847 fi
13848
13849
13850
1450713851
1450813852 elif $PKG_CONFIG --exists "libxfce4panel-2.0" >/dev/null 2>&1; then
1450913853 xdt_cv_version=`$PKG_CONFIG --modversion "libxfce4panel-2.0"`
1454413888 fi
1454513889
1454613890
13891 xdt_cv_additional_COMMON_FLAGS="-Wall -Wextra \
13892 -Wno-missing-field-initializers \
13893 -Wno-unused-parameter \
13894 -Wmissing-declarations \
13895 -Wmissing-noreturn -Wpointer-arith \
13896 -Wcast-align -Wformat -Wformat-security -Wformat-y2k \
13897 -Winit-self -Wmissing-include-dirs -Wundef \
13898 -Wredundant-decls"
13899
1454713900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with debugging support" >&5
1454813901 printf %s "checking whether to build with debugging support... " >&6; }
1454913902 if test x"$enable_debug" = x"full" -o x"$enable_debug" = x"yes"; then
1455113904 printf "%s\n" "#define DEBUG 1" >>confdefs.h
1455213905
1455313906
14554 xdt_cv_additional_CFLAGS="-DXFCE_DISABLE_DEPRECATED \
14555 -Wall -Wextra \
14556 -Wno-missing-field-initializers \
14557 -Wno-unused-parameter -Wold-style-definition \
14558 -Wdeclaration-after-statement \
14559 -Wmissing-declarations \
14560 -Wmissing-noreturn -Wpointer-arith \
14561 -Wcast-align -Wformat -Wformat-security -Wformat-y2k \
14562 -Winit-self -Wmissing-include-dirs -Wundef \
14563 -Wnested-externs"
1456413907 CPPFLAGS="$CPPFLAGS"
1456513908
1456613909 if test x`uname` = x"Linux"; then
14567 xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -fstack-protector"
13910 xdt_cv_additional_COMMON_FLAGS="$xdt_cv_additional_COMMON_FLAGS -fstack-protector"
1456813911 fi
1456913912
14570 if test x`uname` != x"OpenBSD"; then
14571 xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -Wredundant-decls"
14572 fi
14573
1457413913 if test x"$enable_debug" = x"full"; then
1457513914
1457613915 printf "%s\n" "#define DEBUG_TRACE 1" >>confdefs.h
1457713916
14578 xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -O0 -g -Werror"
13917 xdt_cv_additional_COMMON_FLAGS="$xdt_cv_additional_COMMON_FLAGS -O0 -g"
1457913918 CPPFLAGS="$CPPFLAGS -DG_ENABLE_DEBUG"
1458013919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: full" >&5
1458113920 printf "%s\n" "full" >&6; }
1458213921 else
14583 xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -g -Wshadow"
13922 xdt_cv_additional_COMMON_FLAGS="$xdt_cv_additional_COMMON_FLAGS -g -Wshadow"
1458413923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1458513924 printf "%s\n" "yes" >&6; }
1458613925 fi
14587
14588
14589 for flag in $xdt_cv_additional_CFLAGS; do
14590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag" >&5
14591 printf %s "checking if $CC supports $flag... " >&6; }
14592 saved_CFLAGS="$CFLAGS"
14593 CFLAGS="$CFLAGS $flag"
14594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14595 /* end confdefs.h. */
14596
14597 _ACEOF
14598 if ac_fn_c_try_compile "$LINENO"
14599 then :
14600 flag_supported=yes
14601 else $as_nop
14602 flag_supported=no
14603 fi
14604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14605 CFLAGS="$saved_CFLAGS"
14606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag_supported" >&5
14607 printf "%s\n" "$flag_supported" >&6; }
14608
14609 if test "x$flag_supported" = "xyes"; then
14610 supported_CFLAGS="$supported_CFLAGS $flag"
14611 fi
14612 done
14613
14614
14615
14616 supported_CXXFLAGS="$supported_CFLAGS"
14617
14618
14619 CFLAGS="$CFLAGS $supported_CFLAGS"
14620 CXXFLAGS="$CXXFLAGS $supported_CXXFLAGS"
1462113926 else
13927 xdt_cv_additional_COMMON_FLAGS="$xdt_cv_additional_COMMON_FLAGS -Wshadow"
1462213928 CPPFLAGS="$CPPFLAGS -DNDEBUG"
1462313929
1462413930 if test x"$enable_debug" = x"no"; then
1463013936 printf "%s\n" "minimum" >&6; }
1463113937 fi
1463213938 fi
13939
13940 xdt_cv_additional_CFLAGS="$xdt_cv_additional_COMMON_FLAGS \
13941 -Wdeclaration-after-statement \
13942 -Wnested-externs \
13943 -Wold-style-definition"
13944 xdt_cv_additional_CXXFLAGS="$xdt_cv_additional_COMMON_FLAGS"
13945
13946
13947 for flag in $xdt_cv_additional_CFLAGS; do
13948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag" >&5
13949 printf %s "checking if $CC supports $flag... " >&6; }
13950 saved_CFLAGS="$CFLAGS"
13951 CFLAGS="$CFLAGS $flag"
13952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953 /* end confdefs.h. */
13954
13955 _ACEOF
13956 if ac_fn_c_try_compile "$LINENO"
13957 then :
13958 flag_supported=yes
13959 else $as_nop
13960 flag_supported=no
13961 fi
13962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13963 CFLAGS="$saved_CFLAGS"
13964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag_supported" >&5
13965 printf "%s\n" "$flag_supported" >&6; }
13966
13967 if test "x$flag_supported" = "xyes"; then
13968 supported_CFLAGS="$supported_CFLAGS $flag"
13969 fi
13970 done
13971
13972
13973 for flag in $xdt_cv_additional_CXXFLAGS; do
13974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag" >&5
13975 printf %s "checking if $CC supports $flag... " >&6; }
13976 saved_CFLAGS="$CFLAGS"
13977 CFLAGS="$CFLAGS $flag"
13978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13979 /* end confdefs.h. */
13980
13981 _ACEOF
13982 if ac_fn_c_try_compile "$LINENO"
13983 then :
13984 flag_supported=yes
13985 else $as_nop
13986 flag_supported=no
13987 fi
13988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13989 CFLAGS="$saved_CFLAGS"
13990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag_supported" >&5
13991 printf "%s\n" "$flag_supported" >&6; }
13992
13993 if test "x$flag_supported" = "xyes"; then
13994 supported_CXXFLAGS="$supported_CXXFLAGS $flag"
13995 fi
13996 done
13997
13998
13999 CFLAGS="$CFLAGS $supported_CFLAGS"
14000 CXXFLAGS="$CXXFLAGS $supported_CXXFLAGS"
1463314001
1463414002
1463514003 ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile"
1539614764 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
1539714765 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
1539814766 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14767 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
1539914768 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1540014769 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
1540114770 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
1540414773 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
1540514774 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
1540614775 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14776 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
1540714777 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
1540814778 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
1540914779 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
1552414894 lt_SP2NL \
1552514895 lt_NL2SP \
1552614896 reload_flag \
14897 FILECMD \
1552714898 OBJDUMP \
1552814899 deplibs_check_method \
1552914900 file_magic_cmd \
1553214903 DLLTOOL \
1553314904 sharedlib_from_linklib_cmd \
1553414905 AR \
15535 AR_FLAGS \
1553614906 archiver_list_spec \
1553714907 STRIP \
1553814908 RANLIB \
1563715007
1563815008
1563915009
15640
1564115010 _ACEOF
1564215011
1564315012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1564915018 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
1565015019 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1565115020 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15652 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
1565315021 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1565415022 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
1565515023 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
1647915847 # convert \$build files to toolchain format.
1648015848 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1648115849
15850 # A file(cmd) program that detects file types.
15851 FILECMD=$lt_FILECMD
15852
1648215853 # An object symbol dumper.
1648315854 OBJDUMP=$lt_OBJDUMP
1648415855
1650315874 # The archiver.
1650415875 AR=$lt_AR
1650515876
15877 # Flags to create an archive (by configure).
15878 lt_ar_flags=$lt_ar_flags
15879
1650615880 # Flags to create an archive.
16507 AR_FLAGS=$lt_AR_FLAGS
15881 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
1650815882
1650915883 # How to feed a file listing to the archiver.
1651015884 archiver_list_spec=$lt_archiver_list_spec
1688016254 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1688116255 # text mode, it properly converts lines to CR/LF. This bash problem
1688216256 # is reportedly fixed, but why not run on old versions too?
16883 sed '$q' "$ltmain" >> "$cfgfile" \
16257 $SED '$q' "$ltmain" >> "$cfgfile" \
1688416258 || (rm -f "$cfgfile"; exit 1)
1688516259
1688616260 mv -f "$cfgfile" "$ofile" ||
1688816262 chmod +x "$ofile"
1688916263
1689016264 ;;
16891 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
16892 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
16893 esac ;;
1689416265 "po/stamp-it":C)
1689516266 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
1689616267 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
0 xfce4-smartbookmark-plugin (0.5.2+git20210723.1.21e038e-1) UNRELEASED; urgency=medium
0 xfce4-smartbookmark-plugin (0.5.2+git20210723.2.21e038e-1) UNRELEASED; urgency=medium
11
22 * Remove constraints unnecessary since buster (oldstable):
33 + Build-Depends: Drop versioned constraint on libxfce4ui-2-dev.
44 * New upstream snapshot.
5
6 -- Debian Janitor <janitor@jelmer.uk> Mon, 21 Nov 2022 17:43:55 -0000
5 * New upstream snapshot.
6
7 -- Debian Janitor <janitor@jelmer.uk> Mon, 19 Dec 2022 04:18:56 -0000
78
89 xfce4-smartbookmark-plugin (0.5.2-1) unstable; urgency=medium
910
0 #! /bin/sh
0 #! /usr/bin/env sh
11 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
2 ## by inline-source v2014-01-03.01
3
4 # libtool (GNU libtool) 2.4.6
2 ## by inline-source v2019-02-19.15
3
4 # libtool (GNU libtool) 2.4.7
55 # Provide generalized library-building support services.
66 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
77
8 # Copyright (C) 1996-2015 Free Software Foundation, Inc.
8 # Copyright (C) 1996-2019, 2021-2022 Free Software Foundation, Inc.
99 # This is free software; see the source for copying conditions. There is NO
1010 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1111
3030
3131 PROGRAM=libtool
3232 PACKAGE=libtool
33 VERSION="2.4.6 Debian-2.4.6-15"
34 package_revision=2.4.6
33 VERSION="2.4.7 Debian-2.4.7-5"
34 package_revision=2.4.7
3535
3636
3737 ## ------ ##
6363 # libraries, which are installed to $pkgauxdir.
6464
6565 # Set a version string for this script.
66 scriptversion=2015-01-20.17; # UTC
66 scriptversion=2019-02-19.15; # UTC
6767
6868 # General shell script boiler plate, and helper functions.
6969 # Written by Gary V. Vaughan, 2004
7070
71 # Copyright (C) 2004-2015 Free Software Foundation, Inc.
72 # This is free software; see the source for copying conditions. There is NO
73 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
74
75 # This program is free software; you can redistribute it and/or modify
76 # it under the terms of the GNU General Public License as published by
77 # the Free Software Foundation; either version 3 of the License, or
78 # (at your option) any later version.
79
80 # As a special exception to the GNU General Public License, if you distribute
81 # this file as part of a program or library that is built using GNU Libtool,
82 # you may include this file under the same distribution terms that you use
83 # for the rest of that program.
84
85 # This program is distributed in the hope that it will be useful,
86 # but WITHOUT ANY WARRANTY; without even the implied warranty of
87 # MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU
88 # General Public License for more details.
89
90 # You should have received a copy of the GNU General Public License
91 # along with this program. If not, see <http://www.gnu.org/licenses/>.
92
93 # Please report bugs or propose patches to gary@gnu.org.
71 # This is free software. There is NO warranty; not even for
72 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
73 #
74 # Copyright (C) 2004-2019, 2021 Bootstrap Authors
75 #
76 # This file is dual licensed under the terms of the MIT license
77 # <https://opensource.org/license/MIT>, and GPL version 2 or later
78 # <http://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
79 # these licenses when using or redistributing this software or any of
80 # the files within it. See the URLs above, or the file `LICENSE`
81 # included in the Bootstrap distribution for the full license texts.
82
83 # Please report bugs or propose patches to:
84 # <https://github.com/gnulib-modules/bootstrap/issues>
9485
9586
9687 ## ------ ##
138129 _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\"
139130 fi"
140131 done
141
142 # CDPATH.
143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
132 # These NLS vars are set unconditionally (bootstrap issue #24). Unset those
133 # in case the environment reset is needed later and the $save_* variant is not
134 # defined (see the code above).
135 LC_ALL=C
136 LANGUAGE=C
137 export LANGUAGE LC_ALL
144138
145139 # Make sure IFS has a sensible default
146140 sp=' '
157151 }
158152 fi
159153
154
155 # func_unset VAR
156 # --------------
157 # Portably unset VAR.
158 # In some shells, an 'unset VAR' statement leaves a non-zero return
159 # status if VAR is already unset, which might be problematic if the
160 # statement is used at the end of a function (thus poisoning its return
161 # value) or when 'set -e' is active (causing even a spurious abort of
162 # the script in this case).
163 func_unset ()
164 {
165 { eval $1=; (eval unset $1) >/dev/null 2>&1 && eval unset $1 || : ; }
166 }
167
168
169 # Make sure CDPATH doesn't cause `cd` commands to output the target dir.
170 func_unset CDPATH
171
172 # Make sure ${,E,F}GREP behave sanely.
173 func_unset GREP_OPTIONS
160174
161175
162176 ## ------------------------- ##
258272 rm -f conftest.in conftest.tmp conftest.nl conftest.out
259273 }
260274
261 func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin
275 func_path_progs "sed gsed" func_check_prog_sed "$PATH:/usr/xpg4/bin"
262276 rm -f conftest.sed
263277 SED=$func_path_progs_result
264278 }
294308 rm -f conftest.in conftest.tmp conftest.nl conftest.out
295309 }
296310
297 func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin
311 func_path_progs "grep ggrep" func_check_prog_grep "$PATH:/usr/xpg4/bin"
298312 GREP=$func_path_progs_result
299313 }
300314
358372 s/^$_G_bs2$_G_dollar/$_G_bs&/
359373 s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g
360374 s/\n//g"
375
376 # require_check_ifs_backslash
377 # ---------------------------
378 # Check if we can use backslash as IFS='\' separator, and set
379 # $check_ifs_backshlash_broken to ':' or 'false'.
380 require_check_ifs_backslash=func_require_check_ifs_backslash
381 func_require_check_ifs_backslash ()
382 {
383 _G_save_IFS=$IFS
384 IFS='\'
385 _G_check_ifs_backshlash='a\\b'
386 for _G_i in $_G_check_ifs_backshlash
387 do
388 case $_G_i in
389 a)
390 check_ifs_backshlash_broken=false
391 ;;
392 '')
393 break
394 ;;
395 *)
396 check_ifs_backshlash_broken=:
397 break
398 ;;
399 esac
400 done
401 IFS=$_G_save_IFS
402 require_check_ifs_backslash=:
403 }
361404
362405
363406 ## ----------------- ##
579622 {
580623 $debug_cmd
581624
582 func_quote_for_eval "$2"
583 eval "$1+=\\ \$func_quote_for_eval_result"
625 func_quote_arg pretty "$2"
626 eval "$1+=\\ \$func_quote_arg_result"
584627 }'
585628 else
586629 func_append_quoted ()
587630 {
588631 $debug_cmd
589632
590 func_quote_for_eval "$2"
591 eval "$1=\$$1\\ \$func_quote_for_eval_result"
633 func_quote_arg pretty "$2"
634 eval "$1=\$$1\\ \$func_quote_arg_result"
592635 }
593636 fi
594637
10901133 }
10911134
10921135
1093 # func_quote_for_eval ARG...
1094 # --------------------------
1095 # Aesthetically quote ARGs to be evaled later.
1096 # This function returns two values:
1097 # i) func_quote_for_eval_result
1098 # double-quoted, suitable for a subsequent eval
1099 # ii) func_quote_for_eval_unquoted_result
1100 # has all characters that are still active within double
1101 # quotes backslashified.
1102 func_quote_for_eval ()
1136 # func_quote_portable EVAL ARG
1137 # ----------------------------
1138 # Internal function to portably implement func_quote_arg. Note that we still
1139 # keep attention to performance here so we as much as possible try to avoid
1140 # calling sed binary (so far O(N) complexity as long as func_append is O(1)).
1141 func_quote_portable ()
11031142 {
11041143 $debug_cmd
11051144
1106 func_quote_for_eval_unquoted_result=
1107 func_quote_for_eval_result=
1108 while test 0 -lt $#; do
1145 $require_check_ifs_backslash
1146
1147 func_quote_portable_result=$2
1148
1149 # one-time-loop (easy break)
1150 while true
1151 do
1152 if $1; then
1153 func_quote_portable_result=`$ECHO "$2" | $SED \
1154 -e "$sed_double_quote_subst" -e "$sed_double_backslash"`
1155 break
1156 fi
1157
1158 # Quote for eval.
1159 case $func_quote_portable_result in
1160 *[\\\`\"\$]*)
1161 # Fallback to sed for $func_check_bs_ifs_broken=:, or when the string
1162 # contains the shell wildcard characters.
1163 case $check_ifs_backshlash_broken$func_quote_portable_result in
1164 :*|*[\[\*\?]*)
1165 func_quote_portable_result=`$ECHO "$func_quote_portable_result" \
1166 | $SED "$sed_quote_subst"`
1167 break
1168 ;;
1169 esac
1170
1171 func_quote_portable_old_IFS=$IFS
1172 for _G_char in '\' '`' '"' '$'
1173 do
1174 # STATE($1) PREV($2) SEPARATOR($3)
1175 set start "" ""
1176 func_quote_portable_result=dummy"$_G_char$func_quote_portable_result$_G_char"dummy
1177 IFS=$_G_char
1178 for _G_part in $func_quote_portable_result
1179 do
1180 case $1 in
1181 quote)
1182 func_append func_quote_portable_result "$3$2"
1183 set quote "$_G_part" "\\$_G_char"
1184 ;;
1185 start)
1186 set first "" ""
1187 func_quote_portable_result=
1188 ;;
1189 first)
1190 set quote "$_G_part" ""
1191 ;;
1192 esac
1193 done
1194 done
1195 IFS=$func_quote_portable_old_IFS
1196 ;;
1197 *) ;;
1198 esac
1199 break
1200 done
1201
1202 func_quote_portable_unquoted_result=$func_quote_portable_result
1203 case $func_quote_portable_result in
1204 # double-quote args containing shell metacharacters to delay
1205 # word splitting, command substitution and variable expansion
1206 # for a subsequent eval.
1207 # many bourne shells cannot handle close brackets correctly
1208 # in scan sets, so we specify it separately.
1209 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1210 func_quote_portable_result=\"$func_quote_portable_result\"
1211 ;;
1212 esac
1213 }
1214
1215
1216 # func_quotefast_eval ARG
1217 # -----------------------
1218 # Quote one ARG (internal). This is equivalent to 'func_quote_arg eval ARG',
1219 # but optimized for speed. Result is stored in $func_quotefast_eval.
1220 if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
1221 printf -v _GL_test_printf_tilde %q '~'
1222 if test '\~' = "$_GL_test_printf_tilde"; then
1223 func_quotefast_eval ()
1224 {
1225 printf -v func_quotefast_eval_result %q "$1"
1226 }
1227 else
1228 # Broken older Bash implementations. Make those faster too if possible.
1229 func_quotefast_eval ()
1230 {
11091231 case $1 in
1110 *[\\\`\"\$]*)
1111 _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;;
1112 *)
1113 _G_unquoted_arg=$1 ;;
1114 esac
1115 if test -n "$func_quote_for_eval_unquoted_result"; then
1116 func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg"
1117 else
1118 func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg"
1119 fi
1120
1121 case $_G_unquoted_arg in
1122 # Double-quote args containing shell metacharacters to delay
1123 # word splitting, command substitution and variable expansion
1124 # for a subsequent eval.
1125 # Many Bourne shells cannot handle close brackets correctly
1126 # in scan sets, so we specify it separately.
1127 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1128 _G_quoted_arg=\"$_G_unquoted_arg\"
1232 '~'*)
1233 func_quote_portable false "$1"
1234 func_quotefast_eval_result=$func_quote_portable_result
11291235 ;;
11301236 *)
1131 _G_quoted_arg=$_G_unquoted_arg
1132 ;;
1237 printf -v func_quotefast_eval_result %q "$1"
1238 ;;
11331239 esac
1134
1135 if test -n "$func_quote_for_eval_result"; then
1136 func_append func_quote_for_eval_result " $_G_quoted_arg"
1240 }
1241 fi
1242 else
1243 func_quotefast_eval ()
1244 {
1245 func_quote_portable false "$1"
1246 func_quotefast_eval_result=$func_quote_portable_result
1247 }
1248 fi
1249
1250
1251 # func_quote_arg MODEs ARG
1252 # ------------------------
1253 # Quote one ARG to be evaled later. MODEs argument may contain zero or more
1254 # specifiers listed below separated by ',' character. This function returns two
1255 # values:
1256 # i) func_quote_arg_result
1257 # double-quoted (when needed), suitable for a subsequent eval
1258 # ii) func_quote_arg_unquoted_result
1259 # has all characters that are still active within double
1260 # quotes backslashified. Available only if 'unquoted' is specified.
1261 #
1262 # Available modes:
1263 # ----------------
1264 # 'eval' (default)
1265 # - escape shell special characters
1266 # 'expand'
1267 # - the same as 'eval'; but do not quote variable references
1268 # 'pretty'
1269 # - request aesthetic output, i.e. '"a b"' instead of 'a\ b'. This might
1270 # be used later in func_quote to get output like: 'echo "a b"' instead
1271 # of 'echo a\ b'. This is slower than default on some shells.
1272 # 'unquoted'
1273 # - produce also $func_quote_arg_unquoted_result which does not contain
1274 # wrapping double-quotes.
1275 #
1276 # Examples for 'func_quote_arg pretty,unquoted string':
1277 #
1278 # string | *_result | *_unquoted_result
1279 # ------------+-----------------------+-------------------
1280 # " | \" | \"
1281 # a b | "a b" | a b
1282 # "a b" | "\"a b\"" | \"a b\"
1283 # * | "*" | *
1284 # z="${x-$y}" | "z=\"\${x-\$y}\"" | z=\"\${x-\$y}\"
1285 #
1286 # Examples for 'func_quote_arg pretty,unquoted,expand string':
1287 #
1288 # string | *_result | *_unquoted_result
1289 # --------------+---------------------+--------------------
1290 # z="${x-$y}" | "z=\"${x-$y}\"" | z=\"${x-$y}\"
1291 func_quote_arg ()
1292 {
1293 _G_quote_expand=false
1294 case ,$1, in
1295 *,expand,*)
1296 _G_quote_expand=:
1297 ;;
1298 esac
1299
1300 case ,$1, in
1301 *,pretty,*|*,expand,*|*,unquoted,*)
1302 func_quote_portable $_G_quote_expand "$2"
1303 func_quote_arg_result=$func_quote_portable_result
1304 func_quote_arg_unquoted_result=$func_quote_portable_unquoted_result
1305 ;;
1306 *)
1307 # Faster quote-for-eval for some shells.
1308 func_quotefast_eval "$2"
1309 func_quote_arg_result=$func_quotefast_eval_result
1310 ;;
1311 esac
1312 }
1313
1314
1315 # func_quote MODEs ARGs...
1316 # ------------------------
1317 # Quote all ARGs to be evaled later and join them into single command. See
1318 # func_quote_arg's description for more info.
1319 func_quote ()
1320 {
1321 $debug_cmd
1322 _G_func_quote_mode=$1 ; shift
1323 func_quote_result=
1324 while test 0 -lt $#; do
1325 func_quote_arg "$_G_func_quote_mode" "$1"
1326 if test -n "$func_quote_result"; then
1327 func_append func_quote_result " $func_quote_arg_result"
11371328 else
1138 func_append func_quote_for_eval_result "$_G_quoted_arg"
1329 func_append func_quote_result "$func_quote_arg_result"
11391330 fi
11401331 shift
11411332 done
1142 }
1143
1144
1145 # func_quote_for_expand ARG
1146 # -------------------------
1147 # Aesthetically quote ARG to be evaled later; same as above,
1148 # but do not quote variable references.
1149 func_quote_for_expand ()
1150 {
1151 $debug_cmd
1152
1153 case $1 in
1154 *[\\\`\"]*)
1155 _G_arg=`$ECHO "$1" | $SED \
1156 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;
1157 *)
1158 _G_arg=$1 ;;
1159 esac
1160
1161 case $_G_arg in
1162 # Double-quote args containing shell metacharacters to delay
1163 # word splitting and command substitution for a subsequent eval.
1164 # Many Bourne shells cannot handle close brackets correctly
1165 # in scan sets, so we specify it separately.
1166 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1167 _G_arg=\"$_G_arg\"
1168 ;;
1169 esac
1170
1171 func_quote_for_expand_result=$_G_arg
11721333 }
11731334
11741335
12141375 _G_cmd=$1
12151376 _G_fail_exp=${2-':'}
12161377
1217 func_quote_for_expand "$_G_cmd"
1218 eval "func_notquiet $func_quote_for_expand_result"
1378 func_quote_arg pretty,expand "$_G_cmd"
1379 eval "func_notquiet $func_quote_arg_result"
12191380
12201381 $opt_dry_run || {
12211382 eval "$_G_cmd"
12401401 _G_fail_exp=${2-':'}
12411402
12421403 $opt_quiet || {
1243 func_quote_for_expand "$_G_cmd"
1244 eval "func_echo $func_quote_for_expand_result"
1404 func_quote_arg expand,pretty "$_G_cmd"
1405 eval "func_echo $func_quote_arg_result"
12451406 }
12461407
12471408 $opt_dry_run || {
13681529 # End:
13691530 #! /bin/sh
13701531
1371 # Set a version string for this script.
1372 scriptversion=2015-10-07.11; # UTC
1373
13741532 # A portable, pluggable option parser for Bourne shell.
13751533 # Written by Gary V. Vaughan, 2010
13761534
1377 # Copyright (C) 2010-2015 Free Software Foundation, Inc.
1378 # This is free software; see the source for copying conditions. There is NO
1379 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1380
1381 # This program is free software: you can redistribute it and/or modify
1382 # it under the terms of the GNU General Public License as published by
1383 # the Free Software Foundation, either version 3 of the License, or
1384 # (at your option) any later version.
1385
1386 # This program is distributed in the hope that it will be useful,
1387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1389 # GNU General Public License for more details.
1390
1391 # You should have received a copy of the GNU General Public License
1392 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1393
1394 # Please report bugs or propose patches to gary@gnu.org.
1535 # This is free software. There is NO warranty; not even for
1536 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1537 #
1538 # Copyright (C) 2010-2019, 2021 Bootstrap Authors
1539 #
1540 # This file is dual licensed under the terms of the MIT license
1541 # <https://opensource.org/license/MIT>, and GPL version 2 or later
1542 # <http://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
1543 # these licenses when using or redistributing this software or any of
1544 # the files within it. See the URLs above, or the file `LICENSE`
1545 # included in the Bootstrap distribution for the full license texts.
1546
1547 # Please report bugs or propose patches to:
1548 # <https://github.com/gnulib-modules/bootstrap/issues>
1549
1550 # Set a version string for this script.
1551 scriptversion=2019-02-19.15; # UTC
13951552
13961553
13971554 ## ------ ##
14141571 #
14151572 # In order for the '--version' option to work, you will need to have a
14161573 # suitably formatted comment like the one at the top of this file
1417 # starting with '# Written by ' and ending with '# warranty; '.
1574 # starting with '# Written by ' and ending with '# Copyright'.
14181575 #
14191576 # For '-h' and '--help' to work, you will also need a one line
14201577 # description of your script's purpose in a comment directly above the
14261583 # to display verbose messages only when your user has specified
14271584 # '--verbose'.
14281585 #
1429 # After sourcing this file, you can plug processing for additional
1586 # After sourcing this file, you can plug in processing for additional
14301587 # options by amending the variables from the 'Configuration' section
14311588 # below, and following the instructions in the 'Option parsing'
14321589 # section further down.
14751632 ## ------------------------- ##
14761633
14771634 # This section contains functions for adding, removing, and running hooks
1478 # to the main code. A hook is just a named list of of function, that can
1479 # be run in order later on.
1635 # in the main code. A hook is just a list of function names that can be
1636 # run in order later on.
14801637
14811638 # func_hookable FUNC_NAME
14821639 # -----------------------
15091666
15101667 # func_remove_hook FUNC_NAME HOOK_FUNC
15111668 # ------------------------------------
1512 # Remove HOOK_FUNC from the list of functions called by FUNC_NAME.
1669 # Remove HOOK_FUNC from the list of hook functions to be called by
1670 # FUNC_NAME.
15131671 func_remove_hook ()
15141672 {
15151673 $debug_cmd
15161674
15171675 eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`'
1676 }
1677
1678
1679 # func_propagate_result FUNC_NAME_A FUNC_NAME_B
1680 # ---------------------------------------------
1681 # If the *_result variable of FUNC_NAME_A _is set_, assign its value to
1682 # *_result variable of FUNC_NAME_B.
1683 func_propagate_result ()
1684 {
1685 $debug_cmd
1686
1687 func_propagate_result_result=:
1688 if eval "test \"\${${1}_result+set}\" = set"
1689 then
1690 eval "${2}_result=\$${1}_result"
1691 else
1692 func_propagate_result_result=false
1693 fi
15181694 }
15191695
15201696
15211697 # func_run_hooks FUNC_NAME [ARG]...
15221698 # ---------------------------------
15231699 # Run all hook functions registered to FUNC_NAME.
1524 # It is assumed that the list of hook functions contains nothing more
1700 # It's assumed that the list of hook functions contains nothing more
15251701 # than a whitespace-delimited list of legal shell function names, and
15261702 # no effort is wasted trying to catch shell meta-characters or preserve
15271703 # whitespace.
15331709
15341710 case " $hookable_fns " in
15351711 *" $1 "*) ;;
1536 *) func_fatal_error "'$1' does not support hook funcions.n" ;;
1712 *) func_fatal_error "'$1' does not support hook functions." ;;
15371713 esac
15381714
15391715 eval _G_hook_fns=\$$1_hooks; shift
15401716
15411717 for _G_hook in $_G_hook_fns; do
1542 if eval $_G_hook '"$@"'; then
1543 # store returned options list back into positional
1544 # parameters for next 'cmd' execution.
1545 eval _G_hook_result=\$${_G_hook}_result
1546 eval set dummy "$_G_hook_result"; shift
1547 _G_rc_run_hooks=:
1718 func_unset "${_G_hook}_result"
1719 eval $_G_hook '${1+"$@"}'
1720 func_propagate_result $_G_hook func_run_hooks
1721 if $func_propagate_result_result; then
1722 eval set dummy "$func_run_hooks_result"; shift
15481723 fi
15491724 done
1550
1551 $_G_rc_run_hooks && func_run_hooks_result=$_G_hook_result
15521725 }
15531726
15541727
15581731 ## --------------- ##
15591732
15601733 # In order to add your own option parsing hooks, you must accept the
1561 # full positional parameter list in your hook function, you may remove/edit
1562 # any options that you action, and then pass back the remaining unprocessed
1563 # options in '<hooked_function_name>_result', escaped suitably for
1564 # 'eval'. In this case you also must return $EXIT_SUCCESS to let the
1565 # hook's caller know that it should pay attention to
1566 # '<hooked_function_name>_result'. Returning $EXIT_FAILURE signalizes that
1567 # arguments are left untouched by the hook and therefore caller will ignore the
1568 # result variable.
1734 # full positional parameter list from your hook function. You may remove
1735 # or edit any options that you action, and then pass back the remaining
1736 # unprocessed options in '<hooked_function_name>_result', escaped
1737 # suitably for 'eval'.
1738 #
1739 # The '<hooked_function_name>_result' variable is automatically unset
1740 # before your hook gets called; for best performance, only set the
1741 # *_result variable when necessary (i.e. don't call the 'func_quote'
1742 # function unnecessarily because it can be an expensive operation on some
1743 # machines).
15691744 #
15701745 # Like this:
15711746 #
15771752 # usage_message=$usage_message'
15781753 # -s, --silent don'\''t print informational messages
15791754 # '
1580 # # No change in '$@' (ignored completely by this hook). There is
1581 # # no need to do the equivalent (but slower) action:
1582 # # func_quote_for_eval ${1+"$@"}
1583 # # my_options_prep_result=$func_quote_for_eval_result
1584 # false
1755 # # No change in '$@' (ignored completely by this hook). Leave
1756 # # my_options_prep_result variable intact.
15851757 # }
15861758 # func_add_hook func_options_prep my_options_prep
15871759 #
15921764 #
15931765 # args_changed=false
15941766 #
1595 # # Note that for efficiency, we parse as many options as we can
1767 # # Note that, for efficiency, we parse as many options as we can
15961768 # # recognise in a loop before passing the remainder back to the
15971769 # # caller on the first unrecognised argument we encounter.
15981770 # while test $# -gt 0; do
16091781 # args_changed=:
16101782 # ;;
16111783 # *) # Make sure the first unrecognised option "$_G_opt"
1612 # # is added back to "$@", we could need that later
1613 # # if $args_changed is true.
1784 # # is added back to "$@" in case we need it later,
1785 # # if $args_changed was set to 'true'.
16141786 # set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
16151787 # esac
16161788 # done
16171789 #
1790 # # Only call 'func_quote' here if we processed at least one argument.
16181791 # if $args_changed; then
1619 # func_quote_for_eval ${1+"$@"}
1620 # my_silent_option_result=$func_quote_for_eval_result
1792 # func_quote eval ${1+"$@"}
1793 # my_silent_option_result=$func_quote_result
16211794 # fi
1622 #
1623 # $args_changed
16241795 # }
16251796 # func_add_hook func_parse_options my_silent_option
16261797 #
16311802 #
16321803 # $opt_silent && $opt_verbose && func_fatal_help "\
16331804 # '--silent' and '--verbose' options are mutually exclusive."
1634 #
1635 # false
16361805 # }
16371806 # func_add_hook func_validate_options my_option_validation
16381807 #
16481817 {
16491818 $debug_cmd
16501819
1651 _G_func_options_finish_exit=false
1652 if func_run_hooks func_options ${1+"$@"}; then
1653 func_options_finish_result=$func_run_hooks_result
1654 _G_func_options_finish_exit=:
1655 fi
1656
1657 $_G_func_options_finish_exit
1820 func_run_hooks func_options ${1+"$@"}
1821 func_propagate_result func_run_hooks func_options_finish
16581822 }
16591823
16601824
16671831 {
16681832 $debug_cmd
16691833
1670 _G_rc_options=false
1834 _G_options_quoted=false
16711835
16721836 for my_func in options_prep parse_options validate_options options_finish
16731837 do
1674 if eval func_$my_func '${1+"$@"}'; then
1675 eval _G_res_var='$'"func_${my_func}_result"
1676 eval set dummy "$_G_res_var" ; shift
1677 _G_rc_options=:
1838 func_unset func_${my_func}_result
1839 func_unset func_run_hooks_result
1840 eval func_$my_func '${1+"$@"}'
1841 func_propagate_result func_$my_func func_options
1842 if $func_propagate_result_result; then
1843 eval set dummy "$func_options_result"; shift
1844 _G_options_quoted=:
16781845 fi
16791846 done
16801847
1681 # Save modified positional parameters for caller. As a top-level
1682 # options-parser function we always need to set the 'func_options_result'
1683 # variable (regardless the $_G_rc_options value).
1684 if $_G_rc_options; then
1685 func_options_result=$_G_res_var
1686 else
1687 func_quote_for_eval ${1+"$@"}
1688 func_options_result=$func_quote_for_eval_result
1689 fi
1690
1691 $_G_rc_options
1848 $_G_options_quoted || {
1849 # As we (func_options) are top-level options-parser function and
1850 # nobody quoted "$@" for us yet, we need to do it explicitly for
1851 # caller.
1852 func_quote eval ${1+"$@"}
1853 func_options_result=$func_quote_result
1854 }
16921855 }
16931856
16941857
16981861 # Note that when calling hook functions, we pass through the list of
16991862 # positional parameters. If a hook function modifies that list, and
17001863 # needs to propagate that back to rest of this script, then the complete
1701 # modified list must be put in 'func_run_hooks_result' before
1702 # returning $EXIT_SUCCESS (otherwise $EXIT_FAILURE is returned).
1864 # modified list must be put in 'func_run_hooks_result' before returning.
17031865 func_hookable func_options_prep
17041866 func_options_prep ()
17051867 {
17091871 opt_verbose=false
17101872 opt_warning_types=
17111873
1712 _G_rc_options_prep=false
1713 if func_run_hooks func_options_prep ${1+"$@"}; then
1714 _G_rc_options_prep=:
1715 # save modified positional parameters for caller
1716 func_options_prep_result=$func_run_hooks_result
1717 fi
1718
1719 $_G_rc_options_prep
1874 func_run_hooks func_options_prep ${1+"$@"}
1875 func_propagate_result func_run_hooks func_options_prep
17201876 }
17211877
17221878
17281884 {
17291885 $debug_cmd
17301886
1731 func_parse_options_result=
1732
1733 _G_rc_parse_options=false
1887 _G_parse_options_requote=false
17341888 # this just eases exit handling
17351889 while test $# -gt 0; do
17361890 # Defer to hook functions for initial option parsing, so they
17371891 # get priority in the event of reusing an option name.
1738 if func_run_hooks func_parse_options ${1+"$@"}; then
1739 eval set dummy "$func_run_hooks_result"; shift
1740 _G_rc_parse_options=:
1892 func_run_hooks func_parse_options ${1+"$@"}
1893 func_propagate_result func_run_hooks func_parse_options
1894 if $func_propagate_result_result; then
1895 eval set dummy "$func_parse_options_result"; shift
1896 # Even though we may have changed "$@", we passed the "$@" array
1897 # down into the hook and it quoted it for us (because we are in
1898 # this if-branch). No need to quote it again.
1899 _G_parse_options_requote=false
17411900 fi
17421901
17431902 # Break out of the loop if we already parsed every option.
17441903 test $# -gt 0 || break
17451904
1905 # We expect that one of the options parsed in this function matches
1906 # and thus we remove _G_opt from "$@" and need to re-quote.
17461907 _G_match_parse_options=:
17471908 _G_opt=$1
17481909 shift
17491910 case $_G_opt in
17501911 --debug|-x) debug_cmd='set -x'
1751 func_echo "enabling shell trace mode"
1912 func_echo "enabling shell trace mode" >&2
17521913 $debug_cmd
17531914 ;;
17541915
17591920
17601921 --warnings|--warning|-W)
17611922 if test $# = 0 && func_missing_arg $_G_opt; then
1762 _G_rc_parse_options=:
1923 _G_parse_options_requote=:
17631924 break
17641925 fi
17651926 case " $warning_categories $1" in
18141975 shift
18151976 ;;
18161977
1817 --) _G_rc_parse_options=: ; break ;;
1978 --) _G_parse_options_requote=: ; break ;;
18181979 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
18191980 *) set dummy "$_G_opt" ${1+"$@"}; shift
18201981 _G_match_parse_options=false
18221983 ;;
18231984 esac
18241985
1825 $_G_match_parse_options && _G_rc_parse_options=:
1986 if $_G_match_parse_options; then
1987 _G_parse_options_requote=:
1988 fi
18261989 done
18271990
1828
1829 if $_G_rc_parse_options; then
1991 if $_G_parse_options_requote; then
18301992 # save modified positional parameters for caller
1831 func_quote_for_eval ${1+"$@"}
1832 func_parse_options_result=$func_quote_for_eval_result
1993 func_quote eval ${1+"$@"}
1994 func_parse_options_result=$func_quote_result
18331995 fi
1834
1835 $_G_rc_parse_options
18361996 }
18371997
18381998
18452005 {
18462006 $debug_cmd
18472007
1848 _G_rc_validate_options=false
1849
18502008 # Display all warnings if -W was not given.
18512009 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
18522010
1853 if func_run_hooks func_validate_options ${1+"$@"}; then
1854 # save modified positional parameters for caller
1855 func_validate_options_result=$func_run_hooks_result
1856 _G_rc_validate_options=:
1857 fi
2011 func_run_hooks func_validate_options ${1+"$@"}
2012 func_propagate_result func_run_hooks func_validate_options
18582013
18592014 # Bail if the options were screwed!
18602015 $exit_cmd $EXIT_FAILURE
1861
1862 $_G_rc_validate_options
18632016 }
18642017
18652018
19152068
19162069 # func_split_equals STRING
19172070 # ------------------------
1918 # Set func_split_equals_lhs and func_split_equals_rhs shell variables after
1919 # splitting STRING at the '=' sign.
2071 # Set func_split_equals_lhs and func_split_equals_rhs shell variables
2072 # after splitting STRING at the '=' sign.
19202073 test -z "$_G_HAVE_XSI_OPS" \
19212074 && (eval 'x=a/b/c;
19222075 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
19312084
19322085 func_split_equals_lhs=${1%%=*}
19332086 func_split_equals_rhs=${1#*=}
1934 test "x$func_split_equals_lhs" = "x$1" \
1935 && func_split_equals_rhs=
2087 if test "x$func_split_equals_lhs" = "x$1"; then
2088 func_split_equals_rhs=
2089 fi
19362090 }'
19372091 else
19382092 # ...otherwise fall back to using expr, which is often a shell builtin.
19422096
19432097 func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'`
19442098 func_split_equals_rhs=
1945 test "x$func_split_equals_lhs" = "x$1" \
2099 test "x$func_split_equals_lhs=" = "x$1" \
19462100 || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'`
19472101 }
19482102 fi #func_split_equals
19682122 {
19692123 $debug_cmd
19702124
1971 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
2125 func_split_short_opt_name=`expr "x$1" : 'x\(-.\)'`
19722126 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
19732127 }
19742128 fi #func_split_short_opt
20102164 # func_version
20112165 # ------------
20122166 # Echo version message to standard output and exit.
2167 # The version message is extracted from the calling file's header
2168 # comments, with leading '# ' stripped:
2169 # 1. First display the progname and version
2170 # 2. Followed by the header comment line matching /^# Written by /
2171 # 3. Then a blank line followed by the first following line matching
2172 # /^# Copyright /
2173 # 4. Immediately followed by any lines between the previous matches,
2174 # except lines preceding the intervening completely blank line.
2175 # For example, see the header comments of this file.
20132176 func_version ()
20142177 {
20152178 $debug_cmd
20162179
20172180 printf '%s\n' "$progname $scriptversion"
20182181 $SED -n '
2019 /(C)/!b go
2020 :more
2021 /\./!{
2022 N
2023 s|\n# | |
2024 b more
2182 /^# Written by /!b
2183 s|^# ||; p; n
2184
2185 :fwd2blnk
2186 /./ {
2187 n
2188 b fwd2blnk
20252189 }
2026 :go
2027 /^# Written by /,/# warranty; / {
2028 s|^# ||
2029 s|^# *$||
2030 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2031 p
2190 p; n
2191
2192 :holdwrnt
2193 s|^# ||
2194 s|^# *$||
2195 /^Copyright /!{
2196 /./H
2197 n
2198 b holdwrnt
20322199 }
2033 /^# Written by / {
2034 s|^# ||
2035 p
2036 }
2037 /^warranty; /q' < "$progpath"
2200
2201 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2202 G
2203 s|\(\n\)\n*|\1|g
2204 p; q' < "$progpath"
20382205
20392206 exit $?
20402207 }
20442211 # mode: shell-script
20452212 # sh-indentation: 2
20462213 # eval: (add-hook 'before-save-hook 'time-stamp)
2047 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2214 # time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC"
20482215 # time-stamp-time-zone: "UTC"
20492216 # End:
20502217
20512218 # Set a version string.
2052 scriptversion='(GNU libtool) 2.4.6'
2219 scriptversion='(GNU libtool) 2.4.7'
20532220
20542221
20552222 # func_echo ARG...
21402307 compiler: $LTCC
21412308 compiler flags: $LTCFLAGS
21422309 linker: $LD (gnu? $with_gnu_ld)
2143 version: $progname $scriptversion Debian-2.4.6-15
2310 version: $progname $scriptversion Debian-2.4.7-5
21442311 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
21452312 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
21462313
21962363 # a configuration failure hint, and exit.
21972364 func_fatal_configuration ()
21982365 {
2199 func__fatal_error ${1+"$@"} \
2366 func_fatal_error ${1+"$@"} \
22002367 "See the $PACKAGE documentation for more information." \
22012368 "Fatal configuration error."
22022369 }
23412508
23422509 nonopt=
23432510 preserve_args=
2511
2512 _G_rc_lt_options_prep=:
23442513
23452514 _G_rc_lt_options_prep=:
23462515
23742543
23752544 if $_G_rc_lt_options_prep; then
23762545 # Pass back the list of options.
2377 func_quote_for_eval ${1+"$@"}
2378 libtool_options_prep_result=$func_quote_for_eval_result
2546 func_quote eval ${1+"$@"}
2547 libtool_options_prep_result=$func_quote_result
23792548 fi
2380
2381 $_G_rc_lt_options_prep
23822549 }
23832550 func_add_hook func_options_prep libtool_options_prep
23842551
24812648
24822649 if $_G_rc_lt_parse_options; then
24832650 # save modified positional parameters for caller
2484 func_quote_for_eval ${1+"$@"}
2485 libtool_parse_options_result=$func_quote_for_eval_result
2651 func_quote eval ${1+"$@"}
2652 libtool_parse_options_result=$func_quote_result
24862653 fi
2487
2488 $_G_rc_lt_parse_options
24892654 }
24902655 func_add_hook func_parse_options libtool_parse_options
24912656
25422707 }
25432708
25442709 # Pass back the unparsed argument list
2545 func_quote_for_eval ${1+"$@"}
2546 libtool_validate_options_result=$func_quote_for_eval_result
2710 func_quote eval ${1+"$@"}
2711 libtool_validate_options_result=$func_quote_result
25472712 }
25482713 func_add_hook func_validate_options libtool_validate_options
25492714
35093674 esac
35103675 done
35113676
3512 func_quote_for_eval "$libobj"
3513 test "X$libobj" != "X$func_quote_for_eval_result" \
3677 func_quote_arg pretty "$libobj"
3678 test "X$libobj" != "X$func_quote_arg_result" \
35143679 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
35153680 && func_warning "libobj name '$libobj' may not contain shell special characters."
35163681 func_dirname_and_basename "$obj" "/" ""
35833748
35843749 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
35853750 srcfile=$func_to_tool_file_result
3586 func_quote_for_eval "$srcfile"
3587 qsrcfile=$func_quote_for_eval_result
3751 func_quote_arg pretty "$srcfile"
3752 qsrcfile=$func_quote_arg_result
35883753
35893754 # Only build a PIC object if we are building libtool libraries.
35903755 if test yes = "$build_libtool_libs"; then
37393904 -prefer-non-pic try to build non-PIC objects only
37403905 -shared do not build a '.o' file suitable for static linking
37413906 -static only build a '.o' file suitable for static linking
3742 -Wc,FLAG pass FLAG directly to the compiler
3907 -Wc,FLAG
3908 -Xcompiler FLAG pass FLAG directly to the compiler
37433909
37443910 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
37453911 from the given SOURCEFILE.
38454011 -weak LIBNAME declare that the target provides the LIBNAME interface
38464012 -Wc,FLAG
38474013 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
4014 -Wa,FLAG
4015 -Xassembler FLAG pass linker-specific FLAG directly to the assembler
38484016 -Wl,FLAG
38494017 -Xlinker FLAG pass linker-specific FLAG directly to the linker
38504018 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
41874355 case $nonopt in *shtool*) :;; *) false;; esac
41884356 then
41894357 # Aesthetically quote it.
4190 func_quote_for_eval "$nonopt"
4191 install_prog="$func_quote_for_eval_result "
4358 func_quote_arg pretty "$nonopt"
4359 install_prog="$func_quote_arg_result "
41924360 arg=$1
41934361 shift
41944362 else
41984366
41994367 # The real first argument should be the name of the installation program.
42004368 # Aesthetically quote it.
4201 func_quote_for_eval "$arg"
4202 func_append install_prog "$func_quote_for_eval_result"
4369 func_quote_arg pretty "$arg"
4370 func_append install_prog "$func_quote_arg_result"
42034371 install_shared_prog=$install_prog
42044372 case " $install_prog " in
42054373 *[\\\ /]cp\ *) install_cp=: ;;
42564424 esac
42574425
42584426 # Aesthetically quote the argument.
4259 func_quote_for_eval "$arg"
4260 func_append install_prog " $func_quote_for_eval_result"
4427 func_quote_arg pretty "$arg"
4428 func_append install_prog " $func_quote_arg_result"
42614429 if test -n "$arg2"; then
4262 func_quote_for_eval "$arg2"
4430 func_quote_arg pretty "$arg2"
42634431 fi
4264 func_append install_shared_prog " $func_quote_for_eval_result"
4432 func_append install_shared_prog " $func_quote_arg_result"
42654433 done
42664434
42674435 test -z "$install_prog" && \
42724440
42734441 if test -n "$install_override_mode" && $no_mode; then
42744442 if $install_cp; then :; else
4275 func_quote_for_eval "$install_override_mode"
4276 func_append install_shared_prog " -m $func_quote_for_eval_result"
4443 func_quote_arg pretty "$install_override_mode"
4444 func_append install_shared_prog " -m $func_quote_arg_result"
42774445 fi
42784446 fi
42794447
45694737 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
45704738
45714739 $opt_quiet || {
4572 func_quote_for_expand "$relink_command"
4573 eval "func_echo $func_quote_for_expand_result"
4740 func_quote_arg expand,pretty "$relink_command"
4741 eval "func_echo $func_quote_arg_result"
45744742 }
45754743 if eval "$relink_command"; then :
45764744 else
53495517 if test \"\$libtool_execute_magic\" != \"$magic\"; then
53505518 file=\"\$0\""
53515519
5352 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
5520 func_quote_arg pretty "$ECHO"
5521 qECHO=$func_quote_arg_result
53535522 $ECHO "\
53545523
53555524 # A function that is used when there is no print builtin or printf.
53595528 \$1
53605529 _LTECHO_EOF'
53615530 }
5362 ECHO=\"$qECHO\"
5531 ECHO=$qECHO
53635532 fi
53645533
53655534 # Very basic option parsing. These options are (a) specific to
67026871 while test "$#" -gt 0; do
67036872 arg=$1
67046873 shift
6705 func_quote_for_eval "$arg"
6706 qarg=$func_quote_for_eval_unquoted_result
6707 func_append libtool_args " $func_quote_for_eval_result"
6874 func_quote_arg pretty,unquoted "$arg"
6875 qarg=$func_quote_arg_unquoted_result
6876 func_append libtool_args " $func_quote_arg_result"
67086877
67096878 # If the previous option needs an argument, assign it.
67106879 if test -n "$prev"; then
69407109 prev=
69417110 continue
69427111 ;;
7112 xassembler)
7113 func_append compiler_flags " -Xassembler $qarg"
7114 prev=
7115 func_append compile_command " -Xassembler $qarg"
7116 func_append finalize_command " -Xassembler $qarg"
7117 continue
7118 ;;
69437119 xcclinker)
69447120 func_append linker_flags " $qarg"
69457121 func_append compiler_flags " $qarg"
71107286 # These systems don't actually have a C library (as such)
71117287 test X-lc = "X$arg" && continue
71127288 ;;
7113 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7289 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*)
71147290 # Do not include libc due to us having libc/libc_r.
71157291 test X-lc = "X$arg" && continue
71167292 ;;
71307306 esac
71317307 elif test X-lc_r = "X$arg"; then
71327308 case $host in
7133 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7309 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*)
71347310 # Do not include libc_r directly, use -pthread flag.
71357311 continue
71367312 ;;
71607336 prev=xcompiler
71617337 continue
71627338 ;;
7163
7164 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7339 # Solaris ld rejects as of 11.4. Refer to Oracle bug 22985199.
7340 -pthread)
7341 case $host in
7342 *solaris2*) ;;
7343 *)
7344 case "$new_inherited_linker_flags " in
7345 *" $arg "*) ;;
7346 * ) func_append new_inherited_linker_flags " $arg" ;;
7347 esac
7348 ;;
7349 esac
7350 continue
7351 ;;
7352 -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \
71657353 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
71667354 func_append compiler_flags " $arg"
71677355 func_append compile_command " $arg"
73027490 save_ifs=$IFS; IFS=,
73037491 for flag in $args; do
73047492 IFS=$save_ifs
7305 func_quote_for_eval "$flag"
7306 func_append arg " $func_quote_for_eval_result"
7307 func_append compiler_flags " $func_quote_for_eval_result"
7493 func_quote_arg pretty "$flag"
7494 func_append arg " $func_quote_arg_result"
7495 func_append compiler_flags " $func_quote_arg_result"
73087496 done
73097497 IFS=$save_ifs
73107498 func_stripname ' ' '' "$arg"
73187506 save_ifs=$IFS; IFS=,
73197507 for flag in $args; do
73207508 IFS=$save_ifs
7321 func_quote_for_eval "$flag"
7322 func_append arg " $wl$func_quote_for_eval_result"
7323 func_append compiler_flags " $wl$func_quote_for_eval_result"
7324 func_append linker_flags " $func_quote_for_eval_result"
7509 func_quote_arg pretty "$flag"
7510 func_append arg " $wl$func_quote_arg_result"
7511 func_append compiler_flags " $wl$func_quote_arg_result"
7512 func_append linker_flags " $func_quote_arg_result"
73257513 done
73267514 IFS=$save_ifs
73277515 func_stripname ' ' '' "$arg"
73287516 arg=$func_stripname_result
73297517 ;;
73307518
7519 -Xassembler)
7520 prev=xassembler
7521 continue
7522 ;;
7523
73317524 -Xcompiler)
73327525 prev=xcompiler
73337526 continue
73457538
73467539 # -msg_* for osf cc
73477540 -msg_*)
7348 func_quote_for_eval "$arg"
7349 arg=$func_quote_for_eval_result
7541 func_quote_arg pretty "$arg"
7542 arg=$func_quote_arg_result
73507543 ;;
73517544
73527545 # Flags to be passed through unchanged, with rationale:
73697562 # -fuse-ld=* Linker select flags for GCC
73707563 # -static-* direct GCC to link specific libraries statically
73717564 # -fcilkplus Cilk Plus language extension features for C/C++
7565 # -Wa,* Pass flags directly to the assembler
73727566 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
73737567 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
73747568 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7375 -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus)
7376 func_quote_for_eval "$arg"
7377 arg=$func_quote_for_eval_result
7569 -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus|-Wa,*)
7570 func_quote_arg pretty "$arg"
7571 arg=$func_quote_arg_result
73787572 func_append compile_command " $arg"
73797573 func_append finalize_command " $arg"
73807574 func_append compiler_flags " $arg"
73957589 continue
73967590 else
73977591 # Otherwise treat like 'Some other compiler flag' below
7398 func_quote_for_eval "$arg"
7399 arg=$func_quote_for_eval_result
7592 func_quote_arg pretty "$arg"
7593 arg=$func_quote_arg_result
74007594 fi
74017595 ;;
74027596
74037597 # Some other compiler flag.
74047598 -* | +*)
7405 func_quote_for_eval "$arg"
7406 arg=$func_quote_for_eval_result
7599 func_quote_arg pretty "$arg"
7600 arg=$func_quote_arg_result
74077601 ;;
74087602
74097603 *.$objext)
75237717 *)
75247718 # Unknown arguments in both finalize_command and compile_command need
75257719 # to be aesthetically quoted because they are evaled later.
7526 func_quote_for_eval "$arg"
7527 arg=$func_quote_for_eval_result
7720 func_quote_arg pretty "$arg"
7721 arg=$func_quote_arg_result
75287722 ;;
75297723 esac # arg
75307724
87328926 test CXX = "$tagname" && {
87338927 case $host_os in
87348928 linux*)
8735 case `$CC -V 2>&1 | sed 5q` in
8929 case `$CC -V 2>&1 | $SED 5q` in
87368930 *Sun\ C*) # Sun C++ 5.9
87378931 func_suncc_cstd_abi
87388932
89059099 #
89069100 case $version_type in
89079101 # correct linux to gnu/linux during the next big refactor
8908 darwin|freebsd-elf|linux|osf|windows|none)
9102 darwin|freebsd-elf|linux|midnightbsd-elf|osf|windows|none)
89099103 func_arith $number_major + $number_minor
89109104 current=$func_arith_result
89119105 age=$number_minor
89999193 versuffix=.$current.$revision
90009194 ;;
90019195
9002 freebsd-elf)
9196 freebsd-elf | midnightbsd-elf)
90039197 func_arith $current - $age
90049198 major=.$func_arith_result
90059199 versuffix=$major.$age.$revision
92259419 *-*-netbsd*)
92269420 # Don't link with libc until the a.out ld.so is fixed.
92279421 ;;
9228 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
9422 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*)
92299423 # Do not include libc due to us having libc/libc_r.
92309424 ;;
92319425 *-*-sco3.2v5* | *-*-sco5v6*)
1003610230 for cmd in $concat_cmds; do
1003710231 IFS=$save_ifs
1003810232 $opt_quiet || {
10039 func_quote_for_expand "$cmd"
10040 eval "func_echo $func_quote_for_expand_result"
10233 func_quote_arg expand,pretty "$cmd"
10234 eval "func_echo $func_quote_arg_result"
1004110235 }
1004210236 $opt_dry_run || eval "$cmd" || {
1004310237 lt_exit=$?
1013010324 eval cmd=\"$cmd\"
1013110325 IFS=$save_ifs
1013210326 $opt_quiet || {
10133 func_quote_for_expand "$cmd"
10134 eval "func_echo $func_quote_for_expand_result"
10327 func_quote_arg expand,pretty "$cmd"
10328 eval "func_echo $func_quote_arg_result"
1013510329 }
1013610330 $opt_dry_run || eval "$cmd" || {
1013710331 lt_exit=$?
1060510799 elif eval var_value=\$$var; test -z "$var_value"; then
1060610800 relink_command="$var=; export $var; $relink_command"
1060710801 else
10608 func_quote_for_eval "$var_value"
10609 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
10802 func_quote_arg pretty "$var_value"
10803 relink_command="$var=$func_quote_arg_result; export $var; $relink_command"
1061010804 fi
1061110805 done
10612 relink_command="(cd `pwd`; $relink_command)"
10613 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
10806 func_quote eval cd "`pwd`"
10807 func_quote_arg pretty,unquoted "($func_quote_result; $relink_command)"
10808 relink_command=$func_quote_arg_unquoted_result
1061410809 fi
1061510810
1061610811 # Only actually do things if not in dry run mode.
1085011045 elif eval var_value=\$$var; test -z "$var_value"; then
1085111046 relink_command="$var=; export $var; $relink_command"
1085211047 else
10853 func_quote_for_eval "$var_value"
10854 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
11048 func_quote_arg pretty,unquoted "$var_value"
11049 relink_command="$var=$func_quote_arg_unquoted_result; export $var; $relink_command"
1085511050 fi
1085611051 done
1085711052 # Quote the link command for shipping.
10858 relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
10859 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
11053 func_quote eval cd "`pwd`"
11054 relink_command="($func_quote_result; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
11055 func_quote_arg pretty,unquoted "$relink_command"
11056 relink_command=$func_quote_arg_unquoted_result
1086011057 if test yes = "$hardcode_automatic"; then
1086111058 relink_command=
1086211059 fi
0 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1 #
2 # Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software
3 # Foundation, Inc.
4 # Written by Gordon Matzigkeit, 1996
5 #
6 # This file is free software; the Free Software Foundation gives
7 # unlimited permission to copy and/or distribute it, with or without
8 # modifications, as long as this notice is preserved.
9
10 m4_define([_LT_COPYING], [dnl
11 # Copyright (C) 2014 Free Software Foundation, Inc.
12 # This is free software; see the source for copying conditions. There is NO
13 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
15 # GNU Libtool is free software; you can redistribute it and/or modify
16 # it under the terms of the GNU General Public License as published by
17 # the Free Software Foundation; either version 2 of of the License, or
18 # (at your option) any later version.
19 #
20 # As a special exception to the GNU General Public License, if you
21 # distribute this file as part of a program or library that is built
22 # using GNU Libtool, you may include this file under the same
23 # distribution terms that you use for the rest of that program.
24 #
25 # GNU Libtool is distributed in the hope that it will be useful, but
26 # WITHOUT ANY WARRANTY; without even the implied warranty of
27 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 # GNU General Public License for more details.
29 #
30 # You should have received a copy of the GNU General Public License
31 # along with this program. If not, see <http://www.gnu.org/licenses/>.
32 ])
33
34 # serial 59 LT_INIT
35
36
37 # LT_PREREQ(VERSION)
38 # ------------------
39 # Complain and exit if this libtool version is less that VERSION.
40 m4_defun([LT_PREREQ],
41 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
42 [m4_default([$3],
43 [m4_fatal([Libtool version $1 or higher is required],
44 63)])],
45 [$2])])
46
47
48 # _LT_CHECK_BUILDDIR
49 # ------------------
50 # Complain if the absolute build directory name contains unusual characters
51 m4_defun([_LT_CHECK_BUILDDIR],
52 [case `pwd` in
53 *\ * | *\ *)
54 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
55 esac
56 ])
57
58
59 # LT_INIT([OPTIONS])
60 # ------------------
61 AC_DEFUN([LT_INIT],
62 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
63 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
64 AC_BEFORE([$0], [LT_LANG])dnl
65 AC_BEFORE([$0], [LT_OUTPUT])dnl
66 AC_BEFORE([$0], [LTDL_INIT])dnl
67 m4_require([_LT_CHECK_BUILDDIR])dnl
68
69 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
70 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
71 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
72 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
73 dnl unless we require an AC_DEFUNed macro:
74 AC_REQUIRE([LTOPTIONS_VERSION])dnl
75 AC_REQUIRE([LTSUGAR_VERSION])dnl
76 AC_REQUIRE([LTVERSION_VERSION])dnl
77 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
78 m4_require([_LT_PROG_LTMAIN])dnl
79
80 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
81
82 dnl Parse OPTIONS
83 _LT_SET_OPTIONS([$0], [$1])
84
85 # This can be used to rebuild libtool when needed
86 LIBTOOL_DEPS=$ltmain
87
88 # Always use our own libtool.
89 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
90 AC_SUBST(LIBTOOL)dnl
91
92 _LT_SETUP
93
94 # Only expand once:
95 m4_define([LT_INIT])
96 ])# LT_INIT
97
98 # Old names:
99 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
100 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
101 dnl aclocal-1.4 backwards compatibility:
102 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
103 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
104
105
106 # _LT_PREPARE_CC_BASENAME
107 # -----------------------
108 m4_defun([_LT_PREPARE_CC_BASENAME], [
109 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
110 func_cc_basename ()
111 {
112 for cc_temp in @S|@*""; do
113 case $cc_temp in
114 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
115 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
116 \-*) ;;
117 *) break;;
118 esac
119 done
120 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
121 }
122 ])# _LT_PREPARE_CC_BASENAME
123
124
125 # _LT_CC_BASENAME(CC)
126 # -------------------
127 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
128 # but that macro is also expanded into generated libtool script, which
129 # arranges for $SED and $ECHO to be set by different means.
130 m4_defun([_LT_CC_BASENAME],
131 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
132 AC_REQUIRE([_LT_DECL_SED])dnl
133 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
134 func_cc_basename $1
135 cc_basename=$func_cc_basename_result
136 ])
137
138
139 # _LT_FILEUTILS_DEFAULTS
140 # ----------------------
141 # It is okay to use these file commands and assume they have been set
142 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
143 m4_defun([_LT_FILEUTILS_DEFAULTS],
144 [: ${CP="cp -f"}
145 : ${MV="mv -f"}
146 : ${RM="rm -f"}
147 ])# _LT_FILEUTILS_DEFAULTS
148
149
150 # _LT_SETUP
151 # ---------
152 m4_defun([_LT_SETUP],
153 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
154 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
155 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
156 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
157
158 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
159 dnl
160 _LT_DECL([], [host_alias], [0], [The host system])dnl
161 _LT_DECL([], [host], [0])dnl
162 _LT_DECL([], [host_os], [0])dnl
163 dnl
164 _LT_DECL([], [build_alias], [0], [The build system])dnl
165 _LT_DECL([], [build], [0])dnl
166 _LT_DECL([], [build_os], [0])dnl
167 dnl
168 AC_REQUIRE([AC_PROG_CC])dnl
169 AC_REQUIRE([LT_PATH_LD])dnl
170 AC_REQUIRE([LT_PATH_NM])dnl
171 dnl
172 AC_REQUIRE([AC_PROG_LN_S])dnl
173 test -z "$LN_S" && LN_S="ln -s"
174 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
175 dnl
176 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
177 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
178 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
179 dnl
180 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
181 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
182 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
183 m4_require([_LT_CMD_RELOAD])dnl
184 m4_require([_LT_DECL_FILECMD])dnl
185 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
186 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
187 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
188 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
189 m4_require([_LT_WITH_SYSROOT])dnl
190 m4_require([_LT_CMD_TRUNCATE])dnl
191
192 _LT_CONFIG_LIBTOOL_INIT([
193 # See if we are running on zsh, and set the options that allow our
194 # commands through without removal of \ escapes INIT.
195 if test -n "\${ZSH_VERSION+set}"; then
196 setopt NO_GLOB_SUBST
197 fi
198 ])
199 if test -n "${ZSH_VERSION+set}"; then
200 setopt NO_GLOB_SUBST
201 fi
202
203 _LT_CHECK_OBJDIR
204
205 m4_require([_LT_TAG_COMPILER])dnl
206
207 case $host_os in
208 aix3*)
209 # AIX sometimes has problems with the GCC collect2 program. For some
210 # reason, if we set the COLLECT_NAMES environment variable, the problems
211 # vanish in a puff of smoke.
212 if test set != "${COLLECT_NAMES+set}"; then
213 COLLECT_NAMES=
214 export COLLECT_NAMES
215 fi
216 ;;
217 esac
218
219 # Global variables:
220 ofile=libtool
221 can_build_shared=yes
222
223 # All known linkers require a '.a' archive for static linking (except MSVC and
224 # ICC, which need '.lib').
225 libext=a
226
227 with_gnu_ld=$lt_cv_prog_gnu_ld
228
229 old_CC=$CC
230 old_CFLAGS=$CFLAGS
231
232 # Set sane defaults for various variables
233 test -z "$CC" && CC=cc
234 test -z "$LTCC" && LTCC=$CC
235 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
236 test -z "$LD" && LD=ld
237 test -z "$ac_objext" && ac_objext=o
238
239 _LT_CC_BASENAME([$compiler])
240
241 # Only perform the check for file, if the check method requires it
242 test -z "$MAGIC_CMD" && MAGIC_CMD=file
243 case $deplibs_check_method in
244 file_magic*)
245 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
246 _LT_PATH_MAGIC
247 fi
248 ;;
249 esac
250
251 # Use C for the default configuration in the libtool script
252 LT_SUPPORTED_TAG([CC])
253 _LT_LANG_C_CONFIG
254 _LT_LANG_DEFAULT_CONFIG
255 _LT_CONFIG_COMMANDS
256 ])# _LT_SETUP
257
258
259 # _LT_PREPARE_SED_QUOTE_VARS
260 # --------------------------
261 # Define a few sed substitution that help us do robust quoting.
262 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
263 [# Backslashify metacharacters that are still active within
264 # double-quoted strings.
265 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
266
267 # Same as above, but do not quote variable references.
268 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
269
270 # Sed substitution to delay expansion of an escaped shell variable in a
271 # double_quote_subst'ed string.
272 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
273
274 # Sed substitution to delay expansion of an escaped single quote.
275 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
276
277 # Sed substitution to avoid accidental globbing in evaled expressions
278 no_glob_subst='s/\*/\\\*/g'
279 ])
280
281 # _LT_PROG_LTMAIN
282 # ---------------
283 # Note that this code is called both from 'configure', and 'config.status'
284 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
285 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
286 # so we pass a copy along to make sure it has a sensible value anyway.
287 m4_defun([_LT_PROG_LTMAIN],
288 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
289 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
290 ltmain=$ac_aux_dir/ltmain.sh
291 ])# _LT_PROG_LTMAIN
292
293
294 ## ------------------------------------- ##
295 ## Accumulate code for creating libtool. ##
296 ## ------------------------------------- ##
297
298 # So that we can recreate a full libtool script including additional
299 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
300 # in macros and then make a single call at the end using the 'libtool'
301 # label.
302
303
304 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
305 # ----------------------------------------
306 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
307 m4_define([_LT_CONFIG_LIBTOOL_INIT],
308 [m4_ifval([$1],
309 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
310 [$1
311 ])])])
312
313 # Initialize.
314 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
315
316
317 # _LT_CONFIG_LIBTOOL([COMMANDS])
318 # ------------------------------
319 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
320 m4_define([_LT_CONFIG_LIBTOOL],
321 [m4_ifval([$1],
322 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
323 [$1
324 ])])])
325
326 # Initialize.
327 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
328
329
330 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
331 # -----------------------------------------------------
332 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
333 [_LT_CONFIG_LIBTOOL([$1])
334 _LT_CONFIG_LIBTOOL_INIT([$2])
335 ])
336
337
338 # _LT_FORMAT_COMMENT([COMMENT])
339 # -----------------------------
340 # Add leading comment marks to the start of each line, and a trailing
341 # full-stop to the whole comment if one is not present already.
342 m4_define([_LT_FORMAT_COMMENT],
343 [m4_ifval([$1], [
344 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
345 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
346 )])
347
348
349
350 ## ------------------------ ##
351 ## FIXME: Eliminate VARNAME ##
352 ## ------------------------ ##
353
354
355 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
356 # -------------------------------------------------------------------
357 # CONFIGNAME is the name given to the value in the libtool script.
358 # VARNAME is the (base) name used in the configure script.
359 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
360 # VARNAME. Any other value will be used directly.
361 m4_define([_LT_DECL],
362 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
363 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
364 [m4_ifval([$1], [$1], [$2])])
365 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
366 m4_ifval([$4],
367 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
368 lt_dict_add_subkey([lt_decl_dict], [$2],
369 [tagged?], [m4_ifval([$5], [yes], [no])])])
370 ])
371
372
373 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
374 # --------------------------------------------------------
375 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
376
377
378 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
379 # ------------------------------------------------
380 m4_define([lt_decl_tag_varnames],
381 [_lt_decl_filter([tagged?], [yes], $@)])
382
383
384 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
385 # ---------------------------------------------------------
386 m4_define([_lt_decl_filter],
387 [m4_case([$#],
388 [0], [m4_fatal([$0: too few arguments: $#])],
389 [1], [m4_fatal([$0: too few arguments: $#: $1])],
390 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
391 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
392 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
393 ])
394
395
396 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
397 # --------------------------------------------------
398 m4_define([lt_decl_quote_varnames],
399 [_lt_decl_filter([value], [1], $@)])
400
401
402 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
403 # ---------------------------------------------------
404 m4_define([lt_decl_dquote_varnames],
405 [_lt_decl_filter([value], [2], $@)])
406
407
408 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
409 # ---------------------------------------------------
410 m4_define([lt_decl_varnames_tagged],
411 [m4_assert([$# <= 2])dnl
412 _$0(m4_quote(m4_default([$1], [[, ]])),
413 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
414 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
415 m4_define([_lt_decl_varnames_tagged],
416 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
417
418
419 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
420 # ------------------------------------------------
421 m4_define([lt_decl_all_varnames],
422 [_$0(m4_quote(m4_default([$1], [[, ]])),
423 m4_if([$2], [],
424 m4_quote(lt_decl_varnames),
425 m4_quote(m4_shift($@))))[]dnl
426 ])
427 m4_define([_lt_decl_all_varnames],
428 [lt_join($@, lt_decl_varnames_tagged([$1],
429 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
430 ])
431
432
433 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
434 # ------------------------------------
435 # Quote a variable value, and forward it to 'config.status' so that its
436 # declaration there will have the same value as in 'configure'. VARNAME
437 # must have a single quote delimited value for this to work.
438 m4_define([_LT_CONFIG_STATUS_DECLARE],
439 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
440
441
442 # _LT_CONFIG_STATUS_DECLARATIONS
443 # ------------------------------
444 # We delimit libtool config variables with single quotes, so when
445 # we write them to config.status, we have to be sure to quote all
446 # embedded single quotes properly. In configure, this macro expands
447 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
448 #
449 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
450 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
451 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
452 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
453
454
455 # _LT_LIBTOOL_TAGS
456 # ----------------
457 # Output comment and list of tags supported by the script
458 m4_defun([_LT_LIBTOOL_TAGS],
459 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
460 available_tags='_LT_TAGS'dnl
461 ])
462
463
464 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
465 # -----------------------------------
466 # Extract the dictionary values for VARNAME (optionally with TAG) and
467 # expand to a commented shell variable setting:
468 #
469 # # Some comment about what VAR is for.
470 # visible_name=$lt_internal_name
471 m4_define([_LT_LIBTOOL_DECLARE],
472 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
473 [description])))[]dnl
474 m4_pushdef([_libtool_name],
475 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
476 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
477 [0], [_libtool_name=[$]$1],
478 [1], [_libtool_name=$lt_[]$1],
479 [2], [_libtool_name=$lt_[]$1],
480 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
481 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
482 ])
483
484
485 # _LT_LIBTOOL_CONFIG_VARS
486 # -----------------------
487 # Produce commented declarations of non-tagged libtool config variables
488 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
489 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
490 # section) are produced by _LT_LIBTOOL_TAG_VARS.
491 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
492 [m4_foreach([_lt_var],
493 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
494 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
495
496
497 # _LT_LIBTOOL_TAG_VARS(TAG)
498 # -------------------------
499 m4_define([_LT_LIBTOOL_TAG_VARS],
500 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
501 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
502
503
504 # _LT_TAGVAR(VARNAME, [TAGNAME])
505 # ------------------------------
506 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
507
508
509 # _LT_CONFIG_COMMANDS
510 # -------------------
511 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
512 # variables for single and double quote escaping we saved from calls
513 # to _LT_DECL, we can put quote escaped variables declarations
514 # into 'config.status', and then the shell code to quote escape them in
515 # for loops in 'config.status'. Finally, any additional code accumulated
516 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
517 m4_defun([_LT_CONFIG_COMMANDS],
518 [AC_PROVIDE_IFELSE([LT_OUTPUT],
519 dnl If the libtool generation code has been placed in $CONFIG_LT,
520 dnl instead of duplicating it all over again into config.status,
521 dnl then we will have config.status run $CONFIG_LT later, so it
522 dnl needs to know what name is stored there:
523 [AC_CONFIG_COMMANDS([libtool],
524 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
525 dnl If the libtool generation code is destined for config.status,
526 dnl expand the accumulated commands and init code now:
527 [AC_CONFIG_COMMANDS([libtool],
528 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
529 ])#_LT_CONFIG_COMMANDS
530
531
532 # Initialize.
533 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
534 [
535
536 # The HP-UX ksh and POSIX shell print the target directory to stdout
537 # if CDPATH is set.
538 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
539
540 sed_quote_subst='$sed_quote_subst'
541 double_quote_subst='$double_quote_subst'
542 delay_variable_subst='$delay_variable_subst'
543 _LT_CONFIG_STATUS_DECLARATIONS
544 LTCC='$LTCC'
545 LTCFLAGS='$LTCFLAGS'
546 compiler='$compiler_DEFAULT'
547
548 # A function that is used when there is no print builtin or printf.
549 func_fallback_echo ()
550 {
551 eval 'cat <<_LTECHO_EOF
552 \$[]1
553 _LTECHO_EOF'
554 }
555
556 # Quote evaled strings.
557 for var in lt_decl_all_varnames([[ \
558 ]], lt_decl_quote_varnames); do
559 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
560 *[[\\\\\\\`\\"\\\$]]*)
561 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
562 ;;
563 *)
564 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
565 ;;
566 esac
567 done
568
569 # Double-quote double-evaled strings.
570 for var in lt_decl_all_varnames([[ \
571 ]], lt_decl_dquote_varnames); do
572 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
573 *[[\\\\\\\`\\"\\\$]]*)
574 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
575 ;;
576 *)
577 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
578 ;;
579 esac
580 done
581
582 _LT_OUTPUT_LIBTOOL_INIT
583 ])
584
585 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
586 # ------------------------------------
587 # Generate a child script FILE with all initialization necessary to
588 # reuse the environment learned by the parent script, and make the
589 # file executable. If COMMENT is supplied, it is inserted after the
590 # '#!' sequence but before initialization text begins. After this
591 # macro, additional text can be appended to FILE to form the body of
592 # the child script. The macro ends with non-zero status if the
593 # file could not be fully written (such as if the disk is full).
594 m4_ifdef([AS_INIT_GENERATED],
595 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
596 [m4_defun([_LT_GENERATED_FILE_INIT],
597 [m4_require([AS_PREPARE])]dnl
598 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
599 [lt_write_fail=0
600 cat >$1 <<_ASEOF || lt_write_fail=1
601 #! $SHELL
602 # Generated by $as_me.
603 $2
604 SHELL=\${CONFIG_SHELL-$SHELL}
605 export SHELL
606 _ASEOF
607 cat >>$1 <<\_ASEOF || lt_write_fail=1
608 AS_SHELL_SANITIZE
609 _AS_PREPARE
610 exec AS_MESSAGE_FD>&1
611 _ASEOF
612 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
613 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
614
615 # LT_OUTPUT
616 # ---------
617 # This macro allows early generation of the libtool script (before
618 # AC_OUTPUT is called), incase it is used in configure for compilation
619 # tests.
620 AC_DEFUN([LT_OUTPUT],
621 [: ${CONFIG_LT=./config.lt}
622 AC_MSG_NOTICE([creating $CONFIG_LT])
623 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
624 [# Run this file to recreate a libtool stub with the current configuration.])
625
626 cat >>"$CONFIG_LT" <<\_LTEOF
627 lt_cl_silent=false
628 exec AS_MESSAGE_LOG_FD>>config.log
629 {
630 echo
631 AS_BOX([Running $as_me.])
632 } >&AS_MESSAGE_LOG_FD
633
634 lt_cl_help="\
635 '$as_me' creates a local libtool stub from the current configuration,
636 for use in further configure time tests before the real libtool is
637 generated.
638
639 Usage: $[0] [[OPTIONS]]
640
641 -h, --help print this help, then exit
642 -V, --version print version number, then exit
643 -q, --quiet do not print progress messages
644 -d, --debug don't remove temporary files
645
646 Report bugs to <bug-libtool@gnu.org>."
647
648 lt_cl_version="\
649 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
650 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
651 configured by $[0], generated by m4_PACKAGE_STRING.
652
653 Copyright (C) 2011 Free Software Foundation, Inc.
654 This config.lt script is free software; the Free Software Foundation
655 gives unlimited permision to copy, distribute and modify it."
656
657 while test 0 != $[#]
658 do
659 case $[1] in
660 --version | --v* | -V )
661 echo "$lt_cl_version"; exit 0 ;;
662 --help | --h* | -h )
663 echo "$lt_cl_help"; exit 0 ;;
664 --debug | --d* | -d )
665 debug=: ;;
666 --quiet | --q* | --silent | --s* | -q )
667 lt_cl_silent=: ;;
668
669 -*) AC_MSG_ERROR([unrecognized option: $[1]
670 Try '$[0] --help' for more information.]) ;;
671
672 *) AC_MSG_ERROR([unrecognized argument: $[1]
673 Try '$[0] --help' for more information.]) ;;
674 esac
675 shift
676 done
677
678 if $lt_cl_silent; then
679 exec AS_MESSAGE_FD>/dev/null
680 fi
681 _LTEOF
682
683 cat >>"$CONFIG_LT" <<_LTEOF
684 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
685 _LTEOF
686
687 cat >>"$CONFIG_LT" <<\_LTEOF
688 AC_MSG_NOTICE([creating $ofile])
689 _LT_OUTPUT_LIBTOOL_COMMANDS
690 AS_EXIT(0)
691 _LTEOF
692 chmod +x "$CONFIG_LT"
693
694 # configure is writing to config.log, but config.lt does its own redirection,
695 # appending to config.log, which fails on DOS, as config.log is still kept
696 # open by configure. Here we exec the FD to /dev/null, effectively closing
697 # config.log, so it can be properly (re)opened and appended to by config.lt.
698 lt_cl_success=:
699 test yes = "$silent" &&
700 lt_config_lt_args="$lt_config_lt_args --quiet"
701 exec AS_MESSAGE_LOG_FD>/dev/null
702 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
703 exec AS_MESSAGE_LOG_FD>>config.log
704 $lt_cl_success || AS_EXIT(1)
705 ])# LT_OUTPUT
706
707
708 # _LT_CONFIG(TAG)
709 # ---------------
710 # If TAG is the built-in tag, create an initial libtool script with a
711 # default configuration from the untagged config vars. Otherwise add code
712 # to config.status for appending the configuration named by TAG from the
713 # matching tagged config vars.
714 m4_defun([_LT_CONFIG],
715 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
716 _LT_CONFIG_SAVE_COMMANDS([
717 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
718 m4_if(_LT_TAG, [C], [
719 # See if we are running on zsh, and set the options that allow our
720 # commands through without removal of \ escapes.
721 if test -n "${ZSH_VERSION+set}"; then
722 setopt NO_GLOB_SUBST
723 fi
724
725 cfgfile=${ofile}T
726 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
727 $RM "$cfgfile"
728
729 cat <<_LT_EOF >> "$cfgfile"
730 #! $SHELL
731 # Generated automatically by $as_me ($PACKAGE) $VERSION
732 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
733
734 # Provide generalized library-building support services.
735 # Written by Gordon Matzigkeit, 1996
736
737 _LT_COPYING
738 _LT_LIBTOOL_TAGS
739
740 # Configured defaults for sys_lib_dlsearch_path munging.
741 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
742
743 # ### BEGIN LIBTOOL CONFIG
744 _LT_LIBTOOL_CONFIG_VARS
745 _LT_LIBTOOL_TAG_VARS
746 # ### END LIBTOOL CONFIG
747
748 _LT_EOF
749
750 cat <<'_LT_EOF' >> "$cfgfile"
751
752 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
753
754 _LT_PREPARE_MUNGE_PATH_LIST
755 _LT_PREPARE_CC_BASENAME
756
757 # ### END FUNCTIONS SHARED WITH CONFIGURE
758
759 _LT_EOF
760
761 case $host_os in
762 aix3*)
763 cat <<\_LT_EOF >> "$cfgfile"
764 # AIX sometimes has problems with the GCC collect2 program. For some
765 # reason, if we set the COLLECT_NAMES environment variable, the problems
766 # vanish in a puff of smoke.
767 if test set != "${COLLECT_NAMES+set}"; then
768 COLLECT_NAMES=
769 export COLLECT_NAMES
770 fi
771 _LT_EOF
772 ;;
773 esac
774
775 _LT_PROG_LTMAIN
776
777 # We use sed instead of cat because bash on DJGPP gets confused if
778 # if finds mixed CR/LF and LF-only lines. Since sed operates in
779 # text mode, it properly converts lines to CR/LF. This bash problem
780 # is reportedly fixed, but why not run on old versions too?
781 $SED '$q' "$ltmain" >> "$cfgfile" \
782 || (rm -f "$cfgfile"; exit 1)
783
784 mv -f "$cfgfile" "$ofile" ||
785 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
786 chmod +x "$ofile"
787 ],
788 [cat <<_LT_EOF >> "$ofile"
789
790 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
791 dnl in a comment (ie after a #).
792 # ### BEGIN LIBTOOL TAG CONFIG: $1
793 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
794 # ### END LIBTOOL TAG CONFIG: $1
795 _LT_EOF
796 ])dnl /m4_if
797 ],
798 [m4_if([$1], [], [
799 PACKAGE='$PACKAGE'
800 VERSION='$VERSION'
801 RM='$RM'
802 ofile='$ofile'], [])
803 ])dnl /_LT_CONFIG_SAVE_COMMANDS
804 ])# _LT_CONFIG
805
806
807 # LT_SUPPORTED_TAG(TAG)
808 # ---------------------
809 # Trace this macro to discover what tags are supported by the libtool
810 # --tag option, using:
811 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
812 AC_DEFUN([LT_SUPPORTED_TAG], [])
813
814
815 # C support is built-in for now
816 m4_define([_LT_LANG_C_enabled], [])
817 m4_define([_LT_TAGS], [])
818
819
820 # LT_LANG(LANG)
821 # -------------
822 # Enable libtool support for the given language if not already enabled.
823 AC_DEFUN([LT_LANG],
824 [AC_BEFORE([$0], [LT_OUTPUT])dnl
825 m4_case([$1],
826 [C], [_LT_LANG(C)],
827 [C++], [_LT_LANG(CXX)],
828 [Go], [_LT_LANG(GO)],
829 [Java], [_LT_LANG(GCJ)],
830 [Fortran 77], [_LT_LANG(F77)],
831 [Fortran], [_LT_LANG(FC)],
832 [Windows Resource], [_LT_LANG(RC)],
833 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
834 [_LT_LANG($1)],
835 [m4_fatal([$0: unsupported language: "$1"])])])dnl
836 ])# LT_LANG
837
838
839 # _LT_LANG(LANGNAME)
840 # ------------------
841 m4_defun([_LT_LANG],
842 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
843 [LT_SUPPORTED_TAG([$1])dnl
844 m4_append([_LT_TAGS], [$1 ])dnl
845 m4_define([_LT_LANG_]$1[_enabled], [])dnl
846 _LT_LANG_$1_CONFIG($1)])dnl
847 ])# _LT_LANG
848
849
850 m4_ifndef([AC_PROG_GO], [
851 ############################################################
852 # NOTE: This macro has been submitted for inclusion into #
853 # GNU Autoconf as AC_PROG_GO. When it is available in #
854 # a released version of Autoconf we should remove this #
855 # macro and use it instead. #
856 ############################################################
857 m4_defun([AC_PROG_GO],
858 [AC_LANG_PUSH(Go)dnl
859 AC_ARG_VAR([GOC], [Go compiler command])dnl
860 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
861 _AC_ARG_VAR_LDFLAGS()dnl
862 AC_CHECK_TOOL(GOC, gccgo)
863 if test -z "$GOC"; then
864 if test -n "$ac_tool_prefix"; then
865 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
866 fi
867 fi
868 if test -z "$GOC"; then
869 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
870 fi
871 ])#m4_defun
872 ])#m4_ifndef
873
874
875 # _LT_LANG_DEFAULT_CONFIG
876 # -----------------------
877 m4_defun([_LT_LANG_DEFAULT_CONFIG],
878 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
879 [LT_LANG(CXX)],
880 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
881
882 AC_PROVIDE_IFELSE([AC_PROG_F77],
883 [LT_LANG(F77)],
884 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
885
886 AC_PROVIDE_IFELSE([AC_PROG_FC],
887 [LT_LANG(FC)],
888 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
889
890 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
891 dnl pulling things in needlessly.
892 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
893 [LT_LANG(GCJ)],
894 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
895 [LT_LANG(GCJ)],
896 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
897 [LT_LANG(GCJ)],
898 [m4_ifdef([AC_PROG_GCJ],
899 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
900 m4_ifdef([A][M_PROG_GCJ],
901 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
902 m4_ifdef([LT_PROG_GCJ],
903 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
904
905 AC_PROVIDE_IFELSE([AC_PROG_GO],
906 [LT_LANG(GO)],
907 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
908
909 AC_PROVIDE_IFELSE([LT_PROG_RC],
910 [LT_LANG(RC)],
911 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
912 ])# _LT_LANG_DEFAULT_CONFIG
913
914 # Obsolete macros:
915 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
916 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
917 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
918 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
919 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
920 dnl aclocal-1.4 backwards compatibility:
921 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
922 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
923 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
924 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
925 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
926
927
928 # _LT_TAG_COMPILER
929 # ----------------
930 m4_defun([_LT_TAG_COMPILER],
931 [AC_REQUIRE([AC_PROG_CC])dnl
932
933 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
934 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
935 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
936 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
937
938 # If no C compiler was specified, use CC.
939 LTCC=${LTCC-"$CC"}
940
941 # If no C compiler flags were specified, use CFLAGS.
942 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
943
944 # Allow CC to be a program name with arguments.
945 compiler=$CC
946 ])# _LT_TAG_COMPILER
947
948
949 # _LT_COMPILER_BOILERPLATE
950 # ------------------------
951 # Check for compiler boilerplate output or warnings with
952 # the simple compiler test code.
953 m4_defun([_LT_COMPILER_BOILERPLATE],
954 [m4_require([_LT_DECL_SED])dnl
955 ac_outfile=conftest.$ac_objext
956 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
957 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
958 _lt_compiler_boilerplate=`cat conftest.err`
959 $RM conftest*
960 ])# _LT_COMPILER_BOILERPLATE
961
962
963 # _LT_LINKER_BOILERPLATE
964 # ----------------------
965 # Check for linker boilerplate output or warnings with
966 # the simple link test code.
967 m4_defun([_LT_LINKER_BOILERPLATE],
968 [m4_require([_LT_DECL_SED])dnl
969 ac_outfile=conftest.$ac_objext
970 echo "$lt_simple_link_test_code" >conftest.$ac_ext
971 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
972 _lt_linker_boilerplate=`cat conftest.err`
973 $RM -r conftest*
974 ])# _LT_LINKER_BOILERPLATE
975
976 # _LT_REQUIRED_DARWIN_CHECKS
977 # -------------------------
978 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
979 case $host_os in
980 rhapsody* | darwin*)
981 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
982 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
983 AC_CHECK_TOOL([LIPO], [lipo], [:])
984 AC_CHECK_TOOL([OTOOL], [otool], [:])
985 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
986 _LT_DECL([], [DSYMUTIL], [1],
987 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
988 _LT_DECL([], [NMEDIT], [1],
989 [Tool to change global to local symbols on Mac OS X])
990 _LT_DECL([], [LIPO], [1],
991 [Tool to manipulate fat objects and archives on Mac OS X])
992 _LT_DECL([], [OTOOL], [1],
993 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
994 _LT_DECL([], [OTOOL64], [1],
995 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
996
997 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
998 [lt_cv_apple_cc_single_mod=no
999 if test -z "$LT_MULTI_MODULE"; then
1000 # By default we will add the -single_module flag. You can override
1001 # by either setting the environment variable LT_MULTI_MODULE
1002 # non-empty at configure time, or by adding -multi_module to the
1003 # link flags.
1004 rm -rf libconftest.dylib*
1005 echo "int foo(void){return 1;}" > conftest.c
1006 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1007 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1008 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1009 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1010 _lt_result=$?
1011 # If there is a non-empty error log, and "single_module"
1012 # appears in it, assume the flag caused a linker warning
1013 if test -s conftest.err && $GREP single_module conftest.err; then
1014 cat conftest.err >&AS_MESSAGE_LOG_FD
1015 # Otherwise, if the output was created with a 0 exit code from
1016 # the compiler, it worked.
1017 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
1018 lt_cv_apple_cc_single_mod=yes
1019 else
1020 cat conftest.err >&AS_MESSAGE_LOG_FD
1021 fi
1022 rm -rf libconftest.dylib*
1023 rm -f conftest.*
1024 fi])
1025
1026 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1027 [lt_cv_ld_exported_symbols_list],
1028 [lt_cv_ld_exported_symbols_list=no
1029 save_LDFLAGS=$LDFLAGS
1030 echo "_main" > conftest.sym
1031 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1032 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1033 [lt_cv_ld_exported_symbols_list=yes],
1034 [lt_cv_ld_exported_symbols_list=no])
1035 LDFLAGS=$save_LDFLAGS
1036 ])
1037
1038 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1039 [lt_cv_ld_force_load=no
1040 cat > conftest.c << _LT_EOF
1041 int forced_loaded() { return 2;}
1042 _LT_EOF
1043 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1044 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1045 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1046 $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1047 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1048 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1049 cat > conftest.c << _LT_EOF
1050 int main() { return 0;}
1051 _LT_EOF
1052 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1053 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1054 _lt_result=$?
1055 if test -s conftest.err && $GREP force_load conftest.err; then
1056 cat conftest.err >&AS_MESSAGE_LOG_FD
1057 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
1058 lt_cv_ld_force_load=yes
1059 else
1060 cat conftest.err >&AS_MESSAGE_LOG_FD
1061 fi
1062 rm -f conftest.err libconftest.a conftest conftest.c
1063 rm -rf conftest.dSYM
1064 ])
1065 case $host_os in
1066 rhapsody* | darwin1.[[012]])
1067 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1068 darwin1.*)
1069 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1070 darwin*)
1071 case $MACOSX_DEPLOYMENT_TARGET,$host in
1072 10.[[012]],*|,*powerpc*-darwin[[5-8]]*)
1073 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1074 *)
1075 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1076 esac
1077 ;;
1078 esac
1079 if test yes = "$lt_cv_apple_cc_single_mod"; then
1080 _lt_dar_single_mod='$single_module'
1081 fi
1082 if test yes = "$lt_cv_ld_exported_symbols_list"; then
1083 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1084 else
1085 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1086 fi
1087 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
1088 _lt_dsymutil='~$DSYMUTIL $lib || :'
1089 else
1090 _lt_dsymutil=
1091 fi
1092 ;;
1093 esac
1094 ])
1095
1096
1097 # _LT_DARWIN_LINKER_FEATURES([TAG])
1098 # ---------------------------------
1099 # Checks for linker and compiler features on darwin
1100 m4_defun([_LT_DARWIN_LINKER_FEATURES],
1101 [
1102 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1103 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1104 _LT_TAGVAR(hardcode_direct, $1)=no
1105 _LT_TAGVAR(hardcode_automatic, $1)=yes
1106 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1107 if test yes = "$lt_cv_ld_force_load"; then
1108 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1109 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1110 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1111 else
1112 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1113 fi
1114 _LT_TAGVAR(link_all_deplibs, $1)=yes
1115 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
1116 case $cc_basename in
1117 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1118 *) _lt_dar_can_shared=$GCC ;;
1119 esac
1120 if test yes = "$_lt_dar_can_shared"; then
1121 output_verbose_link_cmd=func_echo_all
1122 _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"
1123 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1124 _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"
1125 _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"
1126 m4_if([$1], [CXX],
1127 [ if test yes != "$lt_cv_apple_cc_single_mod"; then
1128 _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"
1129 _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"
1130 fi
1131 ],[])
1132 else
1133 _LT_TAGVAR(ld_shlibs, $1)=no
1134 fi
1135 ])
1136
1137 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1138 # ----------------------------------
1139 # Links a minimal program and checks the executable
1140 # for the system default hardcoded library path. In most cases,
1141 # this is /usr/lib:/lib, but when the MPI compilers are used
1142 # the location of the communication and MPI libs are included too.
1143 # If we don't find anything, use the default library path according
1144 # to the aix ld manual.
1145 # Store the results from the different compilers for each TAGNAME.
1146 # Allow to override them for all tags through lt_cv_aix_libpath.
1147 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1148 [m4_require([_LT_DECL_SED])dnl
1149 if test set = "${lt_cv_aix_libpath+set}"; then
1150 aix_libpath=$lt_cv_aix_libpath
1151 else
1152 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1153 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1154 lt_aix_libpath_sed='[
1155 /Import File Strings/,/^$/ {
1156 /^0/ {
1157 s/^0 *\([^ ]*\) *$/\1/
1158 p
1159 }
1160 }]'
1161 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1162 # Check for a 64-bit object if we didn't find anything.
1163 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1164 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1165 fi],[])
1166 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1167 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
1168 fi
1169 ])
1170 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1171 fi
1172 ])# _LT_SYS_MODULE_PATH_AIX
1173
1174
1175 # _LT_SHELL_INIT(ARG)
1176 # -------------------
1177 m4_define([_LT_SHELL_INIT],
1178 [m4_divert_text([M4SH-INIT], [$1
1179 ])])# _LT_SHELL_INIT
1180
1181
1182
1183 # _LT_PROG_ECHO_BACKSLASH
1184 # -----------------------
1185 # Find how we can fake an echo command that does not interpret backslash.
1186 # In particular, with Autoconf 2.60 or later we add some code to the start
1187 # of the generated configure script that will find a shell with a builtin
1188 # printf (that we can use as an echo command).
1189 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1190 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1191 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1192 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1193
1194 AC_MSG_CHECKING([how to print strings])
1195 # Test print first, because it will be a builtin if present.
1196 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1197 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1198 ECHO='print -r --'
1199 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1200 ECHO='printf %s\n'
1201 else
1202 # Use this function as a fallback that always works.
1203 func_fallback_echo ()
1204 {
1205 eval 'cat <<_LTECHO_EOF
1206 $[]1
1207 _LTECHO_EOF'
1208 }
1209 ECHO='func_fallback_echo'
1210 fi
1211
1212 # func_echo_all arg...
1213 # Invoke $ECHO with all args, space-separated.
1214 func_echo_all ()
1215 {
1216 $ECHO "$*"
1217 }
1218
1219 case $ECHO in
1220 printf*) AC_MSG_RESULT([printf]) ;;
1221 print*) AC_MSG_RESULT([print -r]) ;;
1222 *) AC_MSG_RESULT([cat]) ;;
1223 esac
1224
1225 m4_ifdef([_AS_DETECT_SUGGESTED],
1226 [_AS_DETECT_SUGGESTED([
1227 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1228 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1229 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1230 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1231 PATH=/empty FPATH=/empty; export PATH FPATH
1232 test "X`printf %s $ECHO`" = "X$ECHO" \
1233 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1234
1235 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1236 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1237 ])# _LT_PROG_ECHO_BACKSLASH
1238
1239
1240 # _LT_WITH_SYSROOT
1241 # ----------------
1242 AC_DEFUN([_LT_WITH_SYSROOT],
1243 [m4_require([_LT_DECL_SED])dnl
1244 AC_MSG_CHECKING([for sysroot])
1245 AC_ARG_WITH([sysroot],
1246 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
1247 [Search for dependent libraries within DIR (or the compiler's sysroot
1248 if not specified).])],
1249 [], [with_sysroot=no])
1250
1251 dnl lt_sysroot will always be passed unquoted. We quote it here
1252 dnl in case the user passed a directory name.
1253 lt_sysroot=
1254 case $with_sysroot in #(
1255 yes)
1256 if test yes = "$GCC"; then
1257 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1258 fi
1259 ;; #(
1260 /*)
1261 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
1262 ;; #(
1263 no|'')
1264 ;; #(
1265 *)
1266 AC_MSG_RESULT([$with_sysroot])
1267 AC_MSG_ERROR([The sysroot must be an absolute path.])
1268 ;;
1269 esac
1270
1271 AC_MSG_RESULT([${lt_sysroot:-no}])
1272 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1273 [dependent libraries, and where our libraries should be installed.])])
1274
1275 # _LT_ENABLE_LOCK
1276 # ---------------
1277 m4_defun([_LT_ENABLE_LOCK],
1278 [AC_ARG_ENABLE([libtool-lock],
1279 [AS_HELP_STRING([--disable-libtool-lock],
1280 [avoid locking (might break parallel builds)])])
1281 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
1282
1283 # Some flags need to be propagated to the compiler or linker for good
1284 # libtool support.
1285 case $host in
1286 ia64-*-hpux*)
1287 # Find out what ABI is being produced by ac_compile, and set mode
1288 # options accordingly.
1289 echo 'int i;' > conftest.$ac_ext
1290 if AC_TRY_EVAL(ac_compile); then
1291 case `$FILECMD conftest.$ac_objext` in
1292 *ELF-32*)
1293 HPUX_IA64_MODE=32
1294 ;;
1295 *ELF-64*)
1296 HPUX_IA64_MODE=64
1297 ;;
1298 esac
1299 fi
1300 rm -rf conftest*
1301 ;;
1302 *-*-irix6*)
1303 # Find out what ABI is being produced by ac_compile, and set linker
1304 # options accordingly.
1305 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1306 if AC_TRY_EVAL(ac_compile); then
1307 if test yes = "$lt_cv_prog_gnu_ld"; then
1308 case `$FILECMD conftest.$ac_objext` in
1309 *32-bit*)
1310 LD="${LD-ld} -melf32bsmip"
1311 ;;
1312 *N32*)
1313 LD="${LD-ld} -melf32bmipn32"
1314 ;;
1315 *64-bit*)
1316 LD="${LD-ld} -melf64bmip"
1317 ;;
1318 esac
1319 else
1320 case `$FILECMD conftest.$ac_objext` in
1321 *32-bit*)
1322 LD="${LD-ld} -32"
1323 ;;
1324 *N32*)
1325 LD="${LD-ld} -n32"
1326 ;;
1327 *64-bit*)
1328 LD="${LD-ld} -64"
1329 ;;
1330 esac
1331 fi
1332 fi
1333 rm -rf conftest*
1334 ;;
1335
1336 mips64*-*linux*)
1337 # Find out what ABI is being produced by ac_compile, and set linker
1338 # options accordingly.
1339 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1340 if AC_TRY_EVAL(ac_compile); then
1341 emul=elf
1342 case `$FILECMD conftest.$ac_objext` in
1343 *32-bit*)
1344 emul="${emul}32"
1345 ;;
1346 *64-bit*)
1347 emul="${emul}64"
1348 ;;
1349 esac
1350 case `$FILECMD conftest.$ac_objext` in
1351 *MSB*)
1352 emul="${emul}btsmip"
1353 ;;
1354 *LSB*)
1355 emul="${emul}ltsmip"
1356 ;;
1357 esac
1358 case `$FILECMD conftest.$ac_objext` in
1359 *N32*)
1360 emul="${emul}n32"
1361 ;;
1362 esac
1363 LD="${LD-ld} -m $emul"
1364 fi
1365 rm -rf conftest*
1366 ;;
1367
1368 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1369 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1370 # Find out what ABI is being produced by ac_compile, and set linker
1371 # options accordingly. Note that the listed cases only cover the
1372 # situations where additional linker options are needed (such as when
1373 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
1374 # vice versa); the common cases where no linker options are needed do
1375 # not appear in the list.
1376 echo 'int i;' > conftest.$ac_ext
1377 if AC_TRY_EVAL(ac_compile); then
1378 case `$FILECMD conftest.o` in
1379 *32-bit*)
1380 case $host in
1381 x86_64-*kfreebsd*-gnu)
1382 LD="${LD-ld} -m elf_i386_fbsd"
1383 ;;
1384 x86_64-*linux*)
1385 case `$FILECMD conftest.o` in
1386 *x86-64*)
1387 LD="${LD-ld} -m elf32_x86_64"
1388 ;;
1389 *)
1390 LD="${LD-ld} -m elf_i386"
1391 ;;
1392 esac
1393 ;;
1394 powerpc64le-*linux*)
1395 LD="${LD-ld} -m elf32lppclinux"
1396 ;;
1397 powerpc64-*linux*)
1398 LD="${LD-ld} -m elf32ppclinux"
1399 ;;
1400 s390x-*linux*)
1401 LD="${LD-ld} -m elf_s390"
1402 ;;
1403 sparc64-*linux*)
1404 LD="${LD-ld} -m elf32_sparc"
1405 ;;
1406 esac
1407 ;;
1408 *64-bit*)
1409 case $host in
1410 x86_64-*kfreebsd*-gnu)
1411 LD="${LD-ld} -m elf_x86_64_fbsd"
1412 ;;
1413 x86_64-*linux*)
1414 LD="${LD-ld} -m elf_x86_64"
1415 ;;
1416 powerpcle-*linux*)
1417 LD="${LD-ld} -m elf64lppc"
1418 ;;
1419 powerpc-*linux*)
1420 LD="${LD-ld} -m elf64ppc"
1421 ;;
1422 s390*-*linux*|s390*-*tpf*)
1423 LD="${LD-ld} -m elf64_s390"
1424 ;;
1425 sparc*-*linux*)
1426 LD="${LD-ld} -m elf64_sparc"
1427 ;;
1428 esac
1429 ;;
1430 esac
1431 fi
1432 rm -rf conftest*
1433 ;;
1434
1435 *-*-sco3.2v5*)
1436 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1437 SAVE_CFLAGS=$CFLAGS
1438 CFLAGS="$CFLAGS -belf"
1439 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1440 [AC_LANG_PUSH(C)
1441 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1442 AC_LANG_POP])
1443 if test yes != "$lt_cv_cc_needs_belf"; then
1444 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1445 CFLAGS=$SAVE_CFLAGS
1446 fi
1447 ;;
1448 *-*solaris*)
1449 # Find out what ABI is being produced by ac_compile, and set linker
1450 # options accordingly.
1451 echo 'int i;' > conftest.$ac_ext
1452 if AC_TRY_EVAL(ac_compile); then
1453 case `$FILECMD conftest.o` in
1454 *64-bit*)
1455 case $lt_cv_prog_gnu_ld in
1456 yes*)
1457 case $host in
1458 i?86-*-solaris*|x86_64-*-solaris*)
1459 LD="${LD-ld} -m elf_x86_64"
1460 ;;
1461 sparc*-*-solaris*)
1462 LD="${LD-ld} -m elf64_sparc"
1463 ;;
1464 esac
1465 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1466 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1467 LD=${LD-ld}_sol2
1468 fi
1469 ;;
1470 *)
1471 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1472 LD="${LD-ld} -64"
1473 fi
1474 ;;
1475 esac
1476 ;;
1477 esac
1478 fi
1479 rm -rf conftest*
1480 ;;
1481 esac
1482
1483 need_locks=$enable_libtool_lock
1484 ])# _LT_ENABLE_LOCK
1485
1486
1487 # _LT_PROG_AR
1488 # -----------
1489 m4_defun([_LT_PROG_AR],
1490 [AC_CHECK_TOOLS(AR, [ar], false)
1491 : ${AR=ar}
1492 _LT_DECL([], [AR], [1], [The archiver])
1493
1494 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
1495 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
1496 # higher priority because thats what people were doing historically (setting
1497 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
1498 # variable obsoleted/removed.
1499
1500 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
1501 lt_ar_flags=$AR_FLAGS
1502 _LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)])
1503
1504 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
1505 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
1506 _LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}],
1507 [Flags to create an archive])
1508
1509 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1510 [lt_cv_ar_at_file=no
1511 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1512 [echo conftest.$ac_objext > conftest.lst
1513 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1514 AC_TRY_EVAL([lt_ar_try])
1515 if test 0 -eq "$ac_status"; then
1516 # Ensure the archiver fails upon bogus file names.
1517 rm -f conftest.$ac_objext libconftest.a
1518 AC_TRY_EVAL([lt_ar_try])
1519 if test 0 -ne "$ac_status"; then
1520 lt_cv_ar_at_file=@
1521 fi
1522 fi
1523 rm -f conftest.* libconftest.a
1524 ])
1525 ])
1526
1527 if test no = "$lt_cv_ar_at_file"; then
1528 archiver_list_spec=
1529 else
1530 archiver_list_spec=$lt_cv_ar_at_file
1531 fi
1532 _LT_DECL([], [archiver_list_spec], [1],
1533 [How to feed a file listing to the archiver])
1534 ])# _LT_PROG_AR
1535
1536
1537 # _LT_CMD_OLD_ARCHIVE
1538 # -------------------
1539 m4_defun([_LT_CMD_OLD_ARCHIVE],
1540 [_LT_PROG_AR
1541
1542 AC_CHECK_TOOL(STRIP, strip, :)
1543 test -z "$STRIP" && STRIP=:
1544 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1545
1546 AC_CHECK_TOOL(RANLIB, ranlib, :)
1547 test -z "$RANLIB" && RANLIB=:
1548 _LT_DECL([], [RANLIB], [1],
1549 [Commands used to install an old-style archive])
1550
1551 # Determine commands to create old-style static archives.
1552 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1553 old_postinstall_cmds='chmod 644 $oldlib'
1554 old_postuninstall_cmds=
1555
1556 if test -n "$RANLIB"; then
1557 case $host_os in
1558 bitrig* | openbsd*)
1559 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1560 ;;
1561 *)
1562 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1563 ;;
1564 esac
1565 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1566 fi
1567
1568 case $host_os in
1569 darwin*)
1570 lock_old_archive_extraction=yes ;;
1571 *)
1572 lock_old_archive_extraction=no ;;
1573 esac
1574 _LT_DECL([], [old_postinstall_cmds], [2])
1575 _LT_DECL([], [old_postuninstall_cmds], [2])
1576 _LT_TAGDECL([], [old_archive_cmds], [2],
1577 [Commands used to build an old-style archive])
1578 _LT_DECL([], [lock_old_archive_extraction], [0],
1579 [Whether to use a lock for old archive extraction])
1580 ])# _LT_CMD_OLD_ARCHIVE
1581
1582
1583 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1584 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1585 # ----------------------------------------------------------------
1586 # Check whether the given compiler option works
1587 AC_DEFUN([_LT_COMPILER_OPTION],
1588 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1589 m4_require([_LT_DECL_SED])dnl
1590 AC_CACHE_CHECK([$1], [$2],
1591 [$2=no
1592 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1594 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
1595 # Insert the option either (1) after the last *FLAGS variable, or
1596 # (2) before a word containing "conftest.", or (3) at the end.
1597 # Note that $ac_compile itself does not contain backslashes and begins
1598 # with a dollar sign (not a hyphen), so the echo should work correctly.
1599 # The option is referenced via a variable to avoid confusing sed.
1600 lt_compile=`echo "$ac_compile" | $SED \
1601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1602 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1603 -e 's:$: $lt_compiler_flag:'`
1604 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1605 (eval "$lt_compile" 2>conftest.err)
1606 ac_status=$?
1607 cat conftest.err >&AS_MESSAGE_LOG_FD
1608 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1609 if (exit $ac_status) && test -s "$ac_outfile"; then
1610 # The compiler can only warn and ignore the option if not recognized
1611 # So say no if there are warnings other than the usual output.
1612 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1614 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1615 $2=yes
1616 fi
1617 fi
1618 $RM conftest*
1619 ])
1620
1621 if test yes = "[$]$2"; then
1622 m4_if([$5], , :, [$5])
1623 else
1624 m4_if([$6], , :, [$6])
1625 fi
1626 ])# _LT_COMPILER_OPTION
1627
1628 # Old name:
1629 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1630 dnl aclocal-1.4 backwards compatibility:
1631 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1632
1633
1634 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1635 # [ACTION-SUCCESS], [ACTION-FAILURE])
1636 # ----------------------------------------------------
1637 # Check whether the given linker option works
1638 AC_DEFUN([_LT_LINKER_OPTION],
1639 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1640 m4_require([_LT_DECL_SED])dnl
1641 AC_CACHE_CHECK([$1], [$2],
1642 [$2=no
1643 save_LDFLAGS=$LDFLAGS
1644 LDFLAGS="$LDFLAGS $3"
1645 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1647 # The linker can only warn and ignore the option if not recognized
1648 # So say no if there are warnings
1649 if test -s conftest.err; then
1650 # Append any errors to the config.log.
1651 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1652 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1654 if diff conftest.exp conftest.er2 >/dev/null; then
1655 $2=yes
1656 fi
1657 else
1658 $2=yes
1659 fi
1660 fi
1661 $RM -r conftest*
1662 LDFLAGS=$save_LDFLAGS
1663 ])
1664
1665 if test yes = "[$]$2"; then
1666 m4_if([$4], , :, [$4])
1667 else
1668 m4_if([$5], , :, [$5])
1669 fi
1670 ])# _LT_LINKER_OPTION
1671
1672 # Old name:
1673 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1674 dnl aclocal-1.4 backwards compatibility:
1675 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1676
1677
1678 # LT_CMD_MAX_LEN
1679 #---------------
1680 AC_DEFUN([LT_CMD_MAX_LEN],
1681 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1682 # find the maximum length of command line arguments
1683 AC_MSG_CHECKING([the maximum length of command line arguments])
1684 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1685 i=0
1686 teststring=ABCD
1687
1688 case $build_os in
1689 msdosdjgpp*)
1690 # On DJGPP, this test can blow up pretty badly due to problems in libc
1691 # (any single argument exceeding 2000 bytes causes a buffer overrun
1692 # during glob expansion). Even if it were fixed, the result of this
1693 # check would be larger than it should be.
1694 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1695 ;;
1696
1697 gnu*)
1698 # Under GNU Hurd, this test is not required because there is
1699 # no limit to the length of command line arguments.
1700 # Libtool will interpret -1 as no limit whatsoever
1701 lt_cv_sys_max_cmd_len=-1;
1702 ;;
1703
1704 cygwin* | mingw* | cegcc*)
1705 # On Win9x/ME, this test blows up -- it succeeds, but takes
1706 # about 5 minutes as the teststring grows exponentially.
1707 # Worse, since 9x/ME are not pre-emptively multitasking,
1708 # you end up with a "frozen" computer, even though with patience
1709 # the test eventually succeeds (with a max line length of 256k).
1710 # Instead, let's just punt: use the minimum linelength reported by
1711 # all of the supported platforms: 8192 (on NT/2K/XP).
1712 lt_cv_sys_max_cmd_len=8192;
1713 ;;
1714
1715 mint*)
1716 # On MiNT this can take a long time and run out of memory.
1717 lt_cv_sys_max_cmd_len=8192;
1718 ;;
1719
1720 amigaos*)
1721 # On AmigaOS with pdksh, this test takes hours, literally.
1722 # So we just punt and use a minimum line length of 8192.
1723 lt_cv_sys_max_cmd_len=8192;
1724 ;;
1725
1726 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
1727 # This has been around since 386BSD, at least. Likely further.
1728 if test -x /sbin/sysctl; then
1729 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1730 elif test -x /usr/sbin/sysctl; then
1731 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1732 else
1733 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1734 fi
1735 # And add a safety zone
1736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1738 ;;
1739
1740 interix*)
1741 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1742 lt_cv_sys_max_cmd_len=196608
1743 ;;
1744
1745 os2*)
1746 # The test takes a long time on OS/2.
1747 lt_cv_sys_max_cmd_len=8192
1748 ;;
1749
1750 osf*)
1751 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1752 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1753 # nice to cause kernel panics so lets avoid the loop below.
1754 # First set a reasonable default.
1755 lt_cv_sys_max_cmd_len=16384
1756 #
1757 if test -x /sbin/sysconfig; then
1758 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1759 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1760 esac
1761 fi
1762 ;;
1763 sco3.2v5*)
1764 lt_cv_sys_max_cmd_len=102400
1765 ;;
1766 sysv5* | sco5v6* | sysv4.2uw2*)
1767 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1768 if test -n "$kargmax"; then
1769 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[ ]]//'`
1770 else
1771 lt_cv_sys_max_cmd_len=32768
1772 fi
1773 ;;
1774 *)
1775 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1776 if test -n "$lt_cv_sys_max_cmd_len" && \
1777 test undefined != "$lt_cv_sys_max_cmd_len"; then
1778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1780 else
1781 # Make teststring a little bigger before we do anything with it.
1782 # a 1K string should be a reasonable start.
1783 for i in 1 2 3 4 5 6 7 8; do
1784 teststring=$teststring$teststring
1785 done
1786 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1787 # If test is not a shell built-in, we'll probably end up computing a
1788 # maximum length that is only half of the actual maximum length, but
1789 # we can't tell.
1790 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
1791 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1792 test 17 != "$i" # 1/2 MB should be enough
1793 do
1794 i=`expr $i + 1`
1795 teststring=$teststring$teststring
1796 done
1797 # Only check the string length outside the loop.
1798 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1799 teststring=
1800 # Add a significant safety factor because C++ compilers can tack on
1801 # massive amounts of additional arguments before passing them to the
1802 # linker. It appears as though 1/2 is a usable value.
1803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1804 fi
1805 ;;
1806 esac
1807 ])
1808 if test -n "$lt_cv_sys_max_cmd_len"; then
1809 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1810 else
1811 AC_MSG_RESULT(none)
1812 fi
1813 max_cmd_len=$lt_cv_sys_max_cmd_len
1814 _LT_DECL([], [max_cmd_len], [0],
1815 [What is the maximum length of a command?])
1816 ])# LT_CMD_MAX_LEN
1817
1818 # Old name:
1819 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1820 dnl aclocal-1.4 backwards compatibility:
1821 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1822
1823
1824 # _LT_HEADER_DLFCN
1825 # ----------------
1826 m4_defun([_LT_HEADER_DLFCN],
1827 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1828 ])# _LT_HEADER_DLFCN
1829
1830
1831 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1832 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1833 # ----------------------------------------------------------------
1834 m4_defun([_LT_TRY_DLOPEN_SELF],
1835 [m4_require([_LT_HEADER_DLFCN])dnl
1836 if test yes = "$cross_compiling"; then :
1837 [$4]
1838 else
1839 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1840 lt_status=$lt_dlunknown
1841 cat > conftest.$ac_ext <<_LT_EOF
1842 [#line $LINENO "configure"
1843 #include "confdefs.h"
1844
1845 #if HAVE_DLFCN_H
1846 #include <dlfcn.h>
1847 #endif
1848
1849 #include <stdio.h>
1850
1851 #ifdef RTLD_GLOBAL
1852 # define LT_DLGLOBAL RTLD_GLOBAL
1853 #else
1854 # ifdef DL_GLOBAL
1855 # define LT_DLGLOBAL DL_GLOBAL
1856 # else
1857 # define LT_DLGLOBAL 0
1858 # endif
1859 #endif
1860
1861 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1862 find out it does not work in some platform. */
1863 #ifndef LT_DLLAZY_OR_NOW
1864 # ifdef RTLD_LAZY
1865 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1866 # else
1867 # ifdef DL_LAZY
1868 # define LT_DLLAZY_OR_NOW DL_LAZY
1869 # else
1870 # ifdef RTLD_NOW
1871 # define LT_DLLAZY_OR_NOW RTLD_NOW
1872 # else
1873 # ifdef DL_NOW
1874 # define LT_DLLAZY_OR_NOW DL_NOW
1875 # else
1876 # define LT_DLLAZY_OR_NOW 0
1877 # endif
1878 # endif
1879 # endif
1880 # endif
1881 #endif
1882
1883 /* When -fvisibility=hidden is used, assume the code has been annotated
1884 correspondingly for the symbols needed. */
1885 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1886 int fnord () __attribute__((visibility("default")));
1887 #endif
1888
1889 int fnord () { return 42; }
1890 int main ()
1891 {
1892 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1893 int status = $lt_dlunknown;
1894
1895 if (self)
1896 {
1897 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1898 else
1899 {
1900 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1901 else puts (dlerror ());
1902 }
1903 /* dlclose (self); */
1904 }
1905 else
1906 puts (dlerror ());
1907
1908 return status;
1909 }]
1910 _LT_EOF
1911 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
1912 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1913 lt_status=$?
1914 case x$lt_status in
1915 x$lt_dlno_uscore) $1 ;;
1916 x$lt_dlneed_uscore) $2 ;;
1917 x$lt_dlunknown|x*) $3 ;;
1918 esac
1919 else :
1920 # compilation failed
1921 $3
1922 fi
1923 fi
1924 rm -fr conftest*
1925 ])# _LT_TRY_DLOPEN_SELF
1926
1927
1928 # LT_SYS_DLOPEN_SELF
1929 # ------------------
1930 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1931 [m4_require([_LT_HEADER_DLFCN])dnl
1932 if test yes != "$enable_dlopen"; then
1933 enable_dlopen=unknown
1934 enable_dlopen_self=unknown
1935 enable_dlopen_self_static=unknown
1936 else
1937 lt_cv_dlopen=no
1938 lt_cv_dlopen_libs=
1939
1940 case $host_os in
1941 beos*)
1942 lt_cv_dlopen=load_add_on
1943 lt_cv_dlopen_libs=
1944 lt_cv_dlopen_self=yes
1945 ;;
1946
1947 mingw* | pw32* | cegcc*)
1948 lt_cv_dlopen=LoadLibrary
1949 lt_cv_dlopen_libs=
1950 ;;
1951
1952 cygwin*)
1953 lt_cv_dlopen=dlopen
1954 lt_cv_dlopen_libs=
1955 ;;
1956
1957 darwin*)
1958 # if libdl is installed we need to link against it
1959 AC_CHECK_LIB([dl], [dlopen],
1960 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
1961 lt_cv_dlopen=dyld
1962 lt_cv_dlopen_libs=
1963 lt_cv_dlopen_self=yes
1964 ])
1965 ;;
1966
1967 tpf*)
1968 # Don't try to run any link tests for TPF. We know it's impossible
1969 # because TPF is a cross-compiler, and we know how we open DSOs.
1970 lt_cv_dlopen=dlopen
1971 lt_cv_dlopen_libs=
1972 lt_cv_dlopen_self=no
1973 ;;
1974
1975 *)
1976 AC_CHECK_FUNC([shl_load],
1977 [lt_cv_dlopen=shl_load],
1978 [AC_CHECK_LIB([dld], [shl_load],
1979 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
1980 [AC_CHECK_FUNC([dlopen],
1981 [lt_cv_dlopen=dlopen],
1982 [AC_CHECK_LIB([dl], [dlopen],
1983 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
1984 [AC_CHECK_LIB([svld], [dlopen],
1985 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
1986 [AC_CHECK_LIB([dld], [dld_link],
1987 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
1988 ])
1989 ])
1990 ])
1991 ])
1992 ])
1993 ;;
1994 esac
1995
1996 if test no = "$lt_cv_dlopen"; then
1997 enable_dlopen=no
1998 else
1999 enable_dlopen=yes
2000 fi
2001
2002 case $lt_cv_dlopen in
2003 dlopen)
2004 save_CPPFLAGS=$CPPFLAGS
2005 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2006
2007 save_LDFLAGS=$LDFLAGS
2008 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2009
2010 save_LIBS=$LIBS
2011 LIBS="$lt_cv_dlopen_libs $LIBS"
2012
2013 AC_CACHE_CHECK([whether a program can dlopen itself],
2014 lt_cv_dlopen_self, [dnl
2015 _LT_TRY_DLOPEN_SELF(
2016 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2017 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2018 ])
2019
2020 if test yes = "$lt_cv_dlopen_self"; then
2021 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2022 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2023 lt_cv_dlopen_self_static, [dnl
2024 _LT_TRY_DLOPEN_SELF(
2025 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2026 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2027 ])
2028 fi
2029
2030 CPPFLAGS=$save_CPPFLAGS
2031 LDFLAGS=$save_LDFLAGS
2032 LIBS=$save_LIBS
2033 ;;
2034 esac
2035
2036 case $lt_cv_dlopen_self in
2037 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2038 *) enable_dlopen_self=unknown ;;
2039 esac
2040
2041 case $lt_cv_dlopen_self_static in
2042 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2043 *) enable_dlopen_self_static=unknown ;;
2044 esac
2045 fi
2046 _LT_DECL([dlopen_support], [enable_dlopen], [0],
2047 [Whether dlopen is supported])
2048 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2049 [Whether dlopen of programs is supported])
2050 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2051 [Whether dlopen of statically linked programs is supported])
2052 ])# LT_SYS_DLOPEN_SELF
2053
2054 # Old name:
2055 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2056 dnl aclocal-1.4 backwards compatibility:
2057 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2058
2059
2060 # _LT_COMPILER_C_O([TAGNAME])
2061 # ---------------------------
2062 # Check to see if options -c and -o are simultaneously supported by compiler.
2063 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
2064 m4_defun([_LT_COMPILER_C_O],
2065 [m4_require([_LT_DECL_SED])dnl
2066 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2067 m4_require([_LT_TAG_COMPILER])dnl
2068 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2069 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2070 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2071 $RM -r conftest 2>/dev/null
2072 mkdir conftest
2073 cd conftest
2074 mkdir out
2075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2076
2077 lt_compiler_flag="-o out/conftest2.$ac_objext"
2078 # Insert the option either (1) after the last *FLAGS variable, or
2079 # (2) before a word containing "conftest.", or (3) at the end.
2080 # Note that $ac_compile itself does not contain backslashes and begins
2081 # with a dollar sign (not a hyphen), so the echo should work correctly.
2082 lt_compile=`echo "$ac_compile" | $SED \
2083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2084 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2085 -e 's:$: $lt_compiler_flag:'`
2086 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2087 (eval "$lt_compile" 2>out/conftest.err)
2088 ac_status=$?
2089 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2091 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2092 then
2093 # The compiler can only warn and ignore the option if not recognized
2094 # So say no if there are warnings
2095 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2096 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2097 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2098 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2099 fi
2100 fi
2101 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2102 $RM conftest*
2103 # SGI C++ compiler will create directory out/ii_files/ for
2104 # template instantiation
2105 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2106 $RM out/* && rmdir out
2107 cd ..
2108 $RM -r conftest
2109 $RM conftest*
2110 ])
2111 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2112 [Does compiler simultaneously support -c and -o options?])
2113 ])# _LT_COMPILER_C_O
2114
2115
2116 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2117 # ----------------------------------
2118 # Check to see if we can do hard links to lock some files if needed
2119 m4_defun([_LT_COMPILER_FILE_LOCKS],
2120 [m4_require([_LT_ENABLE_LOCK])dnl
2121 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2122 _LT_COMPILER_C_O([$1])
2123
2124 hard_links=nottested
2125 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
2126 # do not overwrite the value of need_locks provided by the user
2127 AC_MSG_CHECKING([if we can lock with hard links])
2128 hard_links=yes
2129 $RM conftest*
2130 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2131 touch conftest.a
2132 ln conftest.a conftest.b 2>&5 || hard_links=no
2133 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2134 AC_MSG_RESULT([$hard_links])
2135 if test no = "$hard_links"; then
2136 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
2137 need_locks=warn
2138 fi
2139 else
2140 need_locks=no
2141 fi
2142 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2143 ])# _LT_COMPILER_FILE_LOCKS
2144
2145
2146 # _LT_CHECK_OBJDIR
2147 # ----------------
2148 m4_defun([_LT_CHECK_OBJDIR],
2149 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2150 [rm -f .libs 2>/dev/null
2151 mkdir .libs 2>/dev/null
2152 if test -d .libs; then
2153 lt_cv_objdir=.libs
2154 else
2155 # MS-DOS does not allow filenames that begin with a dot.
2156 lt_cv_objdir=_libs
2157 fi
2158 rmdir .libs 2>/dev/null])
2159 objdir=$lt_cv_objdir
2160 _LT_DECL([], [objdir], [0],
2161 [The name of the directory that contains temporary libtool files])dnl
2162 m4_pattern_allow([LT_OBJDIR])dnl
2163 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
2164 [Define to the sub-directory where libtool stores uninstalled libraries.])
2165 ])# _LT_CHECK_OBJDIR
2166
2167
2168 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2169 # --------------------------------------
2170 # Check hardcoding attributes.
2171 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2172 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2173 _LT_TAGVAR(hardcode_action, $1)=
2174 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2175 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2176 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
2177
2178 # We can hardcode non-existent directories.
2179 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
2180 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2181 # have to relink, otherwise we might link with an installed library
2182 # when we should be linking with a yet-to-be-installed one
2183 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
2184 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
2185 # Linking always hardcodes the temporary library directory.
2186 _LT_TAGVAR(hardcode_action, $1)=relink
2187 else
2188 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2189 _LT_TAGVAR(hardcode_action, $1)=immediate
2190 fi
2191 else
2192 # We cannot hardcode anything, or else we can only hardcode existing
2193 # directories.
2194 _LT_TAGVAR(hardcode_action, $1)=unsupported
2195 fi
2196 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2197
2198 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
2199 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
2200 # Fast installation is not supported
2201 enable_fast_install=no
2202 elif test yes = "$shlibpath_overrides_runpath" ||
2203 test no = "$enable_shared"; then
2204 # Fast installation is not necessary
2205 enable_fast_install=needless
2206 fi
2207 _LT_TAGDECL([], [hardcode_action], [0],
2208 [How to hardcode a shared library path into an executable])
2209 ])# _LT_LINKER_HARDCODE_LIBPATH
2210
2211
2212 # _LT_CMD_STRIPLIB
2213 # ----------------
2214 m4_defun([_LT_CMD_STRIPLIB],
2215 [m4_require([_LT_DECL_EGREP])
2216 striplib=
2217 old_striplib=
2218 AC_MSG_CHECKING([whether stripping libraries is possible])
2219 if test -z "$STRIP"; then
2220 AC_MSG_RESULT([no])
2221 else
2222 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2223 old_striplib="$STRIP --strip-debug"
2224 striplib="$STRIP --strip-unneeded"
2225 AC_MSG_RESULT([yes])
2226 else
2227 case $host_os in
2228 darwin*)
2229 # FIXME - insert some real tests, host_os isn't really good enough
2230 striplib="$STRIP -x"
2231 old_striplib="$STRIP -S"
2232 AC_MSG_RESULT([yes])
2233 ;;
2234 freebsd*)
2235 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
2236 old_striplib="$STRIP --strip-debug"
2237 striplib="$STRIP --strip-unneeded"
2238 AC_MSG_RESULT([yes])
2239 else
2240 AC_MSG_RESULT([no])
2241 fi
2242 ;;
2243 *)
2244 AC_MSG_RESULT([no])
2245 ;;
2246 esac
2247 fi
2248 fi
2249 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2250 _LT_DECL([], [striplib], [1])
2251 ])# _LT_CMD_STRIPLIB
2252
2253
2254 # _LT_PREPARE_MUNGE_PATH_LIST
2255 # ---------------------------
2256 # Make sure func_munge_path_list() is defined correctly.
2257 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
2258 [[# func_munge_path_list VARIABLE PATH
2259 # -----------------------------------
2260 # VARIABLE is name of variable containing _space_ separated list of
2261 # directories to be munged by the contents of PATH, which is string
2262 # having a format:
2263 # "DIR[:DIR]:"
2264 # string "DIR[ DIR]" will be prepended to VARIABLE
2265 # ":DIR[:DIR]"
2266 # string "DIR[ DIR]" will be appended to VARIABLE
2267 # "DIRP[:DIRP]::[DIRA:]DIRA"
2268 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
2269 # "DIRA[ DIRA]" will be appended to VARIABLE
2270 # "DIR[:DIR]"
2271 # VARIABLE will be replaced by "DIR[ DIR]"
2272 func_munge_path_list ()
2273 {
2274 case x@S|@2 in
2275 x)
2276 ;;
2277 *:)
2278 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
2279 ;;
2280 x:*)
2281 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
2282 ;;
2283 *::*)
2284 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
2285 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
2286 ;;
2287 *)
2288 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
2289 ;;
2290 esac
2291 }
2292 ]])# _LT_PREPARE_PATH_LIST
2293
2294
2295 # _LT_SYS_DYNAMIC_LINKER([TAG])
2296 # -----------------------------
2297 # PORTME Fill in your ld.so characteristics
2298 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2299 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2300 m4_require([_LT_DECL_EGREP])dnl
2301 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2302 m4_require([_LT_DECL_OBJDUMP])dnl
2303 m4_require([_LT_DECL_SED])dnl
2304 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2305 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
2306 AC_MSG_CHECKING([dynamic linker characteristics])
2307 m4_if([$1],
2308 [], [
2309 if test yes = "$GCC"; then
2310 case $host_os in
2311 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
2312 *) lt_awk_arg='/^libraries:/' ;;
2313 esac
2314 case $host_os in
2315 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
2316 *) lt_sed_strip_eq='s|=/|/|g' ;;
2317 esac
2318 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2319 case $lt_search_path_spec in
2320 *\;*)
2321 # if the path contains ";" then we assume it to be the separator
2322 # otherwise default to the standard path separator (i.e. ":") - it is
2323 # assumed that no part of a normal pathname contains ";" but that should
2324 # okay in the real world where ";" in dirpaths is itself problematic.
2325 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2326 ;;
2327 *)
2328 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2329 ;;
2330 esac
2331 # Ok, now we have the path, separated by spaces, we can step through it
2332 # and add multilib dir if necessary...
2333 lt_tmp_lt_search_path_spec=
2334 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2335 # ...but if some path component already ends with the multilib dir we assume
2336 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2337 case "$lt_multi_os_dir; $lt_search_path_spec " in
2338 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
2339 lt_multi_os_dir=
2340 ;;
2341 esac
2342 for lt_sys_path in $lt_search_path_spec; do
2343 if test -d "$lt_sys_path$lt_multi_os_dir"; then
2344 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
2345 elif test -n "$lt_multi_os_dir"; then
2346 test -d "$lt_sys_path" && \
2347 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2348 fi
2349 done
2350 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2351 BEGIN {RS = " "; FS = "/|\n";} {
2352 lt_foo = "";
2353 lt_count = 0;
2354 for (lt_i = NF; lt_i > 0; lt_i--) {
2355 if ($lt_i != "" && $lt_i != ".") {
2356 if ($lt_i == "..") {
2357 lt_count++;
2358 } else {
2359 if (lt_count == 0) {
2360 lt_foo = "/" $lt_i lt_foo;
2361 } else {
2362 lt_count--;
2363 }
2364 }
2365 }
2366 }
2367 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2368 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2369 }'`
2370 # AWK program above erroneously prepends '/' to C:/dos/paths
2371 # for these hosts.
2372 case $host_os in
2373 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2374 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
2375 esac
2376 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2377 else
2378 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2379 fi])
2380 library_names_spec=
2381 libname_spec='lib$name'
2382 soname_spec=
2383 shrext_cmds=.so
2384 postinstall_cmds=
2385 postuninstall_cmds=
2386 finish_cmds=
2387 finish_eval=
2388 shlibpath_var=
2389 shlibpath_overrides_runpath=unknown
2390 version_type=none
2391 dynamic_linker="$host_os ld.so"
2392 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2393 need_lib_prefix=unknown
2394 hardcode_into_libs=no
2395
2396 # when you set need_version to no, make sure it does not cause -set_version
2397 # flags to be left without arguments
2398 need_version=unknown
2399
2400 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
2401 [User-defined run-time library search path.])
2402
2403 case $host_os in
2404 aix3*)
2405 version_type=linux # correct to gnu/linux during the next big refactor
2406 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
2407 shlibpath_var=LIBPATH
2408
2409 # AIX 3 has no versioning support, so we append a major version to the name.
2410 soname_spec='$libname$release$shared_ext$major'
2411 ;;
2412
2413 aix[[4-9]]*)
2414 version_type=linux # correct to gnu/linux during the next big refactor
2415 need_lib_prefix=no
2416 need_version=no
2417 hardcode_into_libs=yes
2418 if test ia64 = "$host_cpu"; then
2419 # AIX 5 supports IA64
2420 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
2421 shlibpath_var=LD_LIBRARY_PATH
2422 else
2423 # With GCC up to 2.95.x, collect2 would create an import file
2424 # for dependence libraries. The import file would start with
2425 # the line '#! .'. This would cause the generated library to
2426 # depend on '.', always an invalid library. This was fixed in
2427 # development snapshots of GCC prior to 3.0.
2428 case $host_os in
2429 aix4 | aix4.[[01]] | aix4.[[01]].*)
2430 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2431 echo ' yes '
2432 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
2433 :
2434 else
2435 can_build_shared=no
2436 fi
2437 ;;
2438 esac
2439 # Using Import Files as archive members, it is possible to support
2440 # filename-based versioning of shared library archives on AIX. While
2441 # this would work for both with and without runtime linking, it will
2442 # prevent static linking of such archives. So we do filename-based
2443 # shared library versioning with .so extension only, which is used
2444 # when both runtime linking and shared linking is enabled.
2445 # Unfortunately, runtime linking may impact performance, so we do
2446 # not want this to be the default eventually. Also, we use the
2447 # versioned .so libs for executables only if there is the -brtl
2448 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
2449 # To allow for filename-based versioning support, we need to create
2450 # libNAME.so.V as an archive file, containing:
2451 # *) an Import File, referring to the versioned filename of the
2452 # archive as well as the shared archive member, telling the
2453 # bitwidth (32 or 64) of that shared object, and providing the
2454 # list of exported symbols of that shared object, eventually
2455 # decorated with the 'weak' keyword
2456 # *) the shared object with the F_LOADONLY flag set, to really avoid
2457 # it being seen by the linker.
2458 # At run time we better use the real file rather than another symlink,
2459 # but for link time we create the symlink libNAME.so -> libNAME.so.V
2460
2461 case $with_aix_soname,$aix_use_runtimelinking in
2462 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
2463 # soname into executable. Probably we can add versioning support to
2464 # collect2, so additional links can be useful in future.
2465 aix,yes) # traditional libtool
2466 dynamic_linker='AIX unversionable lib.so'
2467 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2468 # instead of lib<name>.a to let people know that these are not
2469 # typical AIX shared libraries.
2470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2471 ;;
2472 aix,no) # traditional AIX only
2473 dynamic_linker='AIX lib.a[(]lib.so.V[)]'
2474 # We preserve .a as extension for shared libraries through AIX4.2
2475 # and later when we are not doing run time linking.
2476 library_names_spec='$libname$release.a $libname.a'
2477 soname_spec='$libname$release$shared_ext$major'
2478 ;;
2479 svr4,*) # full svr4 only
2480 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
2481 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2482 # We do not specify a path in Import Files, so LIBPATH fires.
2483 shlibpath_overrides_runpath=yes
2484 ;;
2485 *,yes) # both, prefer svr4
2486 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
2487 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2488 # unpreferred sharedlib libNAME.a needs extra handling
2489 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
2490 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
2491 # We do not specify a path in Import Files, so LIBPATH fires.
2492 shlibpath_overrides_runpath=yes
2493 ;;
2494 *,no) # both, prefer aix
2495 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
2496 library_names_spec='$libname$release.a $libname.a'
2497 soname_spec='$libname$release$shared_ext$major'
2498 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
2499 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
2500 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
2501 ;;
2502 esac
2503 shlibpath_var=LIBPATH
2504 fi
2505 ;;
2506
2507 amigaos*)
2508 case $host_cpu in
2509 powerpc)
2510 # Since July 2007 AmigaOS4 officially supports .so libraries.
2511 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2513 ;;
2514 m68k)
2515 library_names_spec='$libname.ixlibrary $libname.a'
2516 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2517 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2518 ;;
2519 esac
2520 ;;
2521
2522 beos*)
2523 library_names_spec='$libname$shared_ext'
2524 dynamic_linker="$host_os ld.so"
2525 shlibpath_var=LIBRARY_PATH
2526 ;;
2527
2528 bsdi[[45]]*)
2529 version_type=linux # correct to gnu/linux during the next big refactor
2530 need_version=no
2531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2532 soname_spec='$libname$release$shared_ext$major'
2533 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2534 shlibpath_var=LD_LIBRARY_PATH
2535 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2536 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2537 # the default ld.so.conf also contains /usr/contrib/lib and
2538 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2539 # libtool to hard-code these into programs
2540 ;;
2541
2542 cygwin* | mingw* | pw32* | cegcc*)
2543 version_type=windows
2544 shrext_cmds=.dll
2545 need_version=no
2546 need_lib_prefix=no
2547
2548 case $GCC,$cc_basename in
2549 yes,*)
2550 # gcc
2551 library_names_spec='$libname.dll.a'
2552 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2553 postinstall_cmds='base_file=`basename \$file`~
2554 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2555 dldir=$destdir/`dirname \$dlpath`~
2556 test -d \$dldir || mkdir -p \$dldir~
2557 $install_prog $dir/$dlname \$dldir/$dlname~
2558 chmod a+x \$dldir/$dlname~
2559 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2560 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2561 fi'
2562 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2563 dlpath=$dir/\$dldll~
2564 $RM \$dlpath'
2565 shlibpath_overrides_runpath=yes
2566
2567 case $host_os in
2568 cygwin*)
2569 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2570 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2571 m4_if([$1], [],[
2572 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2573 ;;
2574 mingw* | cegcc*)
2575 # MinGW DLLs use traditional 'lib' prefix
2576 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2577 ;;
2578 pw32*)
2579 # pw32 DLLs use 'pw' prefix rather than 'lib'
2580 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2581 ;;
2582 esac
2583 dynamic_linker='Win32 ld.exe'
2584 ;;
2585
2586 *,cl* | *,icl*)
2587 # Native MSVC or ICC
2588 libname_spec='$name'
2589 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2590 library_names_spec='$libname.dll.lib'
2591
2592 case $build_os in
2593 mingw*)
2594 sys_lib_search_path_spec=
2595 lt_save_ifs=$IFS
2596 IFS=';'
2597 for lt_path in $LIB
2598 do
2599 IFS=$lt_save_ifs
2600 # Let DOS variable expansion print the short 8.3 style file name.
2601 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2602 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2603 done
2604 IFS=$lt_save_ifs
2605 # Convert to MSYS style.
2606 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2607 ;;
2608 cygwin*)
2609 # Convert to unix form, then to dos form, then back to unix form
2610 # but this time dos style (no spaces!) so that the unix form looks
2611 # like /cygdrive/c/PROGRA~1:/cygdr...
2612 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2613 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2614 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2615 ;;
2616 *)
2617 sys_lib_search_path_spec=$LIB
2618 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2619 # It is most probably a Windows format PATH.
2620 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2621 else
2622 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2623 fi
2624 # FIXME: find the short name or the path components, as spaces are
2625 # common. (e.g. "Program Files" -> "PROGRA~1")
2626 ;;
2627 esac
2628
2629 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2630 postinstall_cmds='base_file=`basename \$file`~
2631 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2632 dldir=$destdir/`dirname \$dlpath`~
2633 test -d \$dldir || mkdir -p \$dldir~
2634 $install_prog $dir/$dlname \$dldir/$dlname'
2635 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2636 dlpath=$dir/\$dldll~
2637 $RM \$dlpath'
2638 shlibpath_overrides_runpath=yes
2639 dynamic_linker='Win32 link.exe'
2640 ;;
2641
2642 *)
2643 # Assume MSVC and ICC wrapper
2644 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
2645 dynamic_linker='Win32 ld.exe'
2646 ;;
2647 esac
2648 # FIXME: first we should search . and the directory the executable is in
2649 shlibpath_var=PATH
2650 ;;
2651
2652 darwin* | rhapsody*)
2653 dynamic_linker="$host_os dyld"
2654 version_type=darwin
2655 need_lib_prefix=no
2656 need_version=no
2657 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
2658 soname_spec='$libname$release$major$shared_ext'
2659 shlibpath_overrides_runpath=yes
2660 shlibpath_var=DYLD_LIBRARY_PATH
2661 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2662 m4_if([$1], [],[
2663 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2664 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2665 ;;
2666
2667 dgux*)
2668 version_type=linux # correct to gnu/linux during the next big refactor
2669 need_lib_prefix=no
2670 need_version=no
2671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2672 soname_spec='$libname$release$shared_ext$major'
2673 shlibpath_var=LD_LIBRARY_PATH
2674 ;;
2675
2676 freebsd* | dragonfly* | midnightbsd*)
2677 # DragonFly does not have aout. When/if they implement a new
2678 # versioning mechanism, adjust this.
2679 if test -x /usr/bin/objformat; then
2680 objformat=`/usr/bin/objformat`
2681 else
2682 case $host_os in
2683 freebsd[[23]].*) objformat=aout ;;
2684 *) objformat=elf ;;
2685 esac
2686 fi
2687 version_type=freebsd-$objformat
2688 case $version_type in
2689 freebsd-elf*)
2690 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2691 soname_spec='$libname$release$shared_ext$major'
2692 need_version=no
2693 need_lib_prefix=no
2694 ;;
2695 freebsd-*)
2696 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
2697 need_version=yes
2698 ;;
2699 esac
2700 shlibpath_var=LD_LIBRARY_PATH
2701 case $host_os in
2702 freebsd2.*)
2703 shlibpath_overrides_runpath=yes
2704 ;;
2705 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2706 shlibpath_overrides_runpath=yes
2707 hardcode_into_libs=yes
2708 ;;
2709 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2710 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2711 shlibpath_overrides_runpath=no
2712 hardcode_into_libs=yes
2713 ;;
2714 *) # from 4.6 on, and DragonFly
2715 shlibpath_overrides_runpath=yes
2716 hardcode_into_libs=yes
2717 ;;
2718 esac
2719 ;;
2720
2721 haiku*)
2722 version_type=linux # correct to gnu/linux during the next big refactor
2723 need_lib_prefix=no
2724 need_version=no
2725 dynamic_linker="$host_os runtime_loader"
2726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2727 soname_spec='$libname$release$shared_ext$major'
2728 shlibpath_var=LIBRARY_PATH
2729 shlibpath_overrides_runpath=no
2730 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2731 hardcode_into_libs=yes
2732 ;;
2733
2734 hpux9* | hpux10* | hpux11*)
2735 # Give a soname corresponding to the major version so that dld.sl refuses to
2736 # link against other versions.
2737 version_type=sunos
2738 need_lib_prefix=no
2739 need_version=no
2740 case $host_cpu in
2741 ia64*)
2742 shrext_cmds='.so'
2743 hardcode_into_libs=yes
2744 dynamic_linker="$host_os dld.so"
2745 shlibpath_var=LD_LIBRARY_PATH
2746 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2748 soname_spec='$libname$release$shared_ext$major'
2749 if test 32 = "$HPUX_IA64_MODE"; then
2750 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2751 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
2752 else
2753 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2754 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
2755 fi
2756 ;;
2757 hppa*64*)
2758 shrext_cmds='.sl'
2759 hardcode_into_libs=yes
2760 dynamic_linker="$host_os dld.sl"
2761 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2764 soname_spec='$libname$release$shared_ext$major'
2765 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2767 ;;
2768 *)
2769 shrext_cmds='.sl'
2770 dynamic_linker="$host_os dld.sl"
2771 shlibpath_var=SHLIB_PATH
2772 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2774 soname_spec='$libname$release$shared_ext$major'
2775 ;;
2776 esac
2777 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2778 postinstall_cmds='chmod 555 $lib'
2779 # or fails outright, so override atomically:
2780 install_override_mode=555
2781 ;;
2782
2783 interix[[3-9]]*)
2784 version_type=linux # correct to gnu/linux during the next big refactor
2785 need_lib_prefix=no
2786 need_version=no
2787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2788 soname_spec='$libname$release$shared_ext$major'
2789 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2790 shlibpath_var=LD_LIBRARY_PATH
2791 shlibpath_overrides_runpath=no
2792 hardcode_into_libs=yes
2793 ;;
2794
2795 irix5* | irix6* | nonstopux*)
2796 case $host_os in
2797 nonstopux*) version_type=nonstopux ;;
2798 *)
2799 if test yes = "$lt_cv_prog_gnu_ld"; then
2800 version_type=linux # correct to gnu/linux during the next big refactor
2801 else
2802 version_type=irix
2803 fi ;;
2804 esac
2805 need_lib_prefix=no
2806 need_version=no
2807 soname_spec='$libname$release$shared_ext$major'
2808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
2809 case $host_os in
2810 irix5* | nonstopux*)
2811 libsuff= shlibsuff=
2812 ;;
2813 *)
2814 case $LD in # libtool.m4 will add one of these switches to LD
2815 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2816 libsuff= shlibsuff= libmagic=32-bit;;
2817 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2818 libsuff=32 shlibsuff=N32 libmagic=N32;;
2819 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2820 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2821 *) libsuff= shlibsuff= libmagic=never-match;;
2822 esac
2823 ;;
2824 esac
2825 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2826 shlibpath_overrides_runpath=no
2827 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
2828 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
2829 hardcode_into_libs=yes
2830 ;;
2831
2832 # No shared lib support for Linux oldld, aout, or coff.
2833 linux*oldld* | linux*aout* | linux*coff*)
2834 dynamic_linker=no
2835 ;;
2836
2837 linux*android*)
2838 version_type=none # Android doesn't support versioned libraries.
2839 need_lib_prefix=no
2840 need_version=no
2841 library_names_spec='$libname$release$shared_ext'
2842 soname_spec='$libname$release$shared_ext'
2843 finish_cmds=
2844 shlibpath_var=LD_LIBRARY_PATH
2845 shlibpath_overrides_runpath=yes
2846
2847 # This implies no fast_install, which is unacceptable.
2848 # Some rework will be needed to allow for fast_install
2849 # before this can be enabled.
2850 hardcode_into_libs=yes
2851
2852 dynamic_linker='Android linker'
2853 # Don't embed -rpath directories since the linker doesn't support them.
2854 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2855 ;;
2856
2857 # This must be glibc/ELF.
2858 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2859 version_type=linux # correct to gnu/linux during the next big refactor
2860 need_lib_prefix=no
2861 need_version=no
2862 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2863 soname_spec='$libname$release$shared_ext$major'
2864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2865 shlibpath_var=LD_LIBRARY_PATH
2866 shlibpath_overrides_runpath=no
2867
2868 # Some binutils ld are patched to set DT_RUNPATH
2869 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2870 [lt_cv_shlibpath_overrides_runpath=no
2871 save_LDFLAGS=$LDFLAGS
2872 save_libdir=$libdir
2873 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2874 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2875 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2876 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2877 [lt_cv_shlibpath_overrides_runpath=yes])])
2878 LDFLAGS=$save_LDFLAGS
2879 libdir=$save_libdir
2880 ])
2881 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2882
2883 # This implies no fast_install, which is unacceptable.
2884 # Some rework will be needed to allow for fast_install
2885 # before this can be enabled.
2886 hardcode_into_libs=yes
2887
2888 # Ideally, we could use ldconfig to report *all* directores which are
2889 # searched for libraries, however this is still not possible. Aside from not
2890 # being certain /sbin/ldconfig is available, command
2891 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
2892 # even though it is searched at run-time. Try to do the best guess by
2893 # appending ld.so.conf contents (and includes) to the search path.
2894 if test -f /etc/ld.so.conf; then
2895 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
2896 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2897 fi
2898
2899 # We used to test for /lib/ld.so.1 and disable shared libraries on
2900 # powerpc, because MkLinux only supported shared libraries with the
2901 # GNU dynamic linker. Since this was broken with cross compilers,
2902 # most powerpc-linux boxes support dynamic linking these days and
2903 # people can always --disable-shared, the test was removed, and we
2904 # assume the GNU/Linux dynamic linker is in use.
2905 dynamic_linker='GNU/Linux ld.so'
2906 ;;
2907
2908 netbsdelf*-gnu)
2909 version_type=linux
2910 need_lib_prefix=no
2911 need_version=no
2912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2913 soname_spec='${libname}${release}${shared_ext}$major'
2914 shlibpath_var=LD_LIBRARY_PATH
2915 shlibpath_overrides_runpath=no
2916 hardcode_into_libs=yes
2917 dynamic_linker='NetBSD ld.elf_so'
2918 ;;
2919
2920 netbsd*)
2921 version_type=sunos
2922 need_lib_prefix=no
2923 need_version=no
2924 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2925 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
2926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2927 dynamic_linker='NetBSD (a.out) ld.so'
2928 else
2929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2930 soname_spec='$libname$release$shared_ext$major'
2931 dynamic_linker='NetBSD ld.elf_so'
2932 fi
2933 shlibpath_var=LD_LIBRARY_PATH
2934 shlibpath_overrides_runpath=yes
2935 hardcode_into_libs=yes
2936 ;;
2937
2938 newsos6)
2939 version_type=linux # correct to gnu/linux during the next big refactor
2940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2941 shlibpath_var=LD_LIBRARY_PATH
2942 shlibpath_overrides_runpath=yes
2943 ;;
2944
2945 *nto* | *qnx*)
2946 version_type=qnx
2947 need_lib_prefix=no
2948 need_version=no
2949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2950 soname_spec='$libname$release$shared_ext$major'
2951 shlibpath_var=LD_LIBRARY_PATH
2952 shlibpath_overrides_runpath=no
2953 hardcode_into_libs=yes
2954 dynamic_linker='ldqnx.so'
2955 ;;
2956
2957 openbsd* | bitrig*)
2958 version_type=sunos
2959 sys_lib_dlsearch_path_spec=/usr/lib
2960 need_lib_prefix=no
2961 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
2962 need_version=no
2963 else
2964 need_version=yes
2965 fi
2966 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
2967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2968 shlibpath_var=LD_LIBRARY_PATH
2969 shlibpath_overrides_runpath=yes
2970 ;;
2971
2972 os2*)
2973 libname_spec='$name'
2974 version_type=windows
2975 shrext_cmds=.dll
2976 need_version=no
2977 need_lib_prefix=no
2978 # OS/2 can only load a DLL with a base name of 8 characters or less.
2979 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
2980 v=$($ECHO $release$versuffix | tr -d .-);
2981 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
2982 $ECHO $n$v`$shared_ext'
2983 library_names_spec='${libname}_dll.$libext'
2984 dynamic_linker='OS/2 ld.exe'
2985 shlibpath_var=BEGINLIBPATH
2986 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2987 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2988 postinstall_cmds='base_file=`basename \$file`~
2989 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
2990 dldir=$destdir/`dirname \$dlpath`~
2991 test -d \$dldir || mkdir -p \$dldir~
2992 $install_prog $dir/$dlname \$dldir/$dlname~
2993 chmod a+x \$dldir/$dlname~
2994 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2995 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2996 fi'
2997 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
2998 dlpath=$dir/\$dldll~
2999 $RM \$dlpath'
3000 ;;
3001
3002 osf3* | osf4* | osf5*)
3003 version_type=osf
3004 need_lib_prefix=no
3005 need_version=no
3006 soname_spec='$libname$release$shared_ext$major'
3007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3008 shlibpath_var=LD_LIBRARY_PATH
3009 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3011 ;;
3012
3013 rdos*)
3014 dynamic_linker=no
3015 ;;
3016
3017 solaris*)
3018 version_type=linux # correct to gnu/linux during the next big refactor
3019 need_lib_prefix=no
3020 need_version=no
3021 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3022 soname_spec='$libname$release$shared_ext$major'
3023 shlibpath_var=LD_LIBRARY_PATH
3024 shlibpath_overrides_runpath=yes
3025 hardcode_into_libs=yes
3026 # ldd complains unless libraries are executable
3027 postinstall_cmds='chmod +x $lib'
3028 ;;
3029
3030 sunos4*)
3031 version_type=sunos
3032 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
3033 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3034 shlibpath_var=LD_LIBRARY_PATH
3035 shlibpath_overrides_runpath=yes
3036 if test yes = "$with_gnu_ld"; then
3037 need_lib_prefix=no
3038 fi
3039 need_version=yes
3040 ;;
3041
3042 sysv4 | sysv4.3*)
3043 version_type=linux # correct to gnu/linux during the next big refactor
3044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3045 soname_spec='$libname$release$shared_ext$major'
3046 shlibpath_var=LD_LIBRARY_PATH
3047 case $host_vendor in
3048 sni)
3049 shlibpath_overrides_runpath=no
3050 need_lib_prefix=no
3051 runpath_var=LD_RUN_PATH
3052 ;;
3053 siemens)
3054 need_lib_prefix=no
3055 ;;
3056 motorola)
3057 need_lib_prefix=no
3058 need_version=no
3059 shlibpath_overrides_runpath=no
3060 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3061 ;;
3062 esac
3063 ;;
3064
3065 sysv4*MP*)
3066 if test -d /usr/nec; then
3067 version_type=linux # correct to gnu/linux during the next big refactor
3068 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
3069 soname_spec='$libname$shared_ext.$major'
3070 shlibpath_var=LD_LIBRARY_PATH
3071 fi
3072 ;;
3073
3074 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3075 version_type=sco
3076 need_lib_prefix=no
3077 need_version=no
3078 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
3079 soname_spec='$libname$release$shared_ext$major'
3080 shlibpath_var=LD_LIBRARY_PATH
3081 shlibpath_overrides_runpath=yes
3082 hardcode_into_libs=yes
3083 if test yes = "$with_gnu_ld"; then
3084 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3085 else
3086 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3087 case $host_os in
3088 sco3.2v5*)
3089 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3090 ;;
3091 esac
3092 fi
3093 sys_lib_dlsearch_path_spec='/usr/lib'
3094 ;;
3095
3096 tpf*)
3097 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3098 version_type=linux # correct to gnu/linux during the next big refactor
3099 need_lib_prefix=no
3100 need_version=no
3101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3102 shlibpath_var=LD_LIBRARY_PATH
3103 shlibpath_overrides_runpath=no
3104 hardcode_into_libs=yes
3105 ;;
3106
3107 uts4*)
3108 version_type=linux # correct to gnu/linux during the next big refactor
3109 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3110 soname_spec='$libname$release$shared_ext$major'
3111 shlibpath_var=LD_LIBRARY_PATH
3112 ;;
3113
3114 *)
3115 dynamic_linker=no
3116 ;;
3117 esac
3118 AC_MSG_RESULT([$dynamic_linker])
3119 test no = "$dynamic_linker" && can_build_shared=no
3120
3121 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3122 if test yes = "$GCC"; then
3123 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3124 fi
3125
3126 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
3127 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
3128 fi
3129
3130 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
3131 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
3132 fi
3133
3134 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
3135 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
3136
3137 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
3138 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
3139
3140 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
3141 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
3142
3143 _LT_DECL([], [variables_saved_for_relink], [1],
3144 [Variables whose values should be saved in libtool wrapper scripts and
3145 restored at link time])
3146 _LT_DECL([], [need_lib_prefix], [0],
3147 [Do we need the "lib" prefix for modules?])
3148 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3149 _LT_DECL([], [version_type], [0], [Library versioning type])
3150 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3151 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3152 _LT_DECL([], [shlibpath_overrides_runpath], [0],
3153 [Is shlibpath searched before the hard-coded library search path?])
3154 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3155 _LT_DECL([], [library_names_spec], [1],
3156 [[List of archive names. First name is the real one, the rest are links.
3157 The last name is the one that the linker finds with -lNAME]])
3158 _LT_DECL([], [soname_spec], [1],
3159 [[The coded name of the library, if different from the real name]])
3160 _LT_DECL([], [install_override_mode], [1],
3161 [Permission mode override for installation of shared libraries])
3162 _LT_DECL([], [postinstall_cmds], [2],
3163 [Command to use after installation of a shared archive])
3164 _LT_DECL([], [postuninstall_cmds], [2],
3165 [Command to use after uninstallation of a shared archive])
3166 _LT_DECL([], [finish_cmds], [2],
3167 [Commands used to finish a libtool library installation in a directory])
3168 _LT_DECL([], [finish_eval], [1],
3169 [[As "finish_cmds", except a single script fragment to be evaled but
3170 not shown]])
3171 _LT_DECL([], [hardcode_into_libs], [0],
3172 [Whether we should hardcode library paths into libraries])
3173 _LT_DECL([], [sys_lib_search_path_spec], [2],
3174 [Compile-time system search path for libraries])
3175 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
3176 [Detected run-time system search path for libraries])
3177 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
3178 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
3179 ])# _LT_SYS_DYNAMIC_LINKER
3180
3181
3182 # _LT_PATH_TOOL_PREFIX(TOOL)
3183 # --------------------------
3184 # find a file program that can recognize shared library
3185 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3186 [m4_require([_LT_DECL_EGREP])dnl
3187 AC_MSG_CHECKING([for $1])
3188 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3189 [case $MAGIC_CMD in
3190 [[\\/*] | ?:[\\/]*])
3191 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
3192 ;;
3193 *)
3194 lt_save_MAGIC_CMD=$MAGIC_CMD
3195 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3196 dnl $ac_dummy forces splitting on constant user-supplied paths.
3197 dnl POSIX.2 word splitting is done only on the output of word expansions,
3198 dnl not every word. This closes a longstanding sh security hole.
3199 ac_dummy="m4_if([$2], , $PATH, [$2])"
3200 for ac_dir in $ac_dummy; do
3201 IFS=$lt_save_ifs
3202 test -z "$ac_dir" && ac_dir=.
3203 if test -f "$ac_dir/$1"; then
3204 lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
3205 if test -n "$file_magic_test_file"; then
3206 case $deplibs_check_method in
3207 "file_magic "*)
3208 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3209 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
3210 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3211 $EGREP "$file_magic_regex" > /dev/null; then
3212 :
3213 else
3214 cat <<_LT_EOF 1>&2
3215
3216 *** Warning: the command libtool uses to detect shared libraries,
3217 *** $file_magic_cmd, produces output that libtool cannot recognize.
3218 *** The result is that libtool may fail to recognize shared libraries
3219 *** as such. This will affect the creation of libtool libraries that
3220 *** depend on shared libraries, but programs linked with such libtool
3221 *** libraries will work regardless of this problem. Nevertheless, you
3222 *** may want to report the problem to your system manager and/or to
3223 *** bug-libtool@gnu.org
3224
3225 _LT_EOF
3226 fi ;;
3227 esac
3228 fi
3229 break
3230 fi
3231 done
3232 IFS=$lt_save_ifs
3233 MAGIC_CMD=$lt_save_MAGIC_CMD
3234 ;;
3235 esac])
3236 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
3237 if test -n "$MAGIC_CMD"; then
3238 AC_MSG_RESULT($MAGIC_CMD)
3239 else
3240 AC_MSG_RESULT(no)
3241 fi
3242 _LT_DECL([], [MAGIC_CMD], [0],
3243 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3244 ])# _LT_PATH_TOOL_PREFIX
3245
3246 # Old name:
3247 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3248 dnl aclocal-1.4 backwards compatibility:
3249 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3250
3251
3252 # _LT_PATH_MAGIC
3253 # --------------
3254 # find a file program that can recognize a shared library
3255 m4_defun([_LT_PATH_MAGIC],
3256 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3257 if test -z "$lt_cv_path_MAGIC_CMD"; then
3258 if test -n "$ac_tool_prefix"; then
3259 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3260 else
3261 MAGIC_CMD=:
3262 fi
3263 fi
3264 ])# _LT_PATH_MAGIC
3265
3266
3267 # LT_PATH_LD
3268 # ----------
3269 # find the pathname to the GNU or non-GNU linker
3270 AC_DEFUN([LT_PATH_LD],
3271 [AC_REQUIRE([AC_PROG_CC])dnl
3272 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3273 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3274 m4_require([_LT_DECL_SED])dnl
3275 m4_require([_LT_DECL_EGREP])dnl
3276 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3277
3278 AC_ARG_WITH([gnu-ld],
3279 [AS_HELP_STRING([--with-gnu-ld],
3280 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3281 [test no = "$withval" || with_gnu_ld=yes],
3282 [with_gnu_ld=no])dnl
3283
3284 ac_prog=ld
3285 if test yes = "$GCC"; then
3286 # Check if gcc -print-prog-name=ld gives a path.
3287 AC_MSG_CHECKING([for ld used by $CC])
3288 case $host in
3289 *-*-mingw*)
3290 # gcc leaves a trailing carriage return, which upsets mingw
3291 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3292 *)
3293 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3294 esac
3295 case $ac_prog in
3296 # Accept absolute paths.
3297 [[\\/]]* | ?:[[\\/]]*)
3298 re_direlt='/[[^/]][[^/]]*/\.\./'
3299 # Canonicalize the pathname of ld
3300 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3301 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3302 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3303 done
3304 test -z "$LD" && LD=$ac_prog
3305 ;;
3306 "")
3307 # If it fails, then pretend we aren't using GCC.
3308 ac_prog=ld
3309 ;;
3310 *)
3311 # If it is relative, then search for the first ld in PATH.
3312 with_gnu_ld=unknown
3313 ;;
3314 esac
3315 elif test yes = "$with_gnu_ld"; then
3316 AC_MSG_CHECKING([for GNU ld])
3317 else
3318 AC_MSG_CHECKING([for non-GNU ld])
3319 fi
3320 AC_CACHE_VAL(lt_cv_path_LD,
3321 [if test -z "$LD"; then
3322 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3323 for ac_dir in $PATH; do
3324 IFS=$lt_save_ifs
3325 test -z "$ac_dir" && ac_dir=.
3326 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3327 lt_cv_path_LD=$ac_dir/$ac_prog
3328 # Check to see if the program is GNU ld. I'd rather use --version,
3329 # but apparently some variants of GNU ld only accept -v.
3330 # Break only if it was the GNU/non-GNU ld that we prefer.
3331 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3332 *GNU* | *'with BFD'*)
3333 test no != "$with_gnu_ld" && break
3334 ;;
3335 *)
3336 test yes != "$with_gnu_ld" && break
3337 ;;
3338 esac
3339 fi
3340 done
3341 IFS=$lt_save_ifs
3342 else
3343 lt_cv_path_LD=$LD # Let the user override the test with a path.
3344 fi])
3345 LD=$lt_cv_path_LD
3346 if test -n "$LD"; then
3347 AC_MSG_RESULT($LD)
3348 else
3349 AC_MSG_RESULT(no)
3350 fi
3351 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3352 _LT_PATH_LD_GNU
3353 AC_SUBST([LD])
3354
3355 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3356 ])# LT_PATH_LD
3357
3358 # Old names:
3359 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3360 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3361 dnl aclocal-1.4 backwards compatibility:
3362 dnl AC_DEFUN([AM_PROG_LD], [])
3363 dnl AC_DEFUN([AC_PROG_LD], [])
3364
3365
3366 # _LT_PATH_LD_GNU
3367 #- --------------
3368 m4_defun([_LT_PATH_LD_GNU],
3369 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3370 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3371 case `$LD -v 2>&1 </dev/null` in
3372 *GNU* | *'with BFD'*)
3373 lt_cv_prog_gnu_ld=yes
3374 ;;
3375 *)
3376 lt_cv_prog_gnu_ld=no
3377 ;;
3378 esac])
3379 with_gnu_ld=$lt_cv_prog_gnu_ld
3380 ])# _LT_PATH_LD_GNU
3381
3382
3383 # _LT_CMD_RELOAD
3384 # --------------
3385 # find reload flag for linker
3386 # -- PORTME Some linkers may need a different reload flag.
3387 m4_defun([_LT_CMD_RELOAD],
3388 [AC_CACHE_CHECK([for $LD option to reload object files],
3389 lt_cv_ld_reload_flag,
3390 [lt_cv_ld_reload_flag='-r'])
3391 reload_flag=$lt_cv_ld_reload_flag
3392 case $reload_flag in
3393 "" | " "*) ;;
3394 *) reload_flag=" $reload_flag" ;;
3395 esac
3396 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3397 case $host_os in
3398 cygwin* | mingw* | pw32* | cegcc*)
3399 if test yes != "$GCC"; then
3400 reload_cmds=false
3401 fi
3402 ;;
3403 darwin*)
3404 if test yes = "$GCC"; then
3405 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
3406 else
3407 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3408 fi
3409 ;;
3410 esac
3411 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3412 _LT_TAGDECL([], [reload_cmds], [2])dnl
3413 ])# _LT_CMD_RELOAD
3414
3415
3416 # _LT_PATH_DD
3417 # -----------
3418 # find a working dd
3419 m4_defun([_LT_PATH_DD],
3420 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
3421 [printf 0123456789abcdef0123456789abcdef >conftest.i
3422 cat conftest.i conftest.i >conftest2.i
3423 : ${lt_DD:=$DD}
3424 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
3425 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3426 cmp -s conftest.i conftest.out \
3427 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
3428 fi])
3429 rm -f conftest.i conftest2.i conftest.out])
3430 ])# _LT_PATH_DD
3431
3432
3433 # _LT_CMD_TRUNCATE
3434 # ----------------
3435 # find command to truncate a binary pipe
3436 m4_defun([_LT_CMD_TRUNCATE],
3437 [m4_require([_LT_PATH_DD])
3438 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
3439 [printf 0123456789abcdef0123456789abcdef >conftest.i
3440 cat conftest.i conftest.i >conftest2.i
3441 lt_cv_truncate_bin=
3442 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3443 cmp -s conftest.i conftest.out \
3444 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
3445 fi
3446 rm -f conftest.i conftest2.i conftest.out
3447 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
3448 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
3449 [Command to truncate a binary pipe])
3450 ])# _LT_CMD_TRUNCATE
3451
3452
3453 # _LT_CHECK_MAGIC_METHOD
3454 # ----------------------
3455 # how to check for library dependencies
3456 # -- PORTME fill in with the dynamic library characteristics
3457 m4_defun([_LT_CHECK_MAGIC_METHOD],
3458 [m4_require([_LT_DECL_EGREP])
3459 m4_require([_LT_DECL_OBJDUMP])
3460 AC_CACHE_CHECK([how to recognize dependent libraries],
3461 lt_cv_deplibs_check_method,
3462 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3463 lt_cv_file_magic_test_file=
3464 lt_cv_deplibs_check_method='unknown'
3465 # Need to set the preceding variable on all platforms that support
3466 # interlibrary dependencies.
3467 # 'none' -- dependencies not supported.
3468 # 'unknown' -- same as none, but documents that we really don't know.
3469 # 'pass_all' -- all dependencies passed with no checks.
3470 # 'test_compile' -- check by making test program.
3471 # 'file_magic [[regex]]' -- check by looking for files in library path
3472 # that responds to the $file_magic_cmd with a given extended regex.
3473 # If you have 'file' or equivalent on your system and you're not sure
3474 # whether 'pass_all' will *always* work, you probably want this one.
3475
3476 case $host_os in
3477 aix[[4-9]]*)
3478 lt_cv_deplibs_check_method=pass_all
3479 ;;
3480
3481 beos*)
3482 lt_cv_deplibs_check_method=pass_all
3483 ;;
3484
3485 bsdi[[45]]*)
3486 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3487 lt_cv_file_magic_cmd='$FILECMD -L'
3488 lt_cv_file_magic_test_file=/shlib/libc.so
3489 ;;
3490
3491 cygwin*)
3492 # func_win32_libid is a shell function defined in ltmain.sh
3493 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3494 lt_cv_file_magic_cmd='func_win32_libid'
3495 ;;
3496
3497 mingw* | pw32*)
3498 # Base MSYS/MinGW do not provide the 'file' command needed by
3499 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3500 # unless we find 'file', for example because we are cross-compiling.
3501 if ( file / ) >/dev/null 2>&1; then
3502 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3503 lt_cv_file_magic_cmd='func_win32_libid'
3504 else
3505 # Keep this pattern in sync with the one in func_win32_libid.
3506 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3507 lt_cv_file_magic_cmd='$OBJDUMP -f'
3508 fi
3509 ;;
3510
3511 cegcc*)
3512 # use the weaker test based on 'objdump'. See mingw*.
3513 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3514 lt_cv_file_magic_cmd='$OBJDUMP -f'
3515 ;;
3516
3517 darwin* | rhapsody*)
3518 lt_cv_deplibs_check_method=pass_all
3519 ;;
3520
3521 freebsd* | dragonfly* | midnightbsd*)
3522 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3523 case $host_cpu in
3524 i*86 )
3525 # Not sure whether the presence of OpenBSD here was a mistake.
3526 # Let's accept both of them until this is cleared up.
3527 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3528 lt_cv_file_magic_cmd=$FILECMD
3529 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3530 ;;
3531 esac
3532 else
3533 lt_cv_deplibs_check_method=pass_all
3534 fi
3535 ;;
3536
3537 haiku*)
3538 lt_cv_deplibs_check_method=pass_all
3539 ;;
3540
3541 hpux10.20* | hpux11*)
3542 lt_cv_file_magic_cmd=$FILECMD
3543 case $host_cpu in
3544 ia64*)
3545 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3546 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3547 ;;
3548 hppa*64*)
3549 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3550 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3551 ;;
3552 *)
3553 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3554 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3555 ;;
3556 esac
3557 ;;
3558
3559 interix[[3-9]]*)
3560 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3561 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3562 ;;
3563
3564 irix5* | irix6* | nonstopux*)
3565 case $LD in
3566 *-32|*"-32 ") libmagic=32-bit;;
3567 *-n32|*"-n32 ") libmagic=N32;;
3568 *-64|*"-64 ") libmagic=64-bit;;
3569 *) libmagic=never-match;;
3570 esac
3571 lt_cv_deplibs_check_method=pass_all
3572 ;;
3573
3574 # This must be glibc/ELF.
3575 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3576 lt_cv_deplibs_check_method=pass_all
3577 ;;
3578
3579 netbsd* | netbsdelf*-gnu)
3580 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3581 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3582 else
3583 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3584 fi
3585 ;;
3586
3587 newos6*)
3588 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3589 lt_cv_file_magic_cmd=$FILECMD
3590 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3591 ;;
3592
3593 *nto* | *qnx*)
3594 lt_cv_deplibs_check_method=pass_all
3595 ;;
3596
3597 openbsd* | bitrig*)
3598 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
3599 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3600 else
3601 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3602 fi
3603 ;;
3604
3605 osf3* | osf4* | osf5*)
3606 lt_cv_deplibs_check_method=pass_all
3607 ;;
3608
3609 rdos*)
3610 lt_cv_deplibs_check_method=pass_all
3611 ;;
3612
3613 solaris*)
3614 lt_cv_deplibs_check_method=pass_all
3615 ;;
3616
3617 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3618 lt_cv_deplibs_check_method=pass_all
3619 ;;
3620
3621 sysv4 | sysv4.3*)
3622 case $host_vendor in
3623 motorola)
3624 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3625 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3626 ;;
3627 ncr)
3628 lt_cv_deplibs_check_method=pass_all
3629 ;;
3630 sequent)
3631 lt_cv_file_magic_cmd='/bin/file'
3632 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3633 ;;
3634 sni)
3635 lt_cv_file_magic_cmd='/bin/file'
3636 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3637 lt_cv_file_magic_test_file=/lib/libc.so
3638 ;;
3639 siemens)
3640 lt_cv_deplibs_check_method=pass_all
3641 ;;
3642 pc)
3643 lt_cv_deplibs_check_method=pass_all
3644 ;;
3645 esac
3646 ;;
3647
3648 tpf*)
3649 lt_cv_deplibs_check_method=pass_all
3650 ;;
3651 os2*)
3652 lt_cv_deplibs_check_method=pass_all
3653 ;;
3654 esac
3655 ])
3656
3657 file_magic_glob=
3658 want_nocaseglob=no
3659 if test "$build" = "$host"; then
3660 case $host_os in
3661 mingw* | pw32*)
3662 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3663 want_nocaseglob=yes
3664 else
3665 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3666 fi
3667 ;;
3668 esac
3669 fi
3670
3671 file_magic_cmd=$lt_cv_file_magic_cmd
3672 deplibs_check_method=$lt_cv_deplibs_check_method
3673 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3674
3675 _LT_DECL([], [deplibs_check_method], [1],
3676 [Method to check whether dependent libraries are shared objects])
3677 _LT_DECL([], [file_magic_cmd], [1],
3678 [Command to use when deplibs_check_method = "file_magic"])
3679 _LT_DECL([], [file_magic_glob], [1],
3680 [How to find potential files when deplibs_check_method = "file_magic"])
3681 _LT_DECL([], [want_nocaseglob], [1],
3682 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3683 ])# _LT_CHECK_MAGIC_METHOD
3684
3685
3686 # LT_PATH_NM
3687 # ----------
3688 # find the pathname to a BSD- or MS-compatible name lister
3689 AC_DEFUN([LT_PATH_NM],
3690 [AC_REQUIRE([AC_PROG_CC])dnl
3691 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3692 [if test -n "$NM"; then
3693 # Let the user override the test.
3694 lt_cv_path_NM=$NM
3695 else
3696 lt_nm_to_check=${ac_tool_prefix}nm
3697 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3698 lt_nm_to_check="$lt_nm_to_check nm"
3699 fi
3700 for lt_tmp_nm in $lt_nm_to_check; do
3701 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3702 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3703 IFS=$lt_save_ifs
3704 test -z "$ac_dir" && ac_dir=.
3705 tmp_nm=$ac_dir/$lt_tmp_nm
3706 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3707 # Check to see if the nm accepts a BSD-compat flag.
3708 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3709 # nm: unknown option "B" ignored
3710 # Tru64's nm complains that /dev/null is an invalid object file
3711 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3712 case $build_os in
3713 mingw*) lt_bad_file=conftest.nm/nofile ;;
3714 *) lt_bad_file=/dev/null ;;
3715 esac
3716 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
3717 *$lt_bad_file* | *'Invalid file or object type'*)
3718 lt_cv_path_NM="$tmp_nm -B"
3719 break 2
3720 ;;
3721 *)
3722 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
3723 */dev/null*)
3724 lt_cv_path_NM="$tmp_nm -p"
3725 break 2
3726 ;;
3727 *)
3728 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3729 continue # so that we can try to find one that supports BSD flags
3730 ;;
3731 esac
3732 ;;
3733 esac
3734 fi
3735 done
3736 IFS=$lt_save_ifs
3737 done
3738 : ${lt_cv_path_NM=no}
3739 fi])
3740 if test no != "$lt_cv_path_NM"; then
3741 NM=$lt_cv_path_NM
3742 else
3743 # Didn't find any BSD compatible name lister, look for dumpbin.
3744 if test -n "$DUMPBIN"; then :
3745 # Let the user override the test.
3746 else
3747 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3748 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
3749 *COFF*)
3750 DUMPBIN="$DUMPBIN -symbols -headers"
3751 ;;
3752 *)
3753 DUMPBIN=:
3754 ;;
3755 esac
3756 fi
3757 AC_SUBST([DUMPBIN])
3758 if test : != "$DUMPBIN"; then
3759 NM=$DUMPBIN
3760 fi
3761 fi
3762 test -z "$NM" && NM=nm
3763 AC_SUBST([NM])
3764 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3765
3766 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3767 [lt_cv_nm_interface="BSD nm"
3768 echo "int some_variable = 0;" > conftest.$ac_ext
3769 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3770 (eval "$ac_compile" 2>conftest.err)
3771 cat conftest.err >&AS_MESSAGE_LOG_FD
3772 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3773 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3774 cat conftest.err >&AS_MESSAGE_LOG_FD
3775 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3776 cat conftest.out >&AS_MESSAGE_LOG_FD
3777 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3778 lt_cv_nm_interface="MS dumpbin"
3779 fi
3780 rm -f conftest*])
3781 ])# LT_PATH_NM
3782
3783 # Old names:
3784 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3785 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3786 dnl aclocal-1.4 backwards compatibility:
3787 dnl AC_DEFUN([AM_PROG_NM], [])
3788 dnl AC_DEFUN([AC_PROG_NM], [])
3789
3790 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3791 # --------------------------------
3792 # how to determine the name of the shared library
3793 # associated with a specific link library.
3794 # -- PORTME fill in with the dynamic library characteristics
3795 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3796 [m4_require([_LT_DECL_EGREP])
3797 m4_require([_LT_DECL_OBJDUMP])
3798 m4_require([_LT_DECL_DLLTOOL])
3799 AC_CACHE_CHECK([how to associate runtime and link libraries],
3800 lt_cv_sharedlib_from_linklib_cmd,
3801 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3802
3803 case $host_os in
3804 cygwin* | mingw* | pw32* | cegcc*)
3805 # two different shell functions defined in ltmain.sh;
3806 # decide which one to use based on capabilities of $DLLTOOL
3807 case `$DLLTOOL --help 2>&1` in
3808 *--identify-strict*)
3809 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3810 ;;
3811 *)
3812 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3813 ;;
3814 esac
3815 ;;
3816 *)
3817 # fallback: assume linklib IS sharedlib
3818 lt_cv_sharedlib_from_linklib_cmd=$ECHO
3819 ;;
3820 esac
3821 ])
3822 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3823 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3824
3825 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3826 [Command to associate shared and link libraries])
3827 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3828
3829
3830 # _LT_PATH_MANIFEST_TOOL
3831 # ----------------------
3832 # locate the manifest tool
3833 m4_defun([_LT_PATH_MANIFEST_TOOL],
3834 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3835 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3836 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3837 [lt_cv_path_mainfest_tool=no
3838 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3839 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3840 cat conftest.err >&AS_MESSAGE_LOG_FD
3841 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3842 lt_cv_path_mainfest_tool=yes
3843 fi
3844 rm -f conftest*])
3845 if test yes != "$lt_cv_path_mainfest_tool"; then
3846 MANIFEST_TOOL=:
3847 fi
3848 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3849 ])# _LT_PATH_MANIFEST_TOOL
3850
3851
3852 # _LT_DLL_DEF_P([FILE])
3853 # ---------------------
3854 # True iff FILE is a Windows DLL '.def' file.
3855 # Keep in sync with func_dll_def_p in the libtool script
3856 AC_DEFUN([_LT_DLL_DEF_P],
3857 [dnl
3858 test DEF = "`$SED -n dnl
3859 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
3860 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
3861 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
3862 -e q dnl Only consider the first "real" line
3863 $1`" dnl
3864 ])# _LT_DLL_DEF_P
3865
3866
3867 # LT_LIB_M
3868 # --------
3869 # check for math library
3870 AC_DEFUN([LT_LIB_M],
3871 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3872 LIBM=
3873 case $host in
3874 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3875 # These system don't have libm, or don't need it
3876 ;;
3877 *-ncr-sysv4.3*)
3878 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
3879 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3880 ;;
3881 *)
3882 AC_CHECK_LIB(m, cos, LIBM=-lm)
3883 ;;
3884 esac
3885 AC_SUBST([LIBM])
3886 ])# LT_LIB_M
3887
3888 # Old name:
3889 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3890 dnl aclocal-1.4 backwards compatibility:
3891 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3892
3893
3894 # _LT_COMPILER_NO_RTTI([TAGNAME])
3895 # -------------------------------
3896 m4_defun([_LT_COMPILER_NO_RTTI],
3897 [m4_require([_LT_TAG_COMPILER])dnl
3898
3899 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3900
3901 if test yes = "$GCC"; then
3902 case $cc_basename in
3903 nvcc*)
3904 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3905 *)
3906 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3907 esac
3908
3909 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3910 lt_cv_prog_compiler_rtti_exceptions,
3911 [-fno-rtti -fno-exceptions], [],
3912 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3913 fi
3914 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3915 [Compiler flag to turn off builtin functions])
3916 ])# _LT_COMPILER_NO_RTTI
3917
3918
3919 # _LT_CMD_GLOBAL_SYMBOLS
3920 # ----------------------
3921 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3922 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3923 AC_REQUIRE([AC_PROG_CC])dnl
3924 AC_REQUIRE([AC_PROG_AWK])dnl
3925 AC_REQUIRE([LT_PATH_NM])dnl
3926 AC_REQUIRE([LT_PATH_LD])dnl
3927 m4_require([_LT_DECL_SED])dnl
3928 m4_require([_LT_DECL_EGREP])dnl
3929 m4_require([_LT_TAG_COMPILER])dnl
3930
3931 # Check for command to grab the raw symbol name followed by C symbol from nm.
3932 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3933 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3934 [
3935 # These are sane defaults that work on at least a few old systems.
3936 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3937
3938 # Character class describing NM global symbol codes.
3939 symcode='[[BCDEGRST]]'
3940
3941 # Regexp to match symbols that can be accessed directly from C.
3942 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3943
3944 # Define system-specific variables.
3945 case $host_os in
3946 aix*)
3947 symcode='[[BCDT]]'
3948 ;;
3949 cygwin* | mingw* | pw32* | cegcc*)
3950 symcode='[[ABCDGISTW]]'
3951 ;;
3952 hpux*)
3953 if test ia64 = "$host_cpu"; then
3954 symcode='[[ABCDEGRST]]'
3955 fi
3956 ;;
3957 irix* | nonstopux*)
3958 symcode='[[BCDEGRST]]'
3959 ;;
3960 osf*)
3961 symcode='[[BCDEGQRST]]'
3962 ;;
3963 solaris*)
3964 symcode='[[BDRT]]'
3965 ;;
3966 sco3.2v5*)
3967 symcode='[[DT]]'
3968 ;;
3969 sysv4.2uw2*)
3970 symcode='[[DT]]'
3971 ;;
3972 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3973 symcode='[[ABDT]]'
3974 ;;
3975 sysv4)
3976 symcode='[[DFNSTU]]'
3977 ;;
3978 esac
3979
3980 # If we're using GNU nm, then use its standard symbol codes.
3981 case `$NM -V 2>&1` in
3982 *GNU* | *'with BFD'*)
3983 symcode='[[ABCDGIRSTW]]' ;;
3984 esac
3985
3986 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3987 # Gets list of data symbols to import.
3988 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
3989 # Adjust the below global symbol transforms to fixup imported variables.
3990 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
3991 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
3992 lt_c_name_lib_hook="\
3993 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
3994 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
3995 else
3996 # Disable hooks by default.
3997 lt_cv_sys_global_symbol_to_import=
3998 lt_cdecl_hook=
3999 lt_c_name_hook=
4000 lt_c_name_lib_hook=
4001 fi
4002
4003 # Transform an extracted symbol line into a proper C declaration.
4004 # Some systems (esp. on ia64) link data and code symbols differently,
4005 # so use this general approach.
4006 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
4007 $lt_cdecl_hook\
4008 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
4009 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
4010
4011 # Transform an extracted symbol line into symbol name and symbol address
4012 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
4013 $lt_c_name_hook\
4014 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4015 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
4016
4017 # Transform an extracted symbol line into symbol name with lib prefix and
4018 # symbol address.
4019 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
4020 $lt_c_name_lib_hook\
4021 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4022 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
4023 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
4024
4025 # Handle CRLF in mingw tool chain
4026 opt_cr=
4027 case $build_os in
4028 mingw*)
4029 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4030 ;;
4031 esac
4032
4033 # Try without a prefix underscore, then with it.
4034 for ac_symprfx in "" "_"; do
4035
4036 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4037 symxfrm="\\1 $ac_symprfx\\2 \\2"
4038
4039 # Write the raw and C identifiers.
4040 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4041 # Fake it for dumpbin and say T for any non-static function,
4042 # D for any global variable and I for any imported variable.
4043 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
4044 # which start with @ or ?.
4045 lt_cv_sys_global_symbol_pipe="$AWK ['"\
4046 " {last_section=section; section=\$ 3};"\
4047 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4048 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4049 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
4050 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
4051 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
4052 " \$ 0!~/External *\|/{next};"\
4053 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4054 " {if(hide[section]) next};"\
4055 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
4056 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
4057 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
4058 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
4059 " ' prfx=^$ac_symprfx]"
4060 else
4061 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4062 fi
4063 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
4064
4065 # Check to see that the pipe works correctly.
4066 pipe_works=no
4067
4068 rm -f conftest*
4069 cat > conftest.$ac_ext <<_LT_EOF
4070 #ifdef __cplusplus
4071 extern "C" {
4072 #endif
4073 char nm_test_var;
4074 void nm_test_func(void);
4075 void nm_test_func(void){}
4076 #ifdef __cplusplus
4077 }
4078 #endif
4079 int main(){nm_test_var='a';nm_test_func();return(0);}
4080 _LT_EOF
4081
4082 if AC_TRY_EVAL(ac_compile); then
4083 # Now try to grab the symbols.
4084 nlist=conftest.nm
4085 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&AS_MESSAGE_LOG_FD
4086 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&AS_MESSAGE_LOG_FD && test -s "$nlist"; then
4087 # Try sorting and uniquifying the output.
4088 if sort "$nlist" | uniq > "$nlist"T; then
4089 mv -f "$nlist"T "$nlist"
4090 else
4091 rm -f "$nlist"T
4092 fi
4093
4094 # Make sure that we snagged all the symbols we need.
4095 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4096 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4097 cat <<_LT_EOF > conftest.$ac_ext
4098 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
4099 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4100 /* DATA imports from DLLs on WIN32 can't be const, because runtime
4101 relocations are performed -- see ld's documentation on pseudo-relocs. */
4102 # define LT@&t@_DLSYM_CONST
4103 #elif defined __osf__
4104 /* This system does not cope well with relocations in const data. */
4105 # define LT@&t@_DLSYM_CONST
4106 #else
4107 # define LT@&t@_DLSYM_CONST const
4108 #endif
4109
4110 #ifdef __cplusplus
4111 extern "C" {
4112 #endif
4113
4114 _LT_EOF
4115 # Now generate the symbol file.
4116 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4117
4118 cat <<_LT_EOF >> conftest.$ac_ext
4119
4120 /* The mapping between symbol names and symbols. */
4121 LT@&t@_DLSYM_CONST struct {
4122 const char *name;
4123 void *address;
4124 }
4125 lt__PROGRAM__LTX_preloaded_symbols[[]] =
4126 {
4127 { "@PROGRAM@", (void *) 0 },
4128 _LT_EOF
4129 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4130 cat <<\_LT_EOF >> conftest.$ac_ext
4131 {0, (void *) 0}
4132 };
4133
4134 /* This works around a problem in FreeBSD linker */
4135 #ifdef FREEBSD_WORKAROUND
4136 static const void *lt_preloaded_setup() {
4137 return lt__PROGRAM__LTX_preloaded_symbols;
4138 }
4139 #endif
4140
4141 #ifdef __cplusplus
4142 }
4143 #endif
4144 _LT_EOF
4145 # Now try linking the two files.
4146 mv conftest.$ac_objext conftstm.$ac_objext
4147 lt_globsym_save_LIBS=$LIBS
4148 lt_globsym_save_CFLAGS=$CFLAGS
4149 LIBS=conftstm.$ac_objext
4150 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4151 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
4152 pipe_works=yes
4153 fi
4154 LIBS=$lt_globsym_save_LIBS
4155 CFLAGS=$lt_globsym_save_CFLAGS
4156 else
4157 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4158 fi
4159 else
4160 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4161 fi
4162 else
4163 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4164 fi
4165 else
4166 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4167 cat conftest.$ac_ext >&5
4168 fi
4169 rm -rf conftest* conftst*
4170
4171 # Do not use the global_symbol_pipe unless it works.
4172 if test yes = "$pipe_works"; then
4173 break
4174 else
4175 lt_cv_sys_global_symbol_pipe=
4176 fi
4177 done
4178 ])
4179 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4180 lt_cv_sys_global_symbol_to_cdecl=
4181 fi
4182 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4183 AC_MSG_RESULT(failed)
4184 else
4185 AC_MSG_RESULT(ok)
4186 fi
4187
4188 # Response file support.
4189 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4190 nm_file_list_spec='@'
4191 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4192 nm_file_list_spec='@'
4193 fi
4194
4195 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4196 [Take the output of nm and produce a listing of raw symbols and C names])
4197 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4198 [Transform the output of nm in a proper C declaration])
4199 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
4200 [Transform the output of nm into a list of symbols to manually relocate])
4201 _LT_DECL([global_symbol_to_c_name_address],
4202 [lt_cv_sys_global_symbol_to_c_name_address], [1],
4203 [Transform the output of nm in a C name address pair])
4204 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4205 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4206 [Transform the output of nm in a C name address pair when lib prefix is needed])
4207 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
4208 [The name lister interface])
4209 _LT_DECL([], [nm_file_list_spec], [1],
4210 [Specify filename containing input files for $NM])
4211 ]) # _LT_CMD_GLOBAL_SYMBOLS
4212
4213
4214 # _LT_COMPILER_PIC([TAGNAME])
4215 # ---------------------------
4216 m4_defun([_LT_COMPILER_PIC],
4217 [m4_require([_LT_TAG_COMPILER])dnl
4218 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
4219 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4220 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4221
4222 m4_if([$1], [CXX], [
4223 # C++ specific cases for pic, static, wl, etc.
4224 if test yes = "$GXX"; then
4225 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4226 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4227
4228 case $host_os in
4229 aix*)
4230 # All AIX code is PIC.
4231 if test ia64 = "$host_cpu"; then
4232 # AIX 5 now supports IA64 processor
4233 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4234 fi
4235 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4236 ;;
4237
4238 amigaos*)
4239 case $host_cpu in
4240 powerpc)
4241 # see comment about AmigaOS4 .so support
4242 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4243 ;;
4244 m68k)
4245 # FIXME: we need at least 68020 code to build shared libraries, but
4246 # adding the '-m68020' flag to GCC prevents building anything better,
4247 # like '-m68040'.
4248 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4249 ;;
4250 esac
4251 ;;
4252
4253 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4254 # PIC is the default for these OSes.
4255 ;;
4256 mingw* | cygwin* | os2* | pw32* | cegcc*)
4257 # This hack is so that the source file can tell whether it is being
4258 # built for inclusion in a dll (and should export symbols for example).
4259 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4260 # (--disable-auto-import) libraries
4261 m4_if([$1], [GCJ], [],
4262 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4263 case $host_os in
4264 os2*)
4265 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4266 ;;
4267 esac
4268 ;;
4269 darwin* | rhapsody*)
4270 # PIC is the default on this platform
4271 # Common symbols not allowed in MH_DYLIB files
4272 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4273 ;;
4274 *djgpp*)
4275 # DJGPP does not support shared libraries at all
4276 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4277 ;;
4278 haiku*)
4279 # PIC is the default for Haiku.
4280 # The "-static" flag exists, but is broken.
4281 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4282 ;;
4283 interix[[3-9]]*)
4284 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4285 # Instead, we relocate shared libraries at runtime.
4286 ;;
4287 sysv4*MP*)
4288 if test -d /usr/nec; then
4289 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4290 fi
4291 ;;
4292 hpux*)
4293 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4294 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4295 # sets the default TLS model and affects inlining.
4296 case $host_cpu in
4297 hppa*64*)
4298 ;;
4299 *)
4300 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4301 ;;
4302 esac
4303 ;;
4304 *qnx* | *nto*)
4305 # QNX uses GNU C++, but need to define -shared option too, otherwise
4306 # it will coredump.
4307 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4308 ;;
4309 *)
4310 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4311 ;;
4312 esac
4313 else
4314 case $host_os in
4315 aix[[4-9]]*)
4316 # All AIX code is PIC.
4317 if test ia64 = "$host_cpu"; then
4318 # AIX 5 now supports IA64 processor
4319 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4320 else
4321 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4322 fi
4323 ;;
4324 chorus*)
4325 case $cc_basename in
4326 cxch68*)
4327 # Green Hills C++ Compiler
4328 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
4329 ;;
4330 esac
4331 ;;
4332 mingw* | cygwin* | os2* | pw32* | cegcc*)
4333 # This hack is so that the source file can tell whether it is being
4334 # built for inclusion in a dll (and should export symbols for example).
4335 m4_if([$1], [GCJ], [],
4336 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4337 ;;
4338 dgux*)
4339 case $cc_basename in
4340 ec++*)
4341 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4342 ;;
4343 ghcx*)
4344 # Green Hills C++ Compiler
4345 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4346 ;;
4347 *)
4348 ;;
4349 esac
4350 ;;
4351 freebsd* | dragonfly* | midnightbsd*)
4352 # FreeBSD uses GNU C++
4353 ;;
4354 hpux9* | hpux10* | hpux11*)
4355 case $cc_basename in
4356 CC*)
4357 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4358 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4359 if test ia64 != "$host_cpu"; then
4360 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4361 fi
4362 ;;
4363 aCC*)
4364 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4365 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4366 case $host_cpu in
4367 hppa*64*|ia64*)
4368 # +Z the default
4369 ;;
4370 *)
4371 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4372 ;;
4373 esac
4374 ;;
4375 *)
4376 ;;
4377 esac
4378 ;;
4379 interix*)
4380 # This is c89, which is MS Visual C++ (no shared libs)
4381 # Anyone wants to do a port?
4382 ;;
4383 irix5* | irix6* | nonstopux*)
4384 case $cc_basename in
4385 CC*)
4386 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4387 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4388 # CC pic flag -KPIC is the default.
4389 ;;
4390 *)
4391 ;;
4392 esac
4393 ;;
4394 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4395 case $cc_basename in
4396 KCC*)
4397 # KAI C++ Compiler
4398 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4399 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4400 ;;
4401 ecpc* )
4402 # old Intel C++ for x86_64, which still supported -KPIC.
4403 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4404 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4405 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4406 ;;
4407 icpc* )
4408 # Intel C++, used to be incompatible with GCC.
4409 # ICC 10 doesn't accept -KPIC any more.
4410 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4411 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4412 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4413 ;;
4414 pgCC* | pgcpp*)
4415 # Portland Group C++ compiler
4416 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4417 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4418 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4419 ;;
4420 cxx*)
4421 # Compaq C++
4422 # Make sure the PIC flag is empty. It appears that all Alpha
4423 # Linux and Compaq Tru64 Unix objects are PIC.
4424 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4425 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4426 ;;
4427 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4428 # IBM XL 8.0, 9.0 on PPC and BlueGene
4429 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4430 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4431 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4432 ;;
4433 *)
4434 case `$CC -V 2>&1 | $SED 5q` in
4435 *Sun\ C*)
4436 # Sun C++ 5.9
4437 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4438 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4439 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4440 ;;
4441 esac
4442 ;;
4443 esac
4444 ;;
4445 lynxos*)
4446 ;;
4447 m88k*)
4448 ;;
4449 mvs*)
4450 case $cc_basename in
4451 cxx*)
4452 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4453 ;;
4454 *)
4455 ;;
4456 esac
4457 ;;
4458 netbsd* | netbsdelf*-gnu)
4459 ;;
4460 *qnx* | *nto*)
4461 # QNX uses GNU C++, but need to define -shared option too, otherwise
4462 # it will coredump.
4463 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4464 ;;
4465 osf3* | osf4* | osf5*)
4466 case $cc_basename in
4467 KCC*)
4468 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4469 ;;
4470 RCC*)
4471 # Rational C++ 2.4.1
4472 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4473 ;;
4474 cxx*)
4475 # Digital/Compaq C++
4476 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4477 # Make sure the PIC flag is empty. It appears that all Alpha
4478 # Linux and Compaq Tru64 Unix objects are PIC.
4479 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4480 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4481 ;;
4482 *)
4483 ;;
4484 esac
4485 ;;
4486 psos*)
4487 ;;
4488 solaris*)
4489 case $cc_basename in
4490 CC* | sunCC*)
4491 # Sun C++ 4.2, 5.x and Centerline C++
4492 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4493 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4494 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4495 ;;
4496 gcx*)
4497 # Green Hills C++ Compiler
4498 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4499 ;;
4500 *)
4501 ;;
4502 esac
4503 ;;
4504 sunos4*)
4505 case $cc_basename in
4506 CC*)
4507 # Sun C++ 4.x
4508 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4509 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4510 ;;
4511 lcc*)
4512 # Lucid
4513 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4514 ;;
4515 *)
4516 ;;
4517 esac
4518 ;;
4519 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4520 case $cc_basename in
4521 CC*)
4522 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4523 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4524 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4525 ;;
4526 esac
4527 ;;
4528 tandem*)
4529 case $cc_basename in
4530 NCC*)
4531 # NonStop-UX NCC 3.20
4532 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4533 ;;
4534 *)
4535 ;;
4536 esac
4537 ;;
4538 vxworks*)
4539 ;;
4540 *)
4541 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4542 ;;
4543 esac
4544 fi
4545 ],
4546 [
4547 if test yes = "$GCC"; then
4548 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4549 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4550
4551 case $host_os in
4552 aix*)
4553 # All AIX code is PIC.
4554 if test ia64 = "$host_cpu"; then
4555 # AIX 5 now supports IA64 processor
4556 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4557 fi
4558 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4559 ;;
4560
4561 amigaos*)
4562 case $host_cpu in
4563 powerpc)
4564 # see comment about AmigaOS4 .so support
4565 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4566 ;;
4567 m68k)
4568 # FIXME: we need at least 68020 code to build shared libraries, but
4569 # adding the '-m68020' flag to GCC prevents building anything better,
4570 # like '-m68040'.
4571 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4572 ;;
4573 esac
4574 ;;
4575
4576 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4577 # PIC is the default for these OSes.
4578 ;;
4579
4580 mingw* | cygwin* | pw32* | os2* | cegcc*)
4581 # This hack is so that the source file can tell whether it is being
4582 # built for inclusion in a dll (and should export symbols for example).
4583 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4584 # (--disable-auto-import) libraries
4585 m4_if([$1], [GCJ], [],
4586 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4587 case $host_os in
4588 os2*)
4589 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4590 ;;
4591 esac
4592 ;;
4593
4594 darwin* | rhapsody*)
4595 # PIC is the default on this platform
4596 # Common symbols not allowed in MH_DYLIB files
4597 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4598 ;;
4599
4600 haiku*)
4601 # PIC is the default for Haiku.
4602 # The "-static" flag exists, but is broken.
4603 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4604 ;;
4605
4606 hpux*)
4607 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4608 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4609 # sets the default TLS model and affects inlining.
4610 case $host_cpu in
4611 hppa*64*)
4612 # +Z the default
4613 ;;
4614 *)
4615 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4616 ;;
4617 esac
4618 ;;
4619
4620 interix[[3-9]]*)
4621 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4622 # Instead, we relocate shared libraries at runtime.
4623 ;;
4624
4625 msdosdjgpp*)
4626 # Just because we use GCC doesn't mean we suddenly get shared libraries
4627 # on systems that don't support them.
4628 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4629 enable_shared=no
4630 ;;
4631
4632 *nto* | *qnx*)
4633 # QNX uses GNU C++, but need to define -shared option too, otherwise
4634 # it will coredump.
4635 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4636 ;;
4637
4638 sysv4*MP*)
4639 if test -d /usr/nec; then
4640 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4641 fi
4642 ;;
4643
4644 *)
4645 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4646 ;;
4647 esac
4648
4649 case $cc_basename in
4650 nvcc*) # Cuda Compiler Driver 2.2
4651 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4652 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4653 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4654 fi
4655 ;;
4656 esac
4657 else
4658 # PORTME Check for flag to pass linker flags through the system compiler.
4659 case $host_os in
4660 aix*)
4661 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4662 if test ia64 = "$host_cpu"; then
4663 # AIX 5 now supports IA64 processor
4664 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4665 else
4666 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4667 fi
4668 ;;
4669
4670 darwin* | rhapsody*)
4671 # PIC is the default on this platform
4672 # Common symbols not allowed in MH_DYLIB files
4673 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4674 case $cc_basename in
4675 nagfor*)
4676 # NAG Fortran compiler
4677 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4678 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4679 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4680 ;;
4681 esac
4682 ;;
4683
4684 mingw* | cygwin* | pw32* | os2* | cegcc*)
4685 # This hack is so that the source file can tell whether it is being
4686 # built for inclusion in a dll (and should export symbols for example).
4687 m4_if([$1], [GCJ], [],
4688 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4689 case $host_os in
4690 os2*)
4691 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4692 ;;
4693 esac
4694 ;;
4695
4696 hpux9* | hpux10* | hpux11*)
4697 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4698 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4699 # not for PA HP-UX.
4700 case $host_cpu in
4701 hppa*64*|ia64*)
4702 # +Z the default
4703 ;;
4704 *)
4705 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4706 ;;
4707 esac
4708 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4709 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4710 ;;
4711
4712 irix5* | irix6* | nonstopux*)
4713 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4714 # PIC (with -KPIC) is the default.
4715 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4716 ;;
4717
4718 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4719 case $cc_basename in
4720 # old Intel for x86_64, which still supported -KPIC.
4721 ecc*)
4722 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4723 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4724 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4725 ;;
4726 # flang / f18. f95 an alias for gfortran or flang on Debian
4727 flang* | f18* | f95*)
4728 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4729 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4730 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4731 ;;
4732 # icc used to be incompatible with GCC.
4733 # ICC 10 doesn't accept -KPIC any more.
4734 icc* | ifort*)
4735 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4736 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4737 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4738 ;;
4739 # Lahey Fortran 8.1.
4740 lf95*)
4741 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4742 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4743 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4744 ;;
4745 nagfor*)
4746 # NAG Fortran compiler
4747 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4748 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4749 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4750 ;;
4751 tcc*)
4752 # Fabrice Bellard et al's Tiny C Compiler
4753 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4754 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4755 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4756 ;;
4757 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4758 # Portland Group compilers (*not* the Pentium gcc compiler,
4759 # which looks to be a dead project)
4760 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4761 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4762 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4763 ;;
4764 ccc*)
4765 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4766 # All Alpha code is PIC.
4767 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4768 ;;
4769 xl* | bgxl* | bgf* | mpixl*)
4770 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4771 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4772 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4773 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4774 ;;
4775 *)
4776 case `$CC -V 2>&1 | $SED 5q` in
4777 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4778 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4779 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4780 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4781 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4782 ;;
4783 *Sun\ F* | *Sun*Fortran*)
4784 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4785 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4786 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4787 ;;
4788 *Sun\ C*)
4789 # Sun C 5.9
4790 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4791 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4792 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4793 ;;
4794 *Intel*\ [[CF]]*Compiler*)
4795 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4796 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4797 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4798 ;;
4799 *Portland\ Group*)
4800 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4801 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4802 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4803 ;;
4804 esac
4805 ;;
4806 esac
4807 ;;
4808
4809 newsos6)
4810 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4811 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4812 ;;
4813
4814 *nto* | *qnx*)
4815 # QNX uses GNU C++, but need to define -shared option too, otherwise
4816 # it will coredump.
4817 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4818 ;;
4819
4820 osf3* | osf4* | osf5*)
4821 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4822 # All OSF/1 code is PIC.
4823 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4824 ;;
4825
4826 rdos*)
4827 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4828 ;;
4829
4830 solaris*)
4831 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4832 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4833 case $cc_basename in
4834 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4835 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4836 *)
4837 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4838 esac
4839 ;;
4840
4841 sunos4*)
4842 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4843 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4844 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4845 ;;
4846
4847 sysv4 | sysv4.2uw2* | sysv4.3*)
4848 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4849 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4850 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4851 ;;
4852
4853 sysv4*MP*)
4854 if test -d /usr/nec; then
4855 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4856 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4857 fi
4858 ;;
4859
4860 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4861 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4862 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4863 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4864 ;;
4865
4866 unicos*)
4867 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4868 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4869 ;;
4870
4871 uts4*)
4872 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4873 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4874 ;;
4875
4876 *)
4877 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4878 ;;
4879 esac
4880 fi
4881 ])
4882 case $host_os in
4883 # For platforms that do not support PIC, -DPIC is meaningless:
4884 *djgpp*)
4885 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4886 ;;
4887 *)
4888 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4889 ;;
4890 esac
4891
4892 AC_CACHE_CHECK([for $compiler option to produce PIC],
4893 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4894 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4895 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4896
4897 #
4898 # Check to make sure the PIC flag actually works.
4899 #
4900 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4901 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4902 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4903 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4904 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4905 "" | " "*) ;;
4906 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4907 esac],
4908 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4909 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4910 fi
4911 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4912 [Additional compiler flags for building library objects])
4913
4914 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4915 [How to pass a linker flag through the compiler])
4916 #
4917 # Check to make sure the static flag actually works.
4918 #
4919 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4920 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4921 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4922 $lt_tmp_static_flag,
4923 [],
4924 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4925 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4926 [Compiler flag to prevent dynamic linking])
4927 ])# _LT_COMPILER_PIC
4928
4929
4930 # _LT_LINKER_SHLIBS([TAGNAME])
4931 # ----------------------------
4932 # See if the linker supports building shared libraries.
4933 m4_defun([_LT_LINKER_SHLIBS],
4934 [AC_REQUIRE([LT_PATH_LD])dnl
4935 AC_REQUIRE([LT_PATH_NM])dnl
4936 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4937 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4938 m4_require([_LT_DECL_EGREP])dnl
4939 m4_require([_LT_DECL_SED])dnl
4940 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4941 m4_require([_LT_TAG_COMPILER])dnl
4942 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4943 m4_if([$1], [CXX], [
4944 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4945 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4946 case $host_os in
4947 aix[[4-9]]*)
4948 # If we're using GNU nm, then we don't want the "-C" option.
4949 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
4950 # Without the "-l" option, or with the "-B" option, AIX nm treats
4951 # weak defined symbols like other global defined symbols, whereas
4952 # GNU nm marks them as "W".
4953 # While the 'weak' keyword is ignored in the Export File, we need
4954 # it in the Import File for the 'aix-soname' feature, so we have
4955 # to replace the "-B" option with "-P" for AIX nm.
4956 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4957 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
4958 else
4959 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
4960 fi
4961 ;;
4962 pw32*)
4963 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
4964 ;;
4965 cygwin* | mingw* | cegcc*)
4966 case $cc_basename in
4967 cl* | icl*)
4968 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4969 ;;
4970 *)
4971 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4972 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4973 ;;
4974 esac
4975 ;;
4976 linux* | k*bsd*-gnu | gnu*)
4977 _LT_TAGVAR(link_all_deplibs, $1)=no
4978 ;;
4979 *)
4980 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4981 ;;
4982 esac
4983 ], [
4984 runpath_var=
4985 _LT_TAGVAR(allow_undefined_flag, $1)=
4986 _LT_TAGVAR(always_export_symbols, $1)=no
4987 _LT_TAGVAR(archive_cmds, $1)=
4988 _LT_TAGVAR(archive_expsym_cmds, $1)=
4989 _LT_TAGVAR(compiler_needs_object, $1)=no
4990 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4991 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4992 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4993 _LT_TAGVAR(hardcode_automatic, $1)=no
4994 _LT_TAGVAR(hardcode_direct, $1)=no
4995 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4996 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4997 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4998 _LT_TAGVAR(hardcode_minus_L, $1)=no
4999 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5000 _LT_TAGVAR(inherit_rpath, $1)=no
5001 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5002 _LT_TAGVAR(module_cmds, $1)=
5003 _LT_TAGVAR(module_expsym_cmds, $1)=
5004 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
5005 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5006 _LT_TAGVAR(thread_safe_flag_spec, $1)=
5007 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5008 # include_expsyms should be a list of space-separated symbols to be *always*
5009 # included in the symbol list
5010 _LT_TAGVAR(include_expsyms, $1)=
5011 # exclude_expsyms can be an extended regexp of symbols to exclude
5012 # it will be wrapped by ' (' and ')$', so one must not match beginning or
5013 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
5014 # as well as any symbol that contains 'd'.
5015 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5016 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5017 # platforms (ab)use it in PIC code, but their linkers get confused if
5018 # the symbol is explicitly referenced. Since portable code cannot
5019 # rely on this symbol name, it's probably fine to never include it in
5020 # preloaded symbol tables.
5021 # Exclude shared library initialization/finalization symbols.
5022 dnl Note also adjust exclude_expsyms for C++ above.
5023 extract_expsyms_cmds=
5024
5025 case $host_os in
5026 cygwin* | mingw* | pw32* | cegcc*)
5027 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
5028 # When not using gcc, we currently assume that we are using
5029 # Microsoft Visual C++ or Intel C++ Compiler.
5030 if test yes != "$GCC"; then
5031 with_gnu_ld=no
5032 fi
5033 ;;
5034 interix*)
5035 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
5036 with_gnu_ld=yes
5037 ;;
5038 openbsd* | bitrig*)
5039 with_gnu_ld=no
5040 ;;
5041 linux* | k*bsd*-gnu | gnu*)
5042 _LT_TAGVAR(link_all_deplibs, $1)=no
5043 ;;
5044 esac
5045
5046 _LT_TAGVAR(ld_shlibs, $1)=yes
5047
5048 # On some targets, GNU ld is compatible enough with the native linker
5049 # that we're better off using the native interface for both.
5050 lt_use_gnu_ld_interface=no
5051 if test yes = "$with_gnu_ld"; then
5052 case $host_os in
5053 aix*)
5054 # The AIX port of GNU ld has always aspired to compatibility
5055 # with the native linker. However, as the warning in the GNU ld
5056 # block says, versions before 2.19.5* couldn't really create working
5057 # shared libraries, regardless of the interface used.
5058 case `$LD -v 2>&1` in
5059 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5060 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5061 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5062 *)
5063 lt_use_gnu_ld_interface=yes
5064 ;;
5065 esac
5066 ;;
5067 *)
5068 lt_use_gnu_ld_interface=yes
5069 ;;
5070 esac
5071 fi
5072
5073 if test yes = "$lt_use_gnu_ld_interface"; then
5074 # If archive_cmds runs LD, not CC, wlarc should be empty
5075 wlarc='$wl'
5076
5077 # Set some defaults for GNU ld with shared library support. These
5078 # are reset later if shared libraries are not supported. Putting them
5079 # here allows them to be overridden if necessary.
5080 runpath_var=LD_RUN_PATH
5081 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5082 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
5083 # ancient GNU ld didn't support --whole-archive et. al.
5084 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5085 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
5086 else
5087 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5088 fi
5089 supports_anon_versioning=no
5090 case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in
5091 *GNU\ gold*) supports_anon_versioning=yes ;;
5092 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5093 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5094 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5095 *\ 2.11.*) ;; # other 2.11 versions
5096 *) supports_anon_versioning=yes ;;
5097 esac
5098
5099 # See if GNU ld supports shared libraries.
5100 case $host_os in
5101 aix[[3-9]]*)
5102 # On AIX/PPC, the GNU linker is very broken
5103 if test ia64 != "$host_cpu"; then
5104 _LT_TAGVAR(ld_shlibs, $1)=no
5105 cat <<_LT_EOF 1>&2
5106
5107 *** Warning: the GNU linker, at least up to release 2.19, is reported
5108 *** to be unable to reliably create shared libraries on AIX.
5109 *** Therefore, libtool is disabling shared libraries support. If you
5110 *** really care for shared libraries, you may want to install binutils
5111 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5112 *** You will then need to restart the configuration process.
5113
5114 _LT_EOF
5115 fi
5116 ;;
5117
5118 amigaos*)
5119 case $host_cpu in
5120 powerpc)
5121 # see comment about AmigaOS4 .so support
5122 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5123 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5124 ;;
5125 m68k)
5126 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5127 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5128 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5129 ;;
5130 esac
5131 ;;
5132
5133 beos*)
5134 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5135 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5136 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5137 # support --undefined. This deserves some investigation. FIXME
5138 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5139 else
5140 _LT_TAGVAR(ld_shlibs, $1)=no
5141 fi
5142 ;;
5143
5144 cygwin* | mingw* | pw32* | cegcc*)
5145 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5146 # as there is no search path for DLLs.
5147 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5148 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
5149 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5150 _LT_TAGVAR(always_export_symbols, $1)=no
5151 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5152 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5153 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5154
5155 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5156 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5157 # If the export-symbols file already is a .def file, use it as
5158 # is; otherwise, prepend EXPORTS...
5159 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5160 cp $export_symbols $output_objdir/$soname.def;
5161 else
5162 echo EXPORTS > $output_objdir/$soname.def;
5163 cat $export_symbols >> $output_objdir/$soname.def;
5164 fi~
5165 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5166 else
5167 _LT_TAGVAR(ld_shlibs, $1)=no
5168 fi
5169 ;;
5170
5171 haiku*)
5172 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5173 _LT_TAGVAR(link_all_deplibs, $1)=yes
5174 ;;
5175
5176 os2*)
5177 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5178 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5179 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5180 shrext_cmds=.dll
5181 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5182 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5183 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5184 $ECHO EXPORTS >> $output_objdir/$libname.def~
5185 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5186 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5187 emximp -o $lib $output_objdir/$libname.def'
5188 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5189 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5190 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5191 $ECHO EXPORTS >> $output_objdir/$libname.def~
5192 prefix_cmds="$SED"~
5193 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5194 prefix_cmds="$prefix_cmds -e 1d";
5195 fi~
5196 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5197 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5198 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5199 emximp -o $lib $output_objdir/$libname.def'
5200 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5201 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5202 _LT_TAGVAR(file_list_spec, $1)='@'
5203 ;;
5204
5205 interix[[3-9]]*)
5206 _LT_TAGVAR(hardcode_direct, $1)=no
5207 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5208 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5209 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5210 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5211 # Instead, shared libraries are loaded at an image base (0x10000000 by
5212 # default) and relocated if they conflict, which is a slow very memory
5213 # consuming and fragmenting process. To avoid this, we pick a random,
5214 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5215 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5216 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5217 _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5218 ;;
5219
5220 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5221 tmp_diet=no
5222 if test linux-dietlibc = "$host_os"; then
5223 case $cc_basename in
5224 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5225 esac
5226 fi
5227 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5228 && test no = "$tmp_diet"
5229 then
5230 tmp_addflag=' $pic_flag'
5231 tmp_sharedflag='-shared'
5232 case $cc_basename,$host_cpu in
5233 pgcc*) # Portland Group C compiler
5234 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5235 tmp_addflag=' $pic_flag'
5236 ;;
5237 pgf77* | pgf90* | pgf95* | pgfortran*)
5238 # Portland Group f77 and f90 compilers
5239 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5240 tmp_addflag=' $pic_flag -Mnomain' ;;
5241 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5242 tmp_addflag=' -i_dynamic' ;;
5243 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5244 tmp_addflag=' -i_dynamic -nofor_main' ;;
5245 ifc* | ifort*) # Intel Fortran compiler
5246 tmp_addflag=' -nofor_main' ;;
5247 lf95*) # Lahey Fortran 8.1
5248 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5249 tmp_sharedflag='--shared' ;;
5250 nagfor*) # NAGFOR 5.3
5251 tmp_sharedflag='-Wl,-shared' ;;
5252 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5253 tmp_sharedflag='-qmkshrobj'
5254 tmp_addflag= ;;
5255 nvcc*) # Cuda Compiler Driver 2.2
5256 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5257 _LT_TAGVAR(compiler_needs_object, $1)=yes
5258 ;;
5259 esac
5260 case `$CC -V 2>&1 | $SED 5q` in
5261 *Sun\ C*) # Sun C 5.9
5262 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5263 _LT_TAGVAR(compiler_needs_object, $1)=yes
5264 tmp_sharedflag='-G' ;;
5265 *Sun\ F*) # Sun Fortran 8.3
5266 tmp_sharedflag='-G' ;;
5267 esac
5268 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5269
5270 if test yes = "$supports_anon_versioning"; then
5271 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5272 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5273 echo "local: *; };" >> $output_objdir/$libname.ver~
5274 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
5275 fi
5276
5277 case $cc_basename in
5278 tcc*)
5279 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5280 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
5281 ;;
5282 xlf* | bgf* | bgxlf* | mpixlf*)
5283 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5284 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5285 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5286 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5287 if test yes = "$supports_anon_versioning"; then
5288 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5289 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5290 echo "local: *; };" >> $output_objdir/$libname.ver~
5291 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5292 fi
5293 ;;
5294 esac
5295 else
5296 _LT_TAGVAR(ld_shlibs, $1)=no
5297 fi
5298 ;;
5299
5300 netbsd* | netbsdelf*-gnu)
5301 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5302 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5303 wlarc=
5304 else
5305 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5306 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5307 fi
5308 ;;
5309
5310 solaris*)
5311 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5312 _LT_TAGVAR(ld_shlibs, $1)=no
5313 cat <<_LT_EOF 1>&2
5314
5315 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5316 *** create shared libraries on Solaris systems. Therefore, libtool
5317 *** is disabling shared libraries support. We urge you to upgrade GNU
5318 *** binutils to release 2.9.1 or newer. Another option is to modify
5319 *** your PATH or compiler configuration so that the native linker is
5320 *** used, and then restart.
5321
5322 _LT_EOF
5323 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5324 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5325 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5326 else
5327 _LT_TAGVAR(ld_shlibs, $1)=no
5328 fi
5329 ;;
5330
5331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5332 case `$LD -v 2>&1` in
5333 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5334 _LT_TAGVAR(ld_shlibs, $1)=no
5335 cat <<_LT_EOF 1>&2
5336
5337 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
5338 *** reliably create shared libraries on SCO systems. Therefore, libtool
5339 *** is disabling shared libraries support. We urge you to upgrade GNU
5340 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5341 *** your PATH or compiler configuration so that the native linker is
5342 *** used, and then restart.
5343
5344 _LT_EOF
5345 ;;
5346 *)
5347 # For security reasons, it is highly recommended that you always
5348 # use absolute paths for naming shared libraries, and exclude the
5349 # DT_RUNPATH tag from executables and libraries. But doing so
5350 # requires that you compile everything twice, which is a pain.
5351 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5352 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5353 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5354 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5355 else
5356 _LT_TAGVAR(ld_shlibs, $1)=no
5357 fi
5358 ;;
5359 esac
5360 ;;
5361
5362 sunos4*)
5363 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5364 wlarc=
5365 _LT_TAGVAR(hardcode_direct, $1)=yes
5366 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5367 ;;
5368
5369 *)
5370 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5371 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5372 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5373 else
5374 _LT_TAGVAR(ld_shlibs, $1)=no
5375 fi
5376 ;;
5377 esac
5378
5379 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
5380 runpath_var=
5381 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5382 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5383 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5384 fi
5385 else
5386 # PORTME fill in a description of your system's linker (not GNU ld)
5387 case $host_os in
5388 aix3*)
5389 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5390 _LT_TAGVAR(always_export_symbols, $1)=yes
5391 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5392 # Note: this linker hardcodes the directories in LIBPATH if there
5393 # are no directories specified by -L.
5394 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5395 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
5396 # Neither direct hardcoding nor static linking is supported with a
5397 # broken collect2.
5398 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5399 fi
5400 ;;
5401
5402 aix[[4-9]]*)
5403 if test ia64 = "$host_cpu"; then
5404 # On IA64, the linker does run time linking by default, so we don't
5405 # have to do anything special.
5406 aix_use_runtimelinking=no
5407 exp_sym_flag='-Bexport'
5408 no_entry_flag=
5409 else
5410 # If we're using GNU nm, then we don't want the "-C" option.
5411 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5412 # Without the "-l" option, or with the "-B" option, AIX nm treats
5413 # weak defined symbols like other global defined symbols, whereas
5414 # GNU nm marks them as "W".
5415 # While the 'weak' keyword is ignored in the Export File, we need
5416 # it in the Import File for the 'aix-soname' feature, so we have
5417 # to replace the "-B" option with "-P" for AIX nm.
5418 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5419 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
5420 else
5421 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
5422 fi
5423 aix_use_runtimelinking=no
5424
5425 # Test if we are trying to use run time linking or normal
5426 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5427 # have runtime linking enabled, and use it for executables.
5428 # For shared libraries, we enable/disable runtime linking
5429 # depending on the kind of the shared library created -
5430 # when "with_aix_soname,aix_use_runtimelinking" is:
5431 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
5432 # "aix,yes" lib.so shared, rtl:yes, for executables
5433 # lib.a static archive
5434 # "both,no" lib.so.V(shr.o) shared, rtl:yes
5435 # lib.a(lib.so.V) shared, rtl:no, for executables
5436 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
5437 # lib.a(lib.so.V) shared, rtl:no
5438 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
5439 # lib.a static archive
5440 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5441 for ld_flag in $LDFLAGS; do
5442 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
5443 aix_use_runtimelinking=yes
5444 break
5445 fi
5446 done
5447 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
5448 # With aix-soname=svr4, we create the lib.so.V shared archives only,
5449 # so we don't have lib.a shared libs to link our executables.
5450 # We have to force runtime linking in this case.
5451 aix_use_runtimelinking=yes
5452 LDFLAGS="$LDFLAGS -Wl,-brtl"
5453 fi
5454 ;;
5455 esac
5456
5457 exp_sym_flag='-bexport'
5458 no_entry_flag='-bnoentry'
5459 fi
5460
5461 # When large executables or shared objects are built, AIX ld can
5462 # have problems creating the table of contents. If linking a library
5463 # or program results in "error TOC overflow" add -mminimal-toc to
5464 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5465 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5466
5467 _LT_TAGVAR(archive_cmds, $1)=''
5468 _LT_TAGVAR(hardcode_direct, $1)=yes
5469 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5470 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5471 _LT_TAGVAR(link_all_deplibs, $1)=yes
5472 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
5473 case $with_aix_soname,$aix_use_runtimelinking in
5474 aix,*) ;; # traditional, no import file
5475 svr4,* | *,yes) # use import file
5476 # The Import File defines what to hardcode.
5477 _LT_TAGVAR(hardcode_direct, $1)=no
5478 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5479 ;;
5480 esac
5481
5482 if test yes = "$GCC"; then
5483 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5484 # We only want to do this on AIX 4.2 and lower, the check
5485 # below for broken collect2 doesn't work under 4.3+
5486 collect2name=`$CC -print-prog-name=collect2`
5487 if test -f "$collect2name" &&
5488 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5489 then
5490 # We have reworked collect2
5491 :
5492 else
5493 # We have old collect2
5494 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5495 # It fails to find uninstalled libraries when the uninstalled
5496 # path is not listed in the libpath. Setting hardcode_minus_L
5497 # to unsupported forces relinking
5498 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5499 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5500 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5501 fi
5502 ;;
5503 esac
5504 shared_flag='-shared'
5505 if test yes = "$aix_use_runtimelinking"; then
5506 shared_flag="$shared_flag "'$wl-G'
5507 fi
5508 # Need to ensure runtime linking is disabled for the traditional
5509 # shared library, or the linker may eventually find shared libraries
5510 # /with/ Import File - we do not want to mix them.
5511 shared_flag_aix='-shared'
5512 shared_flag_svr4='-shared $wl-G'
5513 else
5514 # not using gcc
5515 if test ia64 = "$host_cpu"; then
5516 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5517 # chokes on -Wl,-G. The following line is correct:
5518 shared_flag='-G'
5519 else
5520 if test yes = "$aix_use_runtimelinking"; then
5521 shared_flag='$wl-G'
5522 else
5523 shared_flag='$wl-bM:SRE'
5524 fi
5525 shared_flag_aix='$wl-bM:SRE'
5526 shared_flag_svr4='$wl-G'
5527 fi
5528 fi
5529
5530 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
5531 # It seems that -bexpall does not export symbols beginning with
5532 # underscore (_), so it is better to generate a list of symbols to export.
5533 _LT_TAGVAR(always_export_symbols, $1)=yes
5534 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
5535 # Warning - without using the other runtime loading flags (-brtl),
5536 # -berok will link without error, but may produce a broken library.
5537 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5538 # Determine the default libpath from the value encoded in an
5539 # empty executable.
5540 _LT_SYS_MODULE_PATH_AIX([$1])
5541 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5542 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
5543 else
5544 if test ia64 = "$host_cpu"; then
5545 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
5546 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5547 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
5548 else
5549 # Determine the default libpath from the value encoded in an
5550 # empty executable.
5551 _LT_SYS_MODULE_PATH_AIX([$1])
5552 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5553 # Warning - without using the other run time loading flags,
5554 # -berok will link without error, but may produce a broken library.
5555 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
5556 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
5557 if test yes = "$with_gnu_ld"; then
5558 # We only use this code for GNU lds that support --whole-archive.
5559 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
5560 else
5561 # Exported symbols can be pulled into shared objects from archives
5562 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5563 fi
5564 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5565 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
5566 # -brtl affects multiple linker settings, -berok does not and is overridden later
5567 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
5568 if test svr4 != "$with_aix_soname"; then
5569 # This is similar to how AIX traditionally builds its shared libraries.
5570 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
5571 fi
5572 if test aix != "$with_aix_soname"; then
5573 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
5574 else
5575 # used by -dlpreopen to get the symbols
5576 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
5577 fi
5578 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
5579 fi
5580 fi
5581 ;;
5582
5583 amigaos*)
5584 case $host_cpu in
5585 powerpc)
5586 # see comment about AmigaOS4 .so support
5587 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5588 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5589 ;;
5590 m68k)
5591 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5592 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5593 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5594 ;;
5595 esac
5596 ;;
5597
5598 bsdi[[45]]*)
5599 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5600 ;;
5601
5602 cygwin* | mingw* | pw32* | cegcc*)
5603 # When not using gcc, we currently assume that we are using
5604 # Microsoft Visual C++ or Intel C++ Compiler.
5605 # hardcode_libdir_flag_spec is actually meaningless, as there is
5606 # no search path for DLLs.
5607 case $cc_basename in
5608 cl* | icl*)
5609 # Native MSVC or ICC
5610 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5611 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5612 _LT_TAGVAR(always_export_symbols, $1)=yes
5613 _LT_TAGVAR(file_list_spec, $1)='@'
5614 # Tell ltmain to make .lib files, not .a files.
5615 libext=lib
5616 # Tell ltmain to make .dll files, not .so files.
5617 shrext_cmds=.dll
5618 # FIXME: Setting linknames here is a bad hack.
5619 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
5620 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5621 cp "$export_symbols" "$output_objdir/$soname.def";
5622 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
5623 else
5624 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
5625 fi~
5626 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5627 linknames='
5628 # The linker will not automatically build a static lib if we build a DLL.
5629 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5630 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5631 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5632 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5633 # Don't use ranlib
5634 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5635 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5636 lt_tool_outputfile="@TOOL_OUTPUT@"~
5637 case $lt_outputfile in
5638 *.exe|*.EXE) ;;
5639 *)
5640 lt_outputfile=$lt_outputfile.exe
5641 lt_tool_outputfile=$lt_tool_outputfile.exe
5642 ;;
5643 esac~
5644 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
5645 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5646 $RM "$lt_outputfile.manifest";
5647 fi'
5648 ;;
5649 *)
5650 # Assume MSVC and ICC wrapper
5651 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5652 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5653 # Tell ltmain to make .lib files, not .a files.
5654 libext=lib
5655 # Tell ltmain to make .dll files, not .so files.
5656 shrext_cmds=.dll
5657 # FIXME: Setting linknames here is a bad hack.
5658 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5659 # The linker will automatically build a .lib file if we build a DLL.
5660 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5661 # FIXME: Should let the user specify the lib program.
5662 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5663 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5664 ;;
5665 esac
5666 ;;
5667
5668 darwin* | rhapsody*)
5669 _LT_DARWIN_LINKER_FEATURES($1)
5670 ;;
5671
5672 dgux*)
5673 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5674 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5675 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5676 ;;
5677
5678 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5679 # support. Future versions do this automatically, but an explicit c++rt0.o
5680 # does not break anything, and helps significantly (at the cost of a little
5681 # extra space).
5682 freebsd2.2*)
5683 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5684 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5685 _LT_TAGVAR(hardcode_direct, $1)=yes
5686 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5687 ;;
5688
5689 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5690 freebsd2.*)
5691 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5692 _LT_TAGVAR(hardcode_direct, $1)=yes
5693 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5694 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5695 ;;
5696
5697 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5698 freebsd* | dragonfly* | midnightbsd*)
5699 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5700 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5701 _LT_TAGVAR(hardcode_direct, $1)=yes
5702 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5703 ;;
5704
5705 hpux9*)
5706 if test yes = "$GCC"; then
5707 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
5708 else
5709 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
5710 fi
5711 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5712 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5713 _LT_TAGVAR(hardcode_direct, $1)=yes
5714
5715 # hardcode_minus_L: Not really in the search PATH,
5716 # but as the default location of the library.
5717 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5718 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5719 ;;
5720
5721 hpux10*)
5722 if test yes,no = "$GCC,$with_gnu_ld"; then
5723 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5724 else
5725 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5726 fi
5727 if test no = "$with_gnu_ld"; then
5728 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5729 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5730 _LT_TAGVAR(hardcode_direct, $1)=yes
5731 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5732 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5733 # hardcode_minus_L: Not really in the search PATH,
5734 # but as the default location of the library.
5735 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5736 fi
5737 ;;
5738
5739 hpux11*)
5740 if test yes,no = "$GCC,$with_gnu_ld"; then
5741 case $host_cpu in
5742 hppa*64*)
5743 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5744 ;;
5745 ia64*)
5746 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5747 ;;
5748 *)
5749 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5750 ;;
5751 esac
5752 else
5753 case $host_cpu in
5754 hppa*64*)
5755 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5756 ;;
5757 ia64*)
5758 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5759 ;;
5760 *)
5761 m4_if($1, [], [
5762 # Older versions of the 11.00 compiler do not understand -b yet
5763 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5764 _LT_LINKER_OPTION([if $CC understands -b],
5765 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5766 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5767 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5768 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5769 ;;
5770 esac
5771 fi
5772 if test no = "$with_gnu_ld"; then
5773 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5774 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5775
5776 case $host_cpu in
5777 hppa*64*|ia64*)
5778 _LT_TAGVAR(hardcode_direct, $1)=no
5779 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5780 ;;
5781 *)
5782 _LT_TAGVAR(hardcode_direct, $1)=yes
5783 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5784 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5785
5786 # hardcode_minus_L: Not really in the search PATH,
5787 # but as the default location of the library.
5788 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5789 ;;
5790 esac
5791 fi
5792 ;;
5793
5794 irix5* | irix6* | nonstopux*)
5795 if test yes = "$GCC"; then
5796 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
5797 # Try to use the -exported_symbol ld option, if it does not
5798 # work, assume that -exports_file does not work either and
5799 # implicitly export all symbols.
5800 # This should be the same for all languages, so no per-tag cache variable.
5801 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5802 [lt_cv_irix_exported_symbol],
5803 [save_LDFLAGS=$LDFLAGS
5804 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
5805 AC_LINK_IFELSE(
5806 [AC_LANG_SOURCE(
5807 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5808 [C++], [[int foo (void) { return 0; }]],
5809 [Fortran 77], [[
5810 subroutine foo
5811 end]],
5812 [Fortran], [[
5813 subroutine foo
5814 end]])])],
5815 [lt_cv_irix_exported_symbol=yes],
5816 [lt_cv_irix_exported_symbol=no])
5817 LDFLAGS=$save_LDFLAGS])
5818 if test yes = "$lt_cv_irix_exported_symbol"; then
5819 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
5820 fi
5821 _LT_TAGVAR(link_all_deplibs, $1)=no
5822 else
5823 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
5824 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
5825 fi
5826 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5827 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5828 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5829 _LT_TAGVAR(inherit_rpath, $1)=yes
5830 _LT_TAGVAR(link_all_deplibs, $1)=yes
5831 ;;
5832
5833 linux*)
5834 case $cc_basename in
5835 tcc*)
5836 # Fabrice Bellard et al's Tiny C Compiler
5837 _LT_TAGVAR(ld_shlibs, $1)=yes
5838 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5839 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5840 ;;
5841 esac
5842 ;;
5843
5844 netbsd* | netbsdelf*-gnu)
5845 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5846 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5847 else
5848 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5849 fi
5850 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5851 _LT_TAGVAR(hardcode_direct, $1)=yes
5852 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5853 ;;
5854
5855 newsos6)
5856 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5857 _LT_TAGVAR(hardcode_direct, $1)=yes
5858 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5859 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5860 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5861 ;;
5862
5863 *nto* | *qnx*)
5864 ;;
5865
5866 openbsd* | bitrig*)
5867 if test -f /usr/libexec/ld.so; then
5868 _LT_TAGVAR(hardcode_direct, $1)=yes
5869 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5870 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5871 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5872 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5873 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
5874 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5875 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5876 else
5877 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5878 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5879 fi
5880 else
5881 _LT_TAGVAR(ld_shlibs, $1)=no
5882 fi
5883 ;;
5884
5885 os2*)
5886 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5887 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5888 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5889 shrext_cmds=.dll
5890 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5891 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5892 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5893 $ECHO EXPORTS >> $output_objdir/$libname.def~
5894 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5895 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5896 emximp -o $lib $output_objdir/$libname.def'
5897 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5898 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5899 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5900 $ECHO EXPORTS >> $output_objdir/$libname.def~
5901 prefix_cmds="$SED"~
5902 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5903 prefix_cmds="$prefix_cmds -e 1d";
5904 fi~
5905 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5906 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5907 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5908 emximp -o $lib $output_objdir/$libname.def'
5909 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5910 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5911 _LT_TAGVAR(file_list_spec, $1)='@'
5912 ;;
5913
5914 osf3*)
5915 if test yes = "$GCC"; then
5916 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5917 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
5918 else
5919 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5920 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
5921 fi
5922 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5923 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5924 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5925 ;;
5926
5927 osf4* | osf5*) # as osf3* with the addition of -msym flag
5928 if test yes = "$GCC"; then
5929 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5930 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
5931 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5932 else
5933 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5934 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
5935 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5936 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
5937
5938 # Both c and cxx compiler support -rpath directly
5939 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5940 fi
5941 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5942 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5943 ;;
5944
5945 solaris*)
5946 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5947 if test yes = "$GCC"; then
5948 wlarc='$wl'
5949 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5950 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5951 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5952 else
5953 case `$CC -V 2>&1` in
5954 *"Compilers 5.0"*)
5955 wlarc=''
5956 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
5957 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5958 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5959 ;;
5960 *)
5961 wlarc='$wl'
5962 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5963 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5964 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5965 ;;
5966 esac
5967 fi
5968 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5969 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5970 case $host_os in
5971 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5972 *)
5973 # The compiler driver will combine and reorder linker options,
5974 # but understands '-z linker_flag'. GCC discards it without '$wl',
5975 # but is careful enough not to reorder.
5976 # Supported since Solaris 2.6 (maybe 2.5.1?)
5977 if test yes = "$GCC"; then
5978 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
5979 else
5980 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5981 fi
5982 ;;
5983 esac
5984 _LT_TAGVAR(link_all_deplibs, $1)=yes
5985 ;;
5986
5987 sunos4*)
5988 if test sequent = "$host_vendor"; then
5989 # Use $CC to link under sequent, because it throws in some extra .o
5990 # files that make .init and .fini sections work.
5991 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5992 else
5993 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5994 fi
5995 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5996 _LT_TAGVAR(hardcode_direct, $1)=yes
5997 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5998 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5999 ;;
6000
6001 sysv4)
6002 case $host_vendor in
6003 sni)
6004 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6005 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6006 ;;
6007 siemens)
6008 ## LD is ld it makes a PLAMLIB
6009 ## CC just makes a GrossModule.
6010 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6011 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6012 _LT_TAGVAR(hardcode_direct, $1)=no
6013 ;;
6014 motorola)
6015 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6016 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6017 ;;
6018 esac
6019 runpath_var='LD_RUN_PATH'
6020 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6021 ;;
6022
6023 sysv4.3*)
6024 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6025 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6026 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6027 ;;
6028
6029 sysv4*MP*)
6030 if test -d /usr/nec; then
6031 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6032 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6033 runpath_var=LD_RUN_PATH
6034 hardcode_runpath_var=yes
6035 _LT_TAGVAR(ld_shlibs, $1)=yes
6036 fi
6037 ;;
6038
6039 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6040 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6041 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6042 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6043 runpath_var='LD_RUN_PATH'
6044
6045 if test yes = "$GCC"; then
6046 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6047 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6048 else
6049 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6050 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6051 fi
6052 ;;
6053
6054 sysv5* | sco3.2v5* | sco5v6*)
6055 # Note: We CANNOT use -z defs as we might desire, because we do not
6056 # link with -lc, and that would cause any symbols used from libc to
6057 # always be unresolved, which means just about no library would
6058 # ever link correctly. If we're not using GNU ld we use -z text
6059 # though, which does catch some bad symbols but isn't as heavy-handed
6060 # as -z defs.
6061 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6062 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
6063 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6064 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6065 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
6066 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6067 _LT_TAGVAR(link_all_deplibs, $1)=yes
6068 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
6069 runpath_var='LD_RUN_PATH'
6070
6071 if test yes = "$GCC"; then
6072 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6073 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6074 else
6075 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6076 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6077 fi
6078 ;;
6079
6080 uts4*)
6081 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6082 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6083 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6084 ;;
6085
6086 *)
6087 _LT_TAGVAR(ld_shlibs, $1)=no
6088 ;;
6089 esac
6090
6091 if test sni = "$host_vendor"; then
6092 case $host in
6093 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6094 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
6095 ;;
6096 esac
6097 fi
6098 fi
6099 ])
6100 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6101 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
6102
6103 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
6104
6105 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
6106 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
6107 _LT_DECL([], [extract_expsyms_cmds], [2],
6108 [The commands to extract the exported symbol list from a shared archive])
6109
6110 #
6111 # Do we need to explicitly link libc?
6112 #
6113 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6114 x|xyes)
6115 # Assume -lc should be added
6116 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6117
6118 if test yes,yes = "$GCC,$enable_shared"; then
6119 case $_LT_TAGVAR(archive_cmds, $1) in
6120 *'~'*)
6121 # FIXME: we may have to deal with multi-command sequences.
6122 ;;
6123 '$CC '*)
6124 # Test whether the compiler implicitly links with -lc since on some
6125 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6126 # to ld, don't add -lc before -lgcc.
6127 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6128 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
6129 [$RM conftest*
6130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6131
6132 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6133 soname=conftest
6134 lib=conftest
6135 libobjs=conftest.$ac_objext
6136 deplibs=
6137 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6138 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6139 compiler_flags=-v
6140 linker_flags=-v
6141 verstring=
6142 output_objdir=.
6143 libname=conftest
6144 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6145 _LT_TAGVAR(allow_undefined_flag, $1)=
6146 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6147 then
6148 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6149 else
6150 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6151 fi
6152 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6153 else
6154 cat conftest.err 1>&5
6155 fi
6156 $RM conftest*
6157 ])
6158 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
6159 ;;
6160 esac
6161 fi
6162 ;;
6163 esac
6164
6165 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6166 [Whether or not to add -lc for building shared libraries])
6167 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6168 [enable_shared_with_static_runtimes], [0],
6169 [Whether or not to disallow shared libs when runtime libs are static])
6170 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6171 [Compiler flag to allow reflexive dlopens])
6172 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
6173 [Compiler flag to generate shared objects directly from archives])
6174 _LT_TAGDECL([], [compiler_needs_object], [1],
6175 [Whether the compiler copes with passing no objects directly])
6176 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6177 [Create an old-style archive from a shared archive])
6178 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6179 [Create a temporary old-style archive to link instead of a shared archive])
6180 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6181 _LT_TAGDECL([], [archive_expsym_cmds], [2])
6182 _LT_TAGDECL([], [module_cmds], [2],
6183 [Commands used to build a loadable module if different from building
6184 a shared archive.])
6185 _LT_TAGDECL([], [module_expsym_cmds], [2])
6186 _LT_TAGDECL([], [with_gnu_ld], [1],
6187 [Whether we are building with GNU ld or not])
6188 _LT_TAGDECL([], [allow_undefined_flag], [1],
6189 [Flag that allows shared libraries with undefined symbols to be built])
6190 _LT_TAGDECL([], [no_undefined_flag], [1],
6191 [Flag that enforces no undefined symbols])
6192 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6193 [Flag to hardcode $libdir into a binary during linking.
6194 This must work even if $libdir does not exist])
6195 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
6196 [Whether we need a single "-rpath" flag with a separated argument])
6197 _LT_TAGDECL([], [hardcode_direct], [0],
6198 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
6199 DIR into the resulting binary])
6200 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
6201 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
6202 DIR into the resulting binary and the resulting library dependency is
6203 "absolute", i.e impossible to change by setting $shlibpath_var if the
6204 library is relocated])
6205 _LT_TAGDECL([], [hardcode_minus_L], [0],
6206 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6207 into the resulting binary])
6208 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6209 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6210 into the resulting binary])
6211 _LT_TAGDECL([], [hardcode_automatic], [0],
6212 [Set to "yes" if building a shared library automatically hardcodes DIR
6213 into the library and all subsequent libraries and executables linked
6214 against it])
6215 _LT_TAGDECL([], [inherit_rpath], [0],
6216 [Set to yes if linker adds runtime paths of dependent libraries
6217 to runtime path list])
6218 _LT_TAGDECL([], [link_all_deplibs], [0],
6219 [Whether libtool must link a program against all its dependency libraries])
6220 _LT_TAGDECL([], [always_export_symbols], [0],
6221 [Set to "yes" if exported symbols are required])
6222 _LT_TAGDECL([], [export_symbols_cmds], [2],
6223 [The commands to list exported symbols])
6224 _LT_TAGDECL([], [exclude_expsyms], [1],
6225 [Symbols that should not be listed in the preloaded symbols])
6226 _LT_TAGDECL([], [include_expsyms], [1],
6227 [Symbols that must always be exported])
6228 _LT_TAGDECL([], [prelink_cmds], [2],
6229 [Commands necessary for linking programs (against libraries) with templates])
6230 _LT_TAGDECL([], [postlink_cmds], [2],
6231 [Commands necessary for finishing linking programs])
6232 _LT_TAGDECL([], [file_list_spec], [1],
6233 [Specify filename containing input files])
6234 dnl FIXME: Not yet implemented
6235 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6236 dnl [Compiler flag to generate thread safe objects])
6237 ])# _LT_LINKER_SHLIBS
6238
6239
6240 # _LT_LANG_C_CONFIG([TAG])
6241 # ------------------------
6242 # Ensure that the configuration variables for a C compiler are suitably
6243 # defined. These variables are subsequently used by _LT_CONFIG to write
6244 # the compiler configuration to 'libtool'.
6245 m4_defun([_LT_LANG_C_CONFIG],
6246 [m4_require([_LT_DECL_EGREP])dnl
6247 lt_save_CC=$CC
6248 AC_LANG_PUSH(C)
6249
6250 # Source file extension for C test sources.
6251 ac_ext=c
6252
6253 # Object file extension for compiled C test sources.
6254 objext=o
6255 _LT_TAGVAR(objext, $1)=$objext
6256
6257 # Code to be used in simple compile tests
6258 lt_simple_compile_test_code="int some_variable = 0;"
6259
6260 # Code to be used in simple link tests
6261 lt_simple_link_test_code='int main(){return(0);}'
6262
6263 _LT_TAG_COMPILER
6264 # Save the default compiler, since it gets overwritten when the other
6265 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6266 compiler_DEFAULT=$CC
6267
6268 # save warnings/boilerplate of simple test code
6269 _LT_COMPILER_BOILERPLATE
6270 _LT_LINKER_BOILERPLATE
6271
6272 ## CAVEAT EMPTOR:
6273 ## There is no encapsulation within the following macros, do not change
6274 ## the running order or otherwise move them around unless you know exactly
6275 ## what you are doing...
6276 if test -n "$compiler"; then
6277 _LT_COMPILER_NO_RTTI($1)
6278 _LT_COMPILER_PIC($1)
6279 _LT_COMPILER_C_O($1)
6280 _LT_COMPILER_FILE_LOCKS($1)
6281 _LT_LINKER_SHLIBS($1)
6282 _LT_SYS_DYNAMIC_LINKER($1)
6283 _LT_LINKER_HARDCODE_LIBPATH($1)
6284 LT_SYS_DLOPEN_SELF
6285 _LT_CMD_STRIPLIB
6286
6287 # Report what library types will actually be built
6288 AC_MSG_CHECKING([if libtool supports shared libraries])
6289 AC_MSG_RESULT([$can_build_shared])
6290
6291 AC_MSG_CHECKING([whether to build shared libraries])
6292 test no = "$can_build_shared" && enable_shared=no
6293
6294 # On AIX, shared libraries and static libraries use the same namespace, and
6295 # are all built from PIC.
6296 case $host_os in
6297 aix3*)
6298 test yes = "$enable_shared" && enable_static=no
6299 if test -n "$RANLIB"; then
6300 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6301 postinstall_cmds='$RANLIB $lib'
6302 fi
6303 ;;
6304
6305 aix[[4-9]]*)
6306 if test ia64 != "$host_cpu"; then
6307 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
6308 yes,aix,yes) ;; # shared object as lib.so file only
6309 yes,svr4,*) ;; # shared object as lib.so archive member only
6310 yes,*) enable_static=no ;; # shared object in lib.a archive as well
6311 esac
6312 fi
6313 ;;
6314 esac
6315 AC_MSG_RESULT([$enable_shared])
6316
6317 AC_MSG_CHECKING([whether to build static libraries])
6318 # Make sure either enable_shared or enable_static is yes.
6319 test yes = "$enable_shared" || enable_static=yes
6320 AC_MSG_RESULT([$enable_static])
6321
6322 _LT_CONFIG($1)
6323 fi
6324 AC_LANG_POP
6325 CC=$lt_save_CC
6326 ])# _LT_LANG_C_CONFIG
6327
6328
6329 # _LT_LANG_CXX_CONFIG([TAG])
6330 # --------------------------
6331 # Ensure that the configuration variables for a C++ compiler are suitably
6332 # defined. These variables are subsequently used by _LT_CONFIG to write
6333 # the compiler configuration to 'libtool'.
6334 m4_defun([_LT_LANG_CXX_CONFIG],
6335 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6336 m4_require([_LT_DECL_EGREP])dnl
6337 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6338 if test -n "$CXX" && ( test no != "$CXX" &&
6339 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
6340 (test g++ != "$CXX"))); then
6341 AC_PROG_CXXCPP
6342 else
6343 _lt_caught_CXX_error=yes
6344 fi
6345
6346 AC_LANG_PUSH(C++)
6347 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6348 _LT_TAGVAR(allow_undefined_flag, $1)=
6349 _LT_TAGVAR(always_export_symbols, $1)=no
6350 _LT_TAGVAR(archive_expsym_cmds, $1)=
6351 _LT_TAGVAR(compiler_needs_object, $1)=no
6352 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6353 _LT_TAGVAR(hardcode_direct, $1)=no
6354 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6355 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6356 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6357 _LT_TAGVAR(hardcode_minus_L, $1)=no
6358 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6359 _LT_TAGVAR(hardcode_automatic, $1)=no
6360 _LT_TAGVAR(inherit_rpath, $1)=no
6361 _LT_TAGVAR(module_cmds, $1)=
6362 _LT_TAGVAR(module_expsym_cmds, $1)=
6363 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6364 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6365 _LT_TAGVAR(reload_flag, $1)=$reload_flag
6366 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6367 _LT_TAGVAR(no_undefined_flag, $1)=
6368 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6369 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6370
6371 # Source file extension for C++ test sources.
6372 ac_ext=cpp
6373
6374 # Object file extension for compiled C++ test sources.
6375 objext=o
6376 _LT_TAGVAR(objext, $1)=$objext
6377
6378 # No sense in running all these tests if we already determined that
6379 # the CXX compiler isn't working. Some variables (like enable_shared)
6380 # are currently assumed to apply to all compilers on this platform,
6381 # and will be corrupted by setting them based on a non-working compiler.
6382 if test yes != "$_lt_caught_CXX_error"; then
6383 # Code to be used in simple compile tests
6384 lt_simple_compile_test_code="int some_variable = 0;"
6385
6386 # Code to be used in simple link tests
6387 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6388
6389 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6390 _LT_TAG_COMPILER
6391
6392 # save warnings/boilerplate of simple test code
6393 _LT_COMPILER_BOILERPLATE
6394 _LT_LINKER_BOILERPLATE
6395
6396 # Allow CC to be a program name with arguments.
6397 lt_save_CC=$CC
6398 lt_save_CFLAGS=$CFLAGS
6399 lt_save_LD=$LD
6400 lt_save_GCC=$GCC
6401 GCC=$GXX
6402 lt_save_with_gnu_ld=$with_gnu_ld
6403 lt_save_path_LD=$lt_cv_path_LD
6404 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6405 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6406 else
6407 $as_unset lt_cv_prog_gnu_ld
6408 fi
6409 if test -n "${lt_cv_path_LDCXX+set}"; then
6410 lt_cv_path_LD=$lt_cv_path_LDCXX
6411 else
6412 $as_unset lt_cv_path_LD
6413 fi
6414 test -z "${LDCXX+set}" || LD=$LDCXX
6415 CC=${CXX-"c++"}
6416 CFLAGS=$CXXFLAGS
6417 compiler=$CC
6418 _LT_TAGVAR(compiler, $1)=$CC
6419 _LT_CC_BASENAME([$compiler])
6420
6421 if test -n "$compiler"; then
6422 # We don't want -fno-exception when compiling C++ code, so set the
6423 # no_builtin_flag separately
6424 if test yes = "$GXX"; then
6425 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6426 else
6427 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6428 fi
6429
6430 if test yes = "$GXX"; then
6431 # Set up default GNU C++ configuration
6432
6433 LT_PATH_LD
6434
6435 # Check if GNU C++ uses GNU ld as the underlying linker, since the
6436 # archiving commands below assume that GNU ld is being used.
6437 if test yes = "$with_gnu_ld"; then
6438 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6439 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
6440
6441 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6442 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6443
6444 # If archive_cmds runs LD, not CC, wlarc should be empty
6445 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6446 # investigate it a little bit more. (MM)
6447 wlarc='$wl'
6448
6449 # ancient GNU ld didn't support --whole-archive et. al.
6450 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6451 $GREP 'no-whole-archive' > /dev/null; then
6452 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
6453 else
6454 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6455 fi
6456 else
6457 with_gnu_ld=no
6458 wlarc=
6459
6460 # A generic and very simple default shared library creation
6461 # command for GNU C++ for the case where it uses the native
6462 # linker, instead of GNU ld. If possible, this setting should
6463 # overridden to take advantage of the native linker features on
6464 # the platform it is being used on.
6465 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6466 fi
6467
6468 # Commands to make compiler produce verbose output that lists
6469 # what "hidden" libraries, object files and flags are used when
6470 # linking a shared library.
6471 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
6472
6473 else
6474 GXX=no
6475 with_gnu_ld=no
6476 wlarc=
6477 fi
6478
6479 # PORTME: fill in a description of your system's C++ link characteristics
6480 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6481 _LT_TAGVAR(ld_shlibs, $1)=yes
6482 case $host_os in
6483 aix3*)
6484 # FIXME: insert proper C++ library support
6485 _LT_TAGVAR(ld_shlibs, $1)=no
6486 ;;
6487 aix[[4-9]]*)
6488 if test ia64 = "$host_cpu"; then
6489 # On IA64, the linker does run time linking by default, so we don't
6490 # have to do anything special.
6491 aix_use_runtimelinking=no
6492 exp_sym_flag='-Bexport'
6493 no_entry_flag=
6494 else
6495 aix_use_runtimelinking=no
6496
6497 # Test if we are trying to use run time linking or normal
6498 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6499 # have runtime linking enabled, and use it for executables.
6500 # For shared libraries, we enable/disable runtime linking
6501 # depending on the kind of the shared library created -
6502 # when "with_aix_soname,aix_use_runtimelinking" is:
6503 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
6504 # "aix,yes" lib.so shared, rtl:yes, for executables
6505 # lib.a static archive
6506 # "both,no" lib.so.V(shr.o) shared, rtl:yes
6507 # lib.a(lib.so.V) shared, rtl:no, for executables
6508 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
6509 # lib.a(lib.so.V) shared, rtl:no
6510 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
6511 # lib.a static archive
6512 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6513 for ld_flag in $LDFLAGS; do
6514 case $ld_flag in
6515 *-brtl*)
6516 aix_use_runtimelinking=yes
6517 break
6518 ;;
6519 esac
6520 done
6521 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
6522 # With aix-soname=svr4, we create the lib.so.V shared archives only,
6523 # so we don't have lib.a shared libs to link our executables.
6524 # We have to force runtime linking in this case.
6525 aix_use_runtimelinking=yes
6526 LDFLAGS="$LDFLAGS -Wl,-brtl"
6527 fi
6528 ;;
6529 esac
6530
6531 exp_sym_flag='-bexport'
6532 no_entry_flag='-bnoentry'
6533 fi
6534
6535 # When large executables or shared objects are built, AIX ld can
6536 # have problems creating the table of contents. If linking a library
6537 # or program results in "error TOC overflow" add -mminimal-toc to
6538 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6539 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6540
6541 _LT_TAGVAR(archive_cmds, $1)=''
6542 _LT_TAGVAR(hardcode_direct, $1)=yes
6543 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6544 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6545 _LT_TAGVAR(link_all_deplibs, $1)=yes
6546 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6547 case $with_aix_soname,$aix_use_runtimelinking in
6548 aix,*) ;; # no import file
6549 svr4,* | *,yes) # use import file
6550 # The Import File defines what to hardcode.
6551 _LT_TAGVAR(hardcode_direct, $1)=no
6552 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6553 ;;
6554 esac
6555
6556 if test yes = "$GXX"; then
6557 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6558 # We only want to do this on AIX 4.2 and lower, the check
6559 # below for broken collect2 doesn't work under 4.3+
6560 collect2name=`$CC -print-prog-name=collect2`
6561 if test -f "$collect2name" &&
6562 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6563 then
6564 # We have reworked collect2
6565 :
6566 else
6567 # We have old collect2
6568 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6569 # It fails to find uninstalled libraries when the uninstalled
6570 # path is not listed in the libpath. Setting hardcode_minus_L
6571 # to unsupported forces relinking
6572 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6573 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6574 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6575 fi
6576 esac
6577 shared_flag='-shared'
6578 if test yes = "$aix_use_runtimelinking"; then
6579 shared_flag=$shared_flag' $wl-G'
6580 fi
6581 # Need to ensure runtime linking is disabled for the traditional
6582 # shared library, or the linker may eventually find shared libraries
6583 # /with/ Import File - we do not want to mix them.
6584 shared_flag_aix='-shared'
6585 shared_flag_svr4='-shared $wl-G'
6586 else
6587 # not using gcc
6588 if test ia64 = "$host_cpu"; then
6589 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6590 # chokes on -Wl,-G. The following line is correct:
6591 shared_flag='-G'
6592 else
6593 if test yes = "$aix_use_runtimelinking"; then
6594 shared_flag='$wl-G'
6595 else
6596 shared_flag='$wl-bM:SRE'
6597 fi
6598 shared_flag_aix='$wl-bM:SRE'
6599 shared_flag_svr4='$wl-G'
6600 fi
6601 fi
6602
6603 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
6604 # It seems that -bexpall does not export symbols beginning with
6605 # underscore (_), so it is better to generate a list of symbols to
6606 # export.
6607 _LT_TAGVAR(always_export_symbols, $1)=yes
6608 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
6609 # Warning - without using the other runtime loading flags (-brtl),
6610 # -berok will link without error, but may produce a broken library.
6611 # The "-G" linker flag allows undefined symbols.
6612 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
6613 # Determine the default libpath from the value encoded in an empty
6614 # executable.
6615 _LT_SYS_MODULE_PATH_AIX([$1])
6616 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6617
6618 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
6619 else
6620 if test ia64 = "$host_cpu"; then
6621 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
6622 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6623 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
6624 else
6625 # Determine the default libpath from the value encoded in an
6626 # empty executable.
6627 _LT_SYS_MODULE_PATH_AIX([$1])
6628 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6629 # Warning - without using the other run time loading flags,
6630 # -berok will link without error, but may produce a broken library.
6631 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
6632 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
6633 if test yes = "$with_gnu_ld"; then
6634 # We only use this code for GNU lds that support --whole-archive.
6635 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
6636 else
6637 # Exported symbols can be pulled into shared objects from archives
6638 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6639 fi
6640 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6641 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
6642 # -brtl affects multiple linker settings, -berok does not and is overridden later
6643 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
6644 if test svr4 != "$with_aix_soname"; then
6645 # This is similar to how AIX traditionally builds its shared
6646 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
6647 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
6648 fi
6649 if test aix != "$with_aix_soname"; then
6650 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
6651 else
6652 # used by -dlpreopen to get the symbols
6653 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
6654 fi
6655 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
6656 fi
6657 fi
6658 ;;
6659
6660 beos*)
6661 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6662 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6663 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6664 # support --undefined. This deserves some investigation. FIXME
6665 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6666 else
6667 _LT_TAGVAR(ld_shlibs, $1)=no
6668 fi
6669 ;;
6670
6671 chorus*)
6672 case $cc_basename in
6673 *)
6674 # FIXME: insert proper C++ library support
6675 _LT_TAGVAR(ld_shlibs, $1)=no
6676 ;;
6677 esac
6678 ;;
6679
6680 cygwin* | mingw* | pw32* | cegcc*)
6681 case $GXX,$cc_basename in
6682 ,cl* | no,cl* | ,icl* | no,icl*)
6683 # Native MSVC or ICC
6684 # hardcode_libdir_flag_spec is actually meaningless, as there is
6685 # no search path for DLLs.
6686 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6687 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6688 _LT_TAGVAR(always_export_symbols, $1)=yes
6689 _LT_TAGVAR(file_list_spec, $1)='@'
6690 # Tell ltmain to make .lib files, not .a files.
6691 libext=lib
6692 # Tell ltmain to make .dll files, not .so files.
6693 shrext_cmds=.dll
6694 # FIXME: Setting linknames here is a bad hack.
6695 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
6696 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6697 cp "$export_symbols" "$output_objdir/$soname.def";
6698 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
6699 else
6700 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6701 fi~
6702 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6703 linknames='
6704 # The linker will not automatically build a static lib if we build a DLL.
6705 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6706 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6707 # Don't use ranlib
6708 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6709 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6710 lt_tool_outputfile="@TOOL_OUTPUT@"~
6711 case $lt_outputfile in
6712 *.exe|*.EXE) ;;
6713 *)
6714 lt_outputfile=$lt_outputfile.exe
6715 lt_tool_outputfile=$lt_tool_outputfile.exe
6716 ;;
6717 esac~
6718 func_to_tool_file "$lt_outputfile"~
6719 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
6720 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6721 $RM "$lt_outputfile.manifest";
6722 fi'
6723 ;;
6724 *)
6725 # g++
6726 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6727 # as there is no search path for DLLs.
6728 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6729 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
6730 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6731 _LT_TAGVAR(always_export_symbols, $1)=no
6732 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6733
6734 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6735 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6736 # If the export-symbols file already is a .def file, use it as
6737 # is; otherwise, prepend EXPORTS...
6738 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6739 cp $export_symbols $output_objdir/$soname.def;
6740 else
6741 echo EXPORTS > $output_objdir/$soname.def;
6742 cat $export_symbols >> $output_objdir/$soname.def;
6743 fi~
6744 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6745 else
6746 _LT_TAGVAR(ld_shlibs, $1)=no
6747 fi
6748 ;;
6749 esac
6750 ;;
6751 darwin* | rhapsody*)
6752 _LT_DARWIN_LINKER_FEATURES($1)
6753 ;;
6754
6755 os2*)
6756 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6757 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6758 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6759 shrext_cmds=.dll
6760 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6761 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6762 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6763 $ECHO EXPORTS >> $output_objdir/$libname.def~
6764 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
6765 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6766 emximp -o $lib $output_objdir/$libname.def'
6767 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6768 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6769 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6770 $ECHO EXPORTS >> $output_objdir/$libname.def~
6771 prefix_cmds="$SED"~
6772 if test EXPORTS = "`$SED 1q $export_symbols`"; then
6773 prefix_cmds="$prefix_cmds -e 1d";
6774 fi~
6775 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
6776 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
6777 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6778 emximp -o $lib $output_objdir/$libname.def'
6779 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
6780 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6781 _LT_TAGVAR(file_list_spec, $1)='@'
6782 ;;
6783
6784 dgux*)
6785 case $cc_basename in
6786 ec++*)
6787 # FIXME: insert proper C++ library support
6788 _LT_TAGVAR(ld_shlibs, $1)=no
6789 ;;
6790 ghcx*)
6791 # Green Hills C++ Compiler
6792 # FIXME: insert proper C++ library support
6793 _LT_TAGVAR(ld_shlibs, $1)=no
6794 ;;
6795 *)
6796 # FIXME: insert proper C++ library support
6797 _LT_TAGVAR(ld_shlibs, $1)=no
6798 ;;
6799 esac
6800 ;;
6801
6802 freebsd2.*)
6803 # C++ shared libraries reported to be fairly broken before
6804 # switch to ELF
6805 _LT_TAGVAR(ld_shlibs, $1)=no
6806 ;;
6807
6808 freebsd-elf*)
6809 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6810 ;;
6811
6812 freebsd* | dragonfly* | midnightbsd*)
6813 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6814 # conventions
6815 _LT_TAGVAR(ld_shlibs, $1)=yes
6816 ;;
6817
6818 haiku*)
6819 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6820 _LT_TAGVAR(link_all_deplibs, $1)=yes
6821 ;;
6822
6823 hpux9*)
6824 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
6825 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6826 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6827 _LT_TAGVAR(hardcode_direct, $1)=yes
6828 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6829 # but as the default
6830 # location of the library.
6831
6832 case $cc_basename in
6833 CC*)
6834 # FIXME: insert proper C++ library support
6835 _LT_TAGVAR(ld_shlibs, $1)=no
6836 ;;
6837 aCC*)
6838 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
6839 # Commands to make compiler produce verbose output that lists
6840 # what "hidden" libraries, object files and flags are used when
6841 # linking a shared library.
6842 #
6843 # There doesn't appear to be a way to prevent this compiler from
6844 # explicitly linking system object files so we need to strip them
6845 # from the output so that they don't get included in the library
6846 # dependencies.
6847 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6848 ;;
6849 *)
6850 if test yes = "$GXX"; then
6851 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
6852 else
6853 # FIXME: insert proper C++ library support
6854 _LT_TAGVAR(ld_shlibs, $1)=no
6855 fi
6856 ;;
6857 esac
6858 ;;
6859
6860 hpux10*|hpux11*)
6861 if test no = "$with_gnu_ld"; then
6862 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
6863 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6864
6865 case $host_cpu in
6866 hppa*64*|ia64*)
6867 ;;
6868 *)
6869 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6870 ;;
6871 esac
6872 fi
6873 case $host_cpu in
6874 hppa*64*|ia64*)
6875 _LT_TAGVAR(hardcode_direct, $1)=no
6876 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6877 ;;
6878 *)
6879 _LT_TAGVAR(hardcode_direct, $1)=yes
6880 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6881 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6882 # but as the default
6883 # location of the library.
6884 ;;
6885 esac
6886
6887 case $cc_basename in
6888 CC*)
6889 # FIXME: insert proper C++ library support
6890 _LT_TAGVAR(ld_shlibs, $1)=no
6891 ;;
6892 aCC*)
6893 case $host_cpu in
6894 hppa*64*)
6895 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6896 ;;
6897 ia64*)
6898 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6899 ;;
6900 *)
6901 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6902 ;;
6903 esac
6904 # Commands to make compiler produce verbose output that lists
6905 # what "hidden" libraries, object files and flags are used when
6906 # linking a shared library.
6907 #
6908 # There doesn't appear to be a way to prevent this compiler from
6909 # explicitly linking system object files so we need to strip them
6910 # from the output so that they don't get included in the library
6911 # dependencies.
6912 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6913 ;;
6914 *)
6915 if test yes = "$GXX"; then
6916 if test no = "$with_gnu_ld"; then
6917 case $host_cpu in
6918 hppa*64*)
6919 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6920 ;;
6921 ia64*)
6922 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6923 ;;
6924 *)
6925 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6926 ;;
6927 esac
6928 fi
6929 else
6930 # FIXME: insert proper C++ library support
6931 _LT_TAGVAR(ld_shlibs, $1)=no
6932 fi
6933 ;;
6934 esac
6935 ;;
6936
6937 interix[[3-9]]*)
6938 _LT_TAGVAR(hardcode_direct, $1)=no
6939 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6940 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6941 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6942 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6943 # Instead, shared libraries are loaded at an image base (0x10000000 by
6944 # default) and relocated if they conflict, which is a slow very memory
6945 # consuming and fragmenting process. To avoid this, we pick a random,
6946 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6947 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6948 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6949 _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6950 ;;
6951 irix5* | irix6*)
6952 case $cc_basename in
6953 CC*)
6954 # SGI C++
6955 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
6956
6957 # Archives containing C++ object files must be created using
6958 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6959 # necessary to make sure instantiated templates are included
6960 # in the archive.
6961 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6962 ;;
6963 *)
6964 if test yes = "$GXX"; then
6965 if test no = "$with_gnu_ld"; then
6966 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
6967 else
6968 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
6969 fi
6970 fi
6971 _LT_TAGVAR(link_all_deplibs, $1)=yes
6972 ;;
6973 esac
6974 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6975 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6976 _LT_TAGVAR(inherit_rpath, $1)=yes
6977 ;;
6978
6979 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6980 case $cc_basename in
6981 KCC*)
6982 # Kuck and Associates, Inc. (KAI) C++ Compiler
6983
6984 # KCC will only create a shared library if the output file
6985 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6986 # to its proper name (with version) after linking.
6987 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6988 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
6989 # Commands to make compiler produce verbose output that lists
6990 # what "hidden" libraries, object files and flags are used when
6991 # linking a shared library.
6992 #
6993 # There doesn't appear to be a way to prevent this compiler from
6994 # explicitly linking system object files so we need to strip them
6995 # from the output so that they don't get included in the library
6996 # dependencies.
6997 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6998
6999 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7000 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7001
7002 # Archives containing C++ object files must be created using
7003 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
7004 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
7005 ;;
7006 icpc* | ecpc* )
7007 # Intel C++
7008 with_gnu_ld=yes
7009 # version 8.0 and above of icpc choke on multiply defined symbols
7010 # if we add $predep_objects and $postdep_objects, however 7.1 and
7011 # earlier do not add the objects themselves.
7012 case `$CC -V 2>&1` in
7013 *"Version 7."*)
7014 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7015 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
7016 ;;
7017 *) # Version 8.0 or newer
7018 tmp_idyn=
7019 case $host_cpu in
7020 ia64*) tmp_idyn=' -i_dynamic';;
7021 esac
7022 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7023 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
7024 ;;
7025 esac
7026 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7027 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7028 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7029 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
7030 ;;
7031 pgCC* | pgcpp*)
7032 # Portland Group C++ compiler
7033 case `$CC -V` in
7034 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
7035 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
7036 rm -rf $tpldir~
7037 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7038 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7039 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
7040 rm -rf $tpldir~
7041 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7042 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7043 $RANLIB $oldlib'
7044 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
7045 rm -rf $tpldir~
7046 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7047 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7048 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
7049 rm -rf $tpldir~
7050 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7051 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
7052 ;;
7053 *) # Version 6 and above use weak symbols
7054 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7055 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
7056 ;;
7057 esac
7058
7059 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
7060 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7061 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
7062 ;;
7063 cxx*)
7064 # Compaq C++
7065 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7066 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
7067
7068 runpath_var=LD_RUN_PATH
7069 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7070 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7071
7072 # Commands to make compiler produce verbose output that lists
7073 # what "hidden" libraries, object files and flags are used when
7074 # linking a shared library.
7075 #
7076 # There doesn't appear to be a way to prevent this compiler from
7077 # explicitly linking system object files so we need to strip them
7078 # from the output so that they don't get included in the library
7079 # dependencies.
7080 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
7081 ;;
7082 xl* | mpixl* | bgxl*)
7083 # IBM XL 8.0 on PPC, with GNU ld
7084 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7085 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7086 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7087 if test yes = "$supports_anon_versioning"; then
7088 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7089 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7090 echo "local: *; };" >> $output_objdir/$libname.ver~
7091 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
7092 fi
7093 ;;
7094 *)
7095 case `$CC -V 2>&1 | $SED 5q` in
7096 *Sun\ C*)
7097 # Sun C++ 5.9
7098 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7099 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7100 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
7101 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7102 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
7103 _LT_TAGVAR(compiler_needs_object, $1)=yes
7104
7105 # Not sure whether something based on
7106 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7107 # would be better.
7108 output_verbose_link_cmd='func_echo_all'
7109
7110 # Archives containing C++ object files must be created using
7111 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7112 # necessary to make sure instantiated templates are included
7113 # in the archive.
7114 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7115 ;;
7116 esac
7117 ;;
7118 esac
7119 ;;
7120
7121 lynxos*)
7122 # FIXME: insert proper C++ library support
7123 _LT_TAGVAR(ld_shlibs, $1)=no
7124 ;;
7125
7126 m88k*)
7127 # FIXME: insert proper C++ library support
7128 _LT_TAGVAR(ld_shlibs, $1)=no
7129 ;;
7130
7131 mvs*)
7132 case $cc_basename in
7133 cxx*)
7134 # FIXME: insert proper C++ library support
7135 _LT_TAGVAR(ld_shlibs, $1)=no
7136 ;;
7137 *)
7138 # FIXME: insert proper C++ library support
7139 _LT_TAGVAR(ld_shlibs, $1)=no
7140 ;;
7141 esac
7142 ;;
7143
7144 netbsd*)
7145 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7146 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
7147 wlarc=
7148 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7149 _LT_TAGVAR(hardcode_direct, $1)=yes
7150 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7151 fi
7152 # Workaround some broken pre-1.5 toolchains
7153 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
7154 ;;
7155
7156 *nto* | *qnx*)
7157 _LT_TAGVAR(ld_shlibs, $1)=yes
7158 ;;
7159
7160 openbsd* | bitrig*)
7161 if test -f /usr/libexec/ld.so; then
7162 _LT_TAGVAR(hardcode_direct, $1)=yes
7163 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7164 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7165 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7166 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7167 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
7168 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
7169 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7170 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
7171 fi
7172 output_verbose_link_cmd=func_echo_all
7173 else
7174 _LT_TAGVAR(ld_shlibs, $1)=no
7175 fi
7176 ;;
7177
7178 osf3* | osf4* | osf5*)
7179 case $cc_basename in
7180 KCC*)
7181 # Kuck and Associates, Inc. (KAI) C++ Compiler
7182
7183 # KCC will only create a shared library if the output file
7184 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7185 # to its proper name (with version) after linking.
7186 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7187
7188 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7189 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7190
7191 # Archives containing C++ object files must be created using
7192 # the KAI C++ compiler.
7193 case $host in
7194 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7195 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7196 esac
7197 ;;
7198 RCC*)
7199 # Rational C++ 2.4.1
7200 # FIXME: insert proper C++ library support
7201 _LT_TAGVAR(ld_shlibs, $1)=no
7202 ;;
7203 cxx*)
7204 case $host in
7205 osf3*)
7206 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7207 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
7208 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7209 ;;
7210 *)
7211 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7212 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
7213 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7214 echo "-hidden">> $lib.exp~
7215 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
7216 $RM $lib.exp'
7217 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7218 ;;
7219 esac
7220
7221 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7222
7223 # Commands to make compiler produce verbose output that lists
7224 # what "hidden" libraries, object files and flags are used when
7225 # linking a shared library.
7226 #
7227 # There doesn't appear to be a way to prevent this compiler from
7228 # explicitly linking system object files so we need to strip them
7229 # from the output so that they don't get included in the library
7230 # dependencies.
7231 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
7232 ;;
7233 *)
7234 if test yes,no = "$GXX,$with_gnu_ld"; then
7235 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7236 case $host in
7237 osf3*)
7238 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
7239 ;;
7240 *)
7241 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
7242 ;;
7243 esac
7244
7245 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7246 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7247
7248 # Commands to make compiler produce verbose output that lists
7249 # what "hidden" libraries, object files and flags are used when
7250 # linking a shared library.
7251 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
7252
7253 else
7254 # FIXME: insert proper C++ library support
7255 _LT_TAGVAR(ld_shlibs, $1)=no
7256 fi
7257 ;;
7258 esac
7259 ;;
7260
7261 psos*)
7262 # FIXME: insert proper C++ library support
7263 _LT_TAGVAR(ld_shlibs, $1)=no
7264 ;;
7265
7266 sunos4*)
7267 case $cc_basename in
7268 CC*)
7269 # Sun C++ 4.x
7270 # FIXME: insert proper C++ library support
7271 _LT_TAGVAR(ld_shlibs, $1)=no
7272 ;;
7273 lcc*)
7274 # Lucid
7275 # FIXME: insert proper C++ library support
7276 _LT_TAGVAR(ld_shlibs, $1)=no
7277 ;;
7278 *)
7279 # FIXME: insert proper C++ library support
7280 _LT_TAGVAR(ld_shlibs, $1)=no
7281 ;;
7282 esac
7283 ;;
7284
7285 solaris*)
7286 case $cc_basename in
7287 CC* | sunCC*)
7288 # Sun C++ 4.2, 5.x and Centerline C++
7289 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7290 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7291 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7292 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7293 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7294
7295 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7296 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7297 case $host_os in
7298 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7299 *)
7300 # The compiler driver will combine and reorder linker options,
7301 # but understands '-z linker_flag'.
7302 # Supported since Solaris 2.6 (maybe 2.5.1?)
7303 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7304 ;;
7305 esac
7306 _LT_TAGVAR(link_all_deplibs, $1)=yes
7307
7308 output_verbose_link_cmd='func_echo_all'
7309
7310 # Archives containing C++ object files must be created using
7311 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7312 # necessary to make sure instantiated templates are included
7313 # in the archive.
7314 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7315 ;;
7316 gcx*)
7317 # Green Hills C++ Compiler
7318 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7319
7320 # The C++ compiler must be used to create the archive.
7321 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7322 ;;
7323 *)
7324 # GNU C++ compiler with Solaris linker
7325 if test yes,no = "$GXX,$with_gnu_ld"; then
7326 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
7327 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7328 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7329 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7330 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7331
7332 # Commands to make compiler produce verbose output that lists
7333 # what "hidden" libraries, object files and flags are used when
7334 # linking a shared library.
7335 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
7336 else
7337 # g++ 2.7 appears to require '-G' NOT '-shared' on this
7338 # platform.
7339 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7340 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7341 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7342
7343 # Commands to make compiler produce verbose output that lists
7344 # what "hidden" libraries, object files and flags are used when
7345 # linking a shared library.
7346 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
7347 fi
7348
7349 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
7350 case $host_os in
7351 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7352 *)
7353 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
7354 ;;
7355 esac
7356 fi
7357 ;;
7358 esac
7359 ;;
7360
7361 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7362 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7363 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7364 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7365 runpath_var='LD_RUN_PATH'
7366
7367 case $cc_basename in
7368 CC*)
7369 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7370 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7371 ;;
7372 *)
7373 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7374 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7375 ;;
7376 esac
7377 ;;
7378
7379 sysv5* | sco3.2v5* | sco5v6*)
7380 # Note: We CANNOT use -z defs as we might desire, because we do not
7381 # link with -lc, and that would cause any symbols used from libc to
7382 # always be unresolved, which means just about no library would
7383 # ever link correctly. If we're not using GNU ld we use -z text
7384 # though, which does catch some bad symbols but isn't as heavy-handed
7385 # as -z defs.
7386 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7387 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
7388 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7389 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7390 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
7391 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7392 _LT_TAGVAR(link_all_deplibs, $1)=yes
7393 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
7394 runpath_var='LD_RUN_PATH'
7395
7396 case $cc_basename in
7397 CC*)
7398 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7399 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7400 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7401 '"$_LT_TAGVAR(old_archive_cmds, $1)"
7402 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7403 '"$_LT_TAGVAR(reload_cmds, $1)"
7404 ;;
7405 *)
7406 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7407 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7408 ;;
7409 esac
7410 ;;
7411
7412 tandem*)
7413 case $cc_basename in
7414 NCC*)
7415 # NonStop-UX NCC 3.20
7416 # FIXME: insert proper C++ library support
7417 _LT_TAGVAR(ld_shlibs, $1)=no
7418 ;;
7419 *)
7420 # FIXME: insert proper C++ library support
7421 _LT_TAGVAR(ld_shlibs, $1)=no
7422 ;;
7423 esac
7424 ;;
7425
7426 vxworks*)
7427 # FIXME: insert proper C++ library support
7428 _LT_TAGVAR(ld_shlibs, $1)=no
7429 ;;
7430
7431 *)
7432 # FIXME: insert proper C++ library support
7433 _LT_TAGVAR(ld_shlibs, $1)=no
7434 ;;
7435 esac
7436
7437 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7438 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
7439
7440 _LT_TAGVAR(GCC, $1)=$GXX
7441 _LT_TAGVAR(LD, $1)=$LD
7442
7443 ## CAVEAT EMPTOR:
7444 ## There is no encapsulation within the following macros, do not change
7445 ## the running order or otherwise move them around unless you know exactly
7446 ## what you are doing...
7447 _LT_SYS_HIDDEN_LIBDEPS($1)
7448 _LT_COMPILER_PIC($1)
7449 _LT_COMPILER_C_O($1)
7450 _LT_COMPILER_FILE_LOCKS($1)
7451 _LT_LINKER_SHLIBS($1)
7452 _LT_SYS_DYNAMIC_LINKER($1)
7453 _LT_LINKER_HARDCODE_LIBPATH($1)
7454
7455 _LT_CONFIG($1)
7456 fi # test -n "$compiler"
7457
7458 CC=$lt_save_CC
7459 CFLAGS=$lt_save_CFLAGS
7460 LDCXX=$LD
7461 LD=$lt_save_LD
7462 GCC=$lt_save_GCC
7463 with_gnu_ld=$lt_save_with_gnu_ld
7464 lt_cv_path_LDCXX=$lt_cv_path_LD
7465 lt_cv_path_LD=$lt_save_path_LD
7466 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7467 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7468 fi # test yes != "$_lt_caught_CXX_error"
7469
7470 AC_LANG_POP
7471 ])# _LT_LANG_CXX_CONFIG
7472
7473
7474 # _LT_FUNC_STRIPNAME_CNF
7475 # ----------------------
7476 # func_stripname_cnf prefix suffix name
7477 # strip PREFIX and SUFFIX off of NAME.
7478 # PREFIX and SUFFIX must not contain globbing or regex special
7479 # characters, hashes, percent signs, but SUFFIX may contain a leading
7480 # dot (in which case that matches only a dot).
7481 #
7482 # This function is identical to the (non-XSI) version of func_stripname,
7483 # except this one can be used by m4 code that may be executed by configure,
7484 # rather than the libtool script.
7485 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
7486 AC_REQUIRE([_LT_DECL_SED])
7487 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
7488 func_stripname_cnf ()
7489 {
7490 case @S|@2 in
7491 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
7492 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
7493 esac
7494 } # func_stripname_cnf
7495 ])# _LT_FUNC_STRIPNAME_CNF
7496
7497
7498 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7499 # ---------------------------------
7500 # Figure out "hidden" library dependencies from verbose
7501 # compiler output when linking a shared library.
7502 # Parse the compiler output and extract the necessary
7503 # objects, libraries and library flags.
7504 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7505 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7506 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7507 # Dependencies to place before and after the object being linked:
7508 _LT_TAGVAR(predep_objects, $1)=
7509 _LT_TAGVAR(postdep_objects, $1)=
7510 _LT_TAGVAR(predeps, $1)=
7511 _LT_TAGVAR(postdeps, $1)=
7512 _LT_TAGVAR(compiler_lib_search_path, $1)=
7513
7514 dnl we can't use the lt_simple_compile_test_code here,
7515 dnl because it contains code intended for an executable,
7516 dnl not a library. It's possible we should let each
7517 dnl tag define a new lt_????_link_test_code variable,
7518 dnl but it's only used here...
7519 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7520 int a;
7521 void foo (void) { a = 0; }
7522 _LT_EOF
7523 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7524 class Foo
7525 {
7526 public:
7527 Foo (void) { a = 0; }
7528 private:
7529 int a;
7530 };
7531 _LT_EOF
7532 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7533 subroutine foo
7534 implicit none
7535 integer*4 a
7536 a=0
7537 return
7538 end
7539 _LT_EOF
7540 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7541 subroutine foo
7542 implicit none
7543 integer a
7544 a=0
7545 return
7546 end
7547 _LT_EOF
7548 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7549 public class foo {
7550 private int a;
7551 public void bar (void) {
7552 a = 0;
7553 }
7554 };
7555 _LT_EOF
7556 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
7557 package foo
7558 func foo() {
7559 }
7560 _LT_EOF
7561 ])
7562
7563 _lt_libdeps_save_CFLAGS=$CFLAGS
7564 case "$CC $CFLAGS " in #(
7565 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7566 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7567 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7568 esac
7569
7570 dnl Parse the compiler output and extract the necessary
7571 dnl objects, libraries and library flags.
7572 if AC_TRY_EVAL(ac_compile); then
7573 # Parse the compiler output and extract the necessary
7574 # objects, libraries and library flags.
7575
7576 # Sentinel used to keep track of whether or not we are before
7577 # the conftest object file.
7578 pre_test_object_deps_done=no
7579
7580 for p in `eval "$output_verbose_link_cmd"`; do
7581 case $prev$p in
7582
7583 -L* | -R* | -l*)
7584 # Some compilers place space between "-{L,R}" and the path.
7585 # Remove the space.
7586 if test x-L = "$p" ||
7587 test x-R = "$p"; then
7588 prev=$p
7589 continue
7590 fi
7591
7592 # Expand the sysroot to ease extracting the directories later.
7593 if test -z "$prev"; then
7594 case $p in
7595 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7596 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7597 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7598 esac
7599 fi
7600 case $p in
7601 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7602 esac
7603 if test no = "$pre_test_object_deps_done"; then
7604 case $prev in
7605 -L | -R)
7606 # Internal compiler library paths should come after those
7607 # provided the user. The postdeps already come after the
7608 # user supplied libs so there is no need to process them.
7609 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7610 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
7611 else
7612 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
7613 fi
7614 ;;
7615 # The "-l" case would never come before the object being
7616 # linked, so don't bother handling this case.
7617 esac
7618 else
7619 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7620 _LT_TAGVAR(postdeps, $1)=$prev$p
7621 else
7622 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
7623 fi
7624 fi
7625 prev=
7626 ;;
7627
7628 *.lto.$objext) ;; # Ignore GCC LTO objects
7629 *.$objext)
7630 # This assumes that the test object file only shows up
7631 # once in the compiler output.
7632 if test "$p" = "conftest.$objext"; then
7633 pre_test_object_deps_done=yes
7634 continue
7635 fi
7636
7637 if test no = "$pre_test_object_deps_done"; then
7638 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7639 _LT_TAGVAR(predep_objects, $1)=$p
7640 else
7641 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7642 fi
7643 else
7644 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7645 _LT_TAGVAR(postdep_objects, $1)=$p
7646 else
7647 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7648 fi
7649 fi
7650 ;;
7651
7652 *) ;; # Ignore the rest.
7653
7654 esac
7655 done
7656
7657 # Clean up.
7658 rm -f a.out a.exe
7659 else
7660 echo "libtool.m4: error: problem compiling $1 test program"
7661 fi
7662
7663 $RM -f confest.$objext
7664 CFLAGS=$_lt_libdeps_save_CFLAGS
7665
7666 # PORTME: override above test on systems where it is broken
7667 m4_if([$1], [CXX],
7668 [case $host_os in
7669 interix[[3-9]]*)
7670 # Interix 3.5 installs completely hosed .la files for C++, so rather than
7671 # hack all around it, let's just trust "g++" to DTRT.
7672 _LT_TAGVAR(predep_objects,$1)=
7673 _LT_TAGVAR(postdep_objects,$1)=
7674 _LT_TAGVAR(postdeps,$1)=
7675 ;;
7676 esac
7677 ])
7678
7679 case " $_LT_TAGVAR(postdeps, $1) " in
7680 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7681 esac
7682 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7683 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7684 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
7685 fi
7686 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7687 [The directories searched by this compiler when creating a shared library])
7688 _LT_TAGDECL([], [predep_objects], [1],
7689 [Dependencies to place before and after the objects being linked to
7690 create a shared library])
7691 _LT_TAGDECL([], [postdep_objects], [1])
7692 _LT_TAGDECL([], [predeps], [1])
7693 _LT_TAGDECL([], [postdeps], [1])
7694 _LT_TAGDECL([], [compiler_lib_search_path], [1],
7695 [The library search path used internally by the compiler when linking
7696 a shared library])
7697 ])# _LT_SYS_HIDDEN_LIBDEPS
7698
7699
7700 # _LT_LANG_F77_CONFIG([TAG])
7701 # --------------------------
7702 # Ensure that the configuration variables for a Fortran 77 compiler are
7703 # suitably defined. These variables are subsequently used by _LT_CONFIG
7704 # to write the compiler configuration to 'libtool'.
7705 m4_defun([_LT_LANG_F77_CONFIG],
7706 [AC_LANG_PUSH(Fortran 77)
7707 if test -z "$F77" || test no = "$F77"; then
7708 _lt_disable_F77=yes
7709 fi
7710
7711 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7712 _LT_TAGVAR(allow_undefined_flag, $1)=
7713 _LT_TAGVAR(always_export_symbols, $1)=no
7714 _LT_TAGVAR(archive_expsym_cmds, $1)=
7715 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7716 _LT_TAGVAR(hardcode_direct, $1)=no
7717 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7718 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7719 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7720 _LT_TAGVAR(hardcode_minus_L, $1)=no
7721 _LT_TAGVAR(hardcode_automatic, $1)=no
7722 _LT_TAGVAR(inherit_rpath, $1)=no
7723 _LT_TAGVAR(module_cmds, $1)=
7724 _LT_TAGVAR(module_expsym_cmds, $1)=
7725 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7726 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7727 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7728 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7729 _LT_TAGVAR(no_undefined_flag, $1)=
7730 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7731 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7732
7733 # Source file extension for f77 test sources.
7734 ac_ext=f
7735
7736 # Object file extension for compiled f77 test sources.
7737 objext=o
7738 _LT_TAGVAR(objext, $1)=$objext
7739
7740 # No sense in running all these tests if we already determined that
7741 # the F77 compiler isn't working. Some variables (like enable_shared)
7742 # are currently assumed to apply to all compilers on this platform,
7743 # and will be corrupted by setting them based on a non-working compiler.
7744 if test yes != "$_lt_disable_F77"; then
7745 # Code to be used in simple compile tests
7746 lt_simple_compile_test_code="\
7747 subroutine t
7748 return
7749 end
7750 "
7751
7752 # Code to be used in simple link tests
7753 lt_simple_link_test_code="\
7754 program t
7755 end
7756 "
7757
7758 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7759 _LT_TAG_COMPILER
7760
7761 # save warnings/boilerplate of simple test code
7762 _LT_COMPILER_BOILERPLATE
7763 _LT_LINKER_BOILERPLATE
7764
7765 # Allow CC to be a program name with arguments.
7766 lt_save_CC=$CC
7767 lt_save_GCC=$GCC
7768 lt_save_CFLAGS=$CFLAGS
7769 CC=${F77-"f77"}
7770 CFLAGS=$FFLAGS
7771 compiler=$CC
7772 _LT_TAGVAR(compiler, $1)=$CC
7773 _LT_CC_BASENAME([$compiler])
7774 GCC=$G77
7775 if test -n "$compiler"; then
7776 AC_MSG_CHECKING([if libtool supports shared libraries])
7777 AC_MSG_RESULT([$can_build_shared])
7778
7779 AC_MSG_CHECKING([whether to build shared libraries])
7780 test no = "$can_build_shared" && enable_shared=no
7781
7782 # On AIX, shared libraries and static libraries use the same namespace, and
7783 # are all built from PIC.
7784 case $host_os in
7785 aix3*)
7786 test yes = "$enable_shared" && enable_static=no
7787 if test -n "$RANLIB"; then
7788 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7789 postinstall_cmds='$RANLIB $lib'
7790 fi
7791 ;;
7792 aix[[4-9]]*)
7793 if test ia64 != "$host_cpu"; then
7794 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7795 yes,aix,yes) ;; # shared object as lib.so file only
7796 yes,svr4,*) ;; # shared object as lib.so archive member only
7797 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7798 esac
7799 fi
7800 ;;
7801 esac
7802 AC_MSG_RESULT([$enable_shared])
7803
7804 AC_MSG_CHECKING([whether to build static libraries])
7805 # Make sure either enable_shared or enable_static is yes.
7806 test yes = "$enable_shared" || enable_static=yes
7807 AC_MSG_RESULT([$enable_static])
7808
7809 _LT_TAGVAR(GCC, $1)=$G77
7810 _LT_TAGVAR(LD, $1)=$LD
7811
7812 ## CAVEAT EMPTOR:
7813 ## There is no encapsulation within the following macros, do not change
7814 ## the running order or otherwise move them around unless you know exactly
7815 ## what you are doing...
7816 _LT_COMPILER_PIC($1)
7817 _LT_COMPILER_C_O($1)
7818 _LT_COMPILER_FILE_LOCKS($1)
7819 _LT_LINKER_SHLIBS($1)
7820 _LT_SYS_DYNAMIC_LINKER($1)
7821 _LT_LINKER_HARDCODE_LIBPATH($1)
7822
7823 _LT_CONFIG($1)
7824 fi # test -n "$compiler"
7825
7826 GCC=$lt_save_GCC
7827 CC=$lt_save_CC
7828 CFLAGS=$lt_save_CFLAGS
7829 fi # test yes != "$_lt_disable_F77"
7830
7831 AC_LANG_POP
7832 ])# _LT_LANG_F77_CONFIG
7833
7834
7835 # _LT_LANG_FC_CONFIG([TAG])
7836 # -------------------------
7837 # Ensure that the configuration variables for a Fortran compiler are
7838 # suitably defined. These variables are subsequently used by _LT_CONFIG
7839 # to write the compiler configuration to 'libtool'.
7840 m4_defun([_LT_LANG_FC_CONFIG],
7841 [AC_LANG_PUSH(Fortran)
7842
7843 if test -z "$FC" || test no = "$FC"; then
7844 _lt_disable_FC=yes
7845 fi
7846
7847 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7848 _LT_TAGVAR(allow_undefined_flag, $1)=
7849 _LT_TAGVAR(always_export_symbols, $1)=no
7850 _LT_TAGVAR(archive_expsym_cmds, $1)=
7851 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7852 _LT_TAGVAR(hardcode_direct, $1)=no
7853 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7854 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7855 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7856 _LT_TAGVAR(hardcode_minus_L, $1)=no
7857 _LT_TAGVAR(hardcode_automatic, $1)=no
7858 _LT_TAGVAR(inherit_rpath, $1)=no
7859 _LT_TAGVAR(module_cmds, $1)=
7860 _LT_TAGVAR(module_expsym_cmds, $1)=
7861 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7862 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7863 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7864 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7865 _LT_TAGVAR(no_undefined_flag, $1)=
7866 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7867 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7868
7869 # Source file extension for fc test sources.
7870 ac_ext=${ac_fc_srcext-f}
7871
7872 # Object file extension for compiled fc test sources.
7873 objext=o
7874 _LT_TAGVAR(objext, $1)=$objext
7875
7876 # No sense in running all these tests if we already determined that
7877 # the FC compiler isn't working. Some variables (like enable_shared)
7878 # are currently assumed to apply to all compilers on this platform,
7879 # and will be corrupted by setting them based on a non-working compiler.
7880 if test yes != "$_lt_disable_FC"; then
7881 # Code to be used in simple compile tests
7882 lt_simple_compile_test_code="\
7883 subroutine t
7884 return
7885 end
7886 "
7887
7888 # Code to be used in simple link tests
7889 lt_simple_link_test_code="\
7890 program t
7891 end
7892 "
7893
7894 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7895 _LT_TAG_COMPILER
7896
7897 # save warnings/boilerplate of simple test code
7898 _LT_COMPILER_BOILERPLATE
7899 _LT_LINKER_BOILERPLATE
7900
7901 # Allow CC to be a program name with arguments.
7902 lt_save_CC=$CC
7903 lt_save_GCC=$GCC
7904 lt_save_CFLAGS=$CFLAGS
7905 CC=${FC-"f95"}
7906 CFLAGS=$FCFLAGS
7907 compiler=$CC
7908 GCC=$ac_cv_fc_compiler_gnu
7909
7910 _LT_TAGVAR(compiler, $1)=$CC
7911 _LT_CC_BASENAME([$compiler])
7912
7913 if test -n "$compiler"; then
7914 AC_MSG_CHECKING([if libtool supports shared libraries])
7915 AC_MSG_RESULT([$can_build_shared])
7916
7917 AC_MSG_CHECKING([whether to build shared libraries])
7918 test no = "$can_build_shared" && enable_shared=no
7919
7920 # On AIX, shared libraries and static libraries use the same namespace, and
7921 # are all built from PIC.
7922 case $host_os in
7923 aix3*)
7924 test yes = "$enable_shared" && enable_static=no
7925 if test -n "$RANLIB"; then
7926 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7927 postinstall_cmds='$RANLIB $lib'
7928 fi
7929 ;;
7930 aix[[4-9]]*)
7931 if test ia64 != "$host_cpu"; then
7932 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7933 yes,aix,yes) ;; # shared object as lib.so file only
7934 yes,svr4,*) ;; # shared object as lib.so archive member only
7935 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7936 esac
7937 fi
7938 ;;
7939 esac
7940 AC_MSG_RESULT([$enable_shared])
7941
7942 AC_MSG_CHECKING([whether to build static libraries])
7943 # Make sure either enable_shared or enable_static is yes.
7944 test yes = "$enable_shared" || enable_static=yes
7945 AC_MSG_RESULT([$enable_static])
7946
7947 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
7948 _LT_TAGVAR(LD, $1)=$LD
7949
7950 ## CAVEAT EMPTOR:
7951 ## There is no encapsulation within the following macros, do not change
7952 ## the running order or otherwise move them around unless you know exactly
7953 ## what you are doing...
7954 _LT_SYS_HIDDEN_LIBDEPS($1)
7955 _LT_COMPILER_PIC($1)
7956 _LT_COMPILER_C_O($1)
7957 _LT_COMPILER_FILE_LOCKS($1)
7958 _LT_LINKER_SHLIBS($1)
7959 _LT_SYS_DYNAMIC_LINKER($1)
7960 _LT_LINKER_HARDCODE_LIBPATH($1)
7961
7962 _LT_CONFIG($1)
7963 fi # test -n "$compiler"
7964
7965 GCC=$lt_save_GCC
7966 CC=$lt_save_CC
7967 CFLAGS=$lt_save_CFLAGS
7968 fi # test yes != "$_lt_disable_FC"
7969
7970 AC_LANG_POP
7971 ])# _LT_LANG_FC_CONFIG
7972
7973
7974 # _LT_LANG_GCJ_CONFIG([TAG])
7975 # --------------------------
7976 # Ensure that the configuration variables for the GNU Java Compiler compiler
7977 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7978 # to write the compiler configuration to 'libtool'.
7979 m4_defun([_LT_LANG_GCJ_CONFIG],
7980 [AC_REQUIRE([LT_PROG_GCJ])dnl
7981 AC_LANG_SAVE
7982
7983 # Source file extension for Java test sources.
7984 ac_ext=java
7985
7986 # Object file extension for compiled Java test sources.
7987 objext=o
7988 _LT_TAGVAR(objext, $1)=$objext
7989
7990 # Code to be used in simple compile tests
7991 lt_simple_compile_test_code="class foo {}"
7992
7993 # Code to be used in simple link tests
7994 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7995
7996 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7997 _LT_TAG_COMPILER
7998
7999 # save warnings/boilerplate of simple test code
8000 _LT_COMPILER_BOILERPLATE
8001 _LT_LINKER_BOILERPLATE
8002
8003 # Allow CC to be a program name with arguments.
8004 lt_save_CC=$CC
8005 lt_save_CFLAGS=$CFLAGS
8006 lt_save_GCC=$GCC
8007 GCC=yes
8008 CC=${GCJ-"gcj"}
8009 CFLAGS=$GCJFLAGS
8010 compiler=$CC
8011 _LT_TAGVAR(compiler, $1)=$CC
8012 _LT_TAGVAR(LD, $1)=$LD
8013 _LT_CC_BASENAME([$compiler])
8014
8015 # GCJ did not exist at the time GCC didn't implicitly link libc in.
8016 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8017
8018 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8019 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8020 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8021
8022 ## CAVEAT EMPTOR:
8023 ## There is no encapsulation within the following macros, do not change
8024 ## the running order or otherwise move them around unless you know exactly
8025 ## what you are doing...
8026 if test -n "$compiler"; then
8027 _LT_COMPILER_NO_RTTI($1)
8028 _LT_COMPILER_PIC($1)
8029 _LT_COMPILER_C_O($1)
8030 _LT_COMPILER_FILE_LOCKS($1)
8031 _LT_LINKER_SHLIBS($1)
8032 _LT_LINKER_HARDCODE_LIBPATH($1)
8033
8034 _LT_CONFIG($1)
8035 fi
8036
8037 AC_LANG_RESTORE
8038
8039 GCC=$lt_save_GCC
8040 CC=$lt_save_CC
8041 CFLAGS=$lt_save_CFLAGS
8042 ])# _LT_LANG_GCJ_CONFIG
8043
8044
8045 # _LT_LANG_GO_CONFIG([TAG])
8046 # --------------------------
8047 # Ensure that the configuration variables for the GNU Go compiler
8048 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8049 # to write the compiler configuration to 'libtool'.
8050 m4_defun([_LT_LANG_GO_CONFIG],
8051 [AC_REQUIRE([LT_PROG_GO])dnl
8052 AC_LANG_SAVE
8053
8054 # Source file extension for Go test sources.
8055 ac_ext=go
8056
8057 # Object file extension for compiled Go test sources.
8058 objext=o
8059 _LT_TAGVAR(objext, $1)=$objext
8060
8061 # Code to be used in simple compile tests
8062 lt_simple_compile_test_code="package main; func main() { }"
8063
8064 # Code to be used in simple link tests
8065 lt_simple_link_test_code='package main; func main() { }'
8066
8067 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8068 _LT_TAG_COMPILER
8069
8070 # save warnings/boilerplate of simple test code
8071 _LT_COMPILER_BOILERPLATE
8072 _LT_LINKER_BOILERPLATE
8073
8074 # Allow CC to be a program name with arguments.
8075 lt_save_CC=$CC
8076 lt_save_CFLAGS=$CFLAGS
8077 lt_save_GCC=$GCC
8078 GCC=yes
8079 CC=${GOC-"gccgo"}
8080 CFLAGS=$GOFLAGS
8081 compiler=$CC
8082 _LT_TAGVAR(compiler, $1)=$CC
8083 _LT_TAGVAR(LD, $1)=$LD
8084 _LT_CC_BASENAME([$compiler])
8085
8086 # Go did not exist at the time GCC didn't implicitly link libc in.
8087 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8088
8089 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8090 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8091 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8092
8093 ## CAVEAT EMPTOR:
8094 ## There is no encapsulation within the following macros, do not change
8095 ## the running order or otherwise move them around unless you know exactly
8096 ## what you are doing...
8097 if test -n "$compiler"; then
8098 _LT_COMPILER_NO_RTTI($1)
8099 _LT_COMPILER_PIC($1)
8100 _LT_COMPILER_C_O($1)
8101 _LT_COMPILER_FILE_LOCKS($1)
8102 _LT_LINKER_SHLIBS($1)
8103 _LT_LINKER_HARDCODE_LIBPATH($1)
8104
8105 _LT_CONFIG($1)
8106 fi
8107
8108 AC_LANG_RESTORE
8109
8110 GCC=$lt_save_GCC
8111 CC=$lt_save_CC
8112 CFLAGS=$lt_save_CFLAGS
8113 ])# _LT_LANG_GO_CONFIG
8114
8115
8116 # _LT_LANG_RC_CONFIG([TAG])
8117 # -------------------------
8118 # Ensure that the configuration variables for the Windows resource compiler
8119 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8120 # to write the compiler configuration to 'libtool'.
8121 m4_defun([_LT_LANG_RC_CONFIG],
8122 [AC_REQUIRE([LT_PROG_RC])dnl
8123 AC_LANG_SAVE
8124
8125 # Source file extension for RC test sources.
8126 ac_ext=rc
8127
8128 # Object file extension for compiled RC test sources.
8129 objext=o
8130 _LT_TAGVAR(objext, $1)=$objext
8131
8132 # Code to be used in simple compile tests
8133 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
8134
8135 # Code to be used in simple link tests
8136 lt_simple_link_test_code=$lt_simple_compile_test_code
8137
8138 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8139 _LT_TAG_COMPILER
8140
8141 # save warnings/boilerplate of simple test code
8142 _LT_COMPILER_BOILERPLATE
8143 _LT_LINKER_BOILERPLATE
8144
8145 # Allow CC to be a program name with arguments.
8146 lt_save_CC=$CC
8147 lt_save_CFLAGS=$CFLAGS
8148 lt_save_GCC=$GCC
8149 GCC=
8150 CC=${RC-"windres"}
8151 CFLAGS=
8152 compiler=$CC
8153 _LT_TAGVAR(compiler, $1)=$CC
8154 _LT_CC_BASENAME([$compiler])
8155 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
8156
8157 if test -n "$compiler"; then
8158 :
8159 _LT_CONFIG($1)
8160 fi
8161
8162 GCC=$lt_save_GCC
8163 AC_LANG_RESTORE
8164 CC=$lt_save_CC
8165 CFLAGS=$lt_save_CFLAGS
8166 ])# _LT_LANG_RC_CONFIG
8167
8168
8169 # LT_PROG_GCJ
8170 # -----------
8171 AC_DEFUN([LT_PROG_GCJ],
8172 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
8173 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
8174 [AC_CHECK_TOOL(GCJ, gcj,)
8175 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
8176 AC_SUBST(GCJFLAGS)])])[]dnl
8177 ])
8178
8179 # Old name:
8180 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
8181 dnl aclocal-1.4 backwards compatibility:
8182 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8183
8184
8185 # LT_PROG_GO
8186 # ----------
8187 AC_DEFUN([LT_PROG_GO],
8188 [AC_CHECK_TOOL(GOC, gccgo,)
8189 ])
8190
8191
8192 # LT_PROG_RC
8193 # ----------
8194 AC_DEFUN([LT_PROG_RC],
8195 [AC_CHECK_TOOL(RC, windres,)
8196 ])
8197
8198 # Old name:
8199 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
8200 dnl aclocal-1.4 backwards compatibility:
8201 dnl AC_DEFUN([LT_AC_PROG_RC], [])
8202
8203
8204 # _LT_DECL_EGREP
8205 # --------------
8206 # If we don't have a new enough Autoconf to choose the best grep
8207 # available, choose the one first in the user's PATH.
8208 m4_defun([_LT_DECL_EGREP],
8209 [AC_REQUIRE([AC_PROG_EGREP])dnl
8210 AC_REQUIRE([AC_PROG_FGREP])dnl
8211 test -z "$GREP" && GREP=grep
8212 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
8213 _LT_DECL([], [EGREP], [1], [An ERE matcher])
8214 _LT_DECL([], [FGREP], [1], [A literal string matcher])
8215 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8216 AC_SUBST([GREP])
8217 ])
8218
8219
8220 # _LT_DECL_OBJDUMP
8221 # --------------
8222 # If we don't have a new enough Autoconf to choose the best objdump
8223 # available, choose the one first in the user's PATH.
8224 m4_defun([_LT_DECL_OBJDUMP],
8225 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
8226 test -z "$OBJDUMP" && OBJDUMP=objdump
8227 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
8228 AC_SUBST([OBJDUMP])
8229 ])
8230
8231 # _LT_DECL_DLLTOOL
8232 # ----------------
8233 # Ensure DLLTOOL variable is set.
8234 m4_defun([_LT_DECL_DLLTOOL],
8235 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8236 test -z "$DLLTOOL" && DLLTOOL=dlltool
8237 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
8238 AC_SUBST([DLLTOOL])
8239 ])
8240
8241 # _LT_DECL_FILECMD
8242 # ----------------
8243 # Check for a file(cmd) program that can be used to detect file type and magic
8244 m4_defun([_LT_DECL_FILECMD],
8245 [AC_CHECK_TOOL([FILECMD], [file], [:])
8246 _LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types])
8247 ])# _LD_DECL_FILECMD
8248
8249 # _LT_DECL_SED
8250 # ------------
8251 # Check for a fully-functional sed program, that truncates
8252 # as few characters as possible. Prefer GNU sed if found.
8253 m4_defun([_LT_DECL_SED],
8254 [AC_PROG_SED
8255 test -z "$SED" && SED=sed
8256 Xsed="$SED -e 1s/^X//"
8257 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
8258 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8259 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
8260 ])# _LT_DECL_SED
8261
8262 m4_ifndef([AC_PROG_SED], [
8263 ############################################################
8264 # NOTE: This macro has been submitted for inclusion into #
8265 # GNU Autoconf as AC_PROG_SED. When it is available in #
8266 # a released version of Autoconf we should remove this #
8267 # macro and use it instead. #
8268 ############################################################
8269
8270 m4_defun([AC_PROG_SED],
8271 [AC_MSG_CHECKING([for a sed that does not truncate output])
8272 AC_CACHE_VAL(lt_cv_path_SED,
8273 [# Loop through the user's path and test for sed and gsed.
8274 # Then use that list of sed's as ones to test for truncation.
8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276 for as_dir in $PATH
8277 do
8278 IFS=$as_save_IFS
8279 test -z "$as_dir" && as_dir=.
8280 for lt_ac_prog in sed gsed; do
8281 for ac_exec_ext in '' $ac_executable_extensions; do
8282 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8283 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8284 fi
8285 done
8286 done
8287 done
8288 IFS=$as_save_IFS
8289 lt_ac_max=0
8290 lt_ac_count=0
8291 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
8292 # along with /bin/sed that truncates output.
8293 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8294 test ! -f "$lt_ac_sed" && continue
8295 cat /dev/null > conftest.in
8296 lt_ac_count=0
8297 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8298 # Check for GNU sed and select it if it is found.
8299 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8300 lt_cv_path_SED=$lt_ac_sed
8301 break
8302 fi
8303 while true; do
8304 cat conftest.in conftest.in >conftest.tmp
8305 mv conftest.tmp conftest.in
8306 cp conftest.in conftest.nl
8307 echo >>conftest.nl
8308 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8309 cmp -s conftest.out conftest.nl || break
8310 # 10000 chars as input seems more than enough
8311 test 10 -lt "$lt_ac_count" && break
8312 lt_ac_count=`expr $lt_ac_count + 1`
8313 if test "$lt_ac_count" -gt "$lt_ac_max"; then
8314 lt_ac_max=$lt_ac_count
8315 lt_cv_path_SED=$lt_ac_sed
8316 fi
8317 done
8318 done
8319 ])
8320 SED=$lt_cv_path_SED
8321 AC_SUBST([SED])
8322 AC_MSG_RESULT([$SED])
8323 ])#AC_PROG_SED
8324 ])#m4_ifndef
8325
8326 # Old name:
8327 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8328 dnl aclocal-1.4 backwards compatibility:
8329 dnl AC_DEFUN([LT_AC_PROG_SED], [])
8330
8331
8332 # _LT_CHECK_SHELL_FEATURES
8333 # ------------------------
8334 # Find out whether the shell is Bourne or XSI compatible,
8335 # or has some other useful features.
8336 m4_defun([_LT_CHECK_SHELL_FEATURES],
8337 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8338 lt_unset=unset
8339 else
8340 lt_unset=false
8341 fi
8342 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8343
8344 # test EBCDIC or ASCII
8345 case `echo X|tr X '\101'` in
8346 A) # ASCII based system
8347 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8348 lt_SP2NL='tr \040 \012'
8349 lt_NL2SP='tr \015\012 \040\040'
8350 ;;
8351 *) # EBCDIC based system
8352 lt_SP2NL='tr \100 \n'
8353 lt_NL2SP='tr \r\n \100\100'
8354 ;;
8355 esac
8356 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8357 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8358 ])# _LT_CHECK_SHELL_FEATURES
8359
8360
8361 # _LT_PATH_CONVERSION_FUNCTIONS
8362 # -----------------------------
8363 # Determine what file name conversion functions should be used by
8364 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
8365 # for certain cross-compile configurations and native mingw.
8366 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8367 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8368 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8369 AC_MSG_CHECKING([how to convert $build file names to $host format])
8370 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8371 [case $host in
8372 *-*-mingw* )
8373 case $build in
8374 *-*-mingw* ) # actually msys
8375 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8376 ;;
8377 *-*-cygwin* )
8378 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8379 ;;
8380 * ) # otherwise, assume *nix
8381 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8382 ;;
8383 esac
8384 ;;
8385 *-*-cygwin* )
8386 case $build in
8387 *-*-mingw* ) # actually msys
8388 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8389 ;;
8390 *-*-cygwin* )
8391 lt_cv_to_host_file_cmd=func_convert_file_noop
8392 ;;
8393 * ) # otherwise, assume *nix
8394 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8395 ;;
8396 esac
8397 ;;
8398 * ) # unhandled hosts (and "normal" native builds)
8399 lt_cv_to_host_file_cmd=func_convert_file_noop
8400 ;;
8401 esac
8402 ])
8403 to_host_file_cmd=$lt_cv_to_host_file_cmd
8404 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
8405 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
8406 [0], [convert $build file names to $host format])dnl
8407
8408 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
8409 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
8410 [#assume ordinary cross tools, or native build.
8411 lt_cv_to_tool_file_cmd=func_convert_file_noop
8412 case $host in
8413 *-*-mingw* )
8414 case $build in
8415 *-*-mingw* ) # actually msys
8416 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8417 ;;
8418 esac
8419 ;;
8420 esac
8421 ])
8422 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8423 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8424 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8425 [0], [convert $build files to toolchain format])dnl
8426 ])# _LT_PATH_CONVERSION_FUNCTIONS
0 # Helper functions for option handling. -*- Autoconf -*-
1 #
2 # Copyright (C) 2004-2005, 2007-2009, 2011-2019, 2021-2022 Free
3 # Software Foundation, Inc.
4 # Written by Gary V. Vaughan, 2004
5 #
6 # This file is free software; the Free Software Foundation gives
7 # unlimited permission to copy and/or distribute it, with or without
8 # modifications, as long as this notice is preserved.
9
10 # serial 8 ltoptions.m4
11
12 # This is to help aclocal find these macros, as it can't see m4_define.
13 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
14
15
16 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
17 # ------------------------------------------
18 m4_define([_LT_MANGLE_OPTION],
19 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
20
21
22 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
23 # ---------------------------------------
24 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
25 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
26 # saved as a flag.
27 m4_define([_LT_SET_OPTION],
28 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
29 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
30 _LT_MANGLE_DEFUN([$1], [$2]),
31 [m4_warning([Unknown $1 option '$2'])])[]dnl
32 ])
33
34
35 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
36 # ------------------------------------------------------------
37 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
38 m4_define([_LT_IF_OPTION],
39 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
40
41
42 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
43 # -------------------------------------------------------
44 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
45 # are set.
46 m4_define([_LT_UNLESS_OPTIONS],
47 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
48 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
49 [m4_define([$0_found])])])[]dnl
50 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
51 ])[]dnl
52 ])
53
54
55 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
56 # ----------------------------------------
57 # OPTION-LIST is a space-separated list of Libtool options associated
58 # with MACRO-NAME. If any OPTION has a matching handler declared with
59 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
60 # the unknown option and exit.
61 m4_defun([_LT_SET_OPTIONS],
62 [# Set options
63 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
64 [_LT_SET_OPTION([$1], _LT_Option)])
65
66 m4_if([$1],[LT_INIT],[
67 dnl
68 dnl Simply set some default values (i.e off) if boolean options were not
69 dnl specified:
70 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
71 ])
72 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
73 ])
74 dnl
75 dnl If no reference was made to various pairs of opposing options, then
76 dnl we run the default mode handler for the pair. For example, if neither
77 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
78 dnl archives by default:
79 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
80 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
81 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
82 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
83 [_LT_ENABLE_FAST_INSTALL])
84 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
85 [_LT_WITH_AIX_SONAME([aix])])
86 ])
87 ])# _LT_SET_OPTIONS
88
89
90 ## --------------------------------- ##
91 ## Macros to handle LT_INIT options. ##
92 ## --------------------------------- ##
93
94 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
95 # -----------------------------------------
96 m4_define([_LT_MANGLE_DEFUN],
97 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
98
99
100 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
101 # -----------------------------------------------
102 m4_define([LT_OPTION_DEFINE],
103 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
104 ])# LT_OPTION_DEFINE
105
106
107 # dlopen
108 # ------
109 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
110 ])
111
112 AU_DEFUN([AC_LIBTOOL_DLOPEN],
113 [_LT_SET_OPTION([LT_INIT], [dlopen])
114 AC_DIAGNOSE([obsolete],
115 [$0: Remove this warning and the call to _LT_SET_OPTION when you
116 put the 'dlopen' option into LT_INIT's first parameter.])
117 ])
118
119 dnl aclocal-1.4 backwards compatibility:
120 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
121
122
123 # win32-dll
124 # ---------
125 # Declare package support for building win32 dll's.
126 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
127 [enable_win32_dll=yes
128
129 case $host in
130 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
131 AC_CHECK_TOOL(AS, as, false)
132 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
133 AC_CHECK_TOOL(OBJDUMP, objdump, false)
134 ;;
135 esac
136
137 test -z "$AS" && AS=as
138 _LT_DECL([], [AS], [1], [Assembler program])dnl
139
140 test -z "$DLLTOOL" && DLLTOOL=dlltool
141 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
142
143 test -z "$OBJDUMP" && OBJDUMP=objdump
144 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
145 ])# win32-dll
146
147 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
148 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
149 _LT_SET_OPTION([LT_INIT], [win32-dll])
150 AC_DIAGNOSE([obsolete],
151 [$0: Remove this warning and the call to _LT_SET_OPTION when you
152 put the 'win32-dll' option into LT_INIT's first parameter.])
153 ])
154
155 dnl aclocal-1.4 backwards compatibility:
156 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
157
158
159 # _LT_ENABLE_SHARED([DEFAULT])
160 # ----------------------------
161 # implement the --enable-shared flag, and supports the 'shared' and
162 # 'disable-shared' LT_INIT options.
163 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
164 m4_define([_LT_ENABLE_SHARED],
165 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
166 AC_ARG_ENABLE([shared],
167 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
168 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
169 [p=${PACKAGE-default}
170 case $enableval in
171 yes) enable_shared=yes ;;
172 no) enable_shared=no ;;
173 *)
174 enable_shared=no
175 # Look at the argument we got. We use all the common list separators.
176 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
177 for pkg in $enableval; do
178 IFS=$lt_save_ifs
179 if test "X$pkg" = "X$p"; then
180 enable_shared=yes
181 fi
182 done
183 IFS=$lt_save_ifs
184 ;;
185 esac],
186 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
187
188 _LT_DECL([build_libtool_libs], [enable_shared], [0],
189 [Whether or not to build shared libraries])
190 ])# _LT_ENABLE_SHARED
191
192 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
193 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
194
195 # Old names:
196 AC_DEFUN([AC_ENABLE_SHARED],
197 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
198 ])
199
200 AC_DEFUN([AC_DISABLE_SHARED],
201 [_LT_SET_OPTION([LT_INIT], [disable-shared])
202 ])
203
204 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
205 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
206
207 dnl aclocal-1.4 backwards compatibility:
208 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
209 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
210
211
212
213 # _LT_ENABLE_STATIC([DEFAULT])
214 # ----------------------------
215 # implement the --enable-static flag, and support the 'static' and
216 # 'disable-static' LT_INIT options.
217 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
218 m4_define([_LT_ENABLE_STATIC],
219 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
220 AC_ARG_ENABLE([static],
221 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
222 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
223 [p=${PACKAGE-default}
224 case $enableval in
225 yes) enable_static=yes ;;
226 no) enable_static=no ;;
227 *)
228 enable_static=no
229 # Look at the argument we got. We use all the common list separators.
230 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
231 for pkg in $enableval; do
232 IFS=$lt_save_ifs
233 if test "X$pkg" = "X$p"; then
234 enable_static=yes
235 fi
236 done
237 IFS=$lt_save_ifs
238 ;;
239 esac],
240 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
241
242 _LT_DECL([build_old_libs], [enable_static], [0],
243 [Whether or not to build static libraries])
244 ])# _LT_ENABLE_STATIC
245
246 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
247 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
248
249 # Old names:
250 AC_DEFUN([AC_ENABLE_STATIC],
251 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
252 ])
253
254 AC_DEFUN([AC_DISABLE_STATIC],
255 [_LT_SET_OPTION([LT_INIT], [disable-static])
256 ])
257
258 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
259 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
260
261 dnl aclocal-1.4 backwards compatibility:
262 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
263 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
264
265
266
267 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
268 # ----------------------------------
269 # implement the --enable-fast-install flag, and support the 'fast-install'
270 # and 'disable-fast-install' LT_INIT options.
271 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
272 m4_define([_LT_ENABLE_FAST_INSTALL],
273 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
274 AC_ARG_ENABLE([fast-install],
275 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
276 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
277 [p=${PACKAGE-default}
278 case $enableval in
279 yes) enable_fast_install=yes ;;
280 no) enable_fast_install=no ;;
281 *)
282 enable_fast_install=no
283 # Look at the argument we got. We use all the common list separators.
284 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
285 for pkg in $enableval; do
286 IFS=$lt_save_ifs
287 if test "X$pkg" = "X$p"; then
288 enable_fast_install=yes
289 fi
290 done
291 IFS=$lt_save_ifs
292 ;;
293 esac],
294 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
295
296 _LT_DECL([fast_install], [enable_fast_install], [0],
297 [Whether or not to optimize for fast installation])dnl
298 ])# _LT_ENABLE_FAST_INSTALL
299
300 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
301 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
302
303 # Old names:
304 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
305 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
306 AC_DIAGNOSE([obsolete],
307 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
308 the 'fast-install' option into LT_INIT's first parameter.])
309 ])
310
311 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
312 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
313 AC_DIAGNOSE([obsolete],
314 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
315 the 'disable-fast-install' option into LT_INIT's first parameter.])
316 ])
317
318 dnl aclocal-1.4 backwards compatibility:
319 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
320 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
321
322
323 # _LT_WITH_AIX_SONAME([DEFAULT])
324 # ----------------------------------
325 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
326 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
327 # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
328 m4_define([_LT_WITH_AIX_SONAME],
329 [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
330 shared_archive_member_spec=
331 case $host,$enable_shared in
332 power*-*-aix[[5-9]]*,yes)
333 AC_MSG_CHECKING([which variant of shared library versioning to provide])
334 AC_ARG_WITH([aix-soname],
335 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
336 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
337 [case $withval in
338 aix|svr4|both)
339 ;;
340 *)
341 AC_MSG_ERROR([Unknown argument to --with-aix-soname])
342 ;;
343 esac
344 lt_cv_with_aix_soname=$with_aix_soname],
345 [AC_CACHE_VAL([lt_cv_with_aix_soname],
346 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
347 with_aix_soname=$lt_cv_with_aix_soname])
348 AC_MSG_RESULT([$with_aix_soname])
349 if test aix != "$with_aix_soname"; then
350 # For the AIX way of multilib, we name the shared archive member
351 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
352 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
353 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
354 # the AIX toolchain works better with OBJECT_MODE set (default 32).
355 if test 64 = "${OBJECT_MODE-32}"; then
356 shared_archive_member_spec=shr_64
357 else
358 shared_archive_member_spec=shr
359 fi
360 fi
361 ;;
362 *)
363 with_aix_soname=aix
364 ;;
365 esac
366
367 _LT_DECL([], [shared_archive_member_spec], [0],
368 [Shared archive member basename, for filename based shared library versioning on AIX])dnl
369 ])# _LT_WITH_AIX_SONAME
370
371 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
372 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
373 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
374
375
376 # _LT_WITH_PIC([MODE])
377 # --------------------
378 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
379 # LT_INIT options.
380 # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
381 m4_define([_LT_WITH_PIC],
382 [AC_ARG_WITH([pic],
383 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
384 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
385 [lt_p=${PACKAGE-default}
386 case $withval in
387 yes|no) pic_mode=$withval ;;
388 *)
389 pic_mode=default
390 # Look at the argument we got. We use all the common list separators.
391 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
392 for lt_pkg in $withval; do
393 IFS=$lt_save_ifs
394 if test "X$lt_pkg" = "X$lt_p"; then
395 pic_mode=yes
396 fi
397 done
398 IFS=$lt_save_ifs
399 ;;
400 esac],
401 [pic_mode=m4_default([$1], [default])])
402
403 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
404 ])# _LT_WITH_PIC
405
406 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
407 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
408
409 # Old name:
410 AU_DEFUN([AC_LIBTOOL_PICMODE],
411 [_LT_SET_OPTION([LT_INIT], [pic-only])
412 AC_DIAGNOSE([obsolete],
413 [$0: Remove this warning and the call to _LT_SET_OPTION when you
414 put the 'pic-only' option into LT_INIT's first parameter.])
415 ])
416
417 dnl aclocal-1.4 backwards compatibility:
418 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
419
420 ## ----------------- ##
421 ## LTDL_INIT Options ##
422 ## ----------------- ##
423
424 m4_define([_LTDL_MODE], [])
425 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
426 [m4_define([_LTDL_MODE], [nonrecursive])])
427 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
428 [m4_define([_LTDL_MODE], [recursive])])
429 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
430 [m4_define([_LTDL_MODE], [subproject])])
431
432 m4_define([_LTDL_TYPE], [])
433 LT_OPTION_DEFINE([LTDL_INIT], [installable],
434 [m4_define([_LTDL_TYPE], [installable])])
435 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
436 [m4_define([_LTDL_TYPE], [convenience])])
0 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
1 #
2 # Copyright (C) 2004-2005, 2007-2008, 2011-2019, 2021-2022 Free Software
3 # Foundation, Inc.
4 # Written by Gary V. Vaughan, 2004
5 #
6 # This file is free software; the Free Software Foundation gives
7 # unlimited permission to copy and/or distribute it, with or without
8 # modifications, as long as this notice is preserved.
9
10 # serial 6 ltsugar.m4
11
12 # This is to help aclocal find these macros, as it can't see m4_define.
13 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
14
15
16 # lt_join(SEP, ARG1, [ARG2...])
17 # -----------------------------
18 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
19 # associated separator.
20 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
21 # versions in m4sugar had bugs.
22 m4_define([lt_join],
23 [m4_if([$#], [1], [],
24 [$#], [2], [[$2]],
25 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
26 m4_define([_lt_join],
27 [m4_if([$#$2], [2], [],
28 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
29
30
31 # lt_car(LIST)
32 # lt_cdr(LIST)
33 # ------------
34 # Manipulate m4 lists.
35 # These macros are necessary as long as will still need to support
36 # Autoconf-2.59, which quotes differently.
37 m4_define([lt_car], [[$1]])
38 m4_define([lt_cdr],
39 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
40 [$#], 1, [],
41 [m4_dquote(m4_shift($@))])])
42 m4_define([lt_unquote], $1)
43
44
45 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
46 # ------------------------------------------
47 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
48 # Note that neither SEPARATOR nor STRING are expanded; they are appended
49 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
50 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
51 # than defined and empty).
52 #
53 # This macro is needed until we can rely on Autoconf 2.62, since earlier
54 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
55 m4_define([lt_append],
56 [m4_define([$1],
57 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
58
59
60
61 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
62 # ----------------------------------------------------------
63 # Produce a SEP delimited list of all paired combinations of elements of
64 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
65 # has the form PREFIXmINFIXSUFFIXn.
66 # Needed until we can rely on m4_combine added in Autoconf 2.62.
67 m4_define([lt_combine],
68 [m4_if(m4_eval([$# > 3]), [1],
69 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
70 [[m4_foreach([_Lt_prefix], [$2],
71 [m4_foreach([_Lt_suffix],
72 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
73 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
74
75
76 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
77 # -----------------------------------------------------------------------
78 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
79 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
80 m4_define([lt_if_append_uniq],
81 [m4_ifdef([$1],
82 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
83 [lt_append([$1], [$2], [$3])$4],
84 [$5])],
85 [lt_append([$1], [$2], [$3])$4])])
86
87
88 # lt_dict_add(DICT, KEY, VALUE)
89 # -----------------------------
90 m4_define([lt_dict_add],
91 [m4_define([$1($2)], [$3])])
92
93
94 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
95 # --------------------------------------------
96 m4_define([lt_dict_add_subkey],
97 [m4_define([$1($2:$3)], [$4])])
98
99
100 # lt_dict_fetch(DICT, KEY, [SUBKEY])
101 # ----------------------------------
102 m4_define([lt_dict_fetch],
103 [m4_ifval([$3],
104 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
105 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
106
107
108 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
109 # -----------------------------------------------------------------
110 m4_define([lt_if_dict_fetch],
111 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
112 [$5],
113 [$6])])
114
115
116 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
117 # --------------------------------------------------------------
118 m4_define([lt_dict_filter],
119 [m4_if([$5], [], [],
120 [lt_join(m4_quote(m4_default([$4], [[, ]])),
121 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
122 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
123 ])
0 # ltversion.m4 -- version numbers -*- Autoconf -*-
1 #
2 # Copyright (C) 2004, 2011-2019, 2021-2022 Free Software Foundation,
3 # Inc.
4 # Written by Scott James Remnant, 2004
5 #
6 # This file is free software; the Free Software Foundation gives
7 # unlimited permission to copy and/or distribute it, with or without
8 # modifications, as long as this notice is preserved.
9
10 # @configure_input@
11
12 # serial 4245 ltversion.m4
13 # This file is part of GNU Libtool
14
15 m4_define([LT_PACKAGE_VERSION], [2.4.7])
16 m4_define([LT_PACKAGE_REVISION], [2.4.7])
17
18 AC_DEFUN([LTVERSION_VERSION],
19 [macro_version='2.4.7'
20 macro_revision='2.4.7'
21 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
22 _LT_DECL(, macro_revision, 0)
23 ])
0 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
1 #
2 # Copyright (C) 2004-2005, 2007, 2009, 2011-2019, 2021-2022 Free
3 # Software Foundation, Inc.
4 # Written by Scott James Remnant, 2004.
5 #
6 # This file is free software; the Free Software Foundation gives
7 # unlimited permission to copy and/or distribute it, with or without
8 # modifications, as long as this notice is preserved.
9
10 # serial 5 lt~obsolete.m4
11
12 # These exist entirely to fool aclocal when bootstrapping libtool.
13 #
14 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
15 # which have later been changed to m4_define as they aren't part of the
16 # exported API, or moved to Autoconf or Automake where they belong.
17 #
18 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
19 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
20 # using a macro with the same name in our local m4/libtool.m4 it'll
21 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
22 # and doesn't know about Autoconf macros at all.)
23 #
24 # So we provide this file, which has a silly filename so it's always
25 # included after everything else. This provides aclocal with the
26 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
27 # because those macros already exist, or will be overwritten later.
28 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
29 #
30 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
31 # Yes, that means every name once taken will need to remain here until
32 # we give up compatibility with versions before 1.7, at which point
33 # we need to keep only those names which we still refer to.
34
35 # This is to help aclocal find these macros, as it can't see m4_define.
36 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
37
38 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
39 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
40 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
41 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
42 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
43 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
44 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
45 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
46 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
47 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
48 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
49 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
50 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
51 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
52 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
53 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
54 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
55 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
56 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
57 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
58 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
59 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
60 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
61 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
62 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
63 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
64 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
65 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
66 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
67 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
68 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
69 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
70 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
71 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
72 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
73 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
74 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
75 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
76 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
77 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
78 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
79 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
80 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
81 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
82 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
83 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
84 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
85 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
86 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
87 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
88 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
89 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
90 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
91 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
92 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
93 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
94 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
95 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
96 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
97 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
98 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
4444
4545 GMSGFMT = @GMSGFMT@
4646 MSGFMT = @MSGFMT@
47 XGETTEXT_ARGS = @XGETTEXT_ARGS@
48 XGETTEXT = @XGETTEXT@ $(XGETTEXT_ARGS)
47 XGETTEXT = @XGETTEXT@
4948 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
5049 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
51 MSGMERGE = XGETTEXT_ARGS="$(XGETTEXT_ARGS)" INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
52 GENPOT = XGETTEXT_ARGS="$(XGETTEXT_ARGS)" INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
50 MSGMERGE = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
51 GENPOT = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
5352
5453 ALL_LINGUAS = @ALL_LINGUAS@
5554
9090 host_triplet = @host@
9191 subdir = src
9292 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
93 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
93 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
94 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
95 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
96 $(top_srcdir)/configure.ac
9497 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9598 $(ACLOCAL_M4)
9699 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
210213 AUTOHEADER = @AUTOHEADER@
211214 AUTOMAKE = @AUTOMAKE@
212215 AWK = @AWK@
213 CATALOGS = @CATALOGS@
214 CATOBJEXT = @CATOBJEXT@
215216 CC = @CC@
216217 CCDEPMODE = @CCDEPMODE@
217218 CFLAGS = @CFLAGS@
219220 CSCOPE = @CSCOPE@
220221 CTAGS = @CTAGS@
221222 CYGPATH_W = @CYGPATH_W@
222 DATADIRNAME = @DATADIRNAME@
223223 DEFS = @DEFS@
224224 DEPDIR = @DEPDIR@
225225 DLLTOOL = @DLLTOOL@
232232 ETAGS = @ETAGS@
233233 EXEEXT = @EXEEXT@
234234 FGREP = @FGREP@
235 FILECMD = @FILECMD@
235236 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
236 GMOFILES = @GMOFILES@
237237 GMSGFMT = @GMSGFMT@
238238 GREP = @GREP@
239239 INSTALL = @INSTALL@
241241 INSTALL_PROGRAM = @INSTALL_PROGRAM@
242242 INSTALL_SCRIPT = @INSTALL_SCRIPT@
243243 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
244 INSTOBJEXT = @INSTOBJEXT@
245 INTLLIBS = @INTLLIBS@
246244 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
247245 INTLTOOL_MERGE = @INTLTOOL_MERGE@
248246 INTLTOOL_PERL = @INTLTOOL_PERL@
251249 INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
252250 INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
253251 INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
254 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
255252 LD = @LD@
256253 LDFLAGS = @LDFLAGS@
257254 LIBOBJS = @LIBOBJS@
273270 MAKEINFO = @MAKEINFO@
274271 MANIFEST_TOOL = @MANIFEST_TOOL@
275272 MKDIR_P = @MKDIR_P@
276 MKINSTALLDIRS = @MKINSTALLDIRS@
277273 MSGFMT = @MSGFMT@
278 MSGFMT_OPTS = @MSGFMT_OPTS@
279274 MSGMERGE = @MSGMERGE@
280275 NM = @NM@
281276 NMEDIT = @NMEDIT@
294289 PKG_CONFIG = @PKG_CONFIG@
295290 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
296291 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
297 POFILES = @POFILES@
298 POSUB = @POSUB@
299 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
300 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
301292 RANLIB = @RANLIB@
302293 SED = @SED@
303294 SET_MAKE = @SET_MAKE@
306297 USE_NLS = @USE_NLS@
307298 VERSION = @VERSION@
308299 XGETTEXT = @XGETTEXT@
309 XGETTEXT_ARGS = @XGETTEXT_ARGS@
310300 abs_builddir = @abs_builddir@
311301 abs_srcdir = @abs_srcdir@
312302 abs_top_builddir = @abs_top_builddir@