cannam@86
|
1 # generated automatically by aclocal 1.7.9 -*- Autoconf -*-
|
cannam@86
|
2
|
cannam@86
|
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
|
cannam@86
|
4 # Free Software Foundation, Inc.
|
cannam@86
|
5 # This file is free software; the Free Software Foundation
|
cannam@86
|
6 # gives unlimited permission to copy and/or distribute it,
|
cannam@86
|
7 # with or without modifications, as long as this notice is preserved.
|
cannam@86
|
8
|
cannam@86
|
9 # This program is distributed in the hope that it will be useful,
|
cannam@86
|
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
cannam@86
|
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
cannam@86
|
12 # PARTICULAR PURPOSE.
|
cannam@86
|
13
|
cannam@86
|
14 # Do all the work for Automake. -*- Autoconf -*-
|
cannam@86
|
15
|
cannam@86
|
16 # This macro actually does too much some checks are only needed if
|
cannam@86
|
17 # your package does certain things. But this isn't really a big deal.
|
cannam@86
|
18
|
cannam@86
|
19 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
|
cannam@86
|
20 # Free Software Foundation, Inc.
|
cannam@86
|
21
|
cannam@86
|
22 # This program is free software; you can redistribute it and/or modify
|
cannam@86
|
23 # it under the terms of the GNU General Public License as published by
|
cannam@86
|
24 # the Free Software Foundation; either version 2, or (at your option)
|
cannam@86
|
25 # any later version.
|
cannam@86
|
26
|
cannam@86
|
27 # This program is distributed in the hope that it will be useful,
|
cannam@86
|
28 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@86
|
29 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@86
|
30 # GNU General Public License for more details.
|
cannam@86
|
31
|
cannam@86
|
32 # You should have received a copy of the GNU General Public License
|
cannam@86
|
33 # along with this program; if not, write to the Free Software
|
cannam@86
|
34 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
cannam@86
|
35 # 02111-1307, USA.
|
cannam@86
|
36
|
cannam@86
|
37 # serial 10
|
cannam@86
|
38
|
cannam@86
|
39 AC_PREREQ([2.54])
|
cannam@86
|
40
|
cannam@86
|
41 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
|
cannam@86
|
42 # the ones we care about.
|
cannam@86
|
43 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
cannam@86
|
44
|
cannam@86
|
45 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
cannam@86
|
46 # AM_INIT_AUTOMAKE([OPTIONS])
|
cannam@86
|
47 # -----------------------------------------------
|
cannam@86
|
48 # The call with PACKAGE and VERSION arguments is the old style
|
cannam@86
|
49 # call (pre autoconf-2.50), which is being phased out. PACKAGE
|
cannam@86
|
50 # and VERSION should now be passed to AC_INIT and removed from
|
cannam@86
|
51 # the call to AM_INIT_AUTOMAKE.
|
cannam@86
|
52 # We support both call styles for the transition. After
|
cannam@86
|
53 # the next Automake release, Autoconf can make the AC_INIT
|
cannam@86
|
54 # arguments mandatory, and then we can depend on a new Autoconf
|
cannam@86
|
55 # release and drop the old call support.
|
cannam@86
|
56 AC_DEFUN([AM_INIT_AUTOMAKE],
|
cannam@86
|
57 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
cannam@86
|
58 AC_REQUIRE([AC_PROG_INSTALL])dnl
|
cannam@86
|
59 # test to see if srcdir already configured
|
cannam@86
|
60 if test "`cd $srcdir && pwd`" != "`pwd`" &&
|
cannam@86
|
61 test -f $srcdir/config.status; then
|
cannam@86
|
62 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
cannam@86
|
63 fi
|
cannam@86
|
64
|
cannam@86
|
65 # test whether we have cygpath
|
cannam@86
|
66 if test -z "$CYGPATH_W"; then
|
cannam@86
|
67 if (cygpath --version) >/dev/null 2>/dev/null; then
|
cannam@86
|
68 CYGPATH_W='cygpath -w'
|
cannam@86
|
69 else
|
cannam@86
|
70 CYGPATH_W=echo
|
cannam@86
|
71 fi
|
cannam@86
|
72 fi
|
cannam@86
|
73 AC_SUBST([CYGPATH_W])
|
cannam@86
|
74
|
cannam@86
|
75 # Define the identity of the package.
|
cannam@86
|
76 dnl Distinguish between old-style and new-style calls.
|
cannam@86
|
77 m4_ifval([$2],
|
cannam@86
|
78 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
cannam@86
|
79 AC_SUBST([PACKAGE], [$1])dnl
|
cannam@86
|
80 AC_SUBST([VERSION], [$2])],
|
cannam@86
|
81 [_AM_SET_OPTIONS([$1])dnl
|
cannam@86
|
82 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
cannam@86
|
83 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
cannam@86
|
84
|
cannam@86
|
85 _AM_IF_OPTION([no-define],,
|
cannam@86
|
86 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
cannam@86
|
87 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
|
cannam@86
|
88
|
cannam@86
|
89 # Some tools Automake needs.
|
cannam@86
|
90 AC_REQUIRE([AM_SANITY_CHECK])dnl
|
cannam@86
|
91 AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
cannam@86
|
92 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
|
cannam@86
|
93 AM_MISSING_PROG(AUTOCONF, autoconf)
|
cannam@86
|
94 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
|
cannam@86
|
95 AM_MISSING_PROG(AUTOHEADER, autoheader)
|
cannam@86
|
96 AM_MISSING_PROG(MAKEINFO, makeinfo)
|
cannam@86
|
97 AM_MISSING_PROG(AMTAR, tar)
|
cannam@86
|
98 AM_PROG_INSTALL_SH
|
cannam@86
|
99 AM_PROG_INSTALL_STRIP
|
cannam@86
|
100 # We need awk for the "check" target. The system "awk" is bad on
|
cannam@86
|
101 # some platforms.
|
cannam@86
|
102 AC_REQUIRE([AC_PROG_AWK])dnl
|
cannam@86
|
103 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
cannam@86
|
104 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
cannam@86
|
105
|
cannam@86
|
106 _AM_IF_OPTION([no-dependencies],,
|
cannam@86
|
107 [AC_PROVIDE_IFELSE([AC_PROG_CC],
|
cannam@86
|
108 [_AM_DEPENDENCIES(CC)],
|
cannam@86
|
109 [define([AC_PROG_CC],
|
cannam@86
|
110 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
|
cannam@86
|
111 AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
cannam@86
|
112 [_AM_DEPENDENCIES(CXX)],
|
cannam@86
|
113 [define([AC_PROG_CXX],
|
cannam@86
|
114 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
cannam@86
|
115 ])
|
cannam@86
|
116 ])
|
cannam@86
|
117
|
cannam@86
|
118
|
cannam@86
|
119 # When config.status generates a header, we must update the stamp-h file.
|
cannam@86
|
120 # This file resides in the same directory as the config header
|
cannam@86
|
121 # that is generated. The stamp files are numbered to have different names.
|
cannam@86
|
122
|
cannam@86
|
123 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
cannam@86
|
124 # loop where config.status creates the headers, so we can generate
|
cannam@86
|
125 # our stamp files there.
|
cannam@86
|
126 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
cannam@86
|
127 [# Compute $1's index in $config_headers.
|
cannam@86
|
128 _am_stamp_count=1
|
cannam@86
|
129 for _am_header in $config_headers :; do
|
cannam@86
|
130 case $_am_header in
|
cannam@86
|
131 $1 | $1:* )
|
cannam@86
|
132 break ;;
|
cannam@86
|
133 * )
|
cannam@86
|
134 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
cannam@86
|
135 esac
|
cannam@86
|
136 done
|
cannam@86
|
137 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
|
cannam@86
|
138
|
cannam@86
|
139 # Copyright 2002 Free Software Foundation, Inc.
|
cannam@86
|
140
|
cannam@86
|
141 # This program is free software; you can redistribute it and/or modify
|
cannam@86
|
142 # it under the terms of the GNU General Public License as published by
|
cannam@86
|
143 # the Free Software Foundation; either version 2, or (at your option)
|
cannam@86
|
144 # any later version.
|
cannam@86
|
145
|
cannam@86
|
146 # This program is distributed in the hope that it will be useful,
|
cannam@86
|
147 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@86
|
148 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@86
|
149 # GNU General Public License for more details.
|
cannam@86
|
150
|
cannam@86
|
151 # You should have received a copy of the GNU General Public License
|
cannam@86
|
152 # along with this program; if not, write to the Free Software
|
cannam@86
|
153 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
cannam@86
|
154
|
cannam@86
|
155 # AM_AUTOMAKE_VERSION(VERSION)
|
cannam@86
|
156 # ----------------------------
|
cannam@86
|
157 # Automake X.Y traces this macro to ensure aclocal.m4 has been
|
cannam@86
|
158 # generated from the m4 files accompanying Automake X.Y.
|
cannam@86
|
159 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
|
cannam@86
|
160
|
cannam@86
|
161 # AM_SET_CURRENT_AUTOMAKE_VERSION
|
cannam@86
|
162 # -------------------------------
|
cannam@86
|
163 # Call AM_AUTOMAKE_VERSION so it can be traced.
|
cannam@86
|
164 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
|
cannam@86
|
165 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
cannam@86
|
166 [AM_AUTOMAKE_VERSION([1.7.9])])
|
cannam@86
|
167
|
cannam@86
|
168 # Helper functions for option handling. -*- Autoconf -*-
|
cannam@86
|
169
|
cannam@86
|
170 # Copyright 2001, 2002 Free Software Foundation, Inc.
|
cannam@86
|
171
|
cannam@86
|
172 # This program is free software; you can redistribute it and/or modify
|
cannam@86
|
173 # it under the terms of the GNU General Public License as published by
|
cannam@86
|
174 # the Free Software Foundation; either version 2, or (at your option)
|
cannam@86
|
175 # any later version.
|
cannam@86
|
176
|
cannam@86
|
177 # This program is distributed in the hope that it will be useful,
|
cannam@86
|
178 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@86
|
179 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@86
|
180 # GNU General Public License for more details.
|
cannam@86
|
181
|
cannam@86
|
182 # You should have received a copy of the GNU General Public License
|
cannam@86
|
183 # along with this program; if not, write to the Free Software
|
cannam@86
|
184 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
cannam@86
|
185 # 02111-1307, USA.
|
cannam@86
|
186
|
cannam@86
|
187 # serial 2
|
cannam@86
|
188
|
cannam@86
|
189 # _AM_MANGLE_OPTION(NAME)
|
cannam@86
|
190 # -----------------------
|
cannam@86
|
191 AC_DEFUN([_AM_MANGLE_OPTION],
|
cannam@86
|
192 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
cannam@86
|
193
|
cannam@86
|
194 # _AM_SET_OPTION(NAME)
|
cannam@86
|
195 # ------------------------------
|
cannam@86
|
196 # Set option NAME. Presently that only means defining a flag for this option.
|
cannam@86
|
197 AC_DEFUN([_AM_SET_OPTION],
|
cannam@86
|
198 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
|
cannam@86
|
199
|
cannam@86
|
200 # _AM_SET_OPTIONS(OPTIONS)
|
cannam@86
|
201 # ----------------------------------
|
cannam@86
|
202 # OPTIONS is a space-separated list of Automake options.
|
cannam@86
|
203 AC_DEFUN([_AM_SET_OPTIONS],
|
cannam@86
|
204 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
cannam@86
|
205
|
cannam@86
|
206 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
cannam@86
|
207 # -------------------------------------------
|
cannam@86
|
208 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
cannam@86
|
209 AC_DEFUN([_AM_IF_OPTION],
|
cannam@86
|
210 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
cannam@86
|
211
|
cannam@86
|
212 #
|
cannam@86
|
213 # Check to make sure that the build environment is sane.
|
cannam@86
|
214 #
|
cannam@86
|
215
|
cannam@86
|
216 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
|
cannam@86
|
217
|
cannam@86
|
218 # This program is free software; you can redistribute it and/or modify
|
cannam@86
|
219 # it under the terms of the GNU General Public License as published by
|
cannam@86
|
220 # the Free Software Foundation; either version 2, or (at your option)
|
cannam@86
|
221 # any later version.
|
cannam@86
|
222
|
cannam@86
|
223 # This program is distributed in the hope that it will be useful,
|
cannam@86
|
224 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@86
|
225 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@86
|
226 # GNU General Public License for more details.
|
cannam@86
|
227
|
cannam@86
|
228 # You should have received a copy of the GNU General Public License
|
cannam@86
|
229 # along with this program; if not, write to the Free Software
|
cannam@86
|
230 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
cannam@86
|
231 # 02111-1307, USA.
|
cannam@86
|
232
|
cannam@86
|
233 # serial 3
|
cannam@86
|
234
|
cannam@86
|
235 # AM_SANITY_CHECK
|
cannam@86
|
236 # ---------------
|
cannam@86
|
237 AC_DEFUN([AM_SANITY_CHECK],
|
cannam@86
|
238 [AC_MSG_CHECKING([whether build environment is sane])
|
cannam@86
|
239 # Just in case
|
cannam@86
|
240 sleep 1
|
cannam@86
|
241 echo timestamp > conftest.file
|
cannam@86
|
242 # Do `set' in a subshell so we don't clobber the current shell's
|
cannam@86
|
243 # arguments. Must try -L first in case configure is actually a
|
cannam@86
|
244 # symlink; some systems play weird games with the mod time of symlinks
|
cannam@86
|
245 # (eg FreeBSD returns the mod time of the symlink's containing
|
cannam@86
|
246 # directory).
|
cannam@86
|
247 if (
|
cannam@86
|
248 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
cannam@86
|
249 if test "$[*]" = "X"; then
|
cannam@86
|
250 # -L didn't work.
|
cannam@86
|
251 set X `ls -t $srcdir/configure conftest.file`
|
cannam@86
|
252 fi
|
cannam@86
|
253 rm -f conftest.file
|
cannam@86
|
254 if test "$[*]" != "X $srcdir/configure conftest.file" \
|
cannam@86
|
255 && test "$[*]" != "X conftest.file $srcdir/configure"; then
|
cannam@86
|
256
|
cannam@86
|
257 # If neither matched, then we have a broken ls. This can happen
|
cannam@86
|
258 # if, for instance, CONFIG_SHELL is bash and it inherits a
|
cannam@86
|
259 # broken ls alias from the environment. This has actually
|
cannam@86
|
260 # happened. Such a system could not be considered "sane".
|
cannam@86
|
261 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
cannam@86
|
262 alias in your environment])
|
cannam@86
|
263 fi
|
cannam@86
|
264
|
cannam@86
|
265 test "$[2]" = conftest.file
|
cannam@86
|
266 )
|
cannam@86
|
267 then
|
cannam@86
|
268 # Ok.
|
cannam@86
|
269 :
|
cannam@86
|
270 else
|
cannam@86
|
271 AC_MSG_ERROR([newly created file is older than distributed files!
|
cannam@86
|
272 Check your system clock])
|
cannam@86
|
273 fi
|
cannam@86
|
274 AC_MSG_RESULT(yes)])
|
cannam@86
|
275
|
cannam@86
|
276 # -*- Autoconf -*-
|
cannam@86
|
277
|
cannam@86
|
278
|
cannam@86
|
279 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
|
cannam@86
|
280
|
cannam@86
|
281 # This program is free software; you can redistribute it and/or modify
|
cannam@86
|
282 # it under the terms of the GNU General Public License as published by
|
cannam@86
|
283 # the Free Software Foundation; either version 2, or (at your option)
|
cannam@86
|
284 # any later version.
|
cannam@86
|
285
|
cannam@86
|
286 # This program is distributed in the hope that it will be useful,
|
cannam@86
|
287 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@86
|
288 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@86
|
289 # GNU General Public License for more details.
|
cannam@86
|
290
|
cannam@86
|
291 # You should have received a copy of the GNU General Public License
|
cannam@86
|
292 # along with this program; if not, write to the Free Software
|
cannam@86
|
293 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
cannam@86
|
294 # 02111-1307, USA.
|
cannam@86
|
295
|
cannam@86
|
296 # serial 3
|
cannam@86
|
297
|
cannam@86
|
298 # AM_MISSING_PROG(NAME, PROGRAM)
|
cannam@86
|
299 # ------------------------------
|
cannam@86
|
300 AC_DEFUN([AM_MISSING_PROG],
|
cannam@86
|
301 [AC_REQUIRE([AM_MISSING_HAS_RUN])
|
cannam@86
|
302 $1=${$1-"${am_missing_run}$2"}
|
cannam@86
|
303 AC_SUBST($1)])
|
cannam@86
|
304
|
cannam@86
|
305
|
cannam@86
|
306 # AM_MISSING_HAS_RUN
|
cannam@86
|
307 # ------------------
|
cannam@86
|
308 # Define MISSING if not defined so far and test if it supports --run.
|
cannam@86
|
309 # If it does, set am_missing_run to use it, otherwise, to nothing.
|
cannam@86
|
310 AC_DEFUN([AM_MISSING_HAS_RUN],
|
cannam@86
|
311 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
cannam@86
|
312 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
cannam@86
|
313 # Use eval to expand $SHELL
|
cannam@86
|
314 if eval "$MISSING --run true"; then
|
cannam@86
|
315 am_missing_run="$MISSING --run "
|
cannam@86
|
316 else
|
cannam@86
|
317 am_missing_run=
|
cannam@86
|
318 AC_MSG_WARN([`missing' script is too old or missing])
|
cannam@86
|
319 fi
|
cannam@86
|
320 ])
|
cannam@86
|
321
|
cannam@86
|
322 # AM_AUX_DIR_EXPAND
|
cannam@86
|
323
|
cannam@86
|
324 # Copyright 2001 Free Software Foundation, Inc.
|
cannam@86
|
325
|
cannam@86
|
326 # This program is free software; you can redistribute it and/or modify
|
cannam@86
|
327 # it under the terms of the GNU General Public License as published by
|
cannam@86
|
328 # the Free Software Foundation; either version 2, or (at your option)
|
cannam@86
|
329 # any later version.
|
cannam@86
|
330
|
cannam@86
|
331 # This program is distributed in the hope that it will be useful,
|
cannam@86
|
332 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@86
|
333 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@86
|
334 # GNU General Public License for more details.
|
cannam@86
|
335
|
cannam@86
|
336 # You should have received a copy of the GNU General Public License
|
cannam@86
|
337 # along with this program; if not, write to the Free Software
|
cannam@86
|
338 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
cannam@86
|
339 # 02111-1307, USA.
|
cannam@86
|
340
|
cannam@86
|
341 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
cannam@86
|
342 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
cannam@86
|
343 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
cannam@86
|
344 #
|
cannam@86
|
345 # Of course, Automake must honor this variable whenever it calls a
|
cannam@86
|
346 # tool from the auxiliary directory. The problem is that $srcdir (and
|
cannam@86
|
347 # therefore $ac_aux_dir as well) can be either absolute or relative,
|
cannam@86
|
348 # depending on how configure is run. This is pretty annoying, since
|
cannam@86
|
349 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
cannam@86
|
350 # source directory, any form will work fine, but in subdirectories a
|
cannam@86
|
351 # relative path needs to be adjusted first.
|
cannam@86
|
352 #
|
cannam@86
|
353 # $ac_aux_dir/missing
|
cannam@86
|
354 # fails when called from a subdirectory if $ac_aux_dir is relative
|
cannam@86
|
355 # $top_srcdir/$ac_aux_dir/missing
|
cannam@86
|
356 # fails if $ac_aux_dir is absolute,
|
cannam@86
|
357 # fails when called from a subdirectory in a VPATH build with
|
cannam@86
|
358 # a relative $ac_aux_dir
|
cannam@86
|
359 #
|
cannam@86
|
360 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
cannam@86
|
361 # are both prefixed by $srcdir. In an in-source build this is usually
|
cannam@86
|
362 # harmless because $srcdir is `.', but things will broke when you
|
cannam@86
|
363 # start a VPATH build or use an absolute $srcdir.
|
cannam@86
|
364 #
|
cannam@86
|
365 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
cannam@86
|
366 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
cannam@86
|
367 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
cannam@86
|
368 # and then we would define $MISSING as
|
cannam@86
|
369 # MISSING="\${SHELL} $am_aux_dir/missing"
|
cannam@86
|
370 # This will work as long as MISSING is not called from configure, because
|
cannam@86
|
371 # unfortunately $(top_srcdir) has no meaning in configure.
|
cannam@86
|
372 # However there are other variables, like CC, which are often used in
|
cannam@86
|
373 # configure, and could therefore not use this "fixed" $ac_aux_dir.
|
cannam@86
|
374 #
|
cannam@86
|
375 # Another solution, used here, is to always expand $ac_aux_dir to an
|
cannam@86
|
376 # absolute PATH. The drawback is that using absolute paths prevent a
|
cannam@86
|
377 # configured tree to be moved without reconfiguration.
|
cannam@86
|
378
|
cannam@86
|
379 # Rely on autoconf to set up CDPATH properly.
|
cannam@86
|
380 AC_PREREQ([2.50])
|
cannam@86
|
381
|
cannam@86
|
382 AC_DEFUN([AM_AUX_DIR_EXPAND], [
|
cannam@86
|
383 # expand $ac_aux_dir to an absolute path
|
cannam@86
|
384 am_aux_dir=`cd $ac_aux_dir && pwd`
|
cannam@86
|
385 ])
|
cannam@86
|
386
|
cannam@86
|
387 # AM_PROG_INSTALL_SH
|
cannam@86
|
388 # ------------------
|
cannam@86
|
389 # Define $install_sh.
|
cannam@86
|
390
|
cannam@86
|
391 # Copyright 2001 Free Software Foundation, Inc.
|
cannam@86
|
392
|
cannam@86
|
393 # This program is free software; you can redistribute it and/or modify
|
cannam@86
|
394 # it under the terms of the GNU General Public License as published by
|
cannam@86
|
395 # the Free Software Foundation; either version 2, or (at your option)
|
cannam@86
|
396 # any later version.
|
cannam@86
|
397
|
cannam@86
|
398 # This program is distributed in the hope that it will be useful,
|
cannam@86
|
399 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@86
|
400 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@86
|
401 # GNU General Public License for more details.
|
cannam@86
|
402
|
cannam@86
|
403 # You should have received a copy of the GNU General Public License
|
cannam@86
|
404 # along with this program; if not, write to the Free Software
|
cannam@86
|
405 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
cannam@86
|
406 # 02111-1307, USA.
|
cannam@86
|
407
|
cannam@86
|
408 AC_DEFUN([AM_PROG_INSTALL_SH],
|
cannam@86
|
409 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
cannam@86
|
410 install_sh=${install_sh-"$am_aux_dir/install-sh"}
|
cannam@86
|
411 AC_SUBST(install_sh)])
|
cannam@86
|
412
|
cannam@86
|
413 # AM_PROG_INSTALL_STRIP
|
cannam@86
|
414
|
cannam@86
|
415 # Copyright 2001 Free Software Foundation, Inc.
|
cannam@86
|
416
|
cannam@86
|
417 # This program is free software; you can redistribute it and/or modify
|
cannam@86
|
418 # it under the terms of the GNU General Public License as published by
|
cannam@86
|
419 # the Free Software Foundation; either version 2, or (at your option)
|
cannam@86
|
420 # any later version.
|
cannam@86
|
421
|
cannam@86
|
422 # This program is distributed in the hope that it will be useful,
|
cannam@86
|
423 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@86
|
424 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@86
|
425 # GNU General Public License for more details.
|
cannam@86
|
426
|
cannam@86
|
427 # You should have received a copy of the GNU General Public License
|
cannam@86
|
428 # along with this program; if not, write to the Free Software
|
cannam@86
|
429 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
cannam@86
|
430 # 02111-1307, USA.
|
cannam@86
|
431
|
cannam@86
|
432 # One issue with vendor `install' (even GNU) is that you can't
|
cannam@86
|
433 # specify the program used to strip binaries. This is especially
|
cannam@86
|
434 # annoying in cross-compiling environments, where the build's strip
|
cannam@86
|
435 # is unlikely to handle the host's binaries.
|
cannam@86
|
436 # Fortunately install-sh will honor a STRIPPROG variable, so we
|
cannam@86
|
437 # always use install-sh in `make install-strip', and initialize
|
cannam@86
|
438 # STRIPPROG with the value of the STRIP variable (set by the user).
|
cannam@86
|
439 AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
cannam@86
|
440 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
cannam@86
|
441 # Installed binaries are usually stripped using `strip' when the user
|
cannam@86
|
442 # run `make install-strip'. However `strip' might not be the right
|
cannam@86
|
443 # tool to use in cross-compilation environments, therefore Automake
|
cannam@86
|
444 # will honor the `STRIP' environment variable to overrule this program.
|
cannam@86
|
445 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
|
cannam@86
|
446 if test "$cross_compiling" != no; then
|
cannam@86
|
447 AC_CHECK_TOOL([STRIP], [strip], :)
|
cannam@86
|
448 fi
|
cannam@86
|
449 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
|
cannam@86
|
450 AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
cannam@86
|
451
|
cannam@86
|
452 # -*- Autoconf -*-
|
cannam@86
|
453 # Copyright (C) 2003 Free Software Foundation, Inc.
|
cannam@86
|
454
|
cannam@86
|
455 # This program is free software; you can redistribute it and/or modify
|
cannam@86
|
456 # it under the terms of the GNU General Public License as published by
|
cannam@86
|
457 # the Free Software Foundation; either version 2, or (at your option)
|
cannam@86
|
458 # any later version.
|
cannam@86
|
459
|
cannam@86
|
460 # This program is distributed in the hope that it will be useful,
|
cannam@86
|
461 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@86
|
462 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@86
|
463 # GNU General Public License for more details.
|
cannam@86
|
464
|
cannam@86
|
465 # You should have received a copy of the GNU General Public License
|
cannam@86
|
466 # along with this program; if not, write to the Free Software
|
cannam@86
|
467 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
cannam@86
|
468 # 02111-1307, USA.
|
cannam@86
|
469
|
cannam@86
|
470 # serial 1
|
cannam@86
|
471
|
cannam@86
|
472 # Check whether the underlying file-system supports filenames
|
cannam@86
|
473 # with a leading dot. For instance MS-DOS doesn't.
|
cannam@86
|
474 AC_DEFUN([AM_SET_LEADING_DOT],
|
cannam@86
|
475 [rm -rf .tst 2>/dev/null
|
cannam@86
|
476 mkdir .tst 2>/dev/null
|
cannam@86
|
477 if test -d .tst; then
|
cannam@86
|
478 am__leading_dot=.
|
cannam@86
|
479 else
|
cannam@86
|
480 am__leading_dot=_
|
cannam@86
|
481 fi
|
cannam@86
|
482 rmdir .tst 2>/dev/null
|
cannam@86
|
483 AC_SUBST([am__leading_dot])])
|
cannam@86
|
484
|
cannam@86
|
485 # serial 5 -*- Autoconf -*-
|
cannam@86
|
486
|
cannam@86
|
487 # Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
|
cannam@86
|
488
|
cannam@86
|
489 # This program is free software; you can redistribute it and/or modify
|
cannam@86
|
490 # it under the terms of the GNU General Public License as published by
|
cannam@86
|
491 # the Free Software Foundation; either version 2, or (at your option)
|
cannam@86
|
492 # any later version.
|
cannam@86
|
493
|
cannam@86
|
494 # This program is distributed in the hope that it will be useful,
|
cannam@86
|
495 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@86
|
496 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@86
|
497 # GNU General Public License for more details.
|
cannam@86
|
498
|
cannam@86
|
499 # You should have received a copy of the GNU General Public License
|
cannam@86
|
500 # along with this program; if not, write to the Free Software
|
cannam@86
|
501 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
cannam@86
|
502 # 02111-1307, USA.
|
cannam@86
|
503
|
cannam@86
|
504
|
cannam@86
|
505 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
cannam@86
|
506 # written in clear, in which case automake, when reading aclocal.m4,
|
cannam@86
|
507 # will think it sees a *use*, and therefore will trigger all it's
|
cannam@86
|
508 # C support machinery. Also note that it means that autoscan, seeing
|
cannam@86
|
509 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
cannam@86
|
510
|
cannam@86
|
511
|
cannam@86
|
512
|
cannam@86
|
513 # _AM_DEPENDENCIES(NAME)
|
cannam@86
|
514 # ----------------------
|
cannam@86
|
515 # See how the compiler implements dependency checking.
|
cannam@86
|
516 # NAME is "CC", "CXX", "GCJ", or "OBJC".
|
cannam@86
|
517 # We try a few techniques and use that to set a single cache variable.
|
cannam@86
|
518 #
|
cannam@86
|
519 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
cannam@86
|
520 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
cannam@86
|
521 # dependency, and given that the user is not expected to run this macro,
|
cannam@86
|
522 # just rely on AC_PROG_CC.
|
cannam@86
|
523 AC_DEFUN([_AM_DEPENDENCIES],
|
cannam@86
|
524 [AC_REQUIRE([AM_SET_DEPDIR])dnl
|
cannam@86
|
525 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
cannam@86
|
526 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
cannam@86
|
527 AC_REQUIRE([AM_DEP_TRACK])dnl
|
cannam@86
|
528
|
cannam@86
|
529 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
|
cannam@86
|
530 [$1], CXX, [depcc="$CXX" am_compiler_list=],
|
cannam@86
|
531 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
cannam@86
|
532 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
cannam@86
|
533 [depcc="$$1" am_compiler_list=])
|
cannam@86
|
534
|
cannam@86
|
535 AC_CACHE_CHECK([dependency style of $depcc],
|
cannam@86
|
536 [am_cv_$1_dependencies_compiler_type],
|
cannam@86
|
537 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
cannam@86
|
538 # We make a subdir and do the tests there. Otherwise we can end up
|
cannam@86
|
539 # making bogus files that we don't know about and never remove. For
|
cannam@86
|
540 # instance it was reported that on HP-UX the gcc test will end up
|
cannam@86
|
541 # making a dummy file named `D' -- because `-MD' means `put the output
|
cannam@86
|
542 # in D'.
|
cannam@86
|
543 mkdir conftest.dir
|
cannam@86
|
544 # Copy depcomp to subdir because otherwise we won't find it if we're
|
cannam@86
|
545 # using a relative directory.
|
cannam@86
|
546 cp "$am_depcomp" conftest.dir
|
cannam@86
|
547 cd conftest.dir
|
cannam@86
|
548 # We will build objects and dependencies in a subdirectory because
|
cannam@86
|
549 # it helps to detect inapplicable dependency modes. For instance
|
cannam@86
|
550 # both Tru64's cc and ICC support -MD to output dependencies as a
|
cannam@86
|
551 # side effect of compilation, but ICC will put the dependencies in
|
cannam@86
|
552 # the current directory while Tru64 will put them in the object
|
cannam@86
|
553 # directory.
|
cannam@86
|
554 mkdir sub
|
cannam@86
|
555
|
cannam@86
|
556 am_cv_$1_dependencies_compiler_type=none
|
cannam@86
|
557 if test "$am_compiler_list" = ""; then
|
cannam@86
|
558 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
cannam@86
|
559 fi
|
cannam@86
|
560 for depmode in $am_compiler_list; do
|
cannam@86
|
561 # Setup a source with many dependencies, because some compilers
|
cannam@86
|
562 # like to wrap large dependency lists on column 80 (with \), and
|
cannam@86
|
563 # we should not choose a depcomp mode which is confused by this.
|
cannam@86
|
564 #
|
cannam@86
|
565 # We need to recreate these files for each test, as the compiler may
|
cannam@86
|
566 # overwrite some of them when testing with obscure command lines.
|
cannam@86
|
567 # This happens at least with the AIX C compiler.
|
cannam@86
|
568 : > sub/conftest.c
|
cannam@86
|
569 for i in 1 2 3 4 5 6; do
|
cannam@86
|
570 echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
cannam@86
|
571 : > sub/conftst$i.h
|
cannam@86
|
572 done
|
cannam@86
|
573 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
cannam@86
|
574
|
cannam@86
|
575 case $depmode in
|
cannam@86
|
576 nosideeffect)
|
cannam@86
|
577 # after this tag, mechanisms are not by side-effect, so they'll
|
cannam@86
|
578 # only be used when explicitly requested
|
cannam@86
|
579 if test "x$enable_dependency_tracking" = xyes; then
|
cannam@86
|
580 continue
|
cannam@86
|
581 else
|
cannam@86
|
582 break
|
cannam@86
|
583 fi
|
cannam@86
|
584 ;;
|
cannam@86
|
585 none) break ;;
|
cannam@86
|
586 esac
|
cannam@86
|
587 # We check with `-c' and `-o' for the sake of the "dashmstdout"
|
cannam@86
|
588 # mode. It turns out that the SunPro C++ compiler does not properly
|
cannam@86
|
589 # handle `-M -o', and we need to detect this.
|
cannam@86
|
590 if depmode=$depmode \
|
cannam@86
|
591 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
cannam@86
|
592 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
cannam@86
|
593 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
cannam@86
|
594 >/dev/null 2>conftest.err &&
|
cannam@86
|
595 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
cannam@86
|
596 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
cannam@86
|
597 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
cannam@86
|
598 # icc doesn't choke on unknown options, it will just issue warnings
|
cannam@86
|
599 # (even with -Werror). So we grep stderr for any message
|
cannam@86
|
600 # that says an option was ignored.
|
cannam@86
|
601 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
|
cannam@86
|
602 am_cv_$1_dependencies_compiler_type=$depmode
|
cannam@86
|
603 break
|
cannam@86
|
604 fi
|
cannam@86
|
605 fi
|
cannam@86
|
606 done
|
cannam@86
|
607
|
cannam@86
|
608 cd ..
|
cannam@86
|
609 rm -rf conftest.dir
|
cannam@86
|
610 else
|
cannam@86
|
611 am_cv_$1_dependencies_compiler_type=none
|
cannam@86
|
612 fi
|
cannam@86
|
613 ])
|
cannam@86
|
614 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
cannam@86
|
615 AM_CONDITIONAL([am__fastdep$1], [
|
cannam@86
|
616 test "x$enable_dependency_tracking" != xno \
|
cannam@86
|
617 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
cannam@86
|
618 ])
|
cannam@86
|
619
|
cannam@86
|
620
|
cannam@86
|
621 # AM_SET_DEPDIR
|
cannam@86
|
622 # -------------
|
cannam@86
|
623 # Choose a directory name for dependency files.
|
cannam@86
|
624 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
|
cannam@86
|
625 AC_DEFUN([AM_SET_DEPDIR],
|
cannam@86
|
626 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
cannam@86
|
627 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
cannam@86
|
628 ])
|
cannam@86
|
629
|
cannam@86
|
630
|
cannam@86
|
631 # AM_DEP_TRACK
|
cannam@86
|
632 # ------------
|
cannam@86
|
633 AC_DEFUN([AM_DEP_TRACK],
|
cannam@86
|
634 [AC_ARG_ENABLE(dependency-tracking,
|
cannam@86
|
635 [ --disable-dependency-tracking Speeds up one-time builds
|
cannam@86
|
636 --enable-dependency-tracking Do not reject slow dependency extractors])
|
cannam@86
|
637 if test "x$enable_dependency_tracking" != xno; then
|
cannam@86
|
638 am_depcomp="$ac_aux_dir/depcomp"
|
cannam@86
|
639 AMDEPBACKSLASH='\'
|
cannam@86
|
640 fi
|
cannam@86
|
641 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
cannam@86
|
642 AC_SUBST([AMDEPBACKSLASH])
|
cannam@86
|
643 ])
|
cannam@86
|
644
|
cannam@86
|
645 # Generate code to set up dependency tracking. -*- Autoconf -*-
|
cannam@86
|
646
|
cannam@86
|
647 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
cannam@86
|
648
|
cannam@86
|
649 # This program is free software; you can redistribute it and/or modify
|
cannam@86
|
650 # it under the terms of the GNU General Public License as published by
|
cannam@86
|
651 # the Free Software Foundation; either version 2, or (at your option)
|
cannam@86
|
652 # any later version.
|
cannam@86
|
653
|
cannam@86
|
654 # This program is distributed in the hope that it will be useful,
|
cannam@86
|
655 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@86
|
656 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@86
|
657 # GNU General Public License for more details.
|
cannam@86
|
658
|
cannam@86
|
659 # You should have received a copy of the GNU General Public License
|
cannam@86
|
660 # along with this program; if not, write to the Free Software
|
cannam@86
|
661 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
cannam@86
|
662 # 02111-1307, USA.
|
cannam@86
|
663
|
cannam@86
|
664 #serial 2
|
cannam@86
|
665
|
cannam@86
|
666 # _AM_OUTPUT_DEPENDENCY_COMMANDS
|
cannam@86
|
667 # ------------------------------
|
cannam@86
|
668 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
cannam@86
|
669 [for mf in $CONFIG_FILES; do
|
cannam@86
|
670 # Strip MF so we end up with the name of the file.
|
cannam@86
|
671 mf=`echo "$mf" | sed -e 's/:.*$//'`
|
cannam@86
|
672 # Check whether this is an Automake generated Makefile or not.
|
cannam@86
|
673 # We used to match only the files named `Makefile.in', but
|
cannam@86
|
674 # some people rename them; so instead we look at the file content.
|
cannam@86
|
675 # Grep'ing the first line is not enough: some people post-process
|
cannam@86
|
676 # each Makefile.in and add a new line on top of each file to say so.
|
cannam@86
|
677 # So let's grep whole file.
|
cannam@86
|
678 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
|
cannam@86
|
679 dirpart=`AS_DIRNAME("$mf")`
|
cannam@86
|
680 else
|
cannam@86
|
681 continue
|
cannam@86
|
682 fi
|
cannam@86
|
683 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
|
cannam@86
|
684 # Extract the definition of DEP_FILES from the Makefile without
|
cannam@86
|
685 # running `make'.
|
cannam@86
|
686 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
|
cannam@86
|
687 test -z "$DEPDIR" && continue
|
cannam@86
|
688 # When using ansi2knr, U may be empty or an underscore; expand it
|
cannam@86
|
689 U=`sed -n -e '/^U = / s///p' < "$mf"`
|
cannam@86
|
690 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
|
cannam@86
|
691 # We invoke sed twice because it is the simplest approach to
|
cannam@86
|
692 # changing $(DEPDIR) to its actual value in the expansion.
|
cannam@86
|
693 for file in `sed -n -e '
|
cannam@86
|
694 /^DEP_FILES = .*\\\\$/ {
|
cannam@86
|
695 s/^DEP_FILES = //
|
cannam@86
|
696 :loop
|
cannam@86
|
697 s/\\\\$//
|
cannam@86
|
698 p
|
cannam@86
|
699 n
|
cannam@86
|
700 /\\\\$/ b loop
|
cannam@86
|
701 p
|
cannam@86
|
702 }
|
cannam@86
|
703 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
|
cannam@86
|
704 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
cannam@86
|
705 # Make sure the directory exists.
|
cannam@86
|
706 test -f "$dirpart/$file" && continue
|
cannam@86
|
707 fdir=`AS_DIRNAME(["$file"])`
|
cannam@86
|
708 AS_MKDIR_P([$dirpart/$fdir])
|
cannam@86
|
709 # echo "creating $dirpart/$file"
|
cannam@86
|
710 echo '# dummy' > "$dirpart/$file"
|
cannam@86
|
711 done
|
cannam@86
|
712 done
|
cannam@86
|
713 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
cannam@86
|
714
|
cannam@86
|
715
|
cannam@86
|
716 # AM_OUTPUT_DEPENDENCY_COMMANDS
|
cannam@86
|
717 # -----------------------------
|
cannam@86
|
718 # This macro should only be invoked once -- use via AC_REQUIRE.
|
cannam@86
|
719 #
|
cannam@86
|
720 # This code is only required when automatic dependency tracking
|
cannam@86
|
721 # is enabled. FIXME. This creates each `.P' file that we will
|
cannam@86
|
722 # need in order to bootstrap the dependency handling code.
|
cannam@86
|
723 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
cannam@86
|
724 [AC_CONFIG_COMMANDS([depfiles],
|
cannam@86
|
725 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
cannam@86
|
726 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
cannam@86
|
727 ])
|
cannam@86
|
728
|
cannam@86
|
729 # Check to see how 'make' treats includes. -*- Autoconf -*-
|
cannam@86
|
730
|
cannam@86
|
731 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
|
cannam@86
|
732
|
cannam@86
|
733 # This program is free software; you can redistribute it and/or modify
|
cannam@86
|
734 # it under the terms of the GNU General Public License as published by
|
cannam@86
|
735 # the Free Software Foundation; either version 2, or (at your option)
|
cannam@86
|
736 # any later version.
|
cannam@86
|
737
|
cannam@86
|
738 # This program is distributed in the hope that it will be useful,
|
cannam@86
|
739 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@86
|
740 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@86
|
741 # GNU General Public License for more details.
|
cannam@86
|
742
|
cannam@86
|
743 # You should have received a copy of the GNU General Public License
|
cannam@86
|
744 # along with this program; if not, write to the Free Software
|
cannam@86
|
745 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
cannam@86
|
746 # 02111-1307, USA.
|
cannam@86
|
747
|
cannam@86
|
748 # serial 2
|
cannam@86
|
749
|
cannam@86
|
750 # AM_MAKE_INCLUDE()
|
cannam@86
|
751 # -----------------
|
cannam@86
|
752 # Check to see how make treats includes.
|
cannam@86
|
753 AC_DEFUN([AM_MAKE_INCLUDE],
|
cannam@86
|
754 [am_make=${MAKE-make}
|
cannam@86
|
755 cat > confinc << 'END'
|
cannam@86
|
756 am__doit:
|
cannam@86
|
757 @echo done
|
cannam@86
|
758 .PHONY: am__doit
|
cannam@86
|
759 END
|
cannam@86
|
760 # If we don't find an include directive, just comment out the code.
|
cannam@86
|
761 AC_MSG_CHECKING([for style of include used by $am_make])
|
cannam@86
|
762 am__include="#"
|
cannam@86
|
763 am__quote=
|
cannam@86
|
764 _am_result=none
|
cannam@86
|
765 # First try GNU make style include.
|
cannam@86
|
766 echo "include confinc" > confmf
|
cannam@86
|
767 # We grep out `Entering directory' and `Leaving directory'
|
cannam@86
|
768 # messages which can occur if `w' ends up in MAKEFLAGS.
|
cannam@86
|
769 # In particular we don't look at `^make:' because GNU make might
|
cannam@86
|
770 # be invoked under some other name (usually "gmake"), in which
|
cannam@86
|
771 # case it prints its new name instead of `make'.
|
cannam@86
|
772 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
|
cannam@86
|
773 am__include=include
|
cannam@86
|
774 am__quote=
|
cannam@86
|
775 _am_result=GNU
|
cannam@86
|
776 fi
|
cannam@86
|
777 # Now try BSD make style include.
|
cannam@86
|
778 if test "$am__include" = "#"; then
|
cannam@86
|
779 echo '.include "confinc"' > confmf
|
cannam@86
|
780 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
cannam@86
|
781 am__include=.include
|
cannam@86
|
782 am__quote="\""
|
cannam@86
|
783 _am_result=BSD
|
cannam@86
|
784 fi
|
cannam@86
|
785 fi
|
cannam@86
|
786 AC_SUBST([am__include])
|
cannam@86
|
787 AC_SUBST([am__quote])
|
cannam@86
|
788 AC_MSG_RESULT([$_am_result])
|
cannam@86
|
789 rm -f confinc confmf
|
cannam@86
|
790 ])
|
cannam@86
|
791
|
cannam@86
|
792 # AM_CONDITIONAL -*- Autoconf -*-
|
cannam@86
|
793
|
cannam@86
|
794 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
|
cannam@86
|
795
|
cannam@86
|
796 # This program is free software; you can redistribute it and/or modify
|
cannam@86
|
797 # it under the terms of the GNU General Public License as published by
|
cannam@86
|
798 # the Free Software Foundation; either version 2, or (at your option)
|
cannam@86
|
799 # any later version.
|
cannam@86
|
800
|
cannam@86
|
801 # This program is distributed in the hope that it will be useful,
|
cannam@86
|
802 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@86
|
803 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@86
|
804 # GNU General Public License for more details.
|
cannam@86
|
805
|
cannam@86
|
806 # You should have received a copy of the GNU General Public License
|
cannam@86
|
807 # along with this program; if not, write to the Free Software
|
cannam@86
|
808 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
cannam@86
|
809 # 02111-1307, USA.
|
cannam@86
|
810
|
cannam@86
|
811 # serial 5
|
cannam@86
|
812
|
cannam@86
|
813 AC_PREREQ(2.52)
|
cannam@86
|
814
|
cannam@86
|
815 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
cannam@86
|
816 # -------------------------------------
|
cannam@86
|
817 # Define a conditional.
|
cannam@86
|
818 AC_DEFUN([AM_CONDITIONAL],
|
cannam@86
|
819 [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
cannam@86
|
820 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
cannam@86
|
821 AC_SUBST([$1_TRUE])
|
cannam@86
|
822 AC_SUBST([$1_FALSE])
|
cannam@86
|
823 if $2; then
|
cannam@86
|
824 $1_TRUE=
|
cannam@86
|
825 $1_FALSE='#'
|
cannam@86
|
826 else
|
cannam@86
|
827 $1_TRUE='#'
|
cannam@86
|
828 $1_FALSE=
|
cannam@86
|
829 fi
|
cannam@86
|
830 AC_CONFIG_COMMANDS_PRE(
|
cannam@86
|
831 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
cannam@86
|
832 AC_MSG_ERROR([conditional "$1" was never defined.
|
cannam@86
|
833 Usually this means the macro was only invoked conditionally.])
|
cannam@86
|
834 fi])])
|
cannam@86
|
835
|
cannam@86
|
836 # Add --enable-maintainer-mode option to configure.
|
cannam@86
|
837 # From Jim Meyering
|
cannam@86
|
838
|
cannam@86
|
839 # Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
|
cannam@86
|
840
|
cannam@86
|
841 # This program is free software; you can redistribute it and/or modify
|
cannam@86
|
842 # it under the terms of the GNU General Public License as published by
|
cannam@86
|
843 # the Free Software Foundation; either version 2, or (at your option)
|
cannam@86
|
844 # any later version.
|
cannam@86
|
845
|
cannam@86
|
846 # This program is distributed in the hope that it will be useful,
|
cannam@86
|
847 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@86
|
848 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@86
|
849 # GNU General Public License for more details.
|
cannam@86
|
850
|
cannam@86
|
851 # You should have received a copy of the GNU General Public License
|
cannam@86
|
852 # along with this program; if not, write to the Free Software
|
cannam@86
|
853 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
cannam@86
|
854 # 02111-1307, USA.
|
cannam@86
|
855
|
cannam@86
|
856 # serial 2
|
cannam@86
|
857
|
cannam@86
|
858 AC_DEFUN([AM_MAINTAINER_MODE],
|
cannam@86
|
859 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
cannam@86
|
860 dnl maintainer-mode is disabled by default
|
cannam@86
|
861 AC_ARG_ENABLE(maintainer-mode,
|
cannam@86
|
862 [ --enable-maintainer-mode enable make rules and dependencies not useful
|
cannam@86
|
863 (and sometimes confusing) to the casual installer],
|
cannam@86
|
864 USE_MAINTAINER_MODE=$enableval,
|
cannam@86
|
865 USE_MAINTAINER_MODE=no)
|
cannam@86
|
866 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
|
cannam@86
|
867 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
|
cannam@86
|
868 MAINT=$MAINTAINER_MODE_TRUE
|
cannam@86
|
869 AC_SUBST(MAINT)dnl
|
cannam@86
|
870 ]
|
cannam@86
|
871 )
|
cannam@86
|
872
|
cannam@86
|
873 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
|
cannam@86
|
874
|
cannam@86
|
875 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
|
cannam@86
|
876
|
cannam@86
|
877 # serial 47 AC_PROG_LIBTOOL
|
cannam@86
|
878
|
cannam@86
|
879
|
cannam@86
|
880 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
|
cannam@86
|
881 # -----------------------------------------------------------
|
cannam@86
|
882 # If this macro is not defined by Autoconf, define it here.
|
cannam@86
|
883 m4_ifdef([AC_PROVIDE_IFELSE],
|
cannam@86
|
884 [],
|
cannam@86
|
885 [m4_define([AC_PROVIDE_IFELSE],
|
cannam@86
|
886 [m4_ifdef([AC_PROVIDE_$1],
|
cannam@86
|
887 [$2], [$3])])])
|
cannam@86
|
888
|
cannam@86
|
889
|
cannam@86
|
890 # AC_PROG_LIBTOOL
|
cannam@86
|
891 # ---------------
|
cannam@86
|
892 AC_DEFUN([AC_PROG_LIBTOOL],
|
cannam@86
|
893 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
|
cannam@86
|
894 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
|
cannam@86
|
895 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
|
cannam@86
|
896 AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
cannam@86
|
897 [AC_LIBTOOL_CXX],
|
cannam@86
|
898 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
|
cannam@86
|
899 ])])
|
cannam@86
|
900 dnl And a similar setup for Fortran 77 support
|
cannam@86
|
901 AC_PROVIDE_IFELSE([AC_PROG_F77],
|
cannam@86
|
902 [AC_LIBTOOL_F77],
|
cannam@86
|
903 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
|
cannam@86
|
904 ])])
|
cannam@86
|
905
|
cannam@86
|
906 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
|
cannam@86
|
907 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
|
cannam@86
|
908 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
|
cannam@86
|
909 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
|
cannam@86
|
910 [AC_LIBTOOL_GCJ],
|
cannam@86
|
911 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
|
cannam@86
|
912 [AC_LIBTOOL_GCJ],
|
cannam@86
|
913 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
|
cannam@86
|
914 [AC_LIBTOOL_GCJ],
|
cannam@86
|
915 [ifdef([AC_PROG_GCJ],
|
cannam@86
|
916 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
|
cannam@86
|
917 ifdef([A][M_PROG_GCJ],
|
cannam@86
|
918 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
|
cannam@86
|
919 ifdef([LT_AC_PROG_GCJ],
|
cannam@86
|
920 [define([LT_AC_PROG_GCJ],
|
cannam@86
|
921 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
|
cannam@86
|
922 ])])# AC_PROG_LIBTOOL
|
cannam@86
|
923
|
cannam@86
|
924
|
cannam@86
|
925 # _AC_PROG_LIBTOOL
|
cannam@86
|
926 # ----------------
|
cannam@86
|
927 AC_DEFUN([_AC_PROG_LIBTOOL],
|
cannam@86
|
928 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
|
cannam@86
|
929 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
|
cannam@86
|
930 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
|
cannam@86
|
931 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
|
cannam@86
|
932
|
cannam@86
|
933 # This can be used to rebuild libtool when needed
|
cannam@86
|
934 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
|
cannam@86
|
935
|
cannam@86
|
936 # Always use our own libtool.
|
cannam@86
|
937 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
cannam@86
|
938 AC_SUBST(LIBTOOL)dnl
|
cannam@86
|
939
|
cannam@86
|
940 # Prevent multiple expansion
|
cannam@86
|
941 define([AC_PROG_LIBTOOL], [])
|
cannam@86
|
942 ])# _AC_PROG_LIBTOOL
|
cannam@86
|
943
|
cannam@86
|
944
|
cannam@86
|
945 # AC_LIBTOOL_SETUP
|
cannam@86
|
946 # ----------------
|
cannam@86
|
947 AC_DEFUN([AC_LIBTOOL_SETUP],
|
cannam@86
|
948 [AC_PREREQ(2.50)dnl
|
cannam@86
|
949 AC_REQUIRE([AC_ENABLE_SHARED])dnl
|
cannam@86
|
950 AC_REQUIRE([AC_ENABLE_STATIC])dnl
|
cannam@86
|
951 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
|
cannam@86
|
952 AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
cannam@86
|
953 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
cannam@86
|
954 AC_REQUIRE([AC_PROG_CC])dnl
|
cannam@86
|
955 AC_REQUIRE([AC_PROG_LD])dnl
|
cannam@86
|
956 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
|
cannam@86
|
957 AC_REQUIRE([AC_PROG_NM])dnl
|
cannam@86
|
958
|
cannam@86
|
959 AC_REQUIRE([AC_PROG_LN_S])dnl
|
cannam@86
|
960 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
|
cannam@86
|
961 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
cannam@86
|
962 AC_REQUIRE([AC_OBJEXT])dnl
|
cannam@86
|
963 AC_REQUIRE([AC_EXEEXT])dnl
|
cannam@86
|
964 dnl
|
cannam@86
|
965
|
cannam@86
|
966 AC_LIBTOOL_SYS_MAX_CMD_LEN
|
cannam@86
|
967 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
|
cannam@86
|
968 AC_LIBTOOL_OBJDIR
|
cannam@86
|
969
|
cannam@86
|
970 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
|
cannam@86
|
971 _LT_AC_PROG_ECHO_BACKSLASH
|
cannam@86
|
972
|
cannam@86
|
973 case $host_os in
|
cannam@86
|
974 aix3*)
|
cannam@86
|
975 # AIX sometimes has problems with the GCC collect2 program. For some
|
cannam@86
|
976 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
cannam@86
|
977 # vanish in a puff of smoke.
|
cannam@86
|
978 if test "X${COLLECT_NAMES+set}" != Xset; then
|
cannam@86
|
979 COLLECT_NAMES=
|
cannam@86
|
980 export COLLECT_NAMES
|
cannam@86
|
981 fi
|
cannam@86
|
982 ;;
|
cannam@86
|
983 esac
|
cannam@86
|
984
|
cannam@86
|
985 # Sed substitution that helps us do robust quoting. It backslashifies
|
cannam@86
|
986 # metacharacters that are still active within double-quoted strings.
|
cannam@86
|
987 Xsed='sed -e 1s/^X//'
|
cannam@86
|
988 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
|
cannam@86
|
989
|
cannam@86
|
990 # Same as above, but do not quote variable references.
|
cannam@86
|
991 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
|
cannam@86
|
992
|
cannam@86
|
993 # Sed substitution to delay expansion of an escaped shell variable in a
|
cannam@86
|
994 # double_quote_subst'ed string.
|
cannam@86
|
995 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
cannam@86
|
996
|
cannam@86
|
997 # Sed substitution to avoid accidental globbing in evaled expressions
|
cannam@86
|
998 no_glob_subst='s/\*/\\\*/g'
|
cannam@86
|
999
|
cannam@86
|
1000 # Constants:
|
cannam@86
|
1001 rm="rm -f"
|
cannam@86
|
1002
|
cannam@86
|
1003 # Global variables:
|
cannam@86
|
1004 default_ofile=libtool
|
cannam@86
|
1005 can_build_shared=yes
|
cannam@86
|
1006
|
cannam@86
|
1007 # All known linkers require a `.a' archive for static linking (except M$VC,
|
cannam@86
|
1008 # which needs '.lib').
|
cannam@86
|
1009 libext=a
|
cannam@86
|
1010 ltmain="$ac_aux_dir/ltmain.sh"
|
cannam@86
|
1011 ofile="$default_ofile"
|
cannam@86
|
1012 with_gnu_ld="$lt_cv_prog_gnu_ld"
|
cannam@86
|
1013
|
cannam@86
|
1014 AC_CHECK_TOOL(AR, ar, false)
|
cannam@86
|
1015 AC_CHECK_TOOL(RANLIB, ranlib, :)
|
cannam@86
|
1016 AC_CHECK_TOOL(STRIP, strip, :)
|
cannam@86
|
1017
|
cannam@86
|
1018 old_CC="$CC"
|
cannam@86
|
1019 old_CFLAGS="$CFLAGS"
|
cannam@86
|
1020
|
cannam@86
|
1021 # Set sane defaults for various variables
|
cannam@86
|
1022 test -z "$AR" && AR=ar
|
cannam@86
|
1023 test -z "$AR_FLAGS" && AR_FLAGS=cru
|
cannam@86
|
1024 test -z "$AS" && AS=as
|
cannam@86
|
1025 test -z "$CC" && CC=cc
|
cannam@86
|
1026 test -z "$LTCC" && LTCC=$CC
|
cannam@86
|
1027 test -z "$DLLTOOL" && DLLTOOL=dlltool
|
cannam@86
|
1028 test -z "$LD" && LD=ld
|
cannam@86
|
1029 test -z "$LN_S" && LN_S="ln -s"
|
cannam@86
|
1030 test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
cannam@86
|
1031 test -z "$NM" && NM=nm
|
cannam@86
|
1032 test -z "$SED" && SED=sed
|
cannam@86
|
1033 test -z "$OBJDUMP" && OBJDUMP=objdump
|
cannam@86
|
1034 test -z "$RANLIB" && RANLIB=:
|
cannam@86
|
1035 test -z "$STRIP" && STRIP=:
|
cannam@86
|
1036 test -z "$ac_objext" && ac_objext=o
|
cannam@86
|
1037
|
cannam@86
|
1038 # Determine commands to create old-style static archives.
|
cannam@86
|
1039 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
|
cannam@86
|
1040 old_postinstall_cmds='chmod 644 $oldlib'
|
cannam@86
|
1041 old_postuninstall_cmds=
|
cannam@86
|
1042
|
cannam@86
|
1043 if test -n "$RANLIB"; then
|
cannam@86
|
1044 case $host_os in
|
cannam@86
|
1045 openbsd*)
|
cannam@86
|
1046 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
|
cannam@86
|
1047 ;;
|
cannam@86
|
1048 *)
|
cannam@86
|
1049 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
|
cannam@86
|
1050 ;;
|
cannam@86
|
1051 esac
|
cannam@86
|
1052 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
cannam@86
|
1053 fi
|
cannam@86
|
1054
|
cannam@86
|
1055 _LT_CC_BASENAME([$compiler])
|
cannam@86
|
1056
|
cannam@86
|
1057 # Only perform the check for file, if the check method requires it
|
cannam@86
|
1058 case $deplibs_check_method in
|
cannam@86
|
1059 file_magic*)
|
cannam@86
|
1060 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
cannam@86
|
1061 AC_PATH_MAGIC
|
cannam@86
|
1062 fi
|
cannam@86
|
1063 ;;
|
cannam@86
|
1064 esac
|
cannam@86
|
1065
|
cannam@86
|
1066 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
|
cannam@86
|
1067 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
|
cannam@86
|
1068 enable_win32_dll=yes, enable_win32_dll=no)
|
cannam@86
|
1069
|
cannam@86
|
1070 AC_ARG_ENABLE([libtool-lock],
|
cannam@86
|
1071 [AC_HELP_STRING([--disable-libtool-lock],
|
cannam@86
|
1072 [avoid locking (might break parallel builds)])])
|
cannam@86
|
1073 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
cannam@86
|
1074
|
cannam@86
|
1075 AC_ARG_WITH([pic],
|
cannam@86
|
1076 [AC_HELP_STRING([--with-pic],
|
cannam@86
|
1077 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
|
cannam@86
|
1078 [pic_mode="$withval"],
|
cannam@86
|
1079 [pic_mode=default])
|
cannam@86
|
1080 test -z "$pic_mode" && pic_mode=default
|
cannam@86
|
1081
|
cannam@86
|
1082 # Use C for the default configuration in the libtool script
|
cannam@86
|
1083 tagname=
|
cannam@86
|
1084 AC_LIBTOOL_LANG_C_CONFIG
|
cannam@86
|
1085 _LT_AC_TAGCONFIG
|
cannam@86
|
1086 ])# AC_LIBTOOL_SETUP
|
cannam@86
|
1087
|
cannam@86
|
1088
|
cannam@86
|
1089 # _LT_AC_SYS_COMPILER
|
cannam@86
|
1090 # -------------------
|
cannam@86
|
1091 AC_DEFUN([_LT_AC_SYS_COMPILER],
|
cannam@86
|
1092 [AC_REQUIRE([AC_PROG_CC])dnl
|
cannam@86
|
1093
|
cannam@86
|
1094 # If no C compiler was specified, use CC.
|
cannam@86
|
1095 LTCC=${LTCC-"$CC"}
|
cannam@86
|
1096
|
cannam@86
|
1097 # Allow CC to be a program name with arguments.
|
cannam@86
|
1098 compiler=$CC
|
cannam@86
|
1099 ])# _LT_AC_SYS_COMPILER
|
cannam@86
|
1100
|
cannam@86
|
1101
|
cannam@86
|
1102 # _LT_CC_BASENAME(CC)
|
cannam@86
|
1103 # -------------------
|
cannam@86
|
1104 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
cannam@86
|
1105 AC_DEFUN([_LT_CC_BASENAME],
|
cannam@86
|
1106 [for cc_temp in $1""; do
|
cannam@86
|
1107 case $cc_temp in
|
cannam@86
|
1108 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
|
cannam@86
|
1109 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
|
cannam@86
|
1110 \-*) ;;
|
cannam@86
|
1111 *) break;;
|
cannam@86
|
1112 esac
|
cannam@86
|
1113 done
|
cannam@86
|
1114 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
cannam@86
|
1115 ])
|
cannam@86
|
1116
|
cannam@86
|
1117
|
cannam@86
|
1118 # _LT_COMPILER_BOILERPLATE
|
cannam@86
|
1119 # ------------------------
|
cannam@86
|
1120 # Check for compiler boilerplate output or warnings with
|
cannam@86
|
1121 # the simple compiler test code.
|
cannam@86
|
1122 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
|
cannam@86
|
1123 [ac_outfile=conftest.$ac_objext
|
cannam@86
|
1124 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
cannam@86
|
1125 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
cannam@86
|
1126 _lt_compiler_boilerplate=`cat conftest.err`
|
cannam@86
|
1127 $rm conftest*
|
cannam@86
|
1128 ])# _LT_COMPILER_BOILERPLATE
|
cannam@86
|
1129
|
cannam@86
|
1130
|
cannam@86
|
1131 # _LT_LINKER_BOILERPLATE
|
cannam@86
|
1132 # ----------------------
|
cannam@86
|
1133 # Check for linker boilerplate output or warnings with
|
cannam@86
|
1134 # the simple link test code.
|
cannam@86
|
1135 AC_DEFUN([_LT_LINKER_BOILERPLATE],
|
cannam@86
|
1136 [ac_outfile=conftest.$ac_objext
|
cannam@86
|
1137 printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
cannam@86
|
1138 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
cannam@86
|
1139 _lt_linker_boilerplate=`cat conftest.err`
|
cannam@86
|
1140 $rm conftest*
|
cannam@86
|
1141 ])# _LT_LINKER_BOILERPLATE
|
cannam@86
|
1142
|
cannam@86
|
1143
|
cannam@86
|
1144 # _LT_AC_SYS_LIBPATH_AIX
|
cannam@86
|
1145 # ----------------------
|
cannam@86
|
1146 # Links a minimal program and checks the executable
|
cannam@86
|
1147 # for the system default hardcoded library path. In most cases,
|
cannam@86
|
1148 # this is /usr/lib:/lib, but when the MPI compilers are used
|
cannam@86
|
1149 # the location of the communication and MPI libs are included too.
|
cannam@86
|
1150 # If we don't find anything, use the default library path according
|
cannam@86
|
1151 # to the aix ld manual.
|
cannam@86
|
1152 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
|
cannam@86
|
1153 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
|
cannam@86
|
1154 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
cannam@86
|
1155 }'`
|
cannam@86
|
1156 # Check for a 64-bit object if we didn't find anything.
|
cannam@86
|
1157 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
cannam@86
|
1158 }'`; fi],[])
|
cannam@86
|
1159 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
cannam@86
|
1160 ])# _LT_AC_SYS_LIBPATH_AIX
|
cannam@86
|
1161
|
cannam@86
|
1162
|
cannam@86
|
1163 # _LT_AC_SHELL_INIT(ARG)
|
cannam@86
|
1164 # ----------------------
|
cannam@86
|
1165 AC_DEFUN([_LT_AC_SHELL_INIT],
|
cannam@86
|
1166 [ifdef([AC_DIVERSION_NOTICE],
|
cannam@86
|
1167 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
|
cannam@86
|
1168 [AC_DIVERT_PUSH(NOTICE)])
|
cannam@86
|
1169 $1
|
cannam@86
|
1170 AC_DIVERT_POP
|
cannam@86
|
1171 ])# _LT_AC_SHELL_INIT
|
cannam@86
|
1172
|
cannam@86
|
1173
|
cannam@86
|
1174 # _LT_AC_PROG_ECHO_BACKSLASH
|
cannam@86
|
1175 # --------------------------
|
cannam@86
|
1176 # Add some code to the start of the generated configure script which
|
cannam@86
|
1177 # will find an echo command which doesn't interpret backslashes.
|
cannam@86
|
1178 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
|
cannam@86
|
1179 [_LT_AC_SHELL_INIT([
|
cannam@86
|
1180 # Check that we are running under the correct shell.
|
cannam@86
|
1181 SHELL=${CONFIG_SHELL-/bin/sh}
|
cannam@86
|
1182
|
cannam@86
|
1183 case X$ECHO in
|
cannam@86
|
1184 X*--fallback-echo)
|
cannam@86
|
1185 # Remove one level of quotation (which was required for Make).
|
cannam@86
|
1186 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
|
cannam@86
|
1187 ;;
|
cannam@86
|
1188 esac
|
cannam@86
|
1189
|
cannam@86
|
1190 echo=${ECHO-echo}
|
cannam@86
|
1191 if test "X[$]1" = X--no-reexec; then
|
cannam@86
|
1192 # Discard the --no-reexec flag, and continue.
|
cannam@86
|
1193 shift
|
cannam@86
|
1194 elif test "X[$]1" = X--fallback-echo; then
|
cannam@86
|
1195 # Avoid inline document here, it may be left over
|
cannam@86
|
1196 :
|
cannam@86
|
1197 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
|
cannam@86
|
1198 # Yippee, $echo works!
|
cannam@86
|
1199 :
|
cannam@86
|
1200 else
|
cannam@86
|
1201 # Restart under the correct shell.
|
cannam@86
|
1202 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
|
cannam@86
|
1203 fi
|
cannam@86
|
1204
|
cannam@86
|
1205 if test "X[$]1" = X--fallback-echo; then
|
cannam@86
|
1206 # used as fallback echo
|
cannam@86
|
1207 shift
|
cannam@86
|
1208 cat <<EOF
|
cannam@86
|
1209 [$]*
|
cannam@86
|
1210 EOF
|
cannam@86
|
1211 exit 0
|
cannam@86
|
1212 fi
|
cannam@86
|
1213
|
cannam@86
|
1214 # The HP-UX ksh and POSIX shell print the target directory to stdout
|
cannam@86
|
1215 # if CDPATH is set.
|
cannam@86
|
1216 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
cannam@86
|
1217
|
cannam@86
|
1218 if test -z "$ECHO"; then
|
cannam@86
|
1219 if test "X${echo_test_string+set}" != Xset; then
|
cannam@86
|
1220 # find a string as large as possible, as long as the shell can cope with it
|
cannam@86
|
1221 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
|
cannam@86
|
1222 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
|
cannam@86
|
1223 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
|
cannam@86
|
1224 echo_test_string="`eval $cmd`" &&
|
cannam@86
|
1225 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
|
cannam@86
|
1226 then
|
cannam@86
|
1227 break
|
cannam@86
|
1228 fi
|
cannam@86
|
1229 done
|
cannam@86
|
1230 fi
|
cannam@86
|
1231
|
cannam@86
|
1232 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
cannam@86
|
1233 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
cannam@86
|
1234 test "X$echo_testing_string" = "X$echo_test_string"; then
|
cannam@86
|
1235 :
|
cannam@86
|
1236 else
|
cannam@86
|
1237 # The Solaris, AIX, and Digital Unix default echo programs unquote
|
cannam@86
|
1238 # backslashes. This makes it impossible to quote backslashes using
|
cannam@86
|
1239 # echo "$something" | sed 's/\\/\\\\/g'
|
cannam@86
|
1240 #
|
cannam@86
|
1241 # So, first we look for a working echo in the user's PATH.
|
cannam@86
|
1242
|
cannam@86
|
1243 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
cannam@86
|
1244 for dir in $PATH /usr/ucb; do
|
cannam@86
|
1245 IFS="$lt_save_ifs"
|
cannam@86
|
1246 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
|
cannam@86
|
1247 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
|
cannam@86
|
1248 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
|
cannam@86
|
1249 test "X$echo_testing_string" = "X$echo_test_string"; then
|
cannam@86
|
1250 echo="$dir/echo"
|
cannam@86
|
1251 break
|
cannam@86
|
1252 fi
|
cannam@86
|
1253 done
|
cannam@86
|
1254 IFS="$lt_save_ifs"
|
cannam@86
|
1255
|
cannam@86
|
1256 if test "X$echo" = Xecho; then
|
cannam@86
|
1257 # We didn't find a better echo, so look for alternatives.
|
cannam@86
|
1258 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
|
cannam@86
|
1259 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
|
cannam@86
|
1260 test "X$echo_testing_string" = "X$echo_test_string"; then
|
cannam@86
|
1261 # This shell has a builtin print -r that does the trick.
|
cannam@86
|
1262 echo='print -r'
|
cannam@86
|
1263 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
|
cannam@86
|
1264 test "X$CONFIG_SHELL" != X/bin/ksh; then
|
cannam@86
|
1265 # If we have ksh, try running configure again with it.
|
cannam@86
|
1266 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
|
cannam@86
|
1267 export ORIGINAL_CONFIG_SHELL
|
cannam@86
|
1268 CONFIG_SHELL=/bin/ksh
|
cannam@86
|
1269 export CONFIG_SHELL
|
cannam@86
|
1270 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
|
cannam@86
|
1271 else
|
cannam@86
|
1272 # Try using printf.
|
cannam@86
|
1273 echo='printf %s\n'
|
cannam@86
|
1274 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
|
cannam@86
|
1275 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
|
cannam@86
|
1276 test "X$echo_testing_string" = "X$echo_test_string"; then
|
cannam@86
|
1277 # Cool, printf works
|
cannam@86
|
1278 :
|
cannam@86
|
1279 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
cannam@86
|
1280 test "X$echo_testing_string" = 'X\t' &&
|
cannam@86
|
1281 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
cannam@86
|
1282 test "X$echo_testing_string" = "X$echo_test_string"; then
|
cannam@86
|
1283 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
|
cannam@86
|
1284 export CONFIG_SHELL
|
cannam@86
|
1285 SHELL="$CONFIG_SHELL"
|
cannam@86
|
1286 export SHELL
|
cannam@86
|
1287 echo="$CONFIG_SHELL [$]0 --fallback-echo"
|
cannam@86
|
1288 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
|
cannam@86
|
1289 test "X$echo_testing_string" = 'X\t' &&
|
cannam@86
|
1290 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
|
cannam@86
|
1291 test "X$echo_testing_string" = "X$echo_test_string"; then
|
cannam@86
|
1292 echo="$CONFIG_SHELL [$]0 --fallback-echo"
|
cannam@86
|
1293 else
|
cannam@86
|
1294 # maybe with a smaller string...
|
cannam@86
|
1295 prev=:
|
cannam@86
|
1296
|
cannam@86
|
1297 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
|
cannam@86
|
1298 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
|
cannam@86
|
1299 then
|
cannam@86
|
1300 break
|
cannam@86
|
1301 fi
|
cannam@86
|
1302 prev="$cmd"
|
cannam@86
|
1303 done
|
cannam@86
|
1304
|
cannam@86
|
1305 if test "$prev" != 'sed 50q "[$]0"'; then
|
cannam@86
|
1306 echo_test_string=`eval $prev`
|
cannam@86
|
1307 export echo_test_string
|
cannam@86
|
1308 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
|
cannam@86
|
1309 else
|
cannam@86
|
1310 # Oops. We lost completely, so just stick with echo.
|
cannam@86
|
1311 echo=echo
|
cannam@86
|
1312 fi
|
cannam@86
|
1313 fi
|
cannam@86
|
1314 fi
|
cannam@86
|
1315 fi
|
cannam@86
|
1316 fi
|
cannam@86
|
1317 fi
|
cannam@86
|
1318
|
cannam@86
|
1319 # Copy echo and quote the copy suitably for passing to libtool from
|
cannam@86
|
1320 # the Makefile, instead of quoting the original, which is used later.
|
cannam@86
|
1321 ECHO=$echo
|
cannam@86
|
1322 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
|
cannam@86
|
1323 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
|
cannam@86
|
1324 fi
|
cannam@86
|
1325
|
cannam@86
|
1326 AC_SUBST(ECHO)
|
cannam@86
|
1327 ])])# _LT_AC_PROG_ECHO_BACKSLASH
|
cannam@86
|
1328
|
cannam@86
|
1329
|
cannam@86
|
1330 # _LT_AC_LOCK
|
cannam@86
|
1331 # -----------
|
cannam@86
|
1332 AC_DEFUN([_LT_AC_LOCK],
|
cannam@86
|
1333 [AC_ARG_ENABLE([libtool-lock],
|
cannam@86
|
1334 [AC_HELP_STRING([--disable-libtool-lock],
|
cannam@86
|
1335 [avoid locking (might break parallel builds)])])
|
cannam@86
|
1336 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
cannam@86
|
1337
|
cannam@86
|
1338 # Some flags need to be propagated to the compiler or linker for good
|
cannam@86
|
1339 # libtool support.
|
cannam@86
|
1340 case $host in
|
cannam@86
|
1341 ia64-*-hpux*)
|
cannam@86
|
1342 # Find out which ABI we are using.
|
cannam@86
|
1343 echo 'int i;' > conftest.$ac_ext
|
cannam@86
|
1344 if AC_TRY_EVAL(ac_compile); then
|
cannam@86
|
1345 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@86
|
1346 *ELF-32*)
|
cannam@86
|
1347 HPUX_IA64_MODE="32"
|
cannam@86
|
1348 ;;
|
cannam@86
|
1349 *ELF-64*)
|
cannam@86
|
1350 HPUX_IA64_MODE="64"
|
cannam@86
|
1351 ;;
|
cannam@86
|
1352 esac
|
cannam@86
|
1353 fi
|
cannam@86
|
1354 rm -rf conftest*
|
cannam@86
|
1355 ;;
|
cannam@86
|
1356 *-*-irix6*)
|
cannam@86
|
1357 # Find out which ABI we are using.
|
cannam@86
|
1358 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
|
cannam@86
|
1359 if AC_TRY_EVAL(ac_compile); then
|
cannam@86
|
1360 if test "$lt_cv_prog_gnu_ld" = yes; then
|
cannam@86
|
1361 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@86
|
1362 *32-bit*)
|
cannam@86
|
1363 LD="${LD-ld} -melf32bsmip"
|
cannam@86
|
1364 ;;
|
cannam@86
|
1365 *N32*)
|
cannam@86
|
1366 LD="${LD-ld} -melf32bmipn32"
|
cannam@86
|
1367 ;;
|
cannam@86
|
1368 *64-bit*)
|
cannam@86
|
1369 LD="${LD-ld} -melf64bmip"
|
cannam@86
|
1370 ;;
|
cannam@86
|
1371 esac
|
cannam@86
|
1372 else
|
cannam@86
|
1373 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@86
|
1374 *32-bit*)
|
cannam@86
|
1375 LD="${LD-ld} -32"
|
cannam@86
|
1376 ;;
|
cannam@86
|
1377 *N32*)
|
cannam@86
|
1378 LD="${LD-ld} -n32"
|
cannam@86
|
1379 ;;
|
cannam@86
|
1380 *64-bit*)
|
cannam@86
|
1381 LD="${LD-ld} -64"
|
cannam@86
|
1382 ;;
|
cannam@86
|
1383 esac
|
cannam@86
|
1384 fi
|
cannam@86
|
1385 fi
|
cannam@86
|
1386 rm -rf conftest*
|
cannam@86
|
1387 ;;
|
cannam@86
|
1388
|
cannam@86
|
1389 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
|
cannam@86
|
1390 # Find out which ABI we are using.
|
cannam@86
|
1391 echo 'int i;' > conftest.$ac_ext
|
cannam@86
|
1392 if AC_TRY_EVAL(ac_compile); then
|
cannam@86
|
1393 case "`/usr/bin/file conftest.o`" in
|
cannam@86
|
1394 *32-bit*)
|
cannam@86
|
1395 case $host in
|
cannam@86
|
1396 x86_64-*linux*)
|
cannam@86
|
1397 LD="${LD-ld} -m elf_i386"
|
cannam@86
|
1398 ;;
|
cannam@86
|
1399 ppc64-*linux*|powerpc64-*linux*)
|
cannam@86
|
1400 LD="${LD-ld} -m elf32ppclinux"
|
cannam@86
|
1401 ;;
|
cannam@86
|
1402 s390x-*linux*)
|
cannam@86
|
1403 LD="${LD-ld} -m elf_s390"
|
cannam@86
|
1404 ;;
|
cannam@86
|
1405 sparc64-*linux*)
|
cannam@86
|
1406 LD="${LD-ld} -m elf32_sparc"
|
cannam@86
|
1407 ;;
|
cannam@86
|
1408 esac
|
cannam@86
|
1409 ;;
|
cannam@86
|
1410 *64-bit*)
|
cannam@86
|
1411 case $host in
|
cannam@86
|
1412 x86_64-*linux*)
|
cannam@86
|
1413 LD="${LD-ld} -m elf_x86_64"
|
cannam@86
|
1414 ;;
|
cannam@86
|
1415 ppc*-*linux*|powerpc*-*linux*)
|
cannam@86
|
1416 LD="${LD-ld} -m elf64ppc"
|
cannam@86
|
1417 ;;
|
cannam@86
|
1418 s390*-*linux*)
|
cannam@86
|
1419 LD="${LD-ld} -m elf64_s390"
|
cannam@86
|
1420 ;;
|
cannam@86
|
1421 sparc*-*linux*)
|
cannam@86
|
1422 LD="${LD-ld} -m elf64_sparc"
|
cannam@86
|
1423 ;;
|
cannam@86
|
1424 esac
|
cannam@86
|
1425 ;;
|
cannam@86
|
1426 esac
|
cannam@86
|
1427 fi
|
cannam@86
|
1428 rm -rf conftest*
|
cannam@86
|
1429 ;;
|
cannam@86
|
1430
|
cannam@86
|
1431 *-*-sco3.2v5*)
|
cannam@86
|
1432 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
cannam@86
|
1433 SAVE_CFLAGS="$CFLAGS"
|
cannam@86
|
1434 CFLAGS="$CFLAGS -belf"
|
cannam@86
|
1435 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
|
cannam@86
|
1436 [AC_LANG_PUSH(C)
|
cannam@86
|
1437 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
|
cannam@86
|
1438 AC_LANG_POP])
|
cannam@86
|
1439 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
cannam@86
|
1440 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
cannam@86
|
1441 CFLAGS="$SAVE_CFLAGS"
|
cannam@86
|
1442 fi
|
cannam@86
|
1443 ;;
|
cannam@86
|
1444 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
|
cannam@86
|
1445 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
|
cannam@86
|
1446 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
cannam@86
|
1447 AC_CHECK_TOOL(AS, as, false)
|
cannam@86
|
1448 AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
cannam@86
|
1449 ;;
|
cannam@86
|
1450 ])
|
cannam@86
|
1451 esac
|
cannam@86
|
1452
|
cannam@86
|
1453 need_locks="$enable_libtool_lock"
|
cannam@86
|
1454
|
cannam@86
|
1455 ])# _LT_AC_LOCK
|
cannam@86
|
1456
|
cannam@86
|
1457
|
cannam@86
|
1458 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
cannam@86
|
1459 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
|
cannam@86
|
1460 # ----------------------------------------------------------------
|
cannam@86
|
1461 # Check whether the given compiler option works
|
cannam@86
|
1462 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
|
cannam@86
|
1463 [AC_REQUIRE([LT_AC_PROG_SED])
|
cannam@86
|
1464 AC_CACHE_CHECK([$1], [$2],
|
cannam@86
|
1465 [$2=no
|
cannam@86
|
1466 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
|
cannam@86
|
1467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@86
|
1468 lt_compiler_flag="$3"
|
cannam@86
|
1469 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@86
|
1470 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@86
|
1471 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@86
|
1472 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@86
|
1473 # The option is referenced via a variable to avoid confusing sed.
|
cannam@86
|
1474 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@86
|
1475 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
cannam@86
|
1476 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@86
|
1477 -e 's:$: $lt_compiler_flag:'`
|
cannam@86
|
1478 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
cannam@86
|
1479 (eval "$lt_compile" 2>conftest.err)
|
cannam@86
|
1480 ac_status=$?
|
cannam@86
|
1481 cat conftest.err >&AS_MESSAGE_LOG_FD
|
cannam@86
|
1482 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
cannam@86
|
1483 if (exit $ac_status) && test -s "$ac_outfile"; then
|
cannam@86
|
1484 # The compiler can only warn and ignore the option if not recognized
|
cannam@86
|
1485 # So say no if there are warnings other than the usual output.
|
cannam@86
|
1486 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
|
cannam@86
|
1487 $SED '/^$/d' conftest.err >conftest.er2
|
cannam@86
|
1488 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
|
cannam@86
|
1489 $2=yes
|
cannam@86
|
1490 fi
|
cannam@86
|
1491 fi
|
cannam@86
|
1492 $rm conftest*
|
cannam@86
|
1493 ])
|
cannam@86
|
1494
|
cannam@86
|
1495 if test x"[$]$2" = xyes; then
|
cannam@86
|
1496 ifelse([$5], , :, [$5])
|
cannam@86
|
1497 else
|
cannam@86
|
1498 ifelse([$6], , :, [$6])
|
cannam@86
|
1499 fi
|
cannam@86
|
1500 ])# AC_LIBTOOL_COMPILER_OPTION
|
cannam@86
|
1501
|
cannam@86
|
1502
|
cannam@86
|
1503 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
|
cannam@86
|
1504 # [ACTION-SUCCESS], [ACTION-FAILURE])
|
cannam@86
|
1505 # ------------------------------------------------------------
|
cannam@86
|
1506 # Check whether the given compiler option works
|
cannam@86
|
1507 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
|
cannam@86
|
1508 [AC_CACHE_CHECK([$1], [$2],
|
cannam@86
|
1509 [$2=no
|
cannam@86
|
1510 save_LDFLAGS="$LDFLAGS"
|
cannam@86
|
1511 LDFLAGS="$LDFLAGS $3"
|
cannam@86
|
1512 printf "$lt_simple_link_test_code" > conftest.$ac_ext
|
cannam@86
|
1513 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
cannam@86
|
1514 # The compiler can only warn and ignore the option if not recognized
|
cannam@86
|
1515 # So say no if there are warnings
|
cannam@86
|
1516 if test -s conftest.err; then
|
cannam@86
|
1517 # Append any errors to the config.log.
|
cannam@86
|
1518 cat conftest.err 1>&AS_MESSAGE_LOG_FD
|
cannam@86
|
1519 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
|
cannam@86
|
1520 $SED '/^$/d' conftest.err >conftest.er2
|
cannam@86
|
1521 if diff conftest.exp conftest.er2 >/dev/null; then
|
cannam@86
|
1522 $2=yes
|
cannam@86
|
1523 fi
|
cannam@86
|
1524 else
|
cannam@86
|
1525 $2=yes
|
cannam@86
|
1526 fi
|
cannam@86
|
1527 fi
|
cannam@86
|
1528 $rm conftest*
|
cannam@86
|
1529 LDFLAGS="$save_LDFLAGS"
|
cannam@86
|
1530 ])
|
cannam@86
|
1531
|
cannam@86
|
1532 if test x"[$]$2" = xyes; then
|
cannam@86
|
1533 ifelse([$4], , :, [$4])
|
cannam@86
|
1534 else
|
cannam@86
|
1535 ifelse([$5], , :, [$5])
|
cannam@86
|
1536 fi
|
cannam@86
|
1537 ])# AC_LIBTOOL_LINKER_OPTION
|
cannam@86
|
1538
|
cannam@86
|
1539
|
cannam@86
|
1540 # AC_LIBTOOL_SYS_MAX_CMD_LEN
|
cannam@86
|
1541 # --------------------------
|
cannam@86
|
1542 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
|
cannam@86
|
1543 [# find the maximum length of command line arguments
|
cannam@86
|
1544 AC_MSG_CHECKING([the maximum length of command line arguments])
|
cannam@86
|
1545 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
cannam@86
|
1546 i=0
|
cannam@86
|
1547 teststring="ABCD"
|
cannam@86
|
1548
|
cannam@86
|
1549 case $build_os in
|
cannam@86
|
1550 msdosdjgpp*)
|
cannam@86
|
1551 # On DJGPP, this test can blow up pretty badly due to problems in libc
|
cannam@86
|
1552 # (any single argument exceeding 2000 bytes causes a buffer overrun
|
cannam@86
|
1553 # during glob expansion). Even if it were fixed, the result of this
|
cannam@86
|
1554 # check would be larger than it should be.
|
cannam@86
|
1555 lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
cannam@86
|
1556 ;;
|
cannam@86
|
1557
|
cannam@86
|
1558 gnu*)
|
cannam@86
|
1559 # Under GNU Hurd, this test is not required because there is
|
cannam@86
|
1560 # no limit to the length of command line arguments.
|
cannam@86
|
1561 # Libtool will interpret -1 as no limit whatsoever
|
cannam@86
|
1562 lt_cv_sys_max_cmd_len=-1;
|
cannam@86
|
1563 ;;
|
cannam@86
|
1564
|
cannam@86
|
1565 cygwin* | mingw*)
|
cannam@86
|
1566 # On Win9x/ME, this test blows up -- it succeeds, but takes
|
cannam@86
|
1567 # about 5 minutes as the teststring grows exponentially.
|
cannam@86
|
1568 # Worse, since 9x/ME are not pre-emptively multitasking,
|
cannam@86
|
1569 # you end up with a "frozen" computer, even though with patience
|
cannam@86
|
1570 # the test eventually succeeds (with a max line length of 256k).
|
cannam@86
|
1571 # Instead, let's just punt: use the minimum linelength reported by
|
cannam@86
|
1572 # all of the supported platforms: 8192 (on NT/2K/XP).
|
cannam@86
|
1573 lt_cv_sys_max_cmd_len=8192;
|
cannam@86
|
1574 ;;
|
cannam@86
|
1575
|
cannam@86
|
1576 amigaos*)
|
cannam@86
|
1577 # On AmigaOS with pdksh, this test takes hours, literally.
|
cannam@86
|
1578 # So we just punt and use a minimum line length of 8192.
|
cannam@86
|
1579 lt_cv_sys_max_cmd_len=8192;
|
cannam@86
|
1580 ;;
|
cannam@86
|
1581
|
cannam@86
|
1582 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
cannam@86
|
1583 # This has been around since 386BSD, at least. Likely further.
|
cannam@86
|
1584 if test -x /sbin/sysctl; then
|
cannam@86
|
1585 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
cannam@86
|
1586 elif test -x /usr/sbin/sysctl; then
|
cannam@86
|
1587 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
cannam@86
|
1588 else
|
cannam@86
|
1589 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
|
cannam@86
|
1590 fi
|
cannam@86
|
1591 # And add a safety zone
|
cannam@86
|
1592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
cannam@86
|
1593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
cannam@86
|
1594 ;;
|
cannam@86
|
1595 osf*)
|
cannam@86
|
1596 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
cannam@86
|
1597 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
cannam@86
|
1598 # nice to cause kernel panics so lets avoid the loop below.
|
cannam@86
|
1599 # First set a reasonable default.
|
cannam@86
|
1600 lt_cv_sys_max_cmd_len=16384
|
cannam@86
|
1601 #
|
cannam@86
|
1602 if test -x /sbin/sysconfig; then
|
cannam@86
|
1603 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
cannam@86
|
1604 *1*) lt_cv_sys_max_cmd_len=-1 ;;
|
cannam@86
|
1605 esac
|
cannam@86
|
1606 fi
|
cannam@86
|
1607 ;;
|
cannam@86
|
1608 *)
|
cannam@86
|
1609 # If test is not a shell built-in, we'll probably end up computing a
|
cannam@86
|
1610 # maximum length that is only half of the actual maximum length, but
|
cannam@86
|
1611 # we can't tell.
|
cannam@86
|
1612 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
cannam@86
|
1613 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
|
cannam@86
|
1614 = "XX$teststring") >/dev/null 2>&1 &&
|
cannam@86
|
1615 new_result=`expr "X$teststring" : ".*" 2>&1` &&
|
cannam@86
|
1616 lt_cv_sys_max_cmd_len=$new_result &&
|
cannam@86
|
1617 test $i != 17 # 1/2 MB should be enough
|
cannam@86
|
1618 do
|
cannam@86
|
1619 i=`expr $i + 1`
|
cannam@86
|
1620 teststring=$teststring$teststring
|
cannam@86
|
1621 done
|
cannam@86
|
1622 teststring=
|
cannam@86
|
1623 # Add a significant safety factor because C++ compilers can tack on massive
|
cannam@86
|
1624 # amounts of additional arguments before passing them to the linker.
|
cannam@86
|
1625 # It appears as though 1/2 is a usable value.
|
cannam@86
|
1626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
cannam@86
|
1627 ;;
|
cannam@86
|
1628 esac
|
cannam@86
|
1629 ])
|
cannam@86
|
1630 if test -n $lt_cv_sys_max_cmd_len ; then
|
cannam@86
|
1631 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
|
cannam@86
|
1632 else
|
cannam@86
|
1633 AC_MSG_RESULT(none)
|
cannam@86
|
1634 fi
|
cannam@86
|
1635 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
|
cannam@86
|
1636
|
cannam@86
|
1637
|
cannam@86
|
1638 # _LT_AC_CHECK_DLFCN
|
cannam@86
|
1639 # --------------------
|
cannam@86
|
1640 AC_DEFUN([_LT_AC_CHECK_DLFCN],
|
cannam@86
|
1641 [AC_CHECK_HEADERS(dlfcn.h)dnl
|
cannam@86
|
1642 ])# _LT_AC_CHECK_DLFCN
|
cannam@86
|
1643
|
cannam@86
|
1644
|
cannam@86
|
1645 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
|
cannam@86
|
1646 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
|
cannam@86
|
1647 # ------------------------------------------------------------------
|
cannam@86
|
1648 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
|
cannam@86
|
1649 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
|
cannam@86
|
1650 if test "$cross_compiling" = yes; then :
|
cannam@86
|
1651 [$4]
|
cannam@86
|
1652 else
|
cannam@86
|
1653 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
cannam@86
|
1654 lt_status=$lt_dlunknown
|
cannam@86
|
1655 cat > conftest.$ac_ext <<EOF
|
cannam@86
|
1656 [#line __oline__ "configure"
|
cannam@86
|
1657 #include "confdefs.h"
|
cannam@86
|
1658
|
cannam@86
|
1659 #if HAVE_DLFCN_H
|
cannam@86
|
1660 #include <dlfcn.h>
|
cannam@86
|
1661 #endif
|
cannam@86
|
1662
|
cannam@86
|
1663 #include <stdio.h>
|
cannam@86
|
1664
|
cannam@86
|
1665 #ifdef RTLD_GLOBAL
|
cannam@86
|
1666 # define LT_DLGLOBAL RTLD_GLOBAL
|
cannam@86
|
1667 #else
|
cannam@86
|
1668 # ifdef DL_GLOBAL
|
cannam@86
|
1669 # define LT_DLGLOBAL DL_GLOBAL
|
cannam@86
|
1670 # else
|
cannam@86
|
1671 # define LT_DLGLOBAL 0
|
cannam@86
|
1672 # endif
|
cannam@86
|
1673 #endif
|
cannam@86
|
1674
|
cannam@86
|
1675 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
cannam@86
|
1676 find out it does not work in some platform. */
|
cannam@86
|
1677 #ifndef LT_DLLAZY_OR_NOW
|
cannam@86
|
1678 # ifdef RTLD_LAZY
|
cannam@86
|
1679 # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
cannam@86
|
1680 # else
|
cannam@86
|
1681 # ifdef DL_LAZY
|
cannam@86
|
1682 # define LT_DLLAZY_OR_NOW DL_LAZY
|
cannam@86
|
1683 # else
|
cannam@86
|
1684 # ifdef RTLD_NOW
|
cannam@86
|
1685 # define LT_DLLAZY_OR_NOW RTLD_NOW
|
cannam@86
|
1686 # else
|
cannam@86
|
1687 # ifdef DL_NOW
|
cannam@86
|
1688 # define LT_DLLAZY_OR_NOW DL_NOW
|
cannam@86
|
1689 # else
|
cannam@86
|
1690 # define LT_DLLAZY_OR_NOW 0
|
cannam@86
|
1691 # endif
|
cannam@86
|
1692 # endif
|
cannam@86
|
1693 # endif
|
cannam@86
|
1694 # endif
|
cannam@86
|
1695 #endif
|
cannam@86
|
1696
|
cannam@86
|
1697 #ifdef __cplusplus
|
cannam@86
|
1698 extern "C" void exit (int);
|
cannam@86
|
1699 #endif
|
cannam@86
|
1700
|
cannam@86
|
1701 void fnord() { int i=42;}
|
cannam@86
|
1702 int main ()
|
cannam@86
|
1703 {
|
cannam@86
|
1704 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
cannam@86
|
1705 int status = $lt_dlunknown;
|
cannam@86
|
1706
|
cannam@86
|
1707 if (self)
|
cannam@86
|
1708 {
|
cannam@86
|
1709 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
cannam@86
|
1710 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
cannam@86
|
1711 /* dlclose (self); */
|
cannam@86
|
1712 }
|
cannam@86
|
1713
|
cannam@86
|
1714 exit (status);
|
cannam@86
|
1715 }]
|
cannam@86
|
1716 EOF
|
cannam@86
|
1717 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
|
cannam@86
|
1718 (./conftest; exit; ) 2>/dev/null
|
cannam@86
|
1719 lt_status=$?
|
cannam@86
|
1720 case x$lt_status in
|
cannam@86
|
1721 x$lt_dlno_uscore) $1 ;;
|
cannam@86
|
1722 x$lt_dlneed_uscore) $2 ;;
|
cannam@86
|
1723 x$lt_unknown|x*) $3 ;;
|
cannam@86
|
1724 esac
|
cannam@86
|
1725 else :
|
cannam@86
|
1726 # compilation failed
|
cannam@86
|
1727 $3
|
cannam@86
|
1728 fi
|
cannam@86
|
1729 fi
|
cannam@86
|
1730 rm -fr conftest*
|
cannam@86
|
1731 ])# _LT_AC_TRY_DLOPEN_SELF
|
cannam@86
|
1732
|
cannam@86
|
1733
|
cannam@86
|
1734 # AC_LIBTOOL_DLOPEN_SELF
|
cannam@86
|
1735 # -------------------
|
cannam@86
|
1736 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
|
cannam@86
|
1737 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
|
cannam@86
|
1738 if test "x$enable_dlopen" != xyes; then
|
cannam@86
|
1739 enable_dlopen=unknown
|
cannam@86
|
1740 enable_dlopen_self=unknown
|
cannam@86
|
1741 enable_dlopen_self_static=unknown
|
cannam@86
|
1742 else
|
cannam@86
|
1743 lt_cv_dlopen=no
|
cannam@86
|
1744 lt_cv_dlopen_libs=
|
cannam@86
|
1745
|
cannam@86
|
1746 case $host_os in
|
cannam@86
|
1747 beos*)
|
cannam@86
|
1748 lt_cv_dlopen="load_add_on"
|
cannam@86
|
1749 lt_cv_dlopen_libs=
|
cannam@86
|
1750 lt_cv_dlopen_self=yes
|
cannam@86
|
1751 ;;
|
cannam@86
|
1752
|
cannam@86
|
1753 mingw* | pw32*)
|
cannam@86
|
1754 lt_cv_dlopen="LoadLibrary"
|
cannam@86
|
1755 lt_cv_dlopen_libs=
|
cannam@86
|
1756 ;;
|
cannam@86
|
1757
|
cannam@86
|
1758 cygwin*)
|
cannam@86
|
1759 lt_cv_dlopen="dlopen"
|
cannam@86
|
1760 lt_cv_dlopen_libs=
|
cannam@86
|
1761 ;;
|
cannam@86
|
1762
|
cannam@86
|
1763 darwin*)
|
cannam@86
|
1764 # if libdl is installed we need to link against it
|
cannam@86
|
1765 AC_CHECK_LIB([dl], [dlopen],
|
cannam@86
|
1766 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
|
cannam@86
|
1767 lt_cv_dlopen="dyld"
|
cannam@86
|
1768 lt_cv_dlopen_libs=
|
cannam@86
|
1769 lt_cv_dlopen_self=yes
|
cannam@86
|
1770 ])
|
cannam@86
|
1771 ;;
|
cannam@86
|
1772
|
cannam@86
|
1773 *)
|
cannam@86
|
1774 AC_CHECK_FUNC([shl_load],
|
cannam@86
|
1775 [lt_cv_dlopen="shl_load"],
|
cannam@86
|
1776 [AC_CHECK_LIB([dld], [shl_load],
|
cannam@86
|
1777 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
|
cannam@86
|
1778 [AC_CHECK_FUNC([dlopen],
|
cannam@86
|
1779 [lt_cv_dlopen="dlopen"],
|
cannam@86
|
1780 [AC_CHECK_LIB([dl], [dlopen],
|
cannam@86
|
1781 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
|
cannam@86
|
1782 [AC_CHECK_LIB([svld], [dlopen],
|
cannam@86
|
1783 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
|
cannam@86
|
1784 [AC_CHECK_LIB([dld], [dld_link],
|
cannam@86
|
1785 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
|
cannam@86
|
1786 ])
|
cannam@86
|
1787 ])
|
cannam@86
|
1788 ])
|
cannam@86
|
1789 ])
|
cannam@86
|
1790 ])
|
cannam@86
|
1791 ;;
|
cannam@86
|
1792 esac
|
cannam@86
|
1793
|
cannam@86
|
1794 if test "x$lt_cv_dlopen" != xno; then
|
cannam@86
|
1795 enable_dlopen=yes
|
cannam@86
|
1796 else
|
cannam@86
|
1797 enable_dlopen=no
|
cannam@86
|
1798 fi
|
cannam@86
|
1799
|
cannam@86
|
1800 case $lt_cv_dlopen in
|
cannam@86
|
1801 dlopen)
|
cannam@86
|
1802 save_CPPFLAGS="$CPPFLAGS"
|
cannam@86
|
1803 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
cannam@86
|
1804
|
cannam@86
|
1805 save_LDFLAGS="$LDFLAGS"
|
cannam@86
|
1806 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
cannam@86
|
1807
|
cannam@86
|
1808 save_LIBS="$LIBS"
|
cannam@86
|
1809 LIBS="$lt_cv_dlopen_libs $LIBS"
|
cannam@86
|
1810
|
cannam@86
|
1811 AC_CACHE_CHECK([whether a program can dlopen itself],
|
cannam@86
|
1812 lt_cv_dlopen_self, [dnl
|
cannam@86
|
1813 _LT_AC_TRY_DLOPEN_SELF(
|
cannam@86
|
1814 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
|
cannam@86
|
1815 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
|
cannam@86
|
1816 ])
|
cannam@86
|
1817
|
cannam@86
|
1818 if test "x$lt_cv_dlopen_self" = xyes; then
|
cannam@86
|
1819 LDFLAGS="$LDFLAGS $link_static_flag"
|
cannam@86
|
1820 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
|
cannam@86
|
1821 lt_cv_dlopen_self_static, [dnl
|
cannam@86
|
1822 _LT_AC_TRY_DLOPEN_SELF(
|
cannam@86
|
1823 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
|
cannam@86
|
1824 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
|
cannam@86
|
1825 ])
|
cannam@86
|
1826 fi
|
cannam@86
|
1827
|
cannam@86
|
1828 CPPFLAGS="$save_CPPFLAGS"
|
cannam@86
|
1829 LDFLAGS="$save_LDFLAGS"
|
cannam@86
|
1830 LIBS="$save_LIBS"
|
cannam@86
|
1831 ;;
|
cannam@86
|
1832 esac
|
cannam@86
|
1833
|
cannam@86
|
1834 case $lt_cv_dlopen_self in
|
cannam@86
|
1835 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
cannam@86
|
1836 *) enable_dlopen_self=unknown ;;
|
cannam@86
|
1837 esac
|
cannam@86
|
1838
|
cannam@86
|
1839 case $lt_cv_dlopen_self_static in
|
cannam@86
|
1840 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
cannam@86
|
1841 *) enable_dlopen_self_static=unknown ;;
|
cannam@86
|
1842 esac
|
cannam@86
|
1843 fi
|
cannam@86
|
1844 ])# AC_LIBTOOL_DLOPEN_SELF
|
cannam@86
|
1845
|
cannam@86
|
1846
|
cannam@86
|
1847 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
|
cannam@86
|
1848 # ---------------------------------
|
cannam@86
|
1849 # Check to see if options -c and -o are simultaneously supported by compiler
|
cannam@86
|
1850 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
|
cannam@86
|
1851 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
|
cannam@86
|
1852 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
|
cannam@86
|
1853 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
|
cannam@86
|
1854 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
|
cannam@86
|
1855 $rm -r conftest 2>/dev/null
|
cannam@86
|
1856 mkdir conftest
|
cannam@86
|
1857 cd conftest
|
cannam@86
|
1858 mkdir out
|
cannam@86
|
1859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@86
|
1860
|
cannam@86
|
1861 lt_compiler_flag="-o out/conftest2.$ac_objext"
|
cannam@86
|
1862 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@86
|
1863 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@86
|
1864 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@86
|
1865 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@86
|
1866 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@86
|
1867 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
cannam@86
|
1868 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@86
|
1869 -e 's:$: $lt_compiler_flag:'`
|
cannam@86
|
1870 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
cannam@86
|
1871 (eval "$lt_compile" 2>out/conftest.err)
|
cannam@86
|
1872 ac_status=$?
|
cannam@86
|
1873 cat out/conftest.err >&AS_MESSAGE_LOG_FD
|
cannam@86
|
1874 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
cannam@86
|
1875 if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
cannam@86
|
1876 then
|
cannam@86
|
1877 # The compiler can only warn and ignore the option if not recognized
|
cannam@86
|
1878 # So say no if there are warnings
|
cannam@86
|
1879 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
|
cannam@86
|
1880 $SED '/^$/d' out/conftest.err >out/conftest.er2
|
cannam@86
|
1881 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
cannam@86
|
1882 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
cannam@86
|
1883 fi
|
cannam@86
|
1884 fi
|
cannam@86
|
1885 chmod u+w .
|
cannam@86
|
1886 $rm conftest*
|
cannam@86
|
1887 # SGI C++ compiler will create directory out/ii_files/ for
|
cannam@86
|
1888 # template instantiation
|
cannam@86
|
1889 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
|
cannam@86
|
1890 $rm out/* && rmdir out
|
cannam@86
|
1891 cd ..
|
cannam@86
|
1892 rmdir conftest
|
cannam@86
|
1893 $rm conftest*
|
cannam@86
|
1894 ])
|
cannam@86
|
1895 ])# AC_LIBTOOL_PROG_CC_C_O
|
cannam@86
|
1896
|
cannam@86
|
1897
|
cannam@86
|
1898 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
|
cannam@86
|
1899 # -----------------------------------------
|
cannam@86
|
1900 # Check to see if we can do hard links to lock some files if needed
|
cannam@86
|
1901 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
|
cannam@86
|
1902 [AC_REQUIRE([_LT_AC_LOCK])dnl
|
cannam@86
|
1903
|
cannam@86
|
1904 hard_links="nottested"
|
cannam@86
|
1905 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
|
cannam@86
|
1906 # do not overwrite the value of need_locks provided by the user
|
cannam@86
|
1907 AC_MSG_CHECKING([if we can lock with hard links])
|
cannam@86
|
1908 hard_links=yes
|
cannam@86
|
1909 $rm conftest*
|
cannam@86
|
1910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
cannam@86
|
1911 touch conftest.a
|
cannam@86
|
1912 ln conftest.a conftest.b 2>&5 || hard_links=no
|
cannam@86
|
1913 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
cannam@86
|
1914 AC_MSG_RESULT([$hard_links])
|
cannam@86
|
1915 if test "$hard_links" = no; then
|
cannam@86
|
1916 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
|
cannam@86
|
1917 need_locks=warn
|
cannam@86
|
1918 fi
|
cannam@86
|
1919 else
|
cannam@86
|
1920 need_locks=no
|
cannam@86
|
1921 fi
|
cannam@86
|
1922 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
|
cannam@86
|
1923
|
cannam@86
|
1924
|
cannam@86
|
1925 # AC_LIBTOOL_OBJDIR
|
cannam@86
|
1926 # -----------------
|
cannam@86
|
1927 AC_DEFUN([AC_LIBTOOL_OBJDIR],
|
cannam@86
|
1928 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
|
cannam@86
|
1929 [rm -f .libs 2>/dev/null
|
cannam@86
|
1930 mkdir .libs 2>/dev/null
|
cannam@86
|
1931 if test -d .libs; then
|
cannam@86
|
1932 lt_cv_objdir=.libs
|
cannam@86
|
1933 else
|
cannam@86
|
1934 # MS-DOS does not allow filenames that begin with a dot.
|
cannam@86
|
1935 lt_cv_objdir=_libs
|
cannam@86
|
1936 fi
|
cannam@86
|
1937 rmdir .libs 2>/dev/null])
|
cannam@86
|
1938 objdir=$lt_cv_objdir
|
cannam@86
|
1939 ])# AC_LIBTOOL_OBJDIR
|
cannam@86
|
1940
|
cannam@86
|
1941
|
cannam@86
|
1942 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
|
cannam@86
|
1943 # ----------------------------------------------
|
cannam@86
|
1944 # Check hardcoding attributes.
|
cannam@86
|
1945 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
|
cannam@86
|
1946 [AC_MSG_CHECKING([how to hardcode library paths into programs])
|
cannam@86
|
1947 _LT_AC_TAGVAR(hardcode_action, $1)=
|
cannam@86
|
1948 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
|
cannam@86
|
1949 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
|
cannam@86
|
1950 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
|
cannam@86
|
1951
|
cannam@86
|
1952 # We can hardcode non-existant directories.
|
cannam@86
|
1953 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
|
cannam@86
|
1954 # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
cannam@86
|
1955 # have to relink, otherwise we might link with an installed library
|
cannam@86
|
1956 # when we should be linking with a yet-to-be-installed one
|
cannam@86
|
1957 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
|
cannam@86
|
1958 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
|
cannam@86
|
1959 # Linking always hardcodes the temporary library directory.
|
cannam@86
|
1960 _LT_AC_TAGVAR(hardcode_action, $1)=relink
|
cannam@86
|
1961 else
|
cannam@86
|
1962 # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
cannam@86
|
1963 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
|
cannam@86
|
1964 fi
|
cannam@86
|
1965 else
|
cannam@86
|
1966 # We cannot hardcode anything, or else we can only hardcode existing
|
cannam@86
|
1967 # directories.
|
cannam@86
|
1968 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
|
cannam@86
|
1969 fi
|
cannam@86
|
1970 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
|
cannam@86
|
1971
|
cannam@86
|
1972 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
|
cannam@86
|
1973 # Fast installation is not supported
|
cannam@86
|
1974 enable_fast_install=no
|
cannam@86
|
1975 elif test "$shlibpath_overrides_runpath" = yes ||
|
cannam@86
|
1976 test "$enable_shared" = no; then
|
cannam@86
|
1977 # Fast installation is not necessary
|
cannam@86
|
1978 enable_fast_install=needless
|
cannam@86
|
1979 fi
|
cannam@86
|
1980 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
|
cannam@86
|
1981
|
cannam@86
|
1982
|
cannam@86
|
1983 # AC_LIBTOOL_SYS_LIB_STRIP
|
cannam@86
|
1984 # ------------------------
|
cannam@86
|
1985 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
|
cannam@86
|
1986 [striplib=
|
cannam@86
|
1987 old_striplib=
|
cannam@86
|
1988 AC_MSG_CHECKING([whether stripping libraries is possible])
|
cannam@86
|
1989 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
|
cannam@86
|
1990 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
cannam@86
|
1991 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
cannam@86
|
1992 AC_MSG_RESULT([yes])
|
cannam@86
|
1993 else
|
cannam@86
|
1994 # FIXME - insert some real tests, host_os isn't really good enough
|
cannam@86
|
1995 case $host_os in
|
cannam@86
|
1996 darwin*)
|
cannam@86
|
1997 if test -n "$STRIP" ; then
|
cannam@86
|
1998 striplib="$STRIP -x"
|
cannam@86
|
1999 AC_MSG_RESULT([yes])
|
cannam@86
|
2000 else
|
cannam@86
|
2001 AC_MSG_RESULT([no])
|
cannam@86
|
2002 fi
|
cannam@86
|
2003 ;;
|
cannam@86
|
2004 *)
|
cannam@86
|
2005 AC_MSG_RESULT([no])
|
cannam@86
|
2006 ;;
|
cannam@86
|
2007 esac
|
cannam@86
|
2008 fi
|
cannam@86
|
2009 ])# AC_LIBTOOL_SYS_LIB_STRIP
|
cannam@86
|
2010
|
cannam@86
|
2011
|
cannam@86
|
2012 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
|
cannam@86
|
2013 # -----------------------------
|
cannam@86
|
2014 # PORTME Fill in your ld.so characteristics
|
cannam@86
|
2015 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
|
cannam@86
|
2016 [AC_MSG_CHECKING([dynamic linker characteristics])
|
cannam@86
|
2017 library_names_spec=
|
cannam@86
|
2018 libname_spec='lib$name'
|
cannam@86
|
2019 soname_spec=
|
cannam@86
|
2020 shrext_cmds=".so"
|
cannam@86
|
2021 postinstall_cmds=
|
cannam@86
|
2022 postuninstall_cmds=
|
cannam@86
|
2023 finish_cmds=
|
cannam@86
|
2024 finish_eval=
|
cannam@86
|
2025 shlibpath_var=
|
cannam@86
|
2026 shlibpath_overrides_runpath=unknown
|
cannam@86
|
2027 version_type=none
|
cannam@86
|
2028 dynamic_linker="$host_os ld.so"
|
cannam@86
|
2029 sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
cannam@86
|
2030 if test "$GCC" = yes; then
|
cannam@86
|
2031 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
cannam@86
|
2032 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
|
cannam@86
|
2033 # if the path contains ";" then we assume it to be the separator
|
cannam@86
|
2034 # otherwise default to the standard path separator (i.e. ":") - it is
|
cannam@86
|
2035 # assumed that no part of a normal pathname contains ";" but that should
|
cannam@86
|
2036 # okay in the real world where ";" in dirpaths is itself problematic.
|
cannam@86
|
2037 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
cannam@86
|
2038 else
|
cannam@86
|
2039 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
cannam@86
|
2040 fi
|
cannam@86
|
2041 else
|
cannam@86
|
2042 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
cannam@86
|
2043 fi
|
cannam@86
|
2044 need_lib_prefix=unknown
|
cannam@86
|
2045 hardcode_into_libs=no
|
cannam@86
|
2046
|
cannam@86
|
2047 # when you set need_version to no, make sure it does not cause -set_version
|
cannam@86
|
2048 # flags to be left without arguments
|
cannam@86
|
2049 need_version=unknown
|
cannam@86
|
2050
|
cannam@86
|
2051 case $host_os in
|
cannam@86
|
2052 aix3*)
|
cannam@86
|
2053 version_type=linux
|
cannam@86
|
2054 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
|
cannam@86
|
2055 shlibpath_var=LIBPATH
|
cannam@86
|
2056
|
cannam@86
|
2057 # AIX 3 has no versioning support, so we append a major version to the name.
|
cannam@86
|
2058 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
2059 ;;
|
cannam@86
|
2060
|
cannam@86
|
2061 aix4* | aix5*)
|
cannam@86
|
2062 version_type=linux
|
cannam@86
|
2063 need_lib_prefix=no
|
cannam@86
|
2064 need_version=no
|
cannam@86
|
2065 hardcode_into_libs=yes
|
cannam@86
|
2066 if test "$host_cpu" = ia64; then
|
cannam@86
|
2067 # AIX 5 supports IA64
|
cannam@86
|
2068 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
|
cannam@86
|
2069 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
2070 else
|
cannam@86
|
2071 # With GCC up to 2.95.x, collect2 would create an import file
|
cannam@86
|
2072 # for dependence libraries. The import file would start with
|
cannam@86
|
2073 # the line `#! .'. This would cause the generated library to
|
cannam@86
|
2074 # depend on `.', always an invalid library. This was fixed in
|
cannam@86
|
2075 # development snapshots of GCC prior to 3.0.
|
cannam@86
|
2076 case $host_os in
|
cannam@86
|
2077 aix4 | aix4.[[01]] | aix4.[[01]].*)
|
cannam@86
|
2078 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
cannam@86
|
2079 echo ' yes '
|
cannam@86
|
2080 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
|
cannam@86
|
2081 :
|
cannam@86
|
2082 else
|
cannam@86
|
2083 can_build_shared=no
|
cannam@86
|
2084 fi
|
cannam@86
|
2085 ;;
|
cannam@86
|
2086 esac
|
cannam@86
|
2087 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
|
cannam@86
|
2088 # soname into executable. Probably we can add versioning support to
|
cannam@86
|
2089 # collect2, so additional links can be useful in future.
|
cannam@86
|
2090 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
2091 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
cannam@86
|
2092 # instead of lib<name>.a to let people know that these are not
|
cannam@86
|
2093 # typical AIX shared libraries.
|
cannam@86
|
2094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
2095 else
|
cannam@86
|
2096 # We preserve .a as extension for shared libraries through AIX4.2
|
cannam@86
|
2097 # and later when we are not doing run time linking.
|
cannam@86
|
2098 library_names_spec='${libname}${release}.a $libname.a'
|
cannam@86
|
2099 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
2100 fi
|
cannam@86
|
2101 shlibpath_var=LIBPATH
|
cannam@86
|
2102 fi
|
cannam@86
|
2103 ;;
|
cannam@86
|
2104
|
cannam@86
|
2105 amigaos*)
|
cannam@86
|
2106 library_names_spec='$libname.ixlibrary $libname.a'
|
cannam@86
|
2107 # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
cannam@86
|
2108 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
|
cannam@86
|
2109 ;;
|
cannam@86
|
2110
|
cannam@86
|
2111 beos*)
|
cannam@86
|
2112 library_names_spec='${libname}${shared_ext}'
|
cannam@86
|
2113 dynamic_linker="$host_os ld.so"
|
cannam@86
|
2114 shlibpath_var=LIBRARY_PATH
|
cannam@86
|
2115 ;;
|
cannam@86
|
2116
|
cannam@86
|
2117 bsdi[[45]]*)
|
cannam@86
|
2118 version_type=linux
|
cannam@86
|
2119 need_version=no
|
cannam@86
|
2120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
2121 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
2122 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
cannam@86
|
2123 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
2124 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
cannam@86
|
2125 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
cannam@86
|
2126 # the default ld.so.conf also contains /usr/contrib/lib and
|
cannam@86
|
2127 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
cannam@86
|
2128 # libtool to hard-code these into programs
|
cannam@86
|
2129 ;;
|
cannam@86
|
2130
|
cannam@86
|
2131 cygwin* | mingw* | pw32*)
|
cannam@86
|
2132 version_type=windows
|
cannam@86
|
2133 shrext_cmds=".dll"
|
cannam@86
|
2134 need_version=no
|
cannam@86
|
2135 need_lib_prefix=no
|
cannam@86
|
2136
|
cannam@86
|
2137 case $GCC,$host_os in
|
cannam@86
|
2138 yes,cygwin* | yes,mingw* | yes,pw32*)
|
cannam@86
|
2139 library_names_spec='$libname.dll.a'
|
cannam@86
|
2140 # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
cannam@86
|
2141 postinstall_cmds='base_file=`basename \${file}`~
|
cannam@86
|
2142 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
|
cannam@86
|
2143 dldir=$destdir/`dirname \$dlpath`~
|
cannam@86
|
2144 test -d \$dldir || mkdir -p \$dldir~
|
cannam@86
|
2145 $install_prog $dir/$dlname \$dldir/$dlname'
|
cannam@86
|
2146 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
cannam@86
|
2147 dlpath=$dir/\$dldll~
|
cannam@86
|
2148 $rm \$dlpath'
|
cannam@86
|
2149 shlibpath_overrides_runpath=yes
|
cannam@86
|
2150
|
cannam@86
|
2151 case $host_os in
|
cannam@86
|
2152 cygwin*)
|
cannam@86
|
2153 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
cannam@86
|
2154 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
cannam@86
|
2155 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
|
cannam@86
|
2156 ;;
|
cannam@86
|
2157 mingw*)
|
cannam@86
|
2158 # MinGW DLLs use traditional 'lib' prefix
|
cannam@86
|
2159 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
cannam@86
|
2160 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
|
cannam@86
|
2161 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
|
cannam@86
|
2162 # It is most probably a Windows format PATH printed by
|
cannam@86
|
2163 # mingw gcc, but we are running on Cygwin. Gcc prints its search
|
cannam@86
|
2164 # path with ; separators, and with drive letters. We can handle the
|
cannam@86
|
2165 # drive letters (cygwin fileutils understands them), so leave them,
|
cannam@86
|
2166 # especially as we might pass files found there to a mingw objdump,
|
cannam@86
|
2167 # which wouldn't understand a cygwinified path. Ahh.
|
cannam@86
|
2168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
cannam@86
|
2169 else
|
cannam@86
|
2170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
cannam@86
|
2171 fi
|
cannam@86
|
2172 ;;
|
cannam@86
|
2173 pw32*)
|
cannam@86
|
2174 # pw32 DLLs use 'pw' prefix rather than 'lib'
|
cannam@86
|
2175 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
cannam@86
|
2176 ;;
|
cannam@86
|
2177 esac
|
cannam@86
|
2178 ;;
|
cannam@86
|
2179
|
cannam@86
|
2180 *)
|
cannam@86
|
2181 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
cannam@86
|
2182 ;;
|
cannam@86
|
2183 esac
|
cannam@86
|
2184 dynamic_linker='Win32 ld.exe'
|
cannam@86
|
2185 # FIXME: first we should search . and the directory the executable is in
|
cannam@86
|
2186 shlibpath_var=PATH
|
cannam@86
|
2187 ;;
|
cannam@86
|
2188
|
cannam@86
|
2189 darwin* | rhapsody*)
|
cannam@86
|
2190 dynamic_linker="$host_os dyld"
|
cannam@86
|
2191 version_type=darwin
|
cannam@86
|
2192 need_lib_prefix=no
|
cannam@86
|
2193 need_version=no
|
cannam@86
|
2194 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
|
cannam@86
|
2195 soname_spec='${libname}${release}${major}$shared_ext'
|
cannam@86
|
2196 shlibpath_overrides_runpath=yes
|
cannam@86
|
2197 shlibpath_var=DYLD_LIBRARY_PATH
|
cannam@86
|
2198 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
|
cannam@86
|
2199 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
|
cannam@86
|
2200 if test "$GCC" = yes; then
|
cannam@86
|
2201 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
|
cannam@86
|
2202 else
|
cannam@86
|
2203 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
|
cannam@86
|
2204 fi
|
cannam@86
|
2205 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
cannam@86
|
2206 ;;
|
cannam@86
|
2207
|
cannam@86
|
2208 dgux*)
|
cannam@86
|
2209 version_type=linux
|
cannam@86
|
2210 need_lib_prefix=no
|
cannam@86
|
2211 need_version=no
|
cannam@86
|
2212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
|
cannam@86
|
2213 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
2214 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
2215 ;;
|
cannam@86
|
2216
|
cannam@86
|
2217 freebsd1*)
|
cannam@86
|
2218 dynamic_linker=no
|
cannam@86
|
2219 ;;
|
cannam@86
|
2220
|
cannam@86
|
2221 kfreebsd*-gnu)
|
cannam@86
|
2222 version_type=linux
|
cannam@86
|
2223 need_lib_prefix=no
|
cannam@86
|
2224 need_version=no
|
cannam@86
|
2225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
cannam@86
|
2226 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
2227 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
2228 shlibpath_overrides_runpath=no
|
cannam@86
|
2229 hardcode_into_libs=yes
|
cannam@86
|
2230 dynamic_linker='GNU ld.so'
|
cannam@86
|
2231 ;;
|
cannam@86
|
2232
|
cannam@86
|
2233 freebsd* | dragonfly*)
|
cannam@86
|
2234 # DragonFly does not have aout. When/if they implement a new
|
cannam@86
|
2235 # versioning mechanism, adjust this.
|
cannam@86
|
2236 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
|
cannam@86
|
2237 version_type=freebsd-$objformat
|
cannam@86
|
2238 case $version_type in
|
cannam@86
|
2239 freebsd-elf*)
|
cannam@86
|
2240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
cannam@86
|
2241 need_version=no
|
cannam@86
|
2242 need_lib_prefix=no
|
cannam@86
|
2243 ;;
|
cannam@86
|
2244 freebsd-*)
|
cannam@86
|
2245 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
|
cannam@86
|
2246 need_version=yes
|
cannam@86
|
2247 ;;
|
cannam@86
|
2248 esac
|
cannam@86
|
2249 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
2250 case $host_os in
|
cannam@86
|
2251 freebsd2*)
|
cannam@86
|
2252 shlibpath_overrides_runpath=yes
|
cannam@86
|
2253 ;;
|
cannam@86
|
2254 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
|
cannam@86
|
2255 shlibpath_overrides_runpath=yes
|
cannam@86
|
2256 hardcode_into_libs=yes
|
cannam@86
|
2257 ;;
|
cannam@86
|
2258 *) # from 3.2 on
|
cannam@86
|
2259 shlibpath_overrides_runpath=no
|
cannam@86
|
2260 hardcode_into_libs=yes
|
cannam@86
|
2261 ;;
|
cannam@86
|
2262 esac
|
cannam@86
|
2263 ;;
|
cannam@86
|
2264
|
cannam@86
|
2265 gnu*)
|
cannam@86
|
2266 version_type=linux
|
cannam@86
|
2267 need_lib_prefix=no
|
cannam@86
|
2268 need_version=no
|
cannam@86
|
2269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
|
cannam@86
|
2270 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
2271 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
2272 hardcode_into_libs=yes
|
cannam@86
|
2273 ;;
|
cannam@86
|
2274
|
cannam@86
|
2275 hpux9* | hpux10* | hpux11*)
|
cannam@86
|
2276 # Give a soname corresponding to the major version so that dld.sl refuses to
|
cannam@86
|
2277 # link against other versions.
|
cannam@86
|
2278 version_type=sunos
|
cannam@86
|
2279 need_lib_prefix=no
|
cannam@86
|
2280 need_version=no
|
cannam@86
|
2281 case "$host_cpu" in
|
cannam@86
|
2282 ia64*)
|
cannam@86
|
2283 shrext_cmds='.so'
|
cannam@86
|
2284 hardcode_into_libs=yes
|
cannam@86
|
2285 dynamic_linker="$host_os dld.so"
|
cannam@86
|
2286 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
2287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
cannam@86
|
2288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
2289 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
2290 if test "X$HPUX_IA64_MODE" = X32; then
|
cannam@86
|
2291 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
cannam@86
|
2292 else
|
cannam@86
|
2293 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
cannam@86
|
2294 fi
|
cannam@86
|
2295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
cannam@86
|
2296 ;;
|
cannam@86
|
2297 hppa*64*)
|
cannam@86
|
2298 shrext_cmds='.sl'
|
cannam@86
|
2299 hardcode_into_libs=yes
|
cannam@86
|
2300 dynamic_linker="$host_os dld.sl"
|
cannam@86
|
2301 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
cannam@86
|
2302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
cannam@86
|
2303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
2304 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
2305 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
cannam@86
|
2306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
cannam@86
|
2307 ;;
|
cannam@86
|
2308 *)
|
cannam@86
|
2309 shrext_cmds='.sl'
|
cannam@86
|
2310 dynamic_linker="$host_os dld.sl"
|
cannam@86
|
2311 shlibpath_var=SHLIB_PATH
|
cannam@86
|
2312 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
cannam@86
|
2313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
2314 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
2315 ;;
|
cannam@86
|
2316 esac
|
cannam@86
|
2317 # HP-UX runs *really* slowly unless shared libraries are mode 555.
|
cannam@86
|
2318 postinstall_cmds='chmod 555 $lib'
|
cannam@86
|
2319 ;;
|
cannam@86
|
2320
|
cannam@86
|
2321 irix5* | irix6* | nonstopux*)
|
cannam@86
|
2322 case $host_os in
|
cannam@86
|
2323 nonstopux*) version_type=nonstopux ;;
|
cannam@86
|
2324 *)
|
cannam@86
|
2325 if test "$lt_cv_prog_gnu_ld" = yes; then
|
cannam@86
|
2326 version_type=linux
|
cannam@86
|
2327 else
|
cannam@86
|
2328 version_type=irix
|
cannam@86
|
2329 fi ;;
|
cannam@86
|
2330 esac
|
cannam@86
|
2331 need_lib_prefix=no
|
cannam@86
|
2332 need_version=no
|
cannam@86
|
2333 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
2334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
|
cannam@86
|
2335 case $host_os in
|
cannam@86
|
2336 irix5* | nonstopux*)
|
cannam@86
|
2337 libsuff= shlibsuff=
|
cannam@86
|
2338 ;;
|
cannam@86
|
2339 *)
|
cannam@86
|
2340 case $LD in # libtool.m4 will add one of these switches to LD
|
cannam@86
|
2341 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
cannam@86
|
2342 libsuff= shlibsuff= libmagic=32-bit;;
|
cannam@86
|
2343 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
cannam@86
|
2344 libsuff=32 shlibsuff=N32 libmagic=N32;;
|
cannam@86
|
2345 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
cannam@86
|
2346 libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
cannam@86
|
2347 *) libsuff= shlibsuff= libmagic=never-match;;
|
cannam@86
|
2348 esac
|
cannam@86
|
2349 ;;
|
cannam@86
|
2350 esac
|
cannam@86
|
2351 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
cannam@86
|
2352 shlibpath_overrides_runpath=no
|
cannam@86
|
2353 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
|
cannam@86
|
2354 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
|
cannam@86
|
2355 hardcode_into_libs=yes
|
cannam@86
|
2356 ;;
|
cannam@86
|
2357
|
cannam@86
|
2358 # No shared lib support for Linux oldld, aout, or coff.
|
cannam@86
|
2359 linux*oldld* | linux*aout* | linux*coff*)
|
cannam@86
|
2360 dynamic_linker=no
|
cannam@86
|
2361 ;;
|
cannam@86
|
2362
|
cannam@86
|
2363 # This must be Linux ELF.
|
cannam@86
|
2364 linux*)
|
cannam@86
|
2365 version_type=linux
|
cannam@86
|
2366 need_lib_prefix=no
|
cannam@86
|
2367 need_version=no
|
cannam@86
|
2368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
2369 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
2370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
cannam@86
|
2371 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
2372 shlibpath_overrides_runpath=no
|
cannam@86
|
2373 # This implies no fast_install, which is unacceptable.
|
cannam@86
|
2374 # Some rework will be needed to allow for fast_install
|
cannam@86
|
2375 # before this can be enabled.
|
cannam@86
|
2376 hardcode_into_libs=yes
|
cannam@86
|
2377
|
cannam@86
|
2378 # find out which ABI we are using
|
cannam@86
|
2379 libsuff=
|
cannam@86
|
2380 case "$host_cpu" in
|
cannam@86
|
2381 x86_64*|s390x*|powerpc64*)
|
cannam@86
|
2382 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
|
cannam@86
|
2383 if AC_TRY_EVAL(ac_compile); then
|
cannam@86
|
2384 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@86
|
2385 *64-bit*)
|
cannam@86
|
2386 libsuff=64
|
cannam@86
|
2387 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
|
cannam@86
|
2388 ;;
|
cannam@86
|
2389 esac
|
cannam@86
|
2390 fi
|
cannam@86
|
2391 rm -rf conftest*
|
cannam@86
|
2392 ;;
|
cannam@86
|
2393 esac
|
cannam@86
|
2394
|
cannam@86
|
2395 # Append ld.so.conf contents to the search path
|
cannam@86
|
2396 if test -f /etc/ld.so.conf; then
|
cannam@86
|
2397 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
cannam@86
|
2398 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
|
cannam@86
|
2399 fi
|
cannam@86
|
2400
|
cannam@86
|
2401 # We used to test for /lib/ld.so.1 and disable shared libraries on
|
cannam@86
|
2402 # powerpc, because MkLinux only supported shared libraries with the
|
cannam@86
|
2403 # GNU dynamic linker. Since this was broken with cross compilers,
|
cannam@86
|
2404 # most powerpc-linux boxes support dynamic linking these days and
|
cannam@86
|
2405 # people can always --disable-shared, the test was removed, and we
|
cannam@86
|
2406 # assume the GNU/Linux dynamic linker is in use.
|
cannam@86
|
2407 dynamic_linker='GNU/Linux ld.so'
|
cannam@86
|
2408 ;;
|
cannam@86
|
2409
|
cannam@86
|
2410 knetbsd*-gnu)
|
cannam@86
|
2411 version_type=linux
|
cannam@86
|
2412 need_lib_prefix=no
|
cannam@86
|
2413 need_version=no
|
cannam@86
|
2414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
cannam@86
|
2415 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
2416 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
2417 shlibpath_overrides_runpath=no
|
cannam@86
|
2418 hardcode_into_libs=yes
|
cannam@86
|
2419 dynamic_linker='GNU ld.so'
|
cannam@86
|
2420 ;;
|
cannam@86
|
2421
|
cannam@86
|
2422 netbsd*)
|
cannam@86
|
2423 version_type=sunos
|
cannam@86
|
2424 need_lib_prefix=no
|
cannam@86
|
2425 need_version=no
|
cannam@86
|
2426 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
cannam@86
|
2427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
cannam@86
|
2428 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
cannam@86
|
2429 dynamic_linker='NetBSD (a.out) ld.so'
|
cannam@86
|
2430 else
|
cannam@86
|
2431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
cannam@86
|
2432 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
2433 dynamic_linker='NetBSD ld.elf_so'
|
cannam@86
|
2434 fi
|
cannam@86
|
2435 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
2436 shlibpath_overrides_runpath=yes
|
cannam@86
|
2437 hardcode_into_libs=yes
|
cannam@86
|
2438 ;;
|
cannam@86
|
2439
|
cannam@86
|
2440 newsos6)
|
cannam@86
|
2441 version_type=linux
|
cannam@86
|
2442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
2443 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
2444 shlibpath_overrides_runpath=yes
|
cannam@86
|
2445 ;;
|
cannam@86
|
2446
|
cannam@86
|
2447 nto-qnx*)
|
cannam@86
|
2448 version_type=linux
|
cannam@86
|
2449 need_lib_prefix=no
|
cannam@86
|
2450 need_version=no
|
cannam@86
|
2451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
2452 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
2453 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
2454 shlibpath_overrides_runpath=yes
|
cannam@86
|
2455 ;;
|
cannam@86
|
2456
|
cannam@86
|
2457 openbsd*)
|
cannam@86
|
2458 version_type=sunos
|
cannam@86
|
2459 need_lib_prefix=no
|
cannam@86
|
2460 need_version=no
|
cannam@86
|
2461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
cannam@86
|
2462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
cannam@86
|
2463 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
2464 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
cannam@86
|
2465 case $host_os in
|
cannam@86
|
2466 openbsd2.[[89]] | openbsd2.[[89]].*)
|
cannam@86
|
2467 shlibpath_overrides_runpath=no
|
cannam@86
|
2468 ;;
|
cannam@86
|
2469 *)
|
cannam@86
|
2470 shlibpath_overrides_runpath=yes
|
cannam@86
|
2471 ;;
|
cannam@86
|
2472 esac
|
cannam@86
|
2473 else
|
cannam@86
|
2474 shlibpath_overrides_runpath=yes
|
cannam@86
|
2475 fi
|
cannam@86
|
2476 ;;
|
cannam@86
|
2477
|
cannam@86
|
2478 os2*)
|
cannam@86
|
2479 libname_spec='$name'
|
cannam@86
|
2480 shrext_cmds=".dll"
|
cannam@86
|
2481 need_lib_prefix=no
|
cannam@86
|
2482 library_names_spec='$libname${shared_ext} $libname.a'
|
cannam@86
|
2483 dynamic_linker='OS/2 ld.exe'
|
cannam@86
|
2484 shlibpath_var=LIBPATH
|
cannam@86
|
2485 ;;
|
cannam@86
|
2486
|
cannam@86
|
2487 osf3* | osf4* | osf5*)
|
cannam@86
|
2488 version_type=osf
|
cannam@86
|
2489 need_lib_prefix=no
|
cannam@86
|
2490 need_version=no
|
cannam@86
|
2491 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
2492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
2493 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
2494 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
cannam@86
|
2495 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
cannam@86
|
2496 ;;
|
cannam@86
|
2497
|
cannam@86
|
2498 sco3.2v5*)
|
cannam@86
|
2499 version_type=osf
|
cannam@86
|
2500 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
2501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
2502 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
2503 ;;
|
cannam@86
|
2504
|
cannam@86
|
2505 solaris*)
|
cannam@86
|
2506 version_type=linux
|
cannam@86
|
2507 need_lib_prefix=no
|
cannam@86
|
2508 need_version=no
|
cannam@86
|
2509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
2510 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
2511 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
2512 shlibpath_overrides_runpath=yes
|
cannam@86
|
2513 hardcode_into_libs=yes
|
cannam@86
|
2514 # ldd complains unless libraries are executable
|
cannam@86
|
2515 postinstall_cmds='chmod +x $lib'
|
cannam@86
|
2516 ;;
|
cannam@86
|
2517
|
cannam@86
|
2518 sunos4*)
|
cannam@86
|
2519 version_type=sunos
|
cannam@86
|
2520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
cannam@86
|
2521 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
cannam@86
|
2522 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
2523 shlibpath_overrides_runpath=yes
|
cannam@86
|
2524 if test "$with_gnu_ld" = yes; then
|
cannam@86
|
2525 need_lib_prefix=no
|
cannam@86
|
2526 fi
|
cannam@86
|
2527 need_version=yes
|
cannam@86
|
2528 ;;
|
cannam@86
|
2529
|
cannam@86
|
2530 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
cannam@86
|
2531 version_type=linux
|
cannam@86
|
2532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
2533 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
2534 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
2535 case $host_vendor in
|
cannam@86
|
2536 sni)
|
cannam@86
|
2537 shlibpath_overrides_runpath=no
|
cannam@86
|
2538 need_lib_prefix=no
|
cannam@86
|
2539 export_dynamic_flag_spec='${wl}-Blargedynsym'
|
cannam@86
|
2540 runpath_var=LD_RUN_PATH
|
cannam@86
|
2541 ;;
|
cannam@86
|
2542 siemens)
|
cannam@86
|
2543 need_lib_prefix=no
|
cannam@86
|
2544 ;;
|
cannam@86
|
2545 motorola)
|
cannam@86
|
2546 need_lib_prefix=no
|
cannam@86
|
2547 need_version=no
|
cannam@86
|
2548 shlibpath_overrides_runpath=no
|
cannam@86
|
2549 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
cannam@86
|
2550 ;;
|
cannam@86
|
2551 esac
|
cannam@86
|
2552 ;;
|
cannam@86
|
2553
|
cannam@86
|
2554 sysv4*MP*)
|
cannam@86
|
2555 if test -d /usr/nec ;then
|
cannam@86
|
2556 version_type=linux
|
cannam@86
|
2557 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
|
cannam@86
|
2558 soname_spec='$libname${shared_ext}.$major'
|
cannam@86
|
2559 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
2560 fi
|
cannam@86
|
2561 ;;
|
cannam@86
|
2562
|
cannam@86
|
2563 uts4*)
|
cannam@86
|
2564 version_type=linux
|
cannam@86
|
2565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
cannam@86
|
2566 soname_spec='${libname}${release}${shared_ext}$major'
|
cannam@86
|
2567 shlibpath_var=LD_LIBRARY_PATH
|
cannam@86
|
2568 ;;
|
cannam@86
|
2569
|
cannam@86
|
2570 *)
|
cannam@86
|
2571 dynamic_linker=no
|
cannam@86
|
2572 ;;
|
cannam@86
|
2573 esac
|
cannam@86
|
2574 AC_MSG_RESULT([$dynamic_linker])
|
cannam@86
|
2575 test "$dynamic_linker" = no && can_build_shared=no
|
cannam@86
|
2576 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
|
cannam@86
|
2577
|
cannam@86
|
2578
|
cannam@86
|
2579 # _LT_AC_TAGCONFIG
|
cannam@86
|
2580 # ----------------
|
cannam@86
|
2581 AC_DEFUN([_LT_AC_TAGCONFIG],
|
cannam@86
|
2582 [AC_ARG_WITH([tags],
|
cannam@86
|
2583 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
|
cannam@86
|
2584 [include additional configurations @<:@automatic@:>@])],
|
cannam@86
|
2585 [tagnames="$withval"])
|
cannam@86
|
2586
|
cannam@86
|
2587 if test -f "$ltmain" && test -n "$tagnames"; then
|
cannam@86
|
2588 if test ! -f "${ofile}"; then
|
cannam@86
|
2589 AC_MSG_WARN([output file `$ofile' does not exist])
|
cannam@86
|
2590 fi
|
cannam@86
|
2591
|
cannam@86
|
2592 if test -z "$LTCC"; then
|
cannam@86
|
2593 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
|
cannam@86
|
2594 if test -z "$LTCC"; then
|
cannam@86
|
2595 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
|
cannam@86
|
2596 else
|
cannam@86
|
2597 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
|
cannam@86
|
2598 fi
|
cannam@86
|
2599 fi
|
cannam@86
|
2600
|
cannam@86
|
2601 # Extract list of available tagged configurations in $ofile.
|
cannam@86
|
2602 # Note that this assumes the entire list is on one line.
|
cannam@86
|
2603 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
|
cannam@86
|
2604
|
cannam@86
|
2605 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
cannam@86
|
2606 for tagname in $tagnames; do
|
cannam@86
|
2607 IFS="$lt_save_ifs"
|
cannam@86
|
2608 # Check whether tagname contains only valid characters
|
cannam@86
|
2609 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
|
cannam@86
|
2610 "") ;;
|
cannam@86
|
2611 *) AC_MSG_ERROR([invalid tag name: $tagname])
|
cannam@86
|
2612 ;;
|
cannam@86
|
2613 esac
|
cannam@86
|
2614
|
cannam@86
|
2615 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
|
cannam@86
|
2616 then
|
cannam@86
|
2617 AC_MSG_ERROR([tag name \"$tagname\" already exists])
|
cannam@86
|
2618 fi
|
cannam@86
|
2619
|
cannam@86
|
2620 # Update the list of available tags.
|
cannam@86
|
2621 if test -n "$tagname"; then
|
cannam@86
|
2622 echo appending configuration tag \"$tagname\" to $ofile
|
cannam@86
|
2623
|
cannam@86
|
2624 case $tagname in
|
cannam@86
|
2625 CXX)
|
cannam@86
|
2626 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
cannam@86
|
2627 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
cannam@86
|
2628 (test "X$CXX" != "Xg++"))) ; then
|
cannam@86
|
2629 AC_LIBTOOL_LANG_CXX_CONFIG
|
cannam@86
|
2630 else
|
cannam@86
|
2631 tagname=""
|
cannam@86
|
2632 fi
|
cannam@86
|
2633 ;;
|
cannam@86
|
2634
|
cannam@86
|
2635 F77)
|
cannam@86
|
2636 if test -n "$F77" && test "X$F77" != "Xno"; then
|
cannam@86
|
2637 AC_LIBTOOL_LANG_F77_CONFIG
|
cannam@86
|
2638 else
|
cannam@86
|
2639 tagname=""
|
cannam@86
|
2640 fi
|
cannam@86
|
2641 ;;
|
cannam@86
|
2642
|
cannam@86
|
2643 GCJ)
|
cannam@86
|
2644 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
|
cannam@86
|
2645 AC_LIBTOOL_LANG_GCJ_CONFIG
|
cannam@86
|
2646 else
|
cannam@86
|
2647 tagname=""
|
cannam@86
|
2648 fi
|
cannam@86
|
2649 ;;
|
cannam@86
|
2650
|
cannam@86
|
2651 RC)
|
cannam@86
|
2652 AC_LIBTOOL_LANG_RC_CONFIG
|
cannam@86
|
2653 ;;
|
cannam@86
|
2654
|
cannam@86
|
2655 *)
|
cannam@86
|
2656 AC_MSG_ERROR([Unsupported tag name: $tagname])
|
cannam@86
|
2657 ;;
|
cannam@86
|
2658 esac
|
cannam@86
|
2659
|
cannam@86
|
2660 # Append the new tag name to the list of available tags.
|
cannam@86
|
2661 if test -n "$tagname" ; then
|
cannam@86
|
2662 available_tags="$available_tags $tagname"
|
cannam@86
|
2663 fi
|
cannam@86
|
2664 fi
|
cannam@86
|
2665 done
|
cannam@86
|
2666 IFS="$lt_save_ifs"
|
cannam@86
|
2667
|
cannam@86
|
2668 # Now substitute the updated list of available tags.
|
cannam@86
|
2669 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
|
cannam@86
|
2670 mv "${ofile}T" "$ofile"
|
cannam@86
|
2671 chmod +x "$ofile"
|
cannam@86
|
2672 else
|
cannam@86
|
2673 rm -f "${ofile}T"
|
cannam@86
|
2674 AC_MSG_ERROR([unable to update list of available tagged configurations.])
|
cannam@86
|
2675 fi
|
cannam@86
|
2676 fi
|
cannam@86
|
2677 ])# _LT_AC_TAGCONFIG
|
cannam@86
|
2678
|
cannam@86
|
2679
|
cannam@86
|
2680 # AC_LIBTOOL_DLOPEN
|
cannam@86
|
2681 # -----------------
|
cannam@86
|
2682 # enable checks for dlopen support
|
cannam@86
|
2683 AC_DEFUN([AC_LIBTOOL_DLOPEN],
|
cannam@86
|
2684 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
|
cannam@86
|
2685 ])# AC_LIBTOOL_DLOPEN
|
cannam@86
|
2686
|
cannam@86
|
2687
|
cannam@86
|
2688 # AC_LIBTOOL_WIN32_DLL
|
cannam@86
|
2689 # --------------------
|
cannam@86
|
2690 # declare package support for building win32 dll's
|
cannam@86
|
2691 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
|
cannam@86
|
2692 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
|
cannam@86
|
2693 ])# AC_LIBTOOL_WIN32_DLL
|
cannam@86
|
2694
|
cannam@86
|
2695
|
cannam@86
|
2696 # AC_ENABLE_SHARED([DEFAULT])
|
cannam@86
|
2697 # ---------------------------
|
cannam@86
|
2698 # implement the --enable-shared flag
|
cannam@86
|
2699 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
cannam@86
|
2700 AC_DEFUN([AC_ENABLE_SHARED],
|
cannam@86
|
2701 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
|
cannam@86
|
2702 AC_ARG_ENABLE([shared],
|
cannam@86
|
2703 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
|
cannam@86
|
2704 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
|
cannam@86
|
2705 [p=${PACKAGE-default}
|
cannam@86
|
2706 case $enableval in
|
cannam@86
|
2707 yes) enable_shared=yes ;;
|
cannam@86
|
2708 no) enable_shared=no ;;
|
cannam@86
|
2709 *)
|
cannam@86
|
2710 enable_shared=no
|
cannam@86
|
2711 # Look at the argument we got. We use all the common list separators.
|
cannam@86
|
2712 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
cannam@86
|
2713 for pkg in $enableval; do
|
cannam@86
|
2714 IFS="$lt_save_ifs"
|
cannam@86
|
2715 if test "X$pkg" = "X$p"; then
|
cannam@86
|
2716 enable_shared=yes
|
cannam@86
|
2717 fi
|
cannam@86
|
2718 done
|
cannam@86
|
2719 IFS="$lt_save_ifs"
|
cannam@86
|
2720 ;;
|
cannam@86
|
2721 esac],
|
cannam@86
|
2722 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
|
cannam@86
|
2723 ])# AC_ENABLE_SHARED
|
cannam@86
|
2724
|
cannam@86
|
2725
|
cannam@86
|
2726 # AC_DISABLE_SHARED
|
cannam@86
|
2727 # -----------------
|
cannam@86
|
2728 #- set the default shared flag to --disable-shared
|
cannam@86
|
2729 AC_DEFUN([AC_DISABLE_SHARED],
|
cannam@86
|
2730 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
cannam@86
|
2731 AC_ENABLE_SHARED(no)
|
cannam@86
|
2732 ])# AC_DISABLE_SHARED
|
cannam@86
|
2733
|
cannam@86
|
2734
|
cannam@86
|
2735 # AC_ENABLE_STATIC([DEFAULT])
|
cannam@86
|
2736 # ---------------------------
|
cannam@86
|
2737 # implement the --enable-static flag
|
cannam@86
|
2738 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
cannam@86
|
2739 AC_DEFUN([AC_ENABLE_STATIC],
|
cannam@86
|
2740 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
|
cannam@86
|
2741 AC_ARG_ENABLE([static],
|
cannam@86
|
2742 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
|
cannam@86
|
2743 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
|
cannam@86
|
2744 [p=${PACKAGE-default}
|
cannam@86
|
2745 case $enableval in
|
cannam@86
|
2746 yes) enable_static=yes ;;
|
cannam@86
|
2747 no) enable_static=no ;;
|
cannam@86
|
2748 *)
|
cannam@86
|
2749 enable_static=no
|
cannam@86
|
2750 # Look at the argument we got. We use all the common list separators.
|
cannam@86
|
2751 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
cannam@86
|
2752 for pkg in $enableval; do
|
cannam@86
|
2753 IFS="$lt_save_ifs"
|
cannam@86
|
2754 if test "X$pkg" = "X$p"; then
|
cannam@86
|
2755 enable_static=yes
|
cannam@86
|
2756 fi
|
cannam@86
|
2757 done
|
cannam@86
|
2758 IFS="$lt_save_ifs"
|
cannam@86
|
2759 ;;
|
cannam@86
|
2760 esac],
|
cannam@86
|
2761 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
|
cannam@86
|
2762 ])# AC_ENABLE_STATIC
|
cannam@86
|
2763
|
cannam@86
|
2764
|
cannam@86
|
2765 # AC_DISABLE_STATIC
|
cannam@86
|
2766 # -----------------
|
cannam@86
|
2767 # set the default static flag to --disable-static
|
cannam@86
|
2768 AC_DEFUN([AC_DISABLE_STATIC],
|
cannam@86
|
2769 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
cannam@86
|
2770 AC_ENABLE_STATIC(no)
|
cannam@86
|
2771 ])# AC_DISABLE_STATIC
|
cannam@86
|
2772
|
cannam@86
|
2773
|
cannam@86
|
2774 # AC_ENABLE_FAST_INSTALL([DEFAULT])
|
cannam@86
|
2775 # ---------------------------------
|
cannam@86
|
2776 # implement the --enable-fast-install flag
|
cannam@86
|
2777 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
cannam@86
|
2778 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
|
cannam@86
|
2779 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
|
cannam@86
|
2780 AC_ARG_ENABLE([fast-install],
|
cannam@86
|
2781 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
|
cannam@86
|
2782 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
|
cannam@86
|
2783 [p=${PACKAGE-default}
|
cannam@86
|
2784 case $enableval in
|
cannam@86
|
2785 yes) enable_fast_install=yes ;;
|
cannam@86
|
2786 no) enable_fast_install=no ;;
|
cannam@86
|
2787 *)
|
cannam@86
|
2788 enable_fast_install=no
|
cannam@86
|
2789 # Look at the argument we got. We use all the common list separators.
|
cannam@86
|
2790 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
cannam@86
|
2791 for pkg in $enableval; do
|
cannam@86
|
2792 IFS="$lt_save_ifs"
|
cannam@86
|
2793 if test "X$pkg" = "X$p"; then
|
cannam@86
|
2794 enable_fast_install=yes
|
cannam@86
|
2795 fi
|
cannam@86
|
2796 done
|
cannam@86
|
2797 IFS="$lt_save_ifs"
|
cannam@86
|
2798 ;;
|
cannam@86
|
2799 esac],
|
cannam@86
|
2800 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
|
cannam@86
|
2801 ])# AC_ENABLE_FAST_INSTALL
|
cannam@86
|
2802
|
cannam@86
|
2803
|
cannam@86
|
2804 # AC_DISABLE_FAST_INSTALL
|
cannam@86
|
2805 # -----------------------
|
cannam@86
|
2806 # set the default to --disable-fast-install
|
cannam@86
|
2807 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
|
cannam@86
|
2808 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
cannam@86
|
2809 AC_ENABLE_FAST_INSTALL(no)
|
cannam@86
|
2810 ])# AC_DISABLE_FAST_INSTALL
|
cannam@86
|
2811
|
cannam@86
|
2812
|
cannam@86
|
2813 # AC_LIBTOOL_PICMODE([MODE])
|
cannam@86
|
2814 # --------------------------
|
cannam@86
|
2815 # implement the --with-pic flag
|
cannam@86
|
2816 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
|
cannam@86
|
2817 AC_DEFUN([AC_LIBTOOL_PICMODE],
|
cannam@86
|
2818 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
cannam@86
|
2819 pic_mode=ifelse($#,1,$1,default)
|
cannam@86
|
2820 ])# AC_LIBTOOL_PICMODE
|
cannam@86
|
2821
|
cannam@86
|
2822
|
cannam@86
|
2823 # AC_PROG_EGREP
|
cannam@86
|
2824 # -------------
|
cannam@86
|
2825 # This is predefined starting with Autoconf 2.54, so this conditional
|
cannam@86
|
2826 # definition can be removed once we require Autoconf 2.54 or later.
|
cannam@86
|
2827 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
|
cannam@86
|
2828 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
|
cannam@86
|
2829 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
cannam@86
|
2830 then ac_cv_prog_egrep='grep -E'
|
cannam@86
|
2831 else ac_cv_prog_egrep='egrep'
|
cannam@86
|
2832 fi])
|
cannam@86
|
2833 EGREP=$ac_cv_prog_egrep
|
cannam@86
|
2834 AC_SUBST([EGREP])
|
cannam@86
|
2835 ])])
|
cannam@86
|
2836
|
cannam@86
|
2837
|
cannam@86
|
2838 # AC_PATH_TOOL_PREFIX
|
cannam@86
|
2839 # -------------------
|
cannam@86
|
2840 # find a file program which can recognise shared library
|
cannam@86
|
2841 AC_DEFUN([AC_PATH_TOOL_PREFIX],
|
cannam@86
|
2842 [AC_REQUIRE([AC_PROG_EGREP])dnl
|
cannam@86
|
2843 AC_MSG_CHECKING([for $1])
|
cannam@86
|
2844 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
|
cannam@86
|
2845 [case $MAGIC_CMD in
|
cannam@86
|
2846 [[\\/*] | ?:[\\/]*])
|
cannam@86
|
2847 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
cannam@86
|
2848 ;;
|
cannam@86
|
2849 *)
|
cannam@86
|
2850 lt_save_MAGIC_CMD="$MAGIC_CMD"
|
cannam@86
|
2851 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
cannam@86
|
2852 dnl $ac_dummy forces splitting on constant user-supplied paths.
|
cannam@86
|
2853 dnl POSIX.2 word splitting is done only on the output of word expansions,
|
cannam@86
|
2854 dnl not every word. This closes a longstanding sh security hole.
|
cannam@86
|
2855 ac_dummy="ifelse([$2], , $PATH, [$2])"
|
cannam@86
|
2856 for ac_dir in $ac_dummy; do
|
cannam@86
|
2857 IFS="$lt_save_ifs"
|
cannam@86
|
2858 test -z "$ac_dir" && ac_dir=.
|
cannam@86
|
2859 if test -f $ac_dir/$1; then
|
cannam@86
|
2860 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
|
cannam@86
|
2861 if test -n "$file_magic_test_file"; then
|
cannam@86
|
2862 case $deplibs_check_method in
|
cannam@86
|
2863 "file_magic "*)
|
cannam@86
|
2864 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
cannam@86
|
2865 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
cannam@86
|
2866 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
cannam@86
|
2867 $EGREP "$file_magic_regex" > /dev/null; then
|
cannam@86
|
2868 :
|
cannam@86
|
2869 else
|
cannam@86
|
2870 cat <<EOF 1>&2
|
cannam@86
|
2871
|
cannam@86
|
2872 *** Warning: the command libtool uses to detect shared libraries,
|
cannam@86
|
2873 *** $file_magic_cmd, produces output that libtool cannot recognize.
|
cannam@86
|
2874 *** The result is that libtool may fail to recognize shared libraries
|
cannam@86
|
2875 *** as such. This will affect the creation of libtool libraries that
|
cannam@86
|
2876 *** depend on shared libraries, but programs linked with such libtool
|
cannam@86
|
2877 *** libraries will work regardless of this problem. Nevertheless, you
|
cannam@86
|
2878 *** may want to report the problem to your system manager and/or to
|
cannam@86
|
2879 *** bug-libtool@gnu.org
|
cannam@86
|
2880
|
cannam@86
|
2881 EOF
|
cannam@86
|
2882 fi ;;
|
cannam@86
|
2883 esac
|
cannam@86
|
2884 fi
|
cannam@86
|
2885 break
|
cannam@86
|
2886 fi
|
cannam@86
|
2887 done
|
cannam@86
|
2888 IFS="$lt_save_ifs"
|
cannam@86
|
2889 MAGIC_CMD="$lt_save_MAGIC_CMD"
|
cannam@86
|
2890 ;;
|
cannam@86
|
2891 esac])
|
cannam@86
|
2892 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
cannam@86
|
2893 if test -n "$MAGIC_CMD"; then
|
cannam@86
|
2894 AC_MSG_RESULT($MAGIC_CMD)
|
cannam@86
|
2895 else
|
cannam@86
|
2896 AC_MSG_RESULT(no)
|
cannam@86
|
2897 fi
|
cannam@86
|
2898 ])# AC_PATH_TOOL_PREFIX
|
cannam@86
|
2899
|
cannam@86
|
2900
|
cannam@86
|
2901 # AC_PATH_MAGIC
|
cannam@86
|
2902 # -------------
|
cannam@86
|
2903 # find a file program which can recognise a shared library
|
cannam@86
|
2904 AC_DEFUN([AC_PATH_MAGIC],
|
cannam@86
|
2905 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
|
cannam@86
|
2906 if test -z "$lt_cv_path_MAGIC_CMD"; then
|
cannam@86
|
2907 if test -n "$ac_tool_prefix"; then
|
cannam@86
|
2908 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
|
cannam@86
|
2909 else
|
cannam@86
|
2910 MAGIC_CMD=:
|
cannam@86
|
2911 fi
|
cannam@86
|
2912 fi
|
cannam@86
|
2913 ])# AC_PATH_MAGIC
|
cannam@86
|
2914
|
cannam@86
|
2915
|
cannam@86
|
2916 # AC_PROG_LD
|
cannam@86
|
2917 # ----------
|
cannam@86
|
2918 # find the pathname to the GNU or non-GNU linker
|
cannam@86
|
2919 AC_DEFUN([AC_PROG_LD],
|
cannam@86
|
2920 [AC_ARG_WITH([gnu-ld],
|
cannam@86
|
2921 [AC_HELP_STRING([--with-gnu-ld],
|
cannam@86
|
2922 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
|
cannam@86
|
2923 [test "$withval" = no || with_gnu_ld=yes],
|
cannam@86
|
2924 [with_gnu_ld=no])
|
cannam@86
|
2925 AC_REQUIRE([LT_AC_PROG_SED])dnl
|
cannam@86
|
2926 AC_REQUIRE([AC_PROG_CC])dnl
|
cannam@86
|
2927 AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
cannam@86
|
2928 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
cannam@86
|
2929 ac_prog=ld
|
cannam@86
|
2930 if test "$GCC" = yes; then
|
cannam@86
|
2931 # Check if gcc -print-prog-name=ld gives a path.
|
cannam@86
|
2932 AC_MSG_CHECKING([for ld used by $CC])
|
cannam@86
|
2933 case $host in
|
cannam@86
|
2934 *-*-mingw*)
|
cannam@86
|
2935 # gcc leaves a trailing carriage return which upsets mingw
|
cannam@86
|
2936 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
cannam@86
|
2937 *)
|
cannam@86
|
2938 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
cannam@86
|
2939 esac
|
cannam@86
|
2940 case $ac_prog in
|
cannam@86
|
2941 # Accept absolute paths.
|
cannam@86
|
2942 [[\\/]]* | ?:[[\\/]]*)
|
cannam@86
|
2943 re_direlt='/[[^/]][[^/]]*/\.\./'
|
cannam@86
|
2944 # Canonicalize the pathname of ld
|
cannam@86
|
2945 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
|
cannam@86
|
2946 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
cannam@86
|
2947 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
|
cannam@86
|
2948 done
|
cannam@86
|
2949 test -z "$LD" && LD="$ac_prog"
|
cannam@86
|
2950 ;;
|
cannam@86
|
2951 "")
|
cannam@86
|
2952 # If it fails, then pretend we aren't using GCC.
|
cannam@86
|
2953 ac_prog=ld
|
cannam@86
|
2954 ;;
|
cannam@86
|
2955 *)
|
cannam@86
|
2956 # If it is relative, then search for the first ld in PATH.
|
cannam@86
|
2957 with_gnu_ld=unknown
|
cannam@86
|
2958 ;;
|
cannam@86
|
2959 esac
|
cannam@86
|
2960 elif test "$with_gnu_ld" = yes; then
|
cannam@86
|
2961 AC_MSG_CHECKING([for GNU ld])
|
cannam@86
|
2962 else
|
cannam@86
|
2963 AC_MSG_CHECKING([for non-GNU ld])
|
cannam@86
|
2964 fi
|
cannam@86
|
2965 AC_CACHE_VAL(lt_cv_path_LD,
|
cannam@86
|
2966 [if test -z "$LD"; then
|
cannam@86
|
2967 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
cannam@86
|
2968 for ac_dir in $PATH; do
|
cannam@86
|
2969 IFS="$lt_save_ifs"
|
cannam@86
|
2970 test -z "$ac_dir" && ac_dir=.
|
cannam@86
|
2971 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
cannam@86
|
2972 lt_cv_path_LD="$ac_dir/$ac_prog"
|
cannam@86
|
2973 # Check to see if the program is GNU ld. I'd rather use --version,
|
cannam@86
|
2974 # but apparently some GNU ld's only accept -v.
|
cannam@86
|
2975 # Break only if it was the GNU/non-GNU ld that we prefer.
|
cannam@86
|
2976 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
cannam@86
|
2977 *GNU* | *'with BFD'*)
|
cannam@86
|
2978 test "$with_gnu_ld" != no && break
|
cannam@86
|
2979 ;;
|
cannam@86
|
2980 *)
|
cannam@86
|
2981 test "$with_gnu_ld" != yes && break
|
cannam@86
|
2982 ;;
|
cannam@86
|
2983 esac
|
cannam@86
|
2984 fi
|
cannam@86
|
2985 done
|
cannam@86
|
2986 IFS="$lt_save_ifs"
|
cannam@86
|
2987 else
|
cannam@86
|
2988 lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
cannam@86
|
2989 fi])
|
cannam@86
|
2990 LD="$lt_cv_path_LD"
|
cannam@86
|
2991 if test -n "$LD"; then
|
cannam@86
|
2992 AC_MSG_RESULT($LD)
|
cannam@86
|
2993 else
|
cannam@86
|
2994 AC_MSG_RESULT(no)
|
cannam@86
|
2995 fi
|
cannam@86
|
2996 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
|
cannam@86
|
2997 AC_PROG_LD_GNU
|
cannam@86
|
2998 ])# AC_PROG_LD
|
cannam@86
|
2999
|
cannam@86
|
3000
|
cannam@86
|
3001 # AC_PROG_LD_GNU
|
cannam@86
|
3002 # --------------
|
cannam@86
|
3003 AC_DEFUN([AC_PROG_LD_GNU],
|
cannam@86
|
3004 [AC_REQUIRE([AC_PROG_EGREP])dnl
|
cannam@86
|
3005 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
|
cannam@86
|
3006 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
cannam@86
|
3007 case `$LD -v 2>&1 </dev/null` in
|
cannam@86
|
3008 *GNU* | *'with BFD'*)
|
cannam@86
|
3009 lt_cv_prog_gnu_ld=yes
|
cannam@86
|
3010 ;;
|
cannam@86
|
3011 *)
|
cannam@86
|
3012 lt_cv_prog_gnu_ld=no
|
cannam@86
|
3013 ;;
|
cannam@86
|
3014 esac])
|
cannam@86
|
3015 with_gnu_ld=$lt_cv_prog_gnu_ld
|
cannam@86
|
3016 ])# AC_PROG_LD_GNU
|
cannam@86
|
3017
|
cannam@86
|
3018
|
cannam@86
|
3019 # AC_PROG_LD_RELOAD_FLAG
|
cannam@86
|
3020 # ----------------------
|
cannam@86
|
3021 # find reload flag for linker
|
cannam@86
|
3022 # -- PORTME Some linkers may need a different reload flag.
|
cannam@86
|
3023 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
|
cannam@86
|
3024 [AC_CACHE_CHECK([for $LD option to reload object files],
|
cannam@86
|
3025 lt_cv_ld_reload_flag,
|
cannam@86
|
3026 [lt_cv_ld_reload_flag='-r'])
|
cannam@86
|
3027 reload_flag=$lt_cv_ld_reload_flag
|
cannam@86
|
3028 case $reload_flag in
|
cannam@86
|
3029 "" | " "*) ;;
|
cannam@86
|
3030 *) reload_flag=" $reload_flag" ;;
|
cannam@86
|
3031 esac
|
cannam@86
|
3032 reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
cannam@86
|
3033 case $host_os in
|
cannam@86
|
3034 darwin*)
|
cannam@86
|
3035 if test "$GCC" = yes; then
|
cannam@86
|
3036 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
|
cannam@86
|
3037 else
|
cannam@86
|
3038 reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
cannam@86
|
3039 fi
|
cannam@86
|
3040 ;;
|
cannam@86
|
3041 esac
|
cannam@86
|
3042 ])# AC_PROG_LD_RELOAD_FLAG
|
cannam@86
|
3043
|
cannam@86
|
3044
|
cannam@86
|
3045 # AC_DEPLIBS_CHECK_METHOD
|
cannam@86
|
3046 # -----------------------
|
cannam@86
|
3047 # how to check for library dependencies
|
cannam@86
|
3048 # -- PORTME fill in with the dynamic library characteristics
|
cannam@86
|
3049 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
|
cannam@86
|
3050 [AC_CACHE_CHECK([how to recognise dependent libraries],
|
cannam@86
|
3051 lt_cv_deplibs_check_method,
|
cannam@86
|
3052 [lt_cv_file_magic_cmd='$MAGIC_CMD'
|
cannam@86
|
3053 lt_cv_file_magic_test_file=
|
cannam@86
|
3054 lt_cv_deplibs_check_method='unknown'
|
cannam@86
|
3055 # Need to set the preceding variable on all platforms that support
|
cannam@86
|
3056 # interlibrary dependencies.
|
cannam@86
|
3057 # 'none' -- dependencies not supported.
|
cannam@86
|
3058 # `unknown' -- same as none, but documents that we really don't know.
|
cannam@86
|
3059 # 'pass_all' -- all dependencies passed with no checks.
|
cannam@86
|
3060 # 'test_compile' -- check by making test program.
|
cannam@86
|
3061 # 'file_magic [[regex]]' -- check by looking for files in library path
|
cannam@86
|
3062 # which responds to the $file_magic_cmd with a given extended regex.
|
cannam@86
|
3063 # If you have `file' or equivalent on your system and you're not sure
|
cannam@86
|
3064 # whether `pass_all' will *always* work, you probably want this one.
|
cannam@86
|
3065
|
cannam@86
|
3066 case $host_os in
|
cannam@86
|
3067 aix4* | aix5*)
|
cannam@86
|
3068 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3069 ;;
|
cannam@86
|
3070
|
cannam@86
|
3071 beos*)
|
cannam@86
|
3072 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3073 ;;
|
cannam@86
|
3074
|
cannam@86
|
3075 bsdi[[45]]*)
|
cannam@86
|
3076 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
|
cannam@86
|
3077 lt_cv_file_magic_cmd='/usr/bin/file -L'
|
cannam@86
|
3078 lt_cv_file_magic_test_file=/shlib/libc.so
|
cannam@86
|
3079 ;;
|
cannam@86
|
3080
|
cannam@86
|
3081 cygwin*)
|
cannam@86
|
3082 # func_win32_libid is a shell function defined in ltmain.sh
|
cannam@86
|
3083 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
cannam@86
|
3084 lt_cv_file_magic_cmd='func_win32_libid'
|
cannam@86
|
3085 ;;
|
cannam@86
|
3086
|
cannam@86
|
3087 mingw* | pw32*)
|
cannam@86
|
3088 # Base MSYS/MinGW do not provide the 'file' command needed by
|
cannam@86
|
3089 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
|
cannam@86
|
3090 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
cannam@86
|
3091 lt_cv_file_magic_cmd='$OBJDUMP -f'
|
cannam@86
|
3092 ;;
|
cannam@86
|
3093
|
cannam@86
|
3094 darwin* | rhapsody*)
|
cannam@86
|
3095 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3096 ;;
|
cannam@86
|
3097
|
cannam@86
|
3098 freebsd* | kfreebsd*-gnu | dragonfly*)
|
cannam@86
|
3099 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
cannam@86
|
3100 case $host_cpu in
|
cannam@86
|
3101 i*86 )
|
cannam@86
|
3102 # Not sure whether the presence of OpenBSD here was a mistake.
|
cannam@86
|
3103 # Let's accept both of them until this is cleared up.
|
cannam@86
|
3104 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
|
cannam@86
|
3105 lt_cv_file_magic_cmd=/usr/bin/file
|
cannam@86
|
3106 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
cannam@86
|
3107 ;;
|
cannam@86
|
3108 esac
|
cannam@86
|
3109 else
|
cannam@86
|
3110 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3111 fi
|
cannam@86
|
3112 ;;
|
cannam@86
|
3113
|
cannam@86
|
3114 gnu*)
|
cannam@86
|
3115 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3116 ;;
|
cannam@86
|
3117
|
cannam@86
|
3118 hpux10.20* | hpux11*)
|
cannam@86
|
3119 lt_cv_file_magic_cmd=/usr/bin/file
|
cannam@86
|
3120 case "$host_cpu" in
|
cannam@86
|
3121 ia64*)
|
cannam@86
|
3122 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
|
cannam@86
|
3123 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
cannam@86
|
3124 ;;
|
cannam@86
|
3125 hppa*64*)
|
cannam@86
|
3126 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
|
cannam@86
|
3127 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
cannam@86
|
3128 ;;
|
cannam@86
|
3129 *)
|
cannam@86
|
3130 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
|
cannam@86
|
3131 lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
cannam@86
|
3132 ;;
|
cannam@86
|
3133 esac
|
cannam@86
|
3134 ;;
|
cannam@86
|
3135
|
cannam@86
|
3136 irix5* | irix6* | nonstopux*)
|
cannam@86
|
3137 case $LD in
|
cannam@86
|
3138 *-32|*"-32 ") libmagic=32-bit;;
|
cannam@86
|
3139 *-n32|*"-n32 ") libmagic=N32;;
|
cannam@86
|
3140 *-64|*"-64 ") libmagic=64-bit;;
|
cannam@86
|
3141 *) libmagic=never-match;;
|
cannam@86
|
3142 esac
|
cannam@86
|
3143 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3144 ;;
|
cannam@86
|
3145
|
cannam@86
|
3146 # This must be Linux ELF.
|
cannam@86
|
3147 linux*)
|
cannam@86
|
3148 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3149 ;;
|
cannam@86
|
3150
|
cannam@86
|
3151 netbsd*)
|
cannam@86
|
3152 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
cannam@86
|
3153 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
|
cannam@86
|
3154 else
|
cannam@86
|
3155 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
|
cannam@86
|
3156 fi
|
cannam@86
|
3157 ;;
|
cannam@86
|
3158
|
cannam@86
|
3159 newos6*)
|
cannam@86
|
3160 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
|
cannam@86
|
3161 lt_cv_file_magic_cmd=/usr/bin/file
|
cannam@86
|
3162 lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
cannam@86
|
3163 ;;
|
cannam@86
|
3164
|
cannam@86
|
3165 nto-qnx*)
|
cannam@86
|
3166 lt_cv_deplibs_check_method=unknown
|
cannam@86
|
3167 ;;
|
cannam@86
|
3168
|
cannam@86
|
3169 openbsd*)
|
cannam@86
|
3170 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
cannam@86
|
3171 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
|
cannam@86
|
3172 else
|
cannam@86
|
3173 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
|
cannam@86
|
3174 fi
|
cannam@86
|
3175 ;;
|
cannam@86
|
3176
|
cannam@86
|
3177 osf3* | osf4* | osf5*)
|
cannam@86
|
3178 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3179 ;;
|
cannam@86
|
3180
|
cannam@86
|
3181 sco3.2v5*)
|
cannam@86
|
3182 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3183 ;;
|
cannam@86
|
3184
|
cannam@86
|
3185 solaris*)
|
cannam@86
|
3186 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3187 ;;
|
cannam@86
|
3188
|
cannam@86
|
3189 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
cannam@86
|
3190 case $host_vendor in
|
cannam@86
|
3191 motorola)
|
cannam@86
|
3192 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]]'
|
cannam@86
|
3193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
cannam@86
|
3194 ;;
|
cannam@86
|
3195 ncr)
|
cannam@86
|
3196 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3197 ;;
|
cannam@86
|
3198 sequent)
|
cannam@86
|
3199 lt_cv_file_magic_cmd='/bin/file'
|
cannam@86
|
3200 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
|
cannam@86
|
3201 ;;
|
cannam@86
|
3202 sni)
|
cannam@86
|
3203 lt_cv_file_magic_cmd='/bin/file'
|
cannam@86
|
3204 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
|
cannam@86
|
3205 lt_cv_file_magic_test_file=/lib/libc.so
|
cannam@86
|
3206 ;;
|
cannam@86
|
3207 siemens)
|
cannam@86
|
3208 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3209 ;;
|
cannam@86
|
3210 esac
|
cannam@86
|
3211 ;;
|
cannam@86
|
3212
|
cannam@86
|
3213 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
|
cannam@86
|
3214 lt_cv_deplibs_check_method=pass_all
|
cannam@86
|
3215 ;;
|
cannam@86
|
3216 esac
|
cannam@86
|
3217 ])
|
cannam@86
|
3218 file_magic_cmd=$lt_cv_file_magic_cmd
|
cannam@86
|
3219 deplibs_check_method=$lt_cv_deplibs_check_method
|
cannam@86
|
3220 test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
cannam@86
|
3221 ])# AC_DEPLIBS_CHECK_METHOD
|
cannam@86
|
3222
|
cannam@86
|
3223
|
cannam@86
|
3224 # AC_PROG_NM
|
cannam@86
|
3225 # ----------
|
cannam@86
|
3226 # find the pathname to a BSD-compatible name lister
|
cannam@86
|
3227 AC_DEFUN([AC_PROG_NM],
|
cannam@86
|
3228 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
|
cannam@86
|
3229 [if test -n "$NM"; then
|
cannam@86
|
3230 # Let the user override the test.
|
cannam@86
|
3231 lt_cv_path_NM="$NM"
|
cannam@86
|
3232 else
|
cannam@86
|
3233 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
cannam@86
|
3234 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
cannam@86
|
3235 IFS="$lt_save_ifs"
|
cannam@86
|
3236 test -z "$ac_dir" && ac_dir=.
|
cannam@86
|
3237 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
|
cannam@86
|
3238 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
cannam@86
|
3239 # Check to see if the nm accepts a BSD-compat flag.
|
cannam@86
|
3240 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
cannam@86
|
3241 # nm: unknown option "B" ignored
|
cannam@86
|
3242 # Tru64's nm complains that /dev/null is an invalid object file
|
cannam@86
|
3243 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
cannam@86
|
3244 */dev/null* | *'Invalid file or object type'*)
|
cannam@86
|
3245 lt_cv_path_NM="$tmp_nm -B"
|
cannam@86
|
3246 break
|
cannam@86
|
3247 ;;
|
cannam@86
|
3248 *)
|
cannam@86
|
3249 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
cannam@86
|
3250 */dev/null*)
|
cannam@86
|
3251 lt_cv_path_NM="$tmp_nm -p"
|
cannam@86
|
3252 break
|
cannam@86
|
3253 ;;
|
cannam@86
|
3254 *)
|
cannam@86
|
3255 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
cannam@86
|
3256 continue # so that we can try to find one that supports BSD flags
|
cannam@86
|
3257 ;;
|
cannam@86
|
3258 esac
|
cannam@86
|
3259 esac
|
cannam@86
|
3260 fi
|
cannam@86
|
3261 done
|
cannam@86
|
3262 IFS="$lt_save_ifs"
|
cannam@86
|
3263 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
cannam@86
|
3264 fi])
|
cannam@86
|
3265 NM="$lt_cv_path_NM"
|
cannam@86
|
3266 ])# AC_PROG_NM
|
cannam@86
|
3267
|
cannam@86
|
3268
|
cannam@86
|
3269 # AC_CHECK_LIBM
|
cannam@86
|
3270 # -------------
|
cannam@86
|
3271 # check for math library
|
cannam@86
|
3272 AC_DEFUN([AC_CHECK_LIBM],
|
cannam@86
|
3273 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
cannam@86
|
3274 LIBM=
|
cannam@86
|
3275 case $host in
|
cannam@86
|
3276 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
|
cannam@86
|
3277 # These system don't have libm, or don't need it
|
cannam@86
|
3278 ;;
|
cannam@86
|
3279 *-ncr-sysv4.3*)
|
cannam@86
|
3280 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
|
cannam@86
|
3281 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
|
cannam@86
|
3282 ;;
|
cannam@86
|
3283 *)
|
cannam@86
|
3284 AC_CHECK_LIB(m, cos, LIBM="-lm")
|
cannam@86
|
3285 ;;
|
cannam@86
|
3286 esac
|
cannam@86
|
3287 ])# AC_CHECK_LIBM
|
cannam@86
|
3288
|
cannam@86
|
3289
|
cannam@86
|
3290 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
|
cannam@86
|
3291 # -----------------------------------
|
cannam@86
|
3292 # sets LIBLTDL to the link flags for the libltdl convenience library and
|
cannam@86
|
3293 # LTDLINCL to the include flags for the libltdl header and adds
|
cannam@86
|
3294 # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
|
cannam@86
|
3295 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
|
cannam@86
|
3296 # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
|
cannam@86
|
3297 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
|
cannam@86
|
3298 # '${top_srcdir}/' (note the single quotes!). If your package is not
|
cannam@86
|
3299 # flat and you're not using automake, define top_builddir and
|
cannam@86
|
3300 # top_srcdir appropriately in the Makefiles.
|
cannam@86
|
3301 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
|
cannam@86
|
3302 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
cannam@86
|
3303 case $enable_ltdl_convenience in
|
cannam@86
|
3304 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
|
cannam@86
|
3305 "") enable_ltdl_convenience=yes
|
cannam@86
|
3306 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
|
cannam@86
|
3307 esac
|
cannam@86
|
3308 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
|
cannam@86
|
3309 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
|
cannam@86
|
3310 # For backwards non-gettext consistent compatibility...
|
cannam@86
|
3311 INCLTDL="$LTDLINCL"
|
cannam@86
|
3312 ])# AC_LIBLTDL_CONVENIENCE
|
cannam@86
|
3313
|
cannam@86
|
3314
|
cannam@86
|
3315 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
|
cannam@86
|
3316 # -----------------------------------
|
cannam@86
|
3317 # sets LIBLTDL to the link flags for the libltdl installable library and
|
cannam@86
|
3318 # LTDLINCL to the include flags for the libltdl header and adds
|
cannam@86
|
3319 # --enable-ltdl-install to the configure arguments. Note that LIBLTDL
|
cannam@86
|
3320 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
|
cannam@86
|
3321 # DIRECTORY is not provided and an installed libltdl is not found, it is
|
cannam@86
|
3322 # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
|
cannam@86
|
3323 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
|
cannam@86
|
3324 # quotes!). If your package is not flat and you're not using automake,
|
cannam@86
|
3325 # define top_builddir and top_srcdir appropriately in the Makefiles.
|
cannam@86
|
3326 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
|
cannam@86
|
3327 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
|
cannam@86
|
3328 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
cannam@86
|
3329 AC_CHECK_LIB(ltdl, lt_dlinit,
|
cannam@86
|
3330 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
|
cannam@86
|
3331 [if test x"$enable_ltdl_install" = xno; then
|
cannam@86
|
3332 AC_MSG_WARN([libltdl not installed, but installation disabled])
|
cannam@86
|
3333 else
|
cannam@86
|
3334 enable_ltdl_install=yes
|
cannam@86
|
3335 fi
|
cannam@86
|
3336 ])
|
cannam@86
|
3337 if test x"$enable_ltdl_install" = x"yes"; then
|
cannam@86
|
3338 ac_configure_args="$ac_configure_args --enable-ltdl-install"
|
cannam@86
|
3339 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
|
cannam@86
|
3340 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
|
cannam@86
|
3341 else
|
cannam@86
|
3342 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
|
cannam@86
|
3343 LIBLTDL="-lltdl"
|
cannam@86
|
3344 LTDLINCL=
|
cannam@86
|
3345 fi
|
cannam@86
|
3346 # For backwards non-gettext consistent compatibility...
|
cannam@86
|
3347 INCLTDL="$LTDLINCL"
|
cannam@86
|
3348 ])# AC_LIBLTDL_INSTALLABLE
|
cannam@86
|
3349
|
cannam@86
|
3350
|
cannam@86
|
3351 # AC_LIBTOOL_CXX
|
cannam@86
|
3352 # --------------
|
cannam@86
|
3353 # enable support for C++ libraries
|
cannam@86
|
3354 AC_DEFUN([AC_LIBTOOL_CXX],
|
cannam@86
|
3355 [AC_REQUIRE([_LT_AC_LANG_CXX])
|
cannam@86
|
3356 ])# AC_LIBTOOL_CXX
|
cannam@86
|
3357
|
cannam@86
|
3358
|
cannam@86
|
3359 # _LT_AC_LANG_CXX
|
cannam@86
|
3360 # ---------------
|
cannam@86
|
3361 AC_DEFUN([_LT_AC_LANG_CXX],
|
cannam@86
|
3362 [AC_REQUIRE([AC_PROG_CXX])
|
cannam@86
|
3363 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
|
cannam@86
|
3364 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
|
cannam@86
|
3365 ])# _LT_AC_LANG_CXX
|
cannam@86
|
3366
|
cannam@86
|
3367 # _LT_AC_PROG_CXXCPP
|
cannam@86
|
3368 # ---------------
|
cannam@86
|
3369 AC_DEFUN([_LT_AC_PROG_CXXCPP],
|
cannam@86
|
3370 [
|
cannam@86
|
3371 AC_REQUIRE([AC_PROG_CXX])
|
cannam@86
|
3372 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
cannam@86
|
3373 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
cannam@86
|
3374 (test "X$CXX" != "Xg++"))) ; then
|
cannam@86
|
3375 AC_PROG_CXXCPP
|
cannam@86
|
3376 fi
|
cannam@86
|
3377 ])# _LT_AC_PROG_CXXCPP
|
cannam@86
|
3378
|
cannam@86
|
3379 # AC_LIBTOOL_F77
|
cannam@86
|
3380 # --------------
|
cannam@86
|
3381 # enable support for Fortran 77 libraries
|
cannam@86
|
3382 AC_DEFUN([AC_LIBTOOL_F77],
|
cannam@86
|
3383 [AC_REQUIRE([_LT_AC_LANG_F77])
|
cannam@86
|
3384 ])# AC_LIBTOOL_F77
|
cannam@86
|
3385
|
cannam@86
|
3386
|
cannam@86
|
3387 # _LT_AC_LANG_F77
|
cannam@86
|
3388 # ---------------
|
cannam@86
|
3389 AC_DEFUN([_LT_AC_LANG_F77],
|
cannam@86
|
3390 [AC_REQUIRE([AC_PROG_F77])
|
cannam@86
|
3391 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
|
cannam@86
|
3392 ])# _LT_AC_LANG_F77
|
cannam@86
|
3393
|
cannam@86
|
3394
|
cannam@86
|
3395 # AC_LIBTOOL_GCJ
|
cannam@86
|
3396 # --------------
|
cannam@86
|
3397 # enable support for GCJ libraries
|
cannam@86
|
3398 AC_DEFUN([AC_LIBTOOL_GCJ],
|
cannam@86
|
3399 [AC_REQUIRE([_LT_AC_LANG_GCJ])
|
cannam@86
|
3400 ])# AC_LIBTOOL_GCJ
|
cannam@86
|
3401
|
cannam@86
|
3402
|
cannam@86
|
3403 # _LT_AC_LANG_GCJ
|
cannam@86
|
3404 # ---------------
|
cannam@86
|
3405 AC_DEFUN([_LT_AC_LANG_GCJ],
|
cannam@86
|
3406 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
|
cannam@86
|
3407 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
|
cannam@86
|
3408 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
|
cannam@86
|
3409 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
|
cannam@86
|
3410 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
|
cannam@86
|
3411 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
|
cannam@86
|
3412 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
|
cannam@86
|
3413 ])# _LT_AC_LANG_GCJ
|
cannam@86
|
3414
|
cannam@86
|
3415
|
cannam@86
|
3416 # AC_LIBTOOL_RC
|
cannam@86
|
3417 # --------------
|
cannam@86
|
3418 # enable support for Windows resource files
|
cannam@86
|
3419 AC_DEFUN([AC_LIBTOOL_RC],
|
cannam@86
|
3420 [AC_REQUIRE([LT_AC_PROG_RC])
|
cannam@86
|
3421 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
|
cannam@86
|
3422 ])# AC_LIBTOOL_RC
|
cannam@86
|
3423
|
cannam@86
|
3424
|
cannam@86
|
3425 # AC_LIBTOOL_LANG_C_CONFIG
|
cannam@86
|
3426 # ------------------------
|
cannam@86
|
3427 # Ensure that the configuration vars for the C compiler are
|
cannam@86
|
3428 # suitably defined. Those variables are subsequently used by
|
cannam@86
|
3429 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
cannam@86
|
3430 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
|
cannam@86
|
3431 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
|
cannam@86
|
3432 [lt_save_CC="$CC"
|
cannam@86
|
3433 AC_LANG_PUSH(C)
|
cannam@86
|
3434
|
cannam@86
|
3435 # Source file extension for C test sources.
|
cannam@86
|
3436 ac_ext=c
|
cannam@86
|
3437
|
cannam@86
|
3438 # Object file extension for compiled C test sources.
|
cannam@86
|
3439 objext=o
|
cannam@86
|
3440 _LT_AC_TAGVAR(objext, $1)=$objext
|
cannam@86
|
3441
|
cannam@86
|
3442 # Code to be used in simple compile tests
|
cannam@86
|
3443 lt_simple_compile_test_code="int some_variable = 0;\n"
|
cannam@86
|
3444
|
cannam@86
|
3445 # Code to be used in simple link tests
|
cannam@86
|
3446 lt_simple_link_test_code='int main(){return(0);}\n'
|
cannam@86
|
3447
|
cannam@86
|
3448 _LT_AC_SYS_COMPILER
|
cannam@86
|
3449
|
cannam@86
|
3450 # save warnings/boilerplate of simple test code
|
cannam@86
|
3451 _LT_COMPILER_BOILERPLATE
|
cannam@86
|
3452 _LT_LINKER_BOILERPLATE
|
cannam@86
|
3453
|
cannam@86
|
3454 #
|
cannam@86
|
3455 # Check for any special shared library compilation flags.
|
cannam@86
|
3456 #
|
cannam@86
|
3457 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
|
cannam@86
|
3458 if test "$GCC" = no; then
|
cannam@86
|
3459 case $host_os in
|
cannam@86
|
3460 sco3.2v5*)
|
cannam@86
|
3461 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
|
cannam@86
|
3462 ;;
|
cannam@86
|
3463 esac
|
cannam@86
|
3464 fi
|
cannam@86
|
3465 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
|
cannam@86
|
3466 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
|
cannam@86
|
3467 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
|
cannam@86
|
3468 else
|
cannam@86
|
3469 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
|
cannam@86
|
3470 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
|
cannam@86
|
3471 fi
|
cannam@86
|
3472 fi
|
cannam@86
|
3473
|
cannam@86
|
3474
|
cannam@86
|
3475 #
|
cannam@86
|
3476 # Check to make sure the static flag actually works.
|
cannam@86
|
3477 #
|
cannam@86
|
3478 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
|
cannam@86
|
3479 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
|
cannam@86
|
3480 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
|
cannam@86
|
3481 [],
|
cannam@86
|
3482 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
|
cannam@86
|
3483
|
cannam@86
|
3484
|
cannam@86
|
3485 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
|
cannam@86
|
3486 AC_LIBTOOL_PROG_COMPILER_PIC($1)
|
cannam@86
|
3487 AC_LIBTOOL_PROG_CC_C_O($1)
|
cannam@86
|
3488 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
cannam@86
|
3489 AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
cannam@86
|
3490 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
cannam@86
|
3491 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
cannam@86
|
3492 AC_LIBTOOL_SYS_LIB_STRIP
|
cannam@86
|
3493 AC_LIBTOOL_DLOPEN_SELF($1)
|
cannam@86
|
3494
|
cannam@86
|
3495 # Report which librarie types wil actually be built
|
cannam@86
|
3496 AC_MSG_CHECKING([if libtool supports shared libraries])
|
cannam@86
|
3497 AC_MSG_RESULT([$can_build_shared])
|
cannam@86
|
3498
|
cannam@86
|
3499 AC_MSG_CHECKING([whether to build shared libraries])
|
cannam@86
|
3500 test "$can_build_shared" = "no" && enable_shared=no
|
cannam@86
|
3501
|
cannam@86
|
3502 # On AIX, shared libraries and static libraries use the same namespace, and
|
cannam@86
|
3503 # are all built from PIC.
|
cannam@86
|
3504 case "$host_os" in
|
cannam@86
|
3505 aix3*)
|
cannam@86
|
3506 test "$enable_shared" = yes && enable_static=no
|
cannam@86
|
3507 if test -n "$RANLIB"; then
|
cannam@86
|
3508 archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
cannam@86
|
3509 postinstall_cmds='$RANLIB $lib'
|
cannam@86
|
3510 fi
|
cannam@86
|
3511 ;;
|
cannam@86
|
3512
|
cannam@86
|
3513 aix4* | aix5*)
|
cannam@86
|
3514 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
cannam@86
|
3515 test "$enable_shared" = yes && enable_static=no
|
cannam@86
|
3516 fi
|
cannam@86
|
3517 ;;
|
cannam@86
|
3518 esac
|
cannam@86
|
3519 AC_MSG_RESULT([$enable_shared])
|
cannam@86
|
3520
|
cannam@86
|
3521 AC_MSG_CHECKING([whether to build static libraries])
|
cannam@86
|
3522 # Make sure either enable_shared or enable_static is yes.
|
cannam@86
|
3523 test "$enable_shared" = yes || enable_static=yes
|
cannam@86
|
3524 AC_MSG_RESULT([$enable_static])
|
cannam@86
|
3525
|
cannam@86
|
3526 AC_LIBTOOL_CONFIG($1)
|
cannam@86
|
3527
|
cannam@86
|
3528 AC_LANG_POP
|
cannam@86
|
3529 CC="$lt_save_CC"
|
cannam@86
|
3530 ])# AC_LIBTOOL_LANG_C_CONFIG
|
cannam@86
|
3531
|
cannam@86
|
3532
|
cannam@86
|
3533 # AC_LIBTOOL_LANG_CXX_CONFIG
|
cannam@86
|
3534 # --------------------------
|
cannam@86
|
3535 # Ensure that the configuration vars for the C compiler are
|
cannam@86
|
3536 # suitably defined. Those variables are subsequently used by
|
cannam@86
|
3537 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
cannam@86
|
3538 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
|
cannam@86
|
3539 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
|
cannam@86
|
3540 [AC_LANG_PUSH(C++)
|
cannam@86
|
3541 AC_REQUIRE([AC_PROG_CXX])
|
cannam@86
|
3542 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
|
cannam@86
|
3543
|
cannam@86
|
3544 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@86
|
3545 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
|
cannam@86
|
3546 _LT_AC_TAGVAR(always_export_symbols, $1)=no
|
cannam@86
|
3547 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
|
cannam@86
|
3548 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
|
cannam@86
|
3549 _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
cannam@86
|
3550 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
cannam@86
|
3551 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
cannam@86
|
3552 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
cannam@86
|
3553 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
|
cannam@86
|
3554 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
|
cannam@86
|
3555 _LT_AC_TAGVAR(module_cmds, $1)=
|
cannam@86
|
3556 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
|
cannam@86
|
3557 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
|
cannam@86
|
3558 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
cannam@86
|
3559 _LT_AC_TAGVAR(no_undefined_flag, $1)=
|
cannam@86
|
3560 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
cannam@86
|
3561 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
cannam@86
|
3562
|
cannam@86
|
3563 # Dependencies to place before and after the object being linked:
|
cannam@86
|
3564 _LT_AC_TAGVAR(predep_objects, $1)=
|
cannam@86
|
3565 _LT_AC_TAGVAR(postdep_objects, $1)=
|
cannam@86
|
3566 _LT_AC_TAGVAR(predeps, $1)=
|
cannam@86
|
3567 _LT_AC_TAGVAR(postdeps, $1)=
|
cannam@86
|
3568 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
|
cannam@86
|
3569
|
cannam@86
|
3570 # Source file extension for C++ test sources.
|
cannam@86
|
3571 ac_ext=cc
|
cannam@86
|
3572
|
cannam@86
|
3573 # Object file extension for compiled C++ test sources.
|
cannam@86
|
3574 objext=o
|
cannam@86
|
3575 _LT_AC_TAGVAR(objext, $1)=$objext
|
cannam@86
|
3576
|
cannam@86
|
3577 # Code to be used in simple compile tests
|
cannam@86
|
3578 lt_simple_compile_test_code="int some_variable = 0;\n"
|
cannam@86
|
3579
|
cannam@86
|
3580 # Code to be used in simple link tests
|
cannam@86
|
3581 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
|
cannam@86
|
3582
|
cannam@86
|
3583 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
cannam@86
|
3584 _LT_AC_SYS_COMPILER
|
cannam@86
|
3585
|
cannam@86
|
3586 # save warnings/boilerplate of simple test code
|
cannam@86
|
3587 _LT_COMPILER_BOILERPLATE
|
cannam@86
|
3588 _LT_LINKER_BOILERPLATE
|
cannam@86
|
3589
|
cannam@86
|
3590 # Allow CC to be a program name with arguments.
|
cannam@86
|
3591 lt_save_CC=$CC
|
cannam@86
|
3592 lt_save_LD=$LD
|
cannam@86
|
3593 lt_save_GCC=$GCC
|
cannam@86
|
3594 GCC=$GXX
|
cannam@86
|
3595 lt_save_with_gnu_ld=$with_gnu_ld
|
cannam@86
|
3596 lt_save_path_LD=$lt_cv_path_LD
|
cannam@86
|
3597 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
|
cannam@86
|
3598 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
|
cannam@86
|
3599 else
|
cannam@86
|
3600 unset lt_cv_prog_gnu_ld
|
cannam@86
|
3601 fi
|
cannam@86
|
3602 if test -n "${lt_cv_path_LDCXX+set}"; then
|
cannam@86
|
3603 lt_cv_path_LD=$lt_cv_path_LDCXX
|
cannam@86
|
3604 else
|
cannam@86
|
3605 unset lt_cv_path_LD
|
cannam@86
|
3606 fi
|
cannam@86
|
3607 test -z "${LDCXX+set}" || LD=$LDCXX
|
cannam@86
|
3608 CC=${CXX-"c++"}
|
cannam@86
|
3609 compiler=$CC
|
cannam@86
|
3610 _LT_AC_TAGVAR(compiler, $1)=$CC
|
cannam@86
|
3611 _LT_CC_BASENAME([$compiler])
|
cannam@86
|
3612
|
cannam@86
|
3613 # We don't want -fno-exception wen compiling C++ code, so set the
|
cannam@86
|
3614 # no_builtin_flag separately
|
cannam@86
|
3615 if test "$GXX" = yes; then
|
cannam@86
|
3616 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
|
cannam@86
|
3617 else
|
cannam@86
|
3618 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
|
cannam@86
|
3619 fi
|
cannam@86
|
3620
|
cannam@86
|
3621 if test "$GXX" = yes; then
|
cannam@86
|
3622 # Set up default GNU C++ configuration
|
cannam@86
|
3623
|
cannam@86
|
3624 AC_PROG_LD
|
cannam@86
|
3625
|
cannam@86
|
3626 # Check if GNU C++ uses GNU ld as the underlying linker, since the
|
cannam@86
|
3627 # archiving commands below assume that GNU ld is being used.
|
cannam@86
|
3628 if test "$with_gnu_ld" = yes; then
|
cannam@86
|
3629 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
3630 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@86
|
3631
|
cannam@86
|
3632 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
|
cannam@86
|
3633 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
cannam@86
|
3634
|
cannam@86
|
3635 # If archive_cmds runs LD, not CC, wlarc should be empty
|
cannam@86
|
3636 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
|
cannam@86
|
3637 # investigate it a little bit more. (MM)
|
cannam@86
|
3638 wlarc='${wl}'
|
cannam@86
|
3639
|
cannam@86
|
3640 # ancient GNU ld didn't support --whole-archive et. al.
|
cannam@86
|
3641 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
|
cannam@86
|
3642 grep 'no-whole-archive' > /dev/null; then
|
cannam@86
|
3643 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
cannam@86
|
3644 else
|
cannam@86
|
3645 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
cannam@86
|
3646 fi
|
cannam@86
|
3647 else
|
cannam@86
|
3648 with_gnu_ld=no
|
cannam@86
|
3649 wlarc=
|
cannam@86
|
3650
|
cannam@86
|
3651 # A generic and very simple default shared library creation
|
cannam@86
|
3652 # command for GNU C++ for the case where it uses the native
|
cannam@86
|
3653 # linker, instead of GNU ld. If possible, this setting should
|
cannam@86
|
3654 # overridden to take advantage of the native linker features on
|
cannam@86
|
3655 # the platform it is being used on.
|
cannam@86
|
3656 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
cannam@86
|
3657 fi
|
cannam@86
|
3658
|
cannam@86
|
3659 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
3660 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
3661 # linking a shared library.
|
cannam@86
|
3662 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
cannam@86
|
3663
|
cannam@86
|
3664 else
|
cannam@86
|
3665 GXX=no
|
cannam@86
|
3666 with_gnu_ld=no
|
cannam@86
|
3667 wlarc=
|
cannam@86
|
3668 fi
|
cannam@86
|
3669
|
cannam@86
|
3670 # PORTME: fill in a description of your system's C++ link characteristics
|
cannam@86
|
3671 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
cannam@86
|
3672 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
cannam@86
|
3673 case $host_os in
|
cannam@86
|
3674 aix3*)
|
cannam@86
|
3675 # FIXME: insert proper C++ library support
|
cannam@86
|
3676 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
3677 ;;
|
cannam@86
|
3678 aix4* | aix5*)
|
cannam@86
|
3679 if test "$host_cpu" = ia64; then
|
cannam@86
|
3680 # On IA64, the linker does run time linking by default, so we don't
|
cannam@86
|
3681 # have to do anything special.
|
cannam@86
|
3682 aix_use_runtimelinking=no
|
cannam@86
|
3683 exp_sym_flag='-Bexport'
|
cannam@86
|
3684 no_entry_flag=""
|
cannam@86
|
3685 else
|
cannam@86
|
3686 aix_use_runtimelinking=no
|
cannam@86
|
3687
|
cannam@86
|
3688 # Test if we are trying to use run time linking or normal
|
cannam@86
|
3689 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
cannam@86
|
3690 # need to do runtime linking.
|
cannam@86
|
3691 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
|
cannam@86
|
3692 for ld_flag in $LDFLAGS; do
|
cannam@86
|
3693 case $ld_flag in
|
cannam@86
|
3694 *-brtl*)
|
cannam@86
|
3695 aix_use_runtimelinking=yes
|
cannam@86
|
3696 break
|
cannam@86
|
3697 ;;
|
cannam@86
|
3698 esac
|
cannam@86
|
3699 done
|
cannam@86
|
3700 esac
|
cannam@86
|
3701
|
cannam@86
|
3702 exp_sym_flag='-bexport'
|
cannam@86
|
3703 no_entry_flag='-bnoentry'
|
cannam@86
|
3704 fi
|
cannam@86
|
3705
|
cannam@86
|
3706 # When large executables or shared objects are built, AIX ld can
|
cannam@86
|
3707 # have problems creating the table of contents. If linking a library
|
cannam@86
|
3708 # or program results in "error TOC overflow" add -mminimal-toc to
|
cannam@86
|
3709 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
cannam@86
|
3710 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
cannam@86
|
3711
|
cannam@86
|
3712 _LT_AC_TAGVAR(archive_cmds, $1)=''
|
cannam@86
|
3713 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
cannam@86
|
3714 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
|
cannam@86
|
3715 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
cannam@86
|
3716
|
cannam@86
|
3717 if test "$GXX" = yes; then
|
cannam@86
|
3718 case $host_os in aix4.[[012]]|aix4.[[012]].*)
|
cannam@86
|
3719 # We only want to do this on AIX 4.2 and lower, the check
|
cannam@86
|
3720 # below for broken collect2 doesn't work under 4.3+
|
cannam@86
|
3721 collect2name=`${CC} -print-prog-name=collect2`
|
cannam@86
|
3722 if test -f "$collect2name" && \
|
cannam@86
|
3723 strings "$collect2name" | grep resolve_lib_name >/dev/null
|
cannam@86
|
3724 then
|
cannam@86
|
3725 # We have reworked collect2
|
cannam@86
|
3726 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
cannam@86
|
3727 else
|
cannam@86
|
3728 # We have old collect2
|
cannam@86
|
3729 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
|
cannam@86
|
3730 # It fails to find uninstalled libraries when the uninstalled
|
cannam@86
|
3731 # path is not listed in the libpath. Setting hardcode_minus_L
|
cannam@86
|
3732 # to unsupported forces relinking
|
cannam@86
|
3733 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@86
|
3734 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@86
|
3735 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
cannam@86
|
3736 fi
|
cannam@86
|
3737 esac
|
cannam@86
|
3738 shared_flag='-shared'
|
cannam@86
|
3739 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
3740 shared_flag="$shared_flag "'${wl}-G'
|
cannam@86
|
3741 fi
|
cannam@86
|
3742 else
|
cannam@86
|
3743 # not using gcc
|
cannam@86
|
3744 if test "$host_cpu" = ia64; then
|
cannam@86
|
3745 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
cannam@86
|
3746 # chokes on -Wl,-G. The following line is correct:
|
cannam@86
|
3747 shared_flag='-G'
|
cannam@86
|
3748 else
|
cannam@86
|
3749 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
3750 shared_flag='${wl}-G'
|
cannam@86
|
3751 else
|
cannam@86
|
3752 shared_flag='${wl}-bM:SRE'
|
cannam@86
|
3753 fi
|
cannam@86
|
3754 fi
|
cannam@86
|
3755 fi
|
cannam@86
|
3756
|
cannam@86
|
3757 # It seems that -bexpall does not export symbols beginning with
|
cannam@86
|
3758 # underscore (_), so it is better to generate a list of symbols to export.
|
cannam@86
|
3759 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
cannam@86
|
3760 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
3761 # Warning - without using the other runtime loading flags (-brtl),
|
cannam@86
|
3762 # -berok will link without error, but may produce a broken library.
|
cannam@86
|
3763 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
|
cannam@86
|
3764 # Determine the default libpath from the value encoded in an empty executable.
|
cannam@86
|
3765 _LT_AC_SYS_LIBPATH_AIX
|
cannam@86
|
3766 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
cannam@86
|
3767
|
cannam@86
|
3768 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
cannam@86
|
3769 else
|
cannam@86
|
3770 if test "$host_cpu" = ia64; then
|
cannam@86
|
3771 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
|
cannam@86
|
3772 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
|
cannam@86
|
3773 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
|
cannam@86
|
3774 else
|
cannam@86
|
3775 # Determine the default libpath from the value encoded in an empty executable.
|
cannam@86
|
3776 _LT_AC_SYS_LIBPATH_AIX
|
cannam@86
|
3777 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
cannam@86
|
3778 # Warning - without using the other run time loading flags,
|
cannam@86
|
3779 # -berok will link without error, but may produce a broken library.
|
cannam@86
|
3780 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
|
cannam@86
|
3781 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
|
cannam@86
|
3782 # -bexpall does not export symbols beginning with underscore (_)
|
cannam@86
|
3783 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
cannam@86
|
3784 # Exported symbols can be pulled into shared objects from archives
|
cannam@86
|
3785 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
|
cannam@86
|
3786 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
cannam@86
|
3787 # This is similar to how AIX traditionally builds it's shared libraries.
|
cannam@86
|
3788 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
cannam@86
|
3789 fi
|
cannam@86
|
3790 fi
|
cannam@86
|
3791 ;;
|
cannam@86
|
3792 chorus*)
|
cannam@86
|
3793 case $cc_basename in
|
cannam@86
|
3794 *)
|
cannam@86
|
3795 # FIXME: insert proper C++ library support
|
cannam@86
|
3796 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
3797 ;;
|
cannam@86
|
3798 esac
|
cannam@86
|
3799 ;;
|
cannam@86
|
3800
|
cannam@86
|
3801
|
cannam@86
|
3802 cygwin* | mingw* | pw32*)
|
cannam@86
|
3803 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
cannam@86
|
3804 # as there is no search path for DLLs.
|
cannam@86
|
3805 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@86
|
3806 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
cannam@86
|
3807 _LT_AC_TAGVAR(always_export_symbols, $1)=no
|
cannam@86
|
3808 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
cannam@86
|
3809
|
cannam@86
|
3810 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
cannam@86
|
3811 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
cannam@86
|
3812 # If the export-symbols file already is a .def file (1st line
|
cannam@86
|
3813 # is EXPORTS), use it as is; otherwise, prepend...
|
cannam@86
|
3814 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
cannam@86
|
3815 cp $export_symbols $output_objdir/$soname.def;
|
cannam@86
|
3816 else
|
cannam@86
|
3817 echo EXPORTS > $output_objdir/$soname.def;
|
cannam@86
|
3818 cat $export_symbols >> $output_objdir/$soname.def;
|
cannam@86
|
3819 fi~
|
cannam@86
|
3820 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
cannam@86
|
3821 else
|
cannam@86
|
3822 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
3823 fi
|
cannam@86
|
3824 ;;
|
cannam@86
|
3825 darwin* | rhapsody*)
|
cannam@86
|
3826 case "$host_os" in
|
cannam@86
|
3827 rhapsody* | darwin1.[[012]])
|
cannam@86
|
3828 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
|
cannam@86
|
3829 ;;
|
cannam@86
|
3830 *) # Darwin 1.3 on
|
cannam@86
|
3831 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
cannam@86
|
3832 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
cannam@86
|
3833 else
|
cannam@86
|
3834 case ${MACOSX_DEPLOYMENT_TARGET} in
|
cannam@86
|
3835 10.[[012]])
|
cannam@86
|
3836 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
cannam@86
|
3837 ;;
|
cannam@86
|
3838 10.*)
|
cannam@86
|
3839 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
|
cannam@86
|
3840 ;;
|
cannam@86
|
3841 esac
|
cannam@86
|
3842 fi
|
cannam@86
|
3843 ;;
|
cannam@86
|
3844 esac
|
cannam@86
|
3845 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@86
|
3846 _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
cannam@86
|
3847 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
|
cannam@86
|
3848 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
cannam@86
|
3849 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
|
cannam@86
|
3850 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
cannam@86
|
3851
|
cannam@86
|
3852 if test "$GXX" = yes ; then
|
cannam@86
|
3853 lt_int_apple_cc_single_mod=no
|
cannam@86
|
3854 output_verbose_link_cmd='echo'
|
cannam@86
|
3855 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
|
cannam@86
|
3856 lt_int_apple_cc_single_mod=yes
|
cannam@86
|
3857 fi
|
cannam@86
|
3858 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
cannam@86
|
3859 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
cannam@86
|
3860 else
|
cannam@86
|
3861 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
cannam@86
|
3862 fi
|
cannam@86
|
3863 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
cannam@86
|
3864 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
cannam@86
|
3865 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
cannam@86
|
3866 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
3867 else
|
cannam@86
|
3868 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
3869 fi
|
cannam@86
|
3870 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
3871 else
|
cannam@86
|
3872 case $cc_basename in
|
cannam@86
|
3873 xlc*)
|
cannam@86
|
3874 output_verbose_link_cmd='echo'
|
cannam@86
|
3875 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
|
cannam@86
|
3876 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
cannam@86
|
3877 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
cannam@86
|
3878 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
3879 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
3880 ;;
|
cannam@86
|
3881 *)
|
cannam@86
|
3882 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
3883 ;;
|
cannam@86
|
3884 esac
|
cannam@86
|
3885 fi
|
cannam@86
|
3886 ;;
|
cannam@86
|
3887
|
cannam@86
|
3888 dgux*)
|
cannam@86
|
3889 case $cc_basename in
|
cannam@86
|
3890 ec++*)
|
cannam@86
|
3891 # FIXME: insert proper C++ library support
|
cannam@86
|
3892 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
3893 ;;
|
cannam@86
|
3894 ghcx*)
|
cannam@86
|
3895 # Green Hills C++ Compiler
|
cannam@86
|
3896 # FIXME: insert proper C++ library support
|
cannam@86
|
3897 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
3898 ;;
|
cannam@86
|
3899 *)
|
cannam@86
|
3900 # FIXME: insert proper C++ library support
|
cannam@86
|
3901 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
3902 ;;
|
cannam@86
|
3903 esac
|
cannam@86
|
3904 ;;
|
cannam@86
|
3905 freebsd[[12]]*)
|
cannam@86
|
3906 # C++ shared libraries reported to be fairly broken before switch to ELF
|
cannam@86
|
3907 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
3908 ;;
|
cannam@86
|
3909 freebsd-elf*)
|
cannam@86
|
3910 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@86
|
3911 ;;
|
cannam@86
|
3912 freebsd* | kfreebsd*-gnu | dragonfly*)
|
cannam@86
|
3913 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
|
cannam@86
|
3914 # conventions
|
cannam@86
|
3915 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
cannam@86
|
3916 ;;
|
cannam@86
|
3917 gnu*)
|
cannam@86
|
3918 ;;
|
cannam@86
|
3919 hpux9*)
|
cannam@86
|
3920 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
cannam@86
|
3921 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@86
|
3922 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
cannam@86
|
3923 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
cannam@86
|
3924 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
cannam@86
|
3925 # but as the default
|
cannam@86
|
3926 # location of the library.
|
cannam@86
|
3927
|
cannam@86
|
3928 case $cc_basename in
|
cannam@86
|
3929 CC*)
|
cannam@86
|
3930 # FIXME: insert proper C++ library support
|
cannam@86
|
3931 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
3932 ;;
|
cannam@86
|
3933 aCC*)
|
cannam@86
|
3934 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
cannam@86
|
3935 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
3936 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
3937 # linking a shared library.
|
cannam@86
|
3938 #
|
cannam@86
|
3939 # There doesn't appear to be a way to prevent this compiler from
|
cannam@86
|
3940 # explicitly linking system object files so we need to strip them
|
cannam@86
|
3941 # from the output so that they don't get included in the library
|
cannam@86
|
3942 # dependencies.
|
cannam@86
|
3943 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
cannam@86
|
3944 ;;
|
cannam@86
|
3945 *)
|
cannam@86
|
3946 if test "$GXX" = yes; then
|
cannam@86
|
3947 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
cannam@86
|
3948 else
|
cannam@86
|
3949 # FIXME: insert proper C++ library support
|
cannam@86
|
3950 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
3951 fi
|
cannam@86
|
3952 ;;
|
cannam@86
|
3953 esac
|
cannam@86
|
3954 ;;
|
cannam@86
|
3955 hpux10*|hpux11*)
|
cannam@86
|
3956 if test $with_gnu_ld = no; then
|
cannam@86
|
3957 case "$host_cpu" in
|
cannam@86
|
3958 hppa*64*)
|
cannam@86
|
3959 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
cannam@86
|
3960 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
|
cannam@86
|
3961 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@86
|
3962 ;;
|
cannam@86
|
3963 ia64*)
|
cannam@86
|
3964 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@86
|
3965 ;;
|
cannam@86
|
3966 *)
|
cannam@86
|
3967 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
cannam@86
|
3968 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@86
|
3969 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
cannam@86
|
3970 ;;
|
cannam@86
|
3971 esac
|
cannam@86
|
3972 fi
|
cannam@86
|
3973 case "$host_cpu" in
|
cannam@86
|
3974 hppa*64*)
|
cannam@86
|
3975 _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
cannam@86
|
3976 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
3977 ;;
|
cannam@86
|
3978 ia64*)
|
cannam@86
|
3979 _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
cannam@86
|
3980 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
3981 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
cannam@86
|
3982 # but as the default
|
cannam@86
|
3983 # location of the library.
|
cannam@86
|
3984 ;;
|
cannam@86
|
3985 *)
|
cannam@86
|
3986 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
cannam@86
|
3987 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
cannam@86
|
3988 # but as the default
|
cannam@86
|
3989 # location of the library.
|
cannam@86
|
3990 ;;
|
cannam@86
|
3991 esac
|
cannam@86
|
3992
|
cannam@86
|
3993 case $cc_basename in
|
cannam@86
|
3994 CC*)
|
cannam@86
|
3995 # FIXME: insert proper C++ library support
|
cannam@86
|
3996 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
3997 ;;
|
cannam@86
|
3998 aCC*)
|
cannam@86
|
3999 case "$host_cpu" in
|
cannam@86
|
4000 hppa*64*|ia64*)
|
cannam@86
|
4001 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
|
cannam@86
|
4002 ;;
|
cannam@86
|
4003 *)
|
cannam@86
|
4004 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
cannam@86
|
4005 ;;
|
cannam@86
|
4006 esac
|
cannam@86
|
4007 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
4008 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
4009 # linking a shared library.
|
cannam@86
|
4010 #
|
cannam@86
|
4011 # There doesn't appear to be a way to prevent this compiler from
|
cannam@86
|
4012 # explicitly linking system object files so we need to strip them
|
cannam@86
|
4013 # from the output so that they don't get included in the library
|
cannam@86
|
4014 # dependencies.
|
cannam@86
|
4015 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
cannam@86
|
4016 ;;
|
cannam@86
|
4017 *)
|
cannam@86
|
4018 if test "$GXX" = yes; then
|
cannam@86
|
4019 if test $with_gnu_ld = no; then
|
cannam@86
|
4020 case "$host_cpu" in
|
cannam@86
|
4021 ia64*|hppa*64*)
|
cannam@86
|
4022 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
|
cannam@86
|
4023 ;;
|
cannam@86
|
4024 *)
|
cannam@86
|
4025 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
cannam@86
|
4026 ;;
|
cannam@86
|
4027 esac
|
cannam@86
|
4028 fi
|
cannam@86
|
4029 else
|
cannam@86
|
4030 # FIXME: insert proper C++ library support
|
cannam@86
|
4031 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
4032 fi
|
cannam@86
|
4033 ;;
|
cannam@86
|
4034 esac
|
cannam@86
|
4035 ;;
|
cannam@86
|
4036 irix5* | irix6*)
|
cannam@86
|
4037 case $cc_basename in
|
cannam@86
|
4038 CC*)
|
cannam@86
|
4039 # SGI C++
|
cannam@86
|
4040 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@86
|
4041
|
cannam@86
|
4042 # Archives containing C++ object files must be created using
|
cannam@86
|
4043 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
|
cannam@86
|
4044 # necessary to make sure instantiated templates are included
|
cannam@86
|
4045 # in the archive.
|
cannam@86
|
4046 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
|
cannam@86
|
4047 ;;
|
cannam@86
|
4048 *)
|
cannam@86
|
4049 if test "$GXX" = yes; then
|
cannam@86
|
4050 if test "$with_gnu_ld" = no; then
|
cannam@86
|
4051 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@86
|
4052 else
|
cannam@86
|
4053 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
|
cannam@86
|
4054 fi
|
cannam@86
|
4055 fi
|
cannam@86
|
4056 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
cannam@86
|
4057 ;;
|
cannam@86
|
4058 esac
|
cannam@86
|
4059 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
4060 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@86
|
4061 ;;
|
cannam@86
|
4062 linux*)
|
cannam@86
|
4063 case $cc_basename in
|
cannam@86
|
4064 KCC*)
|
cannam@86
|
4065 # Kuck and Associates, Inc. (KAI) C++ Compiler
|
cannam@86
|
4066
|
cannam@86
|
4067 # KCC will only create a shared library if the output file
|
cannam@86
|
4068 # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
cannam@86
|
4069 # to its proper name (with version) after linking.
|
cannam@86
|
4070 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
|
cannam@86
|
4071 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
|
cannam@86
|
4072 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
4073 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
4074 # linking a shared library.
|
cannam@86
|
4075 #
|
cannam@86
|
4076 # There doesn't appear to be a way to prevent this compiler from
|
cannam@86
|
4077 # explicitly linking system object files so we need to strip them
|
cannam@86
|
4078 # from the output so that they don't get included in the library
|
cannam@86
|
4079 # dependencies.
|
cannam@86
|
4080 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
cannam@86
|
4081
|
cannam@86
|
4082 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
|
cannam@86
|
4083 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
cannam@86
|
4084
|
cannam@86
|
4085 # Archives containing C++ object files must be created using
|
cannam@86
|
4086 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
cannam@86
|
4087 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
|
cannam@86
|
4088 ;;
|
cannam@86
|
4089 icpc*)
|
cannam@86
|
4090 # Intel C++
|
cannam@86
|
4091 with_gnu_ld=yes
|
cannam@86
|
4092 # version 8.0 and above of icpc choke on multiply defined symbols
|
cannam@86
|
4093 # if we add $predep_objects and $postdep_objects, however 7.1 and
|
cannam@86
|
4094 # earlier do not add the objects themselves.
|
cannam@86
|
4095 case `$CC -V 2>&1` in
|
cannam@86
|
4096 *"Version 7."*)
|
cannam@86
|
4097 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
4098 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@86
|
4099 ;;
|
cannam@86
|
4100 *) # Version 8.0 or newer
|
cannam@86
|
4101 tmp_idyn=
|
cannam@86
|
4102 case $host_cpu in
|
cannam@86
|
4103 ia64*) tmp_idyn=' -i_dynamic';;
|
cannam@86
|
4104 esac
|
cannam@86
|
4105 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
4106 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@86
|
4107 ;;
|
cannam@86
|
4108 esac
|
cannam@86
|
4109 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@86
|
4110 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
cannam@86
|
4111 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
cannam@86
|
4112 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
cannam@86
|
4113 ;;
|
cannam@86
|
4114 pgCC*)
|
cannam@86
|
4115 # Portland Group C++ compiler
|
cannam@86
|
4116 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
cannam@86
|
4117 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
|
cannam@86
|
4118
|
cannam@86
|
4119 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
|
cannam@86
|
4120 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
cannam@86
|
4121 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
|
cannam@86
|
4122 ;;
|
cannam@86
|
4123 cxx*)
|
cannam@86
|
4124 # Compaq C++
|
cannam@86
|
4125 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
4126 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
|
cannam@86
|
4127
|
cannam@86
|
4128 runpath_var=LD_RUN_PATH
|
cannam@86
|
4129 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
cannam@86
|
4130 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@86
|
4131
|
cannam@86
|
4132 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
4133 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
4134 # linking a shared library.
|
cannam@86
|
4135 #
|
cannam@86
|
4136 # There doesn't appear to be a way to prevent this compiler from
|
cannam@86
|
4137 # explicitly linking system object files so we need to strip them
|
cannam@86
|
4138 # from the output so that they don't get included in the library
|
cannam@86
|
4139 # dependencies.
|
cannam@86
|
4140 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
cannam@86
|
4141 ;;
|
cannam@86
|
4142 esac
|
cannam@86
|
4143 ;;
|
cannam@86
|
4144 lynxos*)
|
cannam@86
|
4145 # FIXME: insert proper C++ library support
|
cannam@86
|
4146 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
4147 ;;
|
cannam@86
|
4148 m88k*)
|
cannam@86
|
4149 # FIXME: insert proper C++ library support
|
cannam@86
|
4150 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
4151 ;;
|
cannam@86
|
4152 mvs*)
|
cannam@86
|
4153 case $cc_basename in
|
cannam@86
|
4154 cxx*)
|
cannam@86
|
4155 # FIXME: insert proper C++ library support
|
cannam@86
|
4156 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
4157 ;;
|
cannam@86
|
4158 *)
|
cannam@86
|
4159 # FIXME: insert proper C++ library support
|
cannam@86
|
4160 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
4161 ;;
|
cannam@86
|
4162 esac
|
cannam@86
|
4163 ;;
|
cannam@86
|
4164 netbsd*)
|
cannam@86
|
4165 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
cannam@86
|
4166 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
|
cannam@86
|
4167 wlarc=
|
cannam@86
|
4168 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
cannam@86
|
4169 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
cannam@86
|
4170 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
4171 fi
|
cannam@86
|
4172 # Workaround some broken pre-1.5 toolchains
|
cannam@86
|
4173 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
|
cannam@86
|
4174 ;;
|
cannam@86
|
4175 openbsd2*)
|
cannam@86
|
4176 # C++ shared libraries are fairly broken
|
cannam@86
|
4177 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
4178 ;;
|
cannam@86
|
4179 openbsd*)
|
cannam@86
|
4180 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
cannam@86
|
4181 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
4182 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
cannam@86
|
4183 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
cannam@86
|
4184 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
cannam@86
|
4185 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
|
cannam@86
|
4186 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
cannam@86
|
4187 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
cannam@86
|
4188 fi
|
cannam@86
|
4189 output_verbose_link_cmd='echo'
|
cannam@86
|
4190 ;;
|
cannam@86
|
4191 osf3*)
|
cannam@86
|
4192 case $cc_basename in
|
cannam@86
|
4193 KCC*)
|
cannam@86
|
4194 # Kuck and Associates, Inc. (KAI) C++ Compiler
|
cannam@86
|
4195
|
cannam@86
|
4196 # KCC will only create a shared library if the output file
|
cannam@86
|
4197 # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
cannam@86
|
4198 # to its proper name (with version) after linking.
|
cannam@86
|
4199 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
|
cannam@86
|
4200
|
cannam@86
|
4201 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
cannam@86
|
4202 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@86
|
4203
|
cannam@86
|
4204 # Archives containing C++ object files must be created using
|
cannam@86
|
4205 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
cannam@86
|
4206 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
|
cannam@86
|
4207
|
cannam@86
|
4208 ;;
|
cannam@86
|
4209 RCC*)
|
cannam@86
|
4210 # Rational C++ 2.4.1
|
cannam@86
|
4211 # FIXME: insert proper C++ library support
|
cannam@86
|
4212 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
4213 ;;
|
cannam@86
|
4214 cxx*)
|
cannam@86
|
4215 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
cannam@86
|
4216 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@86
|
4217
|
cannam@86
|
4218 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
4219 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@86
|
4220
|
cannam@86
|
4221 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
4222 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
4223 # linking a shared library.
|
cannam@86
|
4224 #
|
cannam@86
|
4225 # There doesn't appear to be a way to prevent this compiler from
|
cannam@86
|
4226 # explicitly linking system object files so we need to strip them
|
cannam@86
|
4227 # from the output so that they don't get included in the library
|
cannam@86
|
4228 # dependencies.
|
cannam@86
|
4229 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
cannam@86
|
4230 ;;
|
cannam@86
|
4231 *)
|
cannam@86
|
4232 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
cannam@86
|
4233 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
cannam@86
|
4234 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@86
|
4235
|
cannam@86
|
4236 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
4237 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@86
|
4238
|
cannam@86
|
4239 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
4240 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
4241 # linking a shared library.
|
cannam@86
|
4242 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
cannam@86
|
4243
|
cannam@86
|
4244 else
|
cannam@86
|
4245 # FIXME: insert proper C++ library support
|
cannam@86
|
4246 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
4247 fi
|
cannam@86
|
4248 ;;
|
cannam@86
|
4249 esac
|
cannam@86
|
4250 ;;
|
cannam@86
|
4251 osf4* | osf5*)
|
cannam@86
|
4252 case $cc_basename in
|
cannam@86
|
4253 KCC*)
|
cannam@86
|
4254 # Kuck and Associates, Inc. (KAI) C++ Compiler
|
cannam@86
|
4255
|
cannam@86
|
4256 # KCC will only create a shared library if the output file
|
cannam@86
|
4257 # ends with ".so" (or ".sl" for HP-UX), so rename the library
|
cannam@86
|
4258 # to its proper name (with version) after linking.
|
cannam@86
|
4259 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
|
cannam@86
|
4260
|
cannam@86
|
4261 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
cannam@86
|
4262 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@86
|
4263
|
cannam@86
|
4264 # Archives containing C++ object files must be created using
|
cannam@86
|
4265 # the KAI C++ compiler.
|
cannam@86
|
4266 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
|
cannam@86
|
4267 ;;
|
cannam@86
|
4268 RCC*)
|
cannam@86
|
4269 # Rational C++ 2.4.1
|
cannam@86
|
4270 # FIXME: insert proper C++ library support
|
cannam@86
|
4271 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
4272 ;;
|
cannam@86
|
4273 cxx*)
|
cannam@86
|
4274 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
cannam@86
|
4275 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@86
|
4276 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
|
cannam@86
|
4277 echo "-hidden">> $lib.exp~
|
cannam@86
|
4278 $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~
|
cannam@86
|
4279 $rm $lib.exp'
|
cannam@86
|
4280
|
cannam@86
|
4281 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
cannam@86
|
4282 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@86
|
4283
|
cannam@86
|
4284 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
4285 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
4286 # linking a shared library.
|
cannam@86
|
4287 #
|
cannam@86
|
4288 # There doesn't appear to be a way to prevent this compiler from
|
cannam@86
|
4289 # explicitly linking system object files so we need to strip them
|
cannam@86
|
4290 # from the output so that they don't get included in the library
|
cannam@86
|
4291 # dependencies.
|
cannam@86
|
4292 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
cannam@86
|
4293 ;;
|
cannam@86
|
4294 *)
|
cannam@86
|
4295 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
cannam@86
|
4296 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
cannam@86
|
4297 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@86
|
4298
|
cannam@86
|
4299 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
4300 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@86
|
4301
|
cannam@86
|
4302 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
4303 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
4304 # linking a shared library.
|
cannam@86
|
4305 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
|
cannam@86
|
4306
|
cannam@86
|
4307 else
|
cannam@86
|
4308 # FIXME: insert proper C++ library support
|
cannam@86
|
4309 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
4310 fi
|
cannam@86
|
4311 ;;
|
cannam@86
|
4312 esac
|
cannam@86
|
4313 ;;
|
cannam@86
|
4314 psos*)
|
cannam@86
|
4315 # FIXME: insert proper C++ library support
|
cannam@86
|
4316 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
4317 ;;
|
cannam@86
|
4318 sco*)
|
cannam@86
|
4319 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@86
|
4320 case $cc_basename in
|
cannam@86
|
4321 CC*)
|
cannam@86
|
4322 # FIXME: insert proper C++ library support
|
cannam@86
|
4323 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
4324 ;;
|
cannam@86
|
4325 *)
|
cannam@86
|
4326 # FIXME: insert proper C++ library support
|
cannam@86
|
4327 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
4328 ;;
|
cannam@86
|
4329 esac
|
cannam@86
|
4330 ;;
|
cannam@86
|
4331 sunos4*)
|
cannam@86
|
4332 case $cc_basename in
|
cannam@86
|
4333 CC*)
|
cannam@86
|
4334 # Sun C++ 4.x
|
cannam@86
|
4335 # FIXME: insert proper C++ library support
|
cannam@86
|
4336 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
4337 ;;
|
cannam@86
|
4338 lcc*)
|
cannam@86
|
4339 # Lucid
|
cannam@86
|
4340 # FIXME: insert proper C++ library support
|
cannam@86
|
4341 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
4342 ;;
|
cannam@86
|
4343 *)
|
cannam@86
|
4344 # FIXME: insert proper C++ library support
|
cannam@86
|
4345 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
4346 ;;
|
cannam@86
|
4347 esac
|
cannam@86
|
4348 ;;
|
cannam@86
|
4349 solaris*)
|
cannam@86
|
4350 case $cc_basename in
|
cannam@86
|
4351 CC*)
|
cannam@86
|
4352 # Sun C++ 4.2, 5.x and Centerline C++
|
cannam@86
|
4353 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
|
cannam@86
|
4354 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
cannam@86
|
4355 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
cannam@86
|
4356 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
cannam@86
|
4357
|
cannam@86
|
4358 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
cannam@86
|
4359 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
4360 case $host_os in
|
cannam@86
|
4361 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
cannam@86
|
4362 *)
|
cannam@86
|
4363 # The C++ compiler is used as linker so we must use $wl
|
cannam@86
|
4364 # flag to pass the commands to the underlying system
|
cannam@86
|
4365 # linker. We must also pass each convience library through
|
cannam@86
|
4366 # to the system linker between allextract/defaultextract.
|
cannam@86
|
4367 # The C++ compiler will combine linker options so we
|
cannam@86
|
4368 # cannot just pass the convience library names through
|
cannam@86
|
4369 # without $wl.
|
cannam@86
|
4370 # Supported since Solaris 2.6 (maybe 2.5.1?)
|
cannam@86
|
4371 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
|
cannam@86
|
4372 ;;
|
cannam@86
|
4373 esac
|
cannam@86
|
4374 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
cannam@86
|
4375
|
cannam@86
|
4376 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
4377 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
4378 # linking a shared library.
|
cannam@86
|
4379 #
|
cannam@86
|
4380 # There doesn't appear to be a way to prevent this compiler from
|
cannam@86
|
4381 # explicitly linking system object files so we need to strip them
|
cannam@86
|
4382 # from the output so that they don't get included in the library
|
cannam@86
|
4383 # dependencies.
|
cannam@86
|
4384 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
cannam@86
|
4385
|
cannam@86
|
4386 # Archives containing C++ object files must be created using
|
cannam@86
|
4387 # "CC -xar", where "CC" is the Sun C++ compiler. This is
|
cannam@86
|
4388 # necessary to make sure instantiated templates are included
|
cannam@86
|
4389 # in the archive.
|
cannam@86
|
4390 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
|
cannam@86
|
4391 ;;
|
cannam@86
|
4392 gcx*)
|
cannam@86
|
4393 # Green Hills C++ Compiler
|
cannam@86
|
4394 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
cannam@86
|
4395
|
cannam@86
|
4396 # The C++ compiler must be used to create the archive.
|
cannam@86
|
4397 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
|
cannam@86
|
4398 ;;
|
cannam@86
|
4399 *)
|
cannam@86
|
4400 # GNU C++ compiler with Solaris linker
|
cannam@86
|
4401 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
cannam@86
|
4402 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
|
cannam@86
|
4403 if $CC --version | grep -v '^2\.7' > /dev/null; then
|
cannam@86
|
4404 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
cannam@86
|
4405 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
cannam@86
|
4406 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
cannam@86
|
4407
|
cannam@86
|
4408 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
4409 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
4410 # linking a shared library.
|
cannam@86
|
4411 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
|
cannam@86
|
4412 else
|
cannam@86
|
4413 # g++ 2.7 appears to require `-G' NOT `-shared' on this
|
cannam@86
|
4414 # platform.
|
cannam@86
|
4415 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
cannam@86
|
4416 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
cannam@86
|
4417 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
cannam@86
|
4418
|
cannam@86
|
4419 # Commands to make compiler produce verbose output that lists
|
cannam@86
|
4420 # what "hidden" libraries, object files and flags are used when
|
cannam@86
|
4421 # linking a shared library.
|
cannam@86
|
4422 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
|
cannam@86
|
4423 fi
|
cannam@86
|
4424
|
cannam@86
|
4425 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
|
cannam@86
|
4426 fi
|
cannam@86
|
4427 ;;
|
cannam@86
|
4428 esac
|
cannam@86
|
4429 ;;
|
cannam@86
|
4430 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
|
cannam@86
|
4431 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@86
|
4432 ;;
|
cannam@86
|
4433 tandem*)
|
cannam@86
|
4434 case $cc_basename in
|
cannam@86
|
4435 NCC*)
|
cannam@86
|
4436 # NonStop-UX NCC 3.20
|
cannam@86
|
4437 # FIXME: insert proper C++ library support
|
cannam@86
|
4438 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
4439 ;;
|
cannam@86
|
4440 *)
|
cannam@86
|
4441 # FIXME: insert proper C++ library support
|
cannam@86
|
4442 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
4443 ;;
|
cannam@86
|
4444 esac
|
cannam@86
|
4445 ;;
|
cannam@86
|
4446 vxworks*)
|
cannam@86
|
4447 # FIXME: insert proper C++ library support
|
cannam@86
|
4448 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
4449 ;;
|
cannam@86
|
4450 *)
|
cannam@86
|
4451 # FIXME: insert proper C++ library support
|
cannam@86
|
4452 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
4453 ;;
|
cannam@86
|
4454 esac
|
cannam@86
|
4455 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
|
cannam@86
|
4456 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
cannam@86
|
4457
|
cannam@86
|
4458 _LT_AC_TAGVAR(GCC, $1)="$GXX"
|
cannam@86
|
4459 _LT_AC_TAGVAR(LD, $1)="$LD"
|
cannam@86
|
4460
|
cannam@86
|
4461 AC_LIBTOOL_POSTDEP_PREDEP($1)
|
cannam@86
|
4462 AC_LIBTOOL_PROG_COMPILER_PIC($1)
|
cannam@86
|
4463 AC_LIBTOOL_PROG_CC_C_O($1)
|
cannam@86
|
4464 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
cannam@86
|
4465 AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
cannam@86
|
4466 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
cannam@86
|
4467 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
cannam@86
|
4468 AC_LIBTOOL_SYS_LIB_STRIP
|
cannam@86
|
4469 AC_LIBTOOL_DLOPEN_SELF($1)
|
cannam@86
|
4470
|
cannam@86
|
4471 AC_LIBTOOL_CONFIG($1)
|
cannam@86
|
4472
|
cannam@86
|
4473 AC_LANG_POP
|
cannam@86
|
4474 CC=$lt_save_CC
|
cannam@86
|
4475 LDCXX=$LD
|
cannam@86
|
4476 LD=$lt_save_LD
|
cannam@86
|
4477 GCC=$lt_save_GCC
|
cannam@86
|
4478 with_gnu_ldcxx=$with_gnu_ld
|
cannam@86
|
4479 with_gnu_ld=$lt_save_with_gnu_ld
|
cannam@86
|
4480 lt_cv_path_LDCXX=$lt_cv_path_LD
|
cannam@86
|
4481 lt_cv_path_LD=$lt_save_path_LD
|
cannam@86
|
4482 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
|
cannam@86
|
4483 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
|
cannam@86
|
4484 ])# AC_LIBTOOL_LANG_CXX_CONFIG
|
cannam@86
|
4485
|
cannam@86
|
4486 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
|
cannam@86
|
4487 # ------------------------
|
cannam@86
|
4488 # Figure out "hidden" library dependencies from verbose
|
cannam@86
|
4489 # compiler output when linking a shared library.
|
cannam@86
|
4490 # Parse the compiler output and extract the necessary
|
cannam@86
|
4491 # objects, libraries and library flags.
|
cannam@86
|
4492 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
|
cannam@86
|
4493 dnl we can't use the lt_simple_compile_test_code here,
|
cannam@86
|
4494 dnl because it contains code intended for an executable,
|
cannam@86
|
4495 dnl not a library. It's possible we should let each
|
cannam@86
|
4496 dnl tag define a new lt_????_link_test_code variable,
|
cannam@86
|
4497 dnl but it's only used here...
|
cannam@86
|
4498 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
|
cannam@86
|
4499 int a;
|
cannam@86
|
4500 void foo (void) { a = 0; }
|
cannam@86
|
4501 EOF
|
cannam@86
|
4502 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
|
cannam@86
|
4503 class Foo
|
cannam@86
|
4504 {
|
cannam@86
|
4505 public:
|
cannam@86
|
4506 Foo (void) { a = 0; }
|
cannam@86
|
4507 private:
|
cannam@86
|
4508 int a;
|
cannam@86
|
4509 };
|
cannam@86
|
4510 EOF
|
cannam@86
|
4511 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
|
cannam@86
|
4512 subroutine foo
|
cannam@86
|
4513 implicit none
|
cannam@86
|
4514 integer*4 a
|
cannam@86
|
4515 a=0
|
cannam@86
|
4516 return
|
cannam@86
|
4517 end
|
cannam@86
|
4518 EOF
|
cannam@86
|
4519 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
|
cannam@86
|
4520 public class foo {
|
cannam@86
|
4521 private int a;
|
cannam@86
|
4522 public void bar (void) {
|
cannam@86
|
4523 a = 0;
|
cannam@86
|
4524 }
|
cannam@86
|
4525 };
|
cannam@86
|
4526 EOF
|
cannam@86
|
4527 ])
|
cannam@86
|
4528 dnl Parse the compiler output and extract the necessary
|
cannam@86
|
4529 dnl objects, libraries and library flags.
|
cannam@86
|
4530 if AC_TRY_EVAL(ac_compile); then
|
cannam@86
|
4531 # Parse the compiler output and extract the necessary
|
cannam@86
|
4532 # objects, libraries and library flags.
|
cannam@86
|
4533
|
cannam@86
|
4534 # Sentinel used to keep track of whether or not we are before
|
cannam@86
|
4535 # the conftest object file.
|
cannam@86
|
4536 pre_test_object_deps_done=no
|
cannam@86
|
4537
|
cannam@86
|
4538 # The `*' in the case matches for architectures that use `case' in
|
cannam@86
|
4539 # $output_verbose_cmd can trigger glob expansion during the loop
|
cannam@86
|
4540 # eval without this substitution.
|
cannam@86
|
4541 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
|
cannam@86
|
4542
|
cannam@86
|
4543 for p in `eval $output_verbose_link_cmd`; do
|
cannam@86
|
4544 case $p in
|
cannam@86
|
4545
|
cannam@86
|
4546 -L* | -R* | -l*)
|
cannam@86
|
4547 # Some compilers place space between "-{L,R}" and the path.
|
cannam@86
|
4548 # Remove the space.
|
cannam@86
|
4549 if test $p = "-L" \
|
cannam@86
|
4550 || test $p = "-R"; then
|
cannam@86
|
4551 prev=$p
|
cannam@86
|
4552 continue
|
cannam@86
|
4553 else
|
cannam@86
|
4554 prev=
|
cannam@86
|
4555 fi
|
cannam@86
|
4556
|
cannam@86
|
4557 if test "$pre_test_object_deps_done" = no; then
|
cannam@86
|
4558 case $p in
|
cannam@86
|
4559 -L* | -R*)
|
cannam@86
|
4560 # Internal compiler library paths should come after those
|
cannam@86
|
4561 # provided the user. The postdeps already come after the
|
cannam@86
|
4562 # user supplied libs so there is no need to process them.
|
cannam@86
|
4563 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
|
cannam@86
|
4564 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
|
cannam@86
|
4565 else
|
cannam@86
|
4566 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
|
cannam@86
|
4567 fi
|
cannam@86
|
4568 ;;
|
cannam@86
|
4569 # The "-l" case would never come before the object being
|
cannam@86
|
4570 # linked, so don't bother handling this case.
|
cannam@86
|
4571 esac
|
cannam@86
|
4572 else
|
cannam@86
|
4573 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
|
cannam@86
|
4574 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
|
cannam@86
|
4575 else
|
cannam@86
|
4576 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
|
cannam@86
|
4577 fi
|
cannam@86
|
4578 fi
|
cannam@86
|
4579 ;;
|
cannam@86
|
4580
|
cannam@86
|
4581 *.$objext)
|
cannam@86
|
4582 # This assumes that the test object file only shows up
|
cannam@86
|
4583 # once in the compiler output.
|
cannam@86
|
4584 if test "$p" = "conftest.$objext"; then
|
cannam@86
|
4585 pre_test_object_deps_done=yes
|
cannam@86
|
4586 continue
|
cannam@86
|
4587 fi
|
cannam@86
|
4588
|
cannam@86
|
4589 if test "$pre_test_object_deps_done" = no; then
|
cannam@86
|
4590 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
|
cannam@86
|
4591 _LT_AC_TAGVAR(predep_objects, $1)="$p"
|
cannam@86
|
4592 else
|
cannam@86
|
4593 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
|
cannam@86
|
4594 fi
|
cannam@86
|
4595 else
|
cannam@86
|
4596 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
|
cannam@86
|
4597 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
|
cannam@86
|
4598 else
|
cannam@86
|
4599 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
|
cannam@86
|
4600 fi
|
cannam@86
|
4601 fi
|
cannam@86
|
4602 ;;
|
cannam@86
|
4603
|
cannam@86
|
4604 *) ;; # Ignore the rest.
|
cannam@86
|
4605
|
cannam@86
|
4606 esac
|
cannam@86
|
4607 done
|
cannam@86
|
4608
|
cannam@86
|
4609 # Clean up.
|
cannam@86
|
4610 rm -f a.out a.exe
|
cannam@86
|
4611 else
|
cannam@86
|
4612 echo "libtool.m4: error: problem compiling $1 test program"
|
cannam@86
|
4613 fi
|
cannam@86
|
4614
|
cannam@86
|
4615 $rm -f confest.$objext
|
cannam@86
|
4616
|
cannam@86
|
4617 case " $_LT_AC_TAGVAR(postdeps, $1) " in
|
cannam@86
|
4618 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
|
cannam@86
|
4619 esac
|
cannam@86
|
4620 ])# AC_LIBTOOL_POSTDEP_PREDEP
|
cannam@86
|
4621
|
cannam@86
|
4622 # AC_LIBTOOL_LANG_F77_CONFIG
|
cannam@86
|
4623 # ------------------------
|
cannam@86
|
4624 # Ensure that the configuration vars for the C compiler are
|
cannam@86
|
4625 # suitably defined. Those variables are subsequently used by
|
cannam@86
|
4626 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
cannam@86
|
4627 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
|
cannam@86
|
4628 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
|
cannam@86
|
4629 [AC_REQUIRE([AC_PROG_F77])
|
cannam@86
|
4630 AC_LANG_PUSH(Fortran 77)
|
cannam@86
|
4631
|
cannam@86
|
4632 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@86
|
4633 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
|
cannam@86
|
4634 _LT_AC_TAGVAR(always_export_symbols, $1)=no
|
cannam@86
|
4635 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
|
cannam@86
|
4636 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
|
cannam@86
|
4637 _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
cannam@86
|
4638 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
cannam@86
|
4639 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
cannam@86
|
4640 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
cannam@86
|
4641 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
|
cannam@86
|
4642 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
|
cannam@86
|
4643 _LT_AC_TAGVAR(module_cmds, $1)=
|
cannam@86
|
4644 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
|
cannam@86
|
4645 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
|
cannam@86
|
4646 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
cannam@86
|
4647 _LT_AC_TAGVAR(no_undefined_flag, $1)=
|
cannam@86
|
4648 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
cannam@86
|
4649 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
cannam@86
|
4650
|
cannam@86
|
4651 # Source file extension for f77 test sources.
|
cannam@86
|
4652 ac_ext=f
|
cannam@86
|
4653
|
cannam@86
|
4654 # Object file extension for compiled f77 test sources.
|
cannam@86
|
4655 objext=o
|
cannam@86
|
4656 _LT_AC_TAGVAR(objext, $1)=$objext
|
cannam@86
|
4657
|
cannam@86
|
4658 # Code to be used in simple compile tests
|
cannam@86
|
4659 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
|
cannam@86
|
4660
|
cannam@86
|
4661 # Code to be used in simple link tests
|
cannam@86
|
4662 lt_simple_link_test_code=" program t\n end\n"
|
cannam@86
|
4663
|
cannam@86
|
4664 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
cannam@86
|
4665 _LT_AC_SYS_COMPILER
|
cannam@86
|
4666
|
cannam@86
|
4667 # save warnings/boilerplate of simple test code
|
cannam@86
|
4668 _LT_COMPILER_BOILERPLATE
|
cannam@86
|
4669 _LT_LINKER_BOILERPLATE
|
cannam@86
|
4670
|
cannam@86
|
4671 # Allow CC to be a program name with arguments.
|
cannam@86
|
4672 lt_save_CC="$CC"
|
cannam@86
|
4673 CC=${F77-"f77"}
|
cannam@86
|
4674 compiler=$CC
|
cannam@86
|
4675 _LT_AC_TAGVAR(compiler, $1)=$CC
|
cannam@86
|
4676 _LT_CC_BASENAME([$compiler])
|
cannam@86
|
4677
|
cannam@86
|
4678 AC_MSG_CHECKING([if libtool supports shared libraries])
|
cannam@86
|
4679 AC_MSG_RESULT([$can_build_shared])
|
cannam@86
|
4680
|
cannam@86
|
4681 AC_MSG_CHECKING([whether to build shared libraries])
|
cannam@86
|
4682 test "$can_build_shared" = "no" && enable_shared=no
|
cannam@86
|
4683
|
cannam@86
|
4684 # On AIX, shared libraries and static libraries use the same namespace, and
|
cannam@86
|
4685 # are all built from PIC.
|
cannam@86
|
4686 case "$host_os" in
|
cannam@86
|
4687 aix3*)
|
cannam@86
|
4688 test "$enable_shared" = yes && enable_static=no
|
cannam@86
|
4689 if test -n "$RANLIB"; then
|
cannam@86
|
4690 archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
cannam@86
|
4691 postinstall_cmds='$RANLIB $lib'
|
cannam@86
|
4692 fi
|
cannam@86
|
4693 ;;
|
cannam@86
|
4694 aix4* | aix5*)
|
cannam@86
|
4695 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
|
cannam@86
|
4696 test "$enable_shared" = yes && enable_static=no
|
cannam@86
|
4697 fi
|
cannam@86
|
4698 ;;
|
cannam@86
|
4699 esac
|
cannam@86
|
4700 AC_MSG_RESULT([$enable_shared])
|
cannam@86
|
4701
|
cannam@86
|
4702 AC_MSG_CHECKING([whether to build static libraries])
|
cannam@86
|
4703 # Make sure either enable_shared or enable_static is yes.
|
cannam@86
|
4704 test "$enable_shared" = yes || enable_static=yes
|
cannam@86
|
4705 AC_MSG_RESULT([$enable_static])
|
cannam@86
|
4706
|
cannam@86
|
4707 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
cannam@86
|
4708
|
cannam@86
|
4709 _LT_AC_TAGVAR(GCC, $1)="$G77"
|
cannam@86
|
4710 _LT_AC_TAGVAR(LD, $1)="$LD"
|
cannam@86
|
4711
|
cannam@86
|
4712 AC_LIBTOOL_PROG_COMPILER_PIC($1)
|
cannam@86
|
4713 AC_LIBTOOL_PROG_CC_C_O($1)
|
cannam@86
|
4714 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
cannam@86
|
4715 AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
cannam@86
|
4716 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
cannam@86
|
4717 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
cannam@86
|
4718 AC_LIBTOOL_SYS_LIB_STRIP
|
cannam@86
|
4719
|
cannam@86
|
4720
|
cannam@86
|
4721 AC_LIBTOOL_CONFIG($1)
|
cannam@86
|
4722
|
cannam@86
|
4723 AC_LANG_POP
|
cannam@86
|
4724 CC="$lt_save_CC"
|
cannam@86
|
4725 ])# AC_LIBTOOL_LANG_F77_CONFIG
|
cannam@86
|
4726
|
cannam@86
|
4727
|
cannam@86
|
4728 # AC_LIBTOOL_LANG_GCJ_CONFIG
|
cannam@86
|
4729 # --------------------------
|
cannam@86
|
4730 # Ensure that the configuration vars for the C compiler are
|
cannam@86
|
4731 # suitably defined. Those variables are subsequently used by
|
cannam@86
|
4732 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
cannam@86
|
4733 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
|
cannam@86
|
4734 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
|
cannam@86
|
4735 [AC_LANG_SAVE
|
cannam@86
|
4736
|
cannam@86
|
4737 # Source file extension for Java test sources.
|
cannam@86
|
4738 ac_ext=java
|
cannam@86
|
4739
|
cannam@86
|
4740 # Object file extension for compiled Java test sources.
|
cannam@86
|
4741 objext=o
|
cannam@86
|
4742 _LT_AC_TAGVAR(objext, $1)=$objext
|
cannam@86
|
4743
|
cannam@86
|
4744 # Code to be used in simple compile tests
|
cannam@86
|
4745 lt_simple_compile_test_code="class foo {}\n"
|
cannam@86
|
4746
|
cannam@86
|
4747 # Code to be used in simple link tests
|
cannam@86
|
4748 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
|
cannam@86
|
4749
|
cannam@86
|
4750 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
cannam@86
|
4751 _LT_AC_SYS_COMPILER
|
cannam@86
|
4752
|
cannam@86
|
4753 # save warnings/boilerplate of simple test code
|
cannam@86
|
4754 _LT_COMPILER_BOILERPLATE
|
cannam@86
|
4755 _LT_LINKER_BOILERPLATE
|
cannam@86
|
4756
|
cannam@86
|
4757 # Allow CC to be a program name with arguments.
|
cannam@86
|
4758 lt_save_CC="$CC"
|
cannam@86
|
4759 CC=${GCJ-"gcj"}
|
cannam@86
|
4760 compiler=$CC
|
cannam@86
|
4761 _LT_AC_TAGVAR(compiler, $1)=$CC
|
cannam@86
|
4762 _LT_CC_BASENAME([$compiler])
|
cannam@86
|
4763
|
cannam@86
|
4764 # GCJ did not exist at the time GCC didn't implicitly link libc in.
|
cannam@86
|
4765 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@86
|
4766
|
cannam@86
|
4767 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
cannam@86
|
4768
|
cannam@86
|
4769 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
|
cannam@86
|
4770 AC_LIBTOOL_PROG_COMPILER_PIC($1)
|
cannam@86
|
4771 AC_LIBTOOL_PROG_CC_C_O($1)
|
cannam@86
|
4772 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
cannam@86
|
4773 AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
cannam@86
|
4774 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
cannam@86
|
4775 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
cannam@86
|
4776 AC_LIBTOOL_SYS_LIB_STRIP
|
cannam@86
|
4777 AC_LIBTOOL_DLOPEN_SELF($1)
|
cannam@86
|
4778
|
cannam@86
|
4779 AC_LIBTOOL_CONFIG($1)
|
cannam@86
|
4780
|
cannam@86
|
4781 AC_LANG_RESTORE
|
cannam@86
|
4782 CC="$lt_save_CC"
|
cannam@86
|
4783 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
|
cannam@86
|
4784
|
cannam@86
|
4785
|
cannam@86
|
4786 # AC_LIBTOOL_LANG_RC_CONFIG
|
cannam@86
|
4787 # --------------------------
|
cannam@86
|
4788 # Ensure that the configuration vars for the Windows resource compiler are
|
cannam@86
|
4789 # suitably defined. Those variables are subsequently used by
|
cannam@86
|
4790 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
cannam@86
|
4791 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
|
cannam@86
|
4792 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
|
cannam@86
|
4793 [AC_LANG_SAVE
|
cannam@86
|
4794
|
cannam@86
|
4795 # Source file extension for RC test sources.
|
cannam@86
|
4796 ac_ext=rc
|
cannam@86
|
4797
|
cannam@86
|
4798 # Object file extension for compiled RC test sources.
|
cannam@86
|
4799 objext=o
|
cannam@86
|
4800 _LT_AC_TAGVAR(objext, $1)=$objext
|
cannam@86
|
4801
|
cannam@86
|
4802 # Code to be used in simple compile tests
|
cannam@86
|
4803 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
|
cannam@86
|
4804
|
cannam@86
|
4805 # Code to be used in simple link tests
|
cannam@86
|
4806 lt_simple_link_test_code="$lt_simple_compile_test_code"
|
cannam@86
|
4807
|
cannam@86
|
4808 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
cannam@86
|
4809 _LT_AC_SYS_COMPILER
|
cannam@86
|
4810
|
cannam@86
|
4811 # save warnings/boilerplate of simple test code
|
cannam@86
|
4812 _LT_COMPILER_BOILERPLATE
|
cannam@86
|
4813 _LT_LINKER_BOILERPLATE
|
cannam@86
|
4814
|
cannam@86
|
4815 # Allow CC to be a program name with arguments.
|
cannam@86
|
4816 lt_save_CC="$CC"
|
cannam@86
|
4817 CC=${RC-"windres"}
|
cannam@86
|
4818 compiler=$CC
|
cannam@86
|
4819 _LT_AC_TAGVAR(compiler, $1)=$CC
|
cannam@86
|
4820 _LT_CC_BASENAME([$compiler])
|
cannam@86
|
4821 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
cannam@86
|
4822
|
cannam@86
|
4823 AC_LIBTOOL_CONFIG($1)
|
cannam@86
|
4824
|
cannam@86
|
4825 AC_LANG_RESTORE
|
cannam@86
|
4826 CC="$lt_save_CC"
|
cannam@86
|
4827 ])# AC_LIBTOOL_LANG_RC_CONFIG
|
cannam@86
|
4828
|
cannam@86
|
4829
|
cannam@86
|
4830 # AC_LIBTOOL_CONFIG([TAGNAME])
|
cannam@86
|
4831 # ----------------------------
|
cannam@86
|
4832 # If TAGNAME is not passed, then create an initial libtool script
|
cannam@86
|
4833 # with a default configuration from the untagged config vars. Otherwise
|
cannam@86
|
4834 # add code to config.status for appending the configuration named by
|
cannam@86
|
4835 # TAGNAME from the matching tagged config vars.
|
cannam@86
|
4836 AC_DEFUN([AC_LIBTOOL_CONFIG],
|
cannam@86
|
4837 [# The else clause should only fire when bootstrapping the
|
cannam@86
|
4838 # libtool distribution, otherwise you forgot to ship ltmain.sh
|
cannam@86
|
4839 # with your package, and you will get complaints that there are
|
cannam@86
|
4840 # no rules to generate ltmain.sh.
|
cannam@86
|
4841 if test -f "$ltmain"; then
|
cannam@86
|
4842 # See if we are running on zsh, and set the options which allow our commands through
|
cannam@86
|
4843 # without removal of \ escapes.
|
cannam@86
|
4844 if test -n "${ZSH_VERSION+set}" ; then
|
cannam@86
|
4845 setopt NO_GLOB_SUBST
|
cannam@86
|
4846 fi
|
cannam@86
|
4847 # Now quote all the things that may contain metacharacters while being
|
cannam@86
|
4848 # careful not to overquote the AC_SUBSTed values. We take copies of the
|
cannam@86
|
4849 # variables and quote the copies for generation of the libtool script.
|
cannam@86
|
4850 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
|
cannam@86
|
4851 SED SHELL STRIP \
|
cannam@86
|
4852 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
cannam@86
|
4853 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
cannam@86
|
4854 deplibs_check_method reload_flag reload_cmds need_locks \
|
cannam@86
|
4855 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
|
cannam@86
|
4856 lt_cv_sys_global_symbol_to_c_name_address \
|
cannam@86
|
4857 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
|
cannam@86
|
4858 old_postinstall_cmds old_postuninstall_cmds \
|
cannam@86
|
4859 _LT_AC_TAGVAR(compiler, $1) \
|
cannam@86
|
4860 _LT_AC_TAGVAR(CC, $1) \
|
cannam@86
|
4861 _LT_AC_TAGVAR(LD, $1) \
|
cannam@86
|
4862 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
|
cannam@86
|
4863 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
|
cannam@86
|
4864 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
|
cannam@86
|
4865 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
|
cannam@86
|
4866 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
|
cannam@86
|
4867 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
|
cannam@86
|
4868 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
|
cannam@86
|
4869 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
|
cannam@86
|
4870 _LT_AC_TAGVAR(old_archive_cmds, $1) \
|
cannam@86
|
4871 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
|
cannam@86
|
4872 _LT_AC_TAGVAR(predep_objects, $1) \
|
cannam@86
|
4873 _LT_AC_TAGVAR(postdep_objects, $1) \
|
cannam@86
|
4874 _LT_AC_TAGVAR(predeps, $1) \
|
cannam@86
|
4875 _LT_AC_TAGVAR(postdeps, $1) \
|
cannam@86
|
4876 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
|
cannam@86
|
4877 _LT_AC_TAGVAR(archive_cmds, $1) \
|
cannam@86
|
4878 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
|
cannam@86
|
4879 _LT_AC_TAGVAR(postinstall_cmds, $1) \
|
cannam@86
|
4880 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
|
cannam@86
|
4881 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
|
cannam@86
|
4882 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
|
cannam@86
|
4883 _LT_AC_TAGVAR(no_undefined_flag, $1) \
|
cannam@86
|
4884 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
|
cannam@86
|
4885 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
|
cannam@86
|
4886 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
|
cannam@86
|
4887 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
|
cannam@86
|
4888 _LT_AC_TAGVAR(hardcode_automatic, $1) \
|
cannam@86
|
4889 _LT_AC_TAGVAR(module_cmds, $1) \
|
cannam@86
|
4890 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
|
cannam@86
|
4891 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
|
cannam@86
|
4892 _LT_AC_TAGVAR(exclude_expsyms, $1) \
|
cannam@86
|
4893 _LT_AC_TAGVAR(include_expsyms, $1); do
|
cannam@86
|
4894
|
cannam@86
|
4895 case $var in
|
cannam@86
|
4896 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
|
cannam@86
|
4897 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
|
cannam@86
|
4898 _LT_AC_TAGVAR(archive_cmds, $1) | \
|
cannam@86
|
4899 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
|
cannam@86
|
4900 _LT_AC_TAGVAR(module_cmds, $1) | \
|
cannam@86
|
4901 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
|
cannam@86
|
4902 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
|
cannam@86
|
4903 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
|
cannam@86
|
4904 extract_expsyms_cmds | reload_cmds | finish_cmds | \
|
cannam@86
|
4905 postinstall_cmds | postuninstall_cmds | \
|
cannam@86
|
4906 old_postinstall_cmds | old_postuninstall_cmds | \
|
cannam@86
|
4907 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
|
cannam@86
|
4908 # Double-quote double-evaled strings.
|
cannam@86
|
4909 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
|
cannam@86
|
4910 ;;
|
cannam@86
|
4911 *)
|
cannam@86
|
4912 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
|
cannam@86
|
4913 ;;
|
cannam@86
|
4914 esac
|
cannam@86
|
4915 done
|
cannam@86
|
4916
|
cannam@86
|
4917 case $lt_echo in
|
cannam@86
|
4918 *'\[$]0 --fallback-echo"')
|
cannam@86
|
4919 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
|
cannam@86
|
4920 ;;
|
cannam@86
|
4921 esac
|
cannam@86
|
4922
|
cannam@86
|
4923 ifelse([$1], [],
|
cannam@86
|
4924 [cfgfile="${ofile}T"
|
cannam@86
|
4925 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
|
cannam@86
|
4926 $rm -f "$cfgfile"
|
cannam@86
|
4927 AC_MSG_NOTICE([creating $ofile])],
|
cannam@86
|
4928 [cfgfile="$ofile"])
|
cannam@86
|
4929
|
cannam@86
|
4930 cat <<__EOF__ >> "$cfgfile"
|
cannam@86
|
4931 ifelse([$1], [],
|
cannam@86
|
4932 [#! $SHELL
|
cannam@86
|
4933
|
cannam@86
|
4934 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
|
cannam@86
|
4935 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
|
cannam@86
|
4936 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
cannam@86
|
4937 #
|
cannam@86
|
4938 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
|
cannam@86
|
4939 # Free Software Foundation, Inc.
|
cannam@86
|
4940 #
|
cannam@86
|
4941 # This file is part of GNU Libtool:
|
cannam@86
|
4942 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
|
cannam@86
|
4943 #
|
cannam@86
|
4944 # This program is free software; you can redistribute it and/or modify
|
cannam@86
|
4945 # it under the terms of the GNU General Public License as published by
|
cannam@86
|
4946 # the Free Software Foundation; either version 2 of the License, or
|
cannam@86
|
4947 # (at your option) any later version.
|
cannam@86
|
4948 #
|
cannam@86
|
4949 # This program is distributed in the hope that it will be useful, but
|
cannam@86
|
4950 # WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@86
|
4951 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
cannam@86
|
4952 # General Public License for more details.
|
cannam@86
|
4953 #
|
cannam@86
|
4954 # You should have received a copy of the GNU General Public License
|
cannam@86
|
4955 # along with this program; if not, write to the Free Software
|
cannam@86
|
4956 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
cannam@86
|
4957 #
|
cannam@86
|
4958 # As a special exception to the GNU General Public License, if you
|
cannam@86
|
4959 # distribute this file as part of a program that contains a
|
cannam@86
|
4960 # configuration script generated by Autoconf, you may include it under
|
cannam@86
|
4961 # the same distribution terms that you use for the rest of that program.
|
cannam@86
|
4962
|
cannam@86
|
4963 # A sed program that does not truncate output.
|
cannam@86
|
4964 SED=$lt_SED
|
cannam@86
|
4965
|
cannam@86
|
4966 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
cannam@86
|
4967 Xsed="$SED -e 1s/^X//"
|
cannam@86
|
4968
|
cannam@86
|
4969 # The HP-UX ksh and POSIX shell print the target directory to stdout
|
cannam@86
|
4970 # if CDPATH is set.
|
cannam@86
|
4971 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
cannam@86
|
4972
|
cannam@86
|
4973 # The names of the tagged configurations supported by this script.
|
cannam@86
|
4974 available_tags=
|
cannam@86
|
4975
|
cannam@86
|
4976 # ### BEGIN LIBTOOL CONFIG],
|
cannam@86
|
4977 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
|
cannam@86
|
4978
|
cannam@86
|
4979 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
cannam@86
|
4980
|
cannam@86
|
4981 # Shell to use when invoking shell scripts.
|
cannam@86
|
4982 SHELL=$lt_SHELL
|
cannam@86
|
4983
|
cannam@86
|
4984 # Whether or not to build shared libraries.
|
cannam@86
|
4985 build_libtool_libs=$enable_shared
|
cannam@86
|
4986
|
cannam@86
|
4987 # Whether or not to build static libraries.
|
cannam@86
|
4988 build_old_libs=$enable_static
|
cannam@86
|
4989
|
cannam@86
|
4990 # Whether or not to add -lc for building shared libraries.
|
cannam@86
|
4991 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
|
cannam@86
|
4992
|
cannam@86
|
4993 # Whether or not to disallow shared libs when runtime libs are static
|
cannam@86
|
4994 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
|
cannam@86
|
4995
|
cannam@86
|
4996 # Whether or not to optimize for fast installation.
|
cannam@86
|
4997 fast_install=$enable_fast_install
|
cannam@86
|
4998
|
cannam@86
|
4999 # The host system.
|
cannam@86
|
5000 host_alias=$host_alias
|
cannam@86
|
5001 host=$host
|
cannam@86
|
5002 host_os=$host_os
|
cannam@86
|
5003
|
cannam@86
|
5004 # The build system.
|
cannam@86
|
5005 build_alias=$build_alias
|
cannam@86
|
5006 build=$build
|
cannam@86
|
5007 build_os=$build_os
|
cannam@86
|
5008
|
cannam@86
|
5009 # An echo program that does not interpret backslashes.
|
cannam@86
|
5010 echo=$lt_echo
|
cannam@86
|
5011
|
cannam@86
|
5012 # The archiver.
|
cannam@86
|
5013 AR=$lt_AR
|
cannam@86
|
5014 AR_FLAGS=$lt_AR_FLAGS
|
cannam@86
|
5015
|
cannam@86
|
5016 # A C compiler.
|
cannam@86
|
5017 LTCC=$lt_LTCC
|
cannam@86
|
5018
|
cannam@86
|
5019 # A language-specific compiler.
|
cannam@86
|
5020 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
|
cannam@86
|
5021
|
cannam@86
|
5022 # Is the compiler the GNU C compiler?
|
cannam@86
|
5023 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
|
cannam@86
|
5024
|
cannam@86
|
5025 # An ERE matcher.
|
cannam@86
|
5026 EGREP=$lt_EGREP
|
cannam@86
|
5027
|
cannam@86
|
5028 # The linker used to build libraries.
|
cannam@86
|
5029 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
|
cannam@86
|
5030
|
cannam@86
|
5031 # Whether we need hard or soft links.
|
cannam@86
|
5032 LN_S=$lt_LN_S
|
cannam@86
|
5033
|
cannam@86
|
5034 # A BSD-compatible nm program.
|
cannam@86
|
5035 NM=$lt_NM
|
cannam@86
|
5036
|
cannam@86
|
5037 # A symbol stripping program
|
cannam@86
|
5038 STRIP=$lt_STRIP
|
cannam@86
|
5039
|
cannam@86
|
5040 # Used to examine libraries when file_magic_cmd begins "file"
|
cannam@86
|
5041 MAGIC_CMD=$MAGIC_CMD
|
cannam@86
|
5042
|
cannam@86
|
5043 # Used on cygwin: DLL creation program.
|
cannam@86
|
5044 DLLTOOL="$DLLTOOL"
|
cannam@86
|
5045
|
cannam@86
|
5046 # Used on cygwin: object dumper.
|
cannam@86
|
5047 OBJDUMP="$OBJDUMP"
|
cannam@86
|
5048
|
cannam@86
|
5049 # Used on cygwin: assembler.
|
cannam@86
|
5050 AS="$AS"
|
cannam@86
|
5051
|
cannam@86
|
5052 # The name of the directory that contains temporary libtool files.
|
cannam@86
|
5053 objdir=$objdir
|
cannam@86
|
5054
|
cannam@86
|
5055 # How to create reloadable object files.
|
cannam@86
|
5056 reload_flag=$lt_reload_flag
|
cannam@86
|
5057 reload_cmds=$lt_reload_cmds
|
cannam@86
|
5058
|
cannam@86
|
5059 # How to pass a linker flag through the compiler.
|
cannam@86
|
5060 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
|
cannam@86
|
5061
|
cannam@86
|
5062 # Object file suffix (normally "o").
|
cannam@86
|
5063 objext="$ac_objext"
|
cannam@86
|
5064
|
cannam@86
|
5065 # Old archive suffix (normally "a").
|
cannam@86
|
5066 libext="$libext"
|
cannam@86
|
5067
|
cannam@86
|
5068 # Shared library suffix (normally ".so").
|
cannam@86
|
5069 shrext_cmds='$shrext_cmds'
|
cannam@86
|
5070
|
cannam@86
|
5071 # Executable file suffix (normally "").
|
cannam@86
|
5072 exeext="$exeext"
|
cannam@86
|
5073
|
cannam@86
|
5074 # Additional compiler flags for building library objects.
|
cannam@86
|
5075 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
|
cannam@86
|
5076 pic_mode=$pic_mode
|
cannam@86
|
5077
|
cannam@86
|
5078 # What is the maximum length of a command?
|
cannam@86
|
5079 max_cmd_len=$lt_cv_sys_max_cmd_len
|
cannam@86
|
5080
|
cannam@86
|
5081 # Does compiler simultaneously support -c and -o options?
|
cannam@86
|
5082 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
|
cannam@86
|
5083
|
cannam@86
|
5084 # Must we lock files when doing compilation?
|
cannam@86
|
5085 need_locks=$lt_need_locks
|
cannam@86
|
5086
|
cannam@86
|
5087 # Do we need the lib prefix for modules?
|
cannam@86
|
5088 need_lib_prefix=$need_lib_prefix
|
cannam@86
|
5089
|
cannam@86
|
5090 # Do we need a version for libraries?
|
cannam@86
|
5091 need_version=$need_version
|
cannam@86
|
5092
|
cannam@86
|
5093 # Whether dlopen is supported.
|
cannam@86
|
5094 dlopen_support=$enable_dlopen
|
cannam@86
|
5095
|
cannam@86
|
5096 # Whether dlopen of programs is supported.
|
cannam@86
|
5097 dlopen_self=$enable_dlopen_self
|
cannam@86
|
5098
|
cannam@86
|
5099 # Whether dlopen of statically linked programs is supported.
|
cannam@86
|
5100 dlopen_self_static=$enable_dlopen_self_static
|
cannam@86
|
5101
|
cannam@86
|
5102 # Compiler flag to prevent dynamic linking.
|
cannam@86
|
5103 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
|
cannam@86
|
5104
|
cannam@86
|
5105 # Compiler flag to turn off builtin functions.
|
cannam@86
|
5106 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
|
cannam@86
|
5107
|
cannam@86
|
5108 # Compiler flag to allow reflexive dlopens.
|
cannam@86
|
5109 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
|
cannam@86
|
5110
|
cannam@86
|
5111 # Compiler flag to generate shared objects directly from archives.
|
cannam@86
|
5112 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
|
cannam@86
|
5113
|
cannam@86
|
5114 # Compiler flag to generate thread-safe objects.
|
cannam@86
|
5115 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
|
cannam@86
|
5116
|
cannam@86
|
5117 # Library versioning type.
|
cannam@86
|
5118 version_type=$version_type
|
cannam@86
|
5119
|
cannam@86
|
5120 # Format of library name prefix.
|
cannam@86
|
5121 libname_spec=$lt_libname_spec
|
cannam@86
|
5122
|
cannam@86
|
5123 # List of archive names. First name is the real one, the rest are links.
|
cannam@86
|
5124 # The last name is the one that the linker finds with -lNAME.
|
cannam@86
|
5125 library_names_spec=$lt_library_names_spec
|
cannam@86
|
5126
|
cannam@86
|
5127 # The coded name of the library, if different from the real name.
|
cannam@86
|
5128 soname_spec=$lt_soname_spec
|
cannam@86
|
5129
|
cannam@86
|
5130 # Commands used to build and install an old-style archive.
|
cannam@86
|
5131 RANLIB=$lt_RANLIB
|
cannam@86
|
5132 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
|
cannam@86
|
5133 old_postinstall_cmds=$lt_old_postinstall_cmds
|
cannam@86
|
5134 old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
cannam@86
|
5135
|
cannam@86
|
5136 # Create an old-style archive from a shared archive.
|
cannam@86
|
5137 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
|
cannam@86
|
5138
|
cannam@86
|
5139 # Create a temporary old-style archive to link instead of a shared archive.
|
cannam@86
|
5140 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
|
cannam@86
|
5141
|
cannam@86
|
5142 # Commands used to build and install a shared archive.
|
cannam@86
|
5143 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
|
cannam@86
|
5144 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
|
cannam@86
|
5145 postinstall_cmds=$lt_postinstall_cmds
|
cannam@86
|
5146 postuninstall_cmds=$lt_postuninstall_cmds
|
cannam@86
|
5147
|
cannam@86
|
5148 # Commands used to build a loadable module (assumed same as above if empty)
|
cannam@86
|
5149 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
|
cannam@86
|
5150 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
|
cannam@86
|
5151
|
cannam@86
|
5152 # Commands to strip libraries.
|
cannam@86
|
5153 old_striplib=$lt_old_striplib
|
cannam@86
|
5154 striplib=$lt_striplib
|
cannam@86
|
5155
|
cannam@86
|
5156 # Dependencies to place before the objects being linked to create a
|
cannam@86
|
5157 # shared library.
|
cannam@86
|
5158 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
|
cannam@86
|
5159
|
cannam@86
|
5160 # Dependencies to place after the objects being linked to create a
|
cannam@86
|
5161 # shared library.
|
cannam@86
|
5162 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
|
cannam@86
|
5163
|
cannam@86
|
5164 # Dependencies to place before the objects being linked to create a
|
cannam@86
|
5165 # shared library.
|
cannam@86
|
5166 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
|
cannam@86
|
5167
|
cannam@86
|
5168 # Dependencies to place after the objects being linked to create a
|
cannam@86
|
5169 # shared library.
|
cannam@86
|
5170 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
|
cannam@86
|
5171
|
cannam@86
|
5172 # The library search path used internally by the compiler when linking
|
cannam@86
|
5173 # a shared library.
|
cannam@86
|
5174 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
|
cannam@86
|
5175
|
cannam@86
|
5176 # Method to check whether dependent libraries are shared objects.
|
cannam@86
|
5177 deplibs_check_method=$lt_deplibs_check_method
|
cannam@86
|
5178
|
cannam@86
|
5179 # Command to use when deplibs_check_method == file_magic.
|
cannam@86
|
5180 file_magic_cmd=$lt_file_magic_cmd
|
cannam@86
|
5181
|
cannam@86
|
5182 # Flag that allows shared libraries with undefined symbols to be built.
|
cannam@86
|
5183 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
|
cannam@86
|
5184
|
cannam@86
|
5185 # Flag that forces no undefined symbols.
|
cannam@86
|
5186 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
|
cannam@86
|
5187
|
cannam@86
|
5188 # Commands used to finish a libtool library installation in a directory.
|
cannam@86
|
5189 finish_cmds=$lt_finish_cmds
|
cannam@86
|
5190
|
cannam@86
|
5191 # Same as above, but a single script fragment to be evaled but not shown.
|
cannam@86
|
5192 finish_eval=$lt_finish_eval
|
cannam@86
|
5193
|
cannam@86
|
5194 # Take the output of nm and produce a listing of raw symbols and C names.
|
cannam@86
|
5195 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
cannam@86
|
5196
|
cannam@86
|
5197 # Transform the output of nm in a proper C declaration
|
cannam@86
|
5198 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
cannam@86
|
5199
|
cannam@86
|
5200 # Transform the output of nm in a C name address pair
|
cannam@86
|
5201 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
cannam@86
|
5202
|
cannam@86
|
5203 # This is the shared library runtime path variable.
|
cannam@86
|
5204 runpath_var=$runpath_var
|
cannam@86
|
5205
|
cannam@86
|
5206 # This is the shared library path variable.
|
cannam@86
|
5207 shlibpath_var=$shlibpath_var
|
cannam@86
|
5208
|
cannam@86
|
5209 # Is shlibpath searched before the hard-coded library search path?
|
cannam@86
|
5210 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
cannam@86
|
5211
|
cannam@86
|
5212 # How to hardcode a shared library path into an executable.
|
cannam@86
|
5213 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
|
cannam@86
|
5214
|
cannam@86
|
5215 # Whether we should hardcode library paths into libraries.
|
cannam@86
|
5216 hardcode_into_libs=$hardcode_into_libs
|
cannam@86
|
5217
|
cannam@86
|
5218 # Flag to hardcode \$libdir into a binary during linking.
|
cannam@86
|
5219 # This must work even if \$libdir does not exist.
|
cannam@86
|
5220 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
|
cannam@86
|
5221
|
cannam@86
|
5222 # If ld is used when linking, flag to hardcode \$libdir into
|
cannam@86
|
5223 # a binary during linking. This must work even if \$libdir does
|
cannam@86
|
5224 # not exist.
|
cannam@86
|
5225 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
|
cannam@86
|
5226
|
cannam@86
|
5227 # Whether we need a single -rpath flag with a separated argument.
|
cannam@86
|
5228 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
|
cannam@86
|
5229
|
cannam@86
|
5230 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
|
cannam@86
|
5231 # resulting binary.
|
cannam@86
|
5232 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
|
cannam@86
|
5233
|
cannam@86
|
5234 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
cannam@86
|
5235 # resulting binary.
|
cannam@86
|
5236 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
|
cannam@86
|
5237
|
cannam@86
|
5238 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
|
cannam@86
|
5239 # the resulting binary.
|
cannam@86
|
5240 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
|
cannam@86
|
5241
|
cannam@86
|
5242 # Set to yes if building a shared library automatically hardcodes DIR into the library
|
cannam@86
|
5243 # and all subsequent libraries and executables linked against it.
|
cannam@86
|
5244 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
|
cannam@86
|
5245
|
cannam@86
|
5246 # Variables whose values should be saved in libtool wrapper scripts and
|
cannam@86
|
5247 # restored at relink time.
|
cannam@86
|
5248 variables_saved_for_relink="$variables_saved_for_relink"
|
cannam@86
|
5249
|
cannam@86
|
5250 # Whether libtool must link a program against all its dependency libraries.
|
cannam@86
|
5251 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
|
cannam@86
|
5252
|
cannam@86
|
5253 # Compile-time system search path for libraries
|
cannam@86
|
5254 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
cannam@86
|
5255
|
cannam@86
|
5256 # Run-time system search path for libraries
|
cannam@86
|
5257 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
|
cannam@86
|
5258
|
cannam@86
|
5259 # Fix the shell variable \$srcfile for the compiler.
|
cannam@86
|
5260 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
|
cannam@86
|
5261
|
cannam@86
|
5262 # Set to yes if exported symbols are required.
|
cannam@86
|
5263 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
|
cannam@86
|
5264
|
cannam@86
|
5265 # The commands to list exported symbols.
|
cannam@86
|
5266 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
|
cannam@86
|
5267
|
cannam@86
|
5268 # The commands to extract the exported symbol list from a shared archive.
|
cannam@86
|
5269 extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
cannam@86
|
5270
|
cannam@86
|
5271 # Symbols that should not be listed in the preloaded symbols.
|
cannam@86
|
5272 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
|
cannam@86
|
5273
|
cannam@86
|
5274 # Symbols that must always be exported.
|
cannam@86
|
5275 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
|
cannam@86
|
5276
|
cannam@86
|
5277 ifelse([$1],[],
|
cannam@86
|
5278 [# ### END LIBTOOL CONFIG],
|
cannam@86
|
5279 [# ### END LIBTOOL TAG CONFIG: $tagname])
|
cannam@86
|
5280
|
cannam@86
|
5281 __EOF__
|
cannam@86
|
5282
|
cannam@86
|
5283 ifelse([$1],[], [
|
cannam@86
|
5284 case $host_os in
|
cannam@86
|
5285 aix3*)
|
cannam@86
|
5286 cat <<\EOF >> "$cfgfile"
|
cannam@86
|
5287
|
cannam@86
|
5288 # AIX sometimes has problems with the GCC collect2 program. For some
|
cannam@86
|
5289 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
cannam@86
|
5290 # vanish in a puff of smoke.
|
cannam@86
|
5291 if test "X${COLLECT_NAMES+set}" != Xset; then
|
cannam@86
|
5292 COLLECT_NAMES=
|
cannam@86
|
5293 export COLLECT_NAMES
|
cannam@86
|
5294 fi
|
cannam@86
|
5295 EOF
|
cannam@86
|
5296 ;;
|
cannam@86
|
5297 esac
|
cannam@86
|
5298
|
cannam@86
|
5299 # We use sed instead of cat because bash on DJGPP gets confused if
|
cannam@86
|
5300 # if finds mixed CR/LF and LF-only lines. Since sed operates in
|
cannam@86
|
5301 # text mode, it properly converts lines to CR/LF. This bash problem
|
cannam@86
|
5302 # is reportedly fixed, but why not run on old versions too?
|
cannam@86
|
5303 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
|
cannam@86
|
5304
|
cannam@86
|
5305 mv -f "$cfgfile" "$ofile" || \
|
cannam@86
|
5306 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
cannam@86
|
5307 chmod +x "$ofile"
|
cannam@86
|
5308 ])
|
cannam@86
|
5309 else
|
cannam@86
|
5310 # If there is no Makefile yet, we rely on a make rule to execute
|
cannam@86
|
5311 # `config.status --recheck' to rerun these tests and create the
|
cannam@86
|
5312 # libtool script then.
|
cannam@86
|
5313 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
|
cannam@86
|
5314 if test -f "$ltmain_in"; then
|
cannam@86
|
5315 test -f Makefile && make "$ltmain"
|
cannam@86
|
5316 fi
|
cannam@86
|
5317 fi
|
cannam@86
|
5318 ])# AC_LIBTOOL_CONFIG
|
cannam@86
|
5319
|
cannam@86
|
5320
|
cannam@86
|
5321 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
|
cannam@86
|
5322 # -------------------------------------------
|
cannam@86
|
5323 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
|
cannam@86
|
5324 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
|
cannam@86
|
5325
|
cannam@86
|
5326 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
|
cannam@86
|
5327
|
cannam@86
|
5328 if test "$GCC" = yes; then
|
cannam@86
|
5329 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
|
cannam@86
|
5330
|
cannam@86
|
5331 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
|
cannam@86
|
5332 lt_cv_prog_compiler_rtti_exceptions,
|
cannam@86
|
5333 [-fno-rtti -fno-exceptions], [],
|
cannam@86
|
5334 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
|
cannam@86
|
5335 fi
|
cannam@86
|
5336 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
|
cannam@86
|
5337
|
cannam@86
|
5338
|
cannam@86
|
5339 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
|
cannam@86
|
5340 # ---------------------------------
|
cannam@86
|
5341 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
|
cannam@86
|
5342 [AC_REQUIRE([AC_CANONICAL_HOST])
|
cannam@86
|
5343 AC_REQUIRE([AC_PROG_NM])
|
cannam@86
|
5344 AC_REQUIRE([AC_OBJEXT])
|
cannam@86
|
5345 # Check for command to grab the raw symbol name followed by C symbol from nm.
|
cannam@86
|
5346 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
|
cannam@86
|
5347 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
|
cannam@86
|
5348 [
|
cannam@86
|
5349 # These are sane defaults that work on at least a few old systems.
|
cannam@86
|
5350 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
cannam@86
|
5351
|
cannam@86
|
5352 # Character class describing NM global symbol codes.
|
cannam@86
|
5353 symcode='[[BCDEGRST]]'
|
cannam@86
|
5354
|
cannam@86
|
5355 # Regexp to match symbols that can be accessed directly from C.
|
cannam@86
|
5356 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
|
cannam@86
|
5357
|
cannam@86
|
5358 # Transform an extracted symbol line into a proper C declaration
|
cannam@86
|
5359 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
|
cannam@86
|
5360
|
cannam@86
|
5361 # Transform an extracted symbol line into symbol name and symbol address
|
cannam@86
|
5362 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
|
cannam@86
|
5363
|
cannam@86
|
5364 # Define system-specific variables.
|
cannam@86
|
5365 case $host_os in
|
cannam@86
|
5366 aix*)
|
cannam@86
|
5367 symcode='[[BCDT]]'
|
cannam@86
|
5368 ;;
|
cannam@86
|
5369 cygwin* | mingw* | pw32*)
|
cannam@86
|
5370 symcode='[[ABCDGISTW]]'
|
cannam@86
|
5371 ;;
|
cannam@86
|
5372 hpux*) # Its linker distinguishes data from code symbols
|
cannam@86
|
5373 if test "$host_cpu" = ia64; then
|
cannam@86
|
5374 symcode='[[ABCDEGRST]]'
|
cannam@86
|
5375 fi
|
cannam@86
|
5376 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
cannam@86
|
5377 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
|
cannam@86
|
5378 ;;
|
cannam@86
|
5379 linux*)
|
cannam@86
|
5380 if test "$host_cpu" = ia64; then
|
cannam@86
|
5381 symcode='[[ABCDGIRSTW]]'
|
cannam@86
|
5382 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
cannam@86
|
5383 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
|
cannam@86
|
5384 fi
|
cannam@86
|
5385 ;;
|
cannam@86
|
5386 irix* | nonstopux*)
|
cannam@86
|
5387 symcode='[[BCDEGRST]]'
|
cannam@86
|
5388 ;;
|
cannam@86
|
5389 osf*)
|
cannam@86
|
5390 symcode='[[BCDEGQRST]]'
|
cannam@86
|
5391 ;;
|
cannam@86
|
5392 solaris* | sysv5*)
|
cannam@86
|
5393 symcode='[[BDRT]]'
|
cannam@86
|
5394 ;;
|
cannam@86
|
5395 sysv4)
|
cannam@86
|
5396 symcode='[[DFNSTU]]'
|
cannam@86
|
5397 ;;
|
cannam@86
|
5398 esac
|
cannam@86
|
5399
|
cannam@86
|
5400 # Handle CRLF in mingw tool chain
|
cannam@86
|
5401 opt_cr=
|
cannam@86
|
5402 case $build_os in
|
cannam@86
|
5403 mingw*)
|
cannam@86
|
5404 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
cannam@86
|
5405 ;;
|
cannam@86
|
5406 esac
|
cannam@86
|
5407
|
cannam@86
|
5408 # If we're using GNU nm, then use its standard symbol codes.
|
cannam@86
|
5409 case `$NM -V 2>&1` in
|
cannam@86
|
5410 *GNU* | *'with BFD'*)
|
cannam@86
|
5411 symcode='[[ABCDGIRSTW]]' ;;
|
cannam@86
|
5412 esac
|
cannam@86
|
5413
|
cannam@86
|
5414 # Try without a prefix undercore, then with it.
|
cannam@86
|
5415 for ac_symprfx in "" "_"; do
|
cannam@86
|
5416
|
cannam@86
|
5417 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
cannam@86
|
5418 symxfrm="\\1 $ac_symprfx\\2 \\2"
|
cannam@86
|
5419
|
cannam@86
|
5420 # Write the raw and C identifiers.
|
cannam@86
|
5421 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
cannam@86
|
5422
|
cannam@86
|
5423 # Check to see that the pipe works correctly.
|
cannam@86
|
5424 pipe_works=no
|
cannam@86
|
5425
|
cannam@86
|
5426 rm -f conftest*
|
cannam@86
|
5427 cat > conftest.$ac_ext <<EOF
|
cannam@86
|
5428 #ifdef __cplusplus
|
cannam@86
|
5429 extern "C" {
|
cannam@86
|
5430 #endif
|
cannam@86
|
5431 char nm_test_var;
|
cannam@86
|
5432 void nm_test_func(){}
|
cannam@86
|
5433 #ifdef __cplusplus
|
cannam@86
|
5434 }
|
cannam@86
|
5435 #endif
|
cannam@86
|
5436 int main(){nm_test_var='a';nm_test_func();return(0);}
|
cannam@86
|
5437 EOF
|
cannam@86
|
5438
|
cannam@86
|
5439 if AC_TRY_EVAL(ac_compile); then
|
cannam@86
|
5440 # Now try to grab the symbols.
|
cannam@86
|
5441 nlist=conftest.nm
|
cannam@86
|
5442 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
|
cannam@86
|
5443 # Try sorting and uniquifying the output.
|
cannam@86
|
5444 if sort "$nlist" | uniq > "$nlist"T; then
|
cannam@86
|
5445 mv -f "$nlist"T "$nlist"
|
cannam@86
|
5446 else
|
cannam@86
|
5447 rm -f "$nlist"T
|
cannam@86
|
5448 fi
|
cannam@86
|
5449
|
cannam@86
|
5450 # Make sure that we snagged all the symbols we need.
|
cannam@86
|
5451 if grep ' nm_test_var$' "$nlist" >/dev/null; then
|
cannam@86
|
5452 if grep ' nm_test_func$' "$nlist" >/dev/null; then
|
cannam@86
|
5453 cat <<EOF > conftest.$ac_ext
|
cannam@86
|
5454 #ifdef __cplusplus
|
cannam@86
|
5455 extern "C" {
|
cannam@86
|
5456 #endif
|
cannam@86
|
5457
|
cannam@86
|
5458 EOF
|
cannam@86
|
5459 # Now generate the symbol file.
|
cannam@86
|
5460 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
|
cannam@86
|
5461
|
cannam@86
|
5462 cat <<EOF >> conftest.$ac_ext
|
cannam@86
|
5463 #if defined (__STDC__) && __STDC__
|
cannam@86
|
5464 # define lt_ptr_t void *
|
cannam@86
|
5465 #else
|
cannam@86
|
5466 # define lt_ptr_t char *
|
cannam@86
|
5467 # define const
|
cannam@86
|
5468 #endif
|
cannam@86
|
5469
|
cannam@86
|
5470 /* The mapping between symbol names and symbols. */
|
cannam@86
|
5471 const struct {
|
cannam@86
|
5472 const char *name;
|
cannam@86
|
5473 lt_ptr_t address;
|
cannam@86
|
5474 }
|
cannam@86
|
5475 lt_preloaded_symbols[[]] =
|
cannam@86
|
5476 {
|
cannam@86
|
5477 EOF
|
cannam@86
|
5478 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
|
cannam@86
|
5479 cat <<\EOF >> conftest.$ac_ext
|
cannam@86
|
5480 {0, (lt_ptr_t) 0}
|
cannam@86
|
5481 };
|
cannam@86
|
5482
|
cannam@86
|
5483 #ifdef __cplusplus
|
cannam@86
|
5484 }
|
cannam@86
|
5485 #endif
|
cannam@86
|
5486 EOF
|
cannam@86
|
5487 # Now try linking the two files.
|
cannam@86
|
5488 mv conftest.$ac_objext conftstm.$ac_objext
|
cannam@86
|
5489 lt_save_LIBS="$LIBS"
|
cannam@86
|
5490 lt_save_CFLAGS="$CFLAGS"
|
cannam@86
|
5491 LIBS="conftstm.$ac_objext"
|
cannam@86
|
5492 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
|
cannam@86
|
5493 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
|
cannam@86
|
5494 pipe_works=yes
|
cannam@86
|
5495 fi
|
cannam@86
|
5496 LIBS="$lt_save_LIBS"
|
cannam@86
|
5497 CFLAGS="$lt_save_CFLAGS"
|
cannam@86
|
5498 else
|
cannam@86
|
5499 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
|
cannam@86
|
5500 fi
|
cannam@86
|
5501 else
|
cannam@86
|
5502 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
|
cannam@86
|
5503 fi
|
cannam@86
|
5504 else
|
cannam@86
|
5505 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
|
cannam@86
|
5506 fi
|
cannam@86
|
5507 else
|
cannam@86
|
5508 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
|
cannam@86
|
5509 cat conftest.$ac_ext >&5
|
cannam@86
|
5510 fi
|
cannam@86
|
5511 rm -f conftest* conftst*
|
cannam@86
|
5512
|
cannam@86
|
5513 # Do not use the global_symbol_pipe unless it works.
|
cannam@86
|
5514 if test "$pipe_works" = yes; then
|
cannam@86
|
5515 break
|
cannam@86
|
5516 else
|
cannam@86
|
5517 lt_cv_sys_global_symbol_pipe=
|
cannam@86
|
5518 fi
|
cannam@86
|
5519 done
|
cannam@86
|
5520 ])
|
cannam@86
|
5521 if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
cannam@86
|
5522 lt_cv_sys_global_symbol_to_cdecl=
|
cannam@86
|
5523 fi
|
cannam@86
|
5524 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
cannam@86
|
5525 AC_MSG_RESULT(failed)
|
cannam@86
|
5526 else
|
cannam@86
|
5527 AC_MSG_RESULT(ok)
|
cannam@86
|
5528 fi
|
cannam@86
|
5529 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
|
cannam@86
|
5530
|
cannam@86
|
5531
|
cannam@86
|
5532 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
|
cannam@86
|
5533 # ---------------------------------------
|
cannam@86
|
5534 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
|
cannam@86
|
5535 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
|
cannam@86
|
5536 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
cannam@86
|
5537 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
|
cannam@86
|
5538
|
cannam@86
|
5539 AC_MSG_CHECKING([for $compiler option to produce PIC])
|
cannam@86
|
5540 ifelse([$1],[CXX],[
|
cannam@86
|
5541 # C++ specific cases for pic, static, wl, etc.
|
cannam@86
|
5542 if test "$GXX" = yes; then
|
cannam@86
|
5543 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@86
|
5544 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
cannam@86
|
5545
|
cannam@86
|
5546 case $host_os in
|
cannam@86
|
5547 aix*)
|
cannam@86
|
5548 # All AIX code is PIC.
|
cannam@86
|
5549 if test "$host_cpu" = ia64; then
|
cannam@86
|
5550 # AIX 5 now supports IA64 processor
|
cannam@86
|
5551 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@86
|
5552 fi
|
cannam@86
|
5553 ;;
|
cannam@86
|
5554 amigaos*)
|
cannam@86
|
5555 # FIXME: we need at least 68020 code to build shared libraries, but
|
cannam@86
|
5556 # adding the `-m68020' flag to GCC prevents building anything better,
|
cannam@86
|
5557 # like `-m68040'.
|
cannam@86
|
5558 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
|
cannam@86
|
5559 ;;
|
cannam@86
|
5560 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
cannam@86
|
5561 # PIC is the default for these OSes.
|
cannam@86
|
5562 ;;
|
cannam@86
|
5563 mingw* | os2* | pw32*)
|
cannam@86
|
5564 # This hack is so that the source file can tell whether it is being
|
cannam@86
|
5565 # built for inclusion in a dll (and should export symbols for example).
|
cannam@86
|
5566 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
|
cannam@86
|
5567 ;;
|
cannam@86
|
5568 darwin* | rhapsody*)
|
cannam@86
|
5569 # PIC is the default on this platform
|
cannam@86
|
5570 # Common symbols not allowed in MH_DYLIB files
|
cannam@86
|
5571 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
cannam@86
|
5572 ;;
|
cannam@86
|
5573 *djgpp*)
|
cannam@86
|
5574 # DJGPP does not support shared libraries at all
|
cannam@86
|
5575 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
cannam@86
|
5576 ;;
|
cannam@86
|
5577 sysv4*MP*)
|
cannam@86
|
5578 if test -d /usr/nec; then
|
cannam@86
|
5579 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
|
cannam@86
|
5580 fi
|
cannam@86
|
5581 ;;
|
cannam@86
|
5582 hpux*)
|
cannam@86
|
5583 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
cannam@86
|
5584 # not for PA HP-UX.
|
cannam@86
|
5585 case "$host_cpu" in
|
cannam@86
|
5586 hppa*64*|ia64*)
|
cannam@86
|
5587 ;;
|
cannam@86
|
5588 *)
|
cannam@86
|
5589 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
cannam@86
|
5590 ;;
|
cannam@86
|
5591 esac
|
cannam@86
|
5592 ;;
|
cannam@86
|
5593 *)
|
cannam@86
|
5594 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
cannam@86
|
5595 ;;
|
cannam@86
|
5596 esac
|
cannam@86
|
5597 else
|
cannam@86
|
5598 case $host_os in
|
cannam@86
|
5599 aix4* | aix5*)
|
cannam@86
|
5600 # All AIX code is PIC.
|
cannam@86
|
5601 if test "$host_cpu" = ia64; then
|
cannam@86
|
5602 # AIX 5 now supports IA64 processor
|
cannam@86
|
5603 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@86
|
5604 else
|
cannam@86
|
5605 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
|
cannam@86
|
5606 fi
|
cannam@86
|
5607 ;;
|
cannam@86
|
5608 chorus*)
|
cannam@86
|
5609 case $cc_basename in
|
cannam@86
|
5610 cxch68*)
|
cannam@86
|
5611 # Green Hills C++ Compiler
|
cannam@86
|
5612 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
|
cannam@86
|
5613 ;;
|
cannam@86
|
5614 esac
|
cannam@86
|
5615 ;;
|
cannam@86
|
5616 darwin*)
|
cannam@86
|
5617 # PIC is the default on this platform
|
cannam@86
|
5618 # Common symbols not allowed in MH_DYLIB files
|
cannam@86
|
5619 case $cc_basename in
|
cannam@86
|
5620 xlc*)
|
cannam@86
|
5621 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
|
cannam@86
|
5622 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@86
|
5623 ;;
|
cannam@86
|
5624 esac
|
cannam@86
|
5625 ;;
|
cannam@86
|
5626 dgux*)
|
cannam@86
|
5627 case $cc_basename in
|
cannam@86
|
5628 ec++*)
|
cannam@86
|
5629 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@86
|
5630 ;;
|
cannam@86
|
5631 ghcx*)
|
cannam@86
|
5632 # Green Hills C++ Compiler
|
cannam@86
|
5633 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
cannam@86
|
5634 ;;
|
cannam@86
|
5635 *)
|
cannam@86
|
5636 ;;
|
cannam@86
|
5637 esac
|
cannam@86
|
5638 ;;
|
cannam@86
|
5639 freebsd* | kfreebsd*-gnu | dragonfly*)
|
cannam@86
|
5640 # FreeBSD uses GNU C++
|
cannam@86
|
5641 ;;
|
cannam@86
|
5642 hpux9* | hpux10* | hpux11*)
|
cannam@86
|
5643 case $cc_basename in
|
cannam@86
|
5644 CC*)
|
cannam@86
|
5645 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@86
|
5646 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
|
cannam@86
|
5647 if test "$host_cpu" != ia64; then
|
cannam@86
|
5648 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
cannam@86
|
5649 fi
|
cannam@86
|
5650 ;;
|
cannam@86
|
5651 aCC*)
|
cannam@86
|
5652 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@86
|
5653 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
|
cannam@86
|
5654 case "$host_cpu" in
|
cannam@86
|
5655 hppa*64*|ia64*)
|
cannam@86
|
5656 # +Z the default
|
cannam@86
|
5657 ;;
|
cannam@86
|
5658 *)
|
cannam@86
|
5659 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
cannam@86
|
5660 ;;
|
cannam@86
|
5661 esac
|
cannam@86
|
5662 ;;
|
cannam@86
|
5663 *)
|
cannam@86
|
5664 ;;
|
cannam@86
|
5665 esac
|
cannam@86
|
5666 ;;
|
cannam@86
|
5667 irix5* | irix6* | nonstopux*)
|
cannam@86
|
5668 case $cc_basename in
|
cannam@86
|
5669 CC*)
|
cannam@86
|
5670 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@86
|
5671 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
cannam@86
|
5672 # CC pic flag -KPIC is the default.
|
cannam@86
|
5673 ;;
|
cannam@86
|
5674 *)
|
cannam@86
|
5675 ;;
|
cannam@86
|
5676 esac
|
cannam@86
|
5677 ;;
|
cannam@86
|
5678 linux*)
|
cannam@86
|
5679 case $cc_basename in
|
cannam@86
|
5680 KCC*)
|
cannam@86
|
5681 # KAI C++ Compiler
|
cannam@86
|
5682 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
|
cannam@86
|
5683 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
cannam@86
|
5684 ;;
|
cannam@86
|
5685 icpc* | ecpc*)
|
cannam@86
|
5686 # Intel C++
|
cannam@86
|
5687 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@86
|
5688 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@86
|
5689 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
cannam@86
|
5690 ;;
|
cannam@86
|
5691 pgCC*)
|
cannam@86
|
5692 # Portland Group C++ compiler.
|
cannam@86
|
5693 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@86
|
5694 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
cannam@86
|
5695 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
cannam@86
|
5696 ;;
|
cannam@86
|
5697 cxx*)
|
cannam@86
|
5698 # Compaq C++
|
cannam@86
|
5699 # Make sure the PIC flag is empty. It appears that all Alpha
|
cannam@86
|
5700 # Linux and Compaq Tru64 Unix objects are PIC.
|
cannam@86
|
5701 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
cannam@86
|
5702 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
cannam@86
|
5703 ;;
|
cannam@86
|
5704 *)
|
cannam@86
|
5705 ;;
|
cannam@86
|
5706 esac
|
cannam@86
|
5707 ;;
|
cannam@86
|
5708 lynxos*)
|
cannam@86
|
5709 ;;
|
cannam@86
|
5710 m88k*)
|
cannam@86
|
5711 ;;
|
cannam@86
|
5712 mvs*)
|
cannam@86
|
5713 case $cc_basename in
|
cannam@86
|
5714 cxx*)
|
cannam@86
|
5715 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
|
cannam@86
|
5716 ;;
|
cannam@86
|
5717 *)
|
cannam@86
|
5718 ;;
|
cannam@86
|
5719 esac
|
cannam@86
|
5720 ;;
|
cannam@86
|
5721 netbsd*)
|
cannam@86
|
5722 ;;
|
cannam@86
|
5723 osf3* | osf4* | osf5*)
|
cannam@86
|
5724 case $cc_basename in
|
cannam@86
|
5725 KCC*)
|
cannam@86
|
5726 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
|
cannam@86
|
5727 ;;
|
cannam@86
|
5728 RCC*)
|
cannam@86
|
5729 # Rational C++ 2.4.1
|
cannam@86
|
5730 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
cannam@86
|
5731 ;;
|
cannam@86
|
5732 cxx*)
|
cannam@86
|
5733 # Digital/Compaq C++
|
cannam@86
|
5734 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@86
|
5735 # Make sure the PIC flag is empty. It appears that all Alpha
|
cannam@86
|
5736 # Linux and Compaq Tru64 Unix objects are PIC.
|
cannam@86
|
5737 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
cannam@86
|
5738 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
cannam@86
|
5739 ;;
|
cannam@86
|
5740 *)
|
cannam@86
|
5741 ;;
|
cannam@86
|
5742 esac
|
cannam@86
|
5743 ;;
|
cannam@86
|
5744 psos*)
|
cannam@86
|
5745 ;;
|
cannam@86
|
5746 sco*)
|
cannam@86
|
5747 case $cc_basename in
|
cannam@86
|
5748 CC*)
|
cannam@86
|
5749 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
cannam@86
|
5750 ;;
|
cannam@86
|
5751 *)
|
cannam@86
|
5752 ;;
|
cannam@86
|
5753 esac
|
cannam@86
|
5754 ;;
|
cannam@86
|
5755 solaris*)
|
cannam@86
|
5756 case $cc_basename in
|
cannam@86
|
5757 CC*)
|
cannam@86
|
5758 # Sun C++ 4.2, 5.x and Centerline C++
|
cannam@86
|
5759 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@86
|
5760 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@86
|
5761 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
cannam@86
|
5762 ;;
|
cannam@86
|
5763 gcx*)
|
cannam@86
|
5764 # Green Hills C++ Compiler
|
cannam@86
|
5765 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
cannam@86
|
5766 ;;
|
cannam@86
|
5767 *)
|
cannam@86
|
5768 ;;
|
cannam@86
|
5769 esac
|
cannam@86
|
5770 ;;
|
cannam@86
|
5771 sunos4*)
|
cannam@86
|
5772 case $cc_basename in
|
cannam@86
|
5773 CC*)
|
cannam@86
|
5774 # Sun C++ 4.x
|
cannam@86
|
5775 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
cannam@86
|
5776 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@86
|
5777 ;;
|
cannam@86
|
5778 lcc*)
|
cannam@86
|
5779 # Lucid
|
cannam@86
|
5780 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
cannam@86
|
5781 ;;
|
cannam@86
|
5782 *)
|
cannam@86
|
5783 ;;
|
cannam@86
|
5784 esac
|
cannam@86
|
5785 ;;
|
cannam@86
|
5786 tandem*)
|
cannam@86
|
5787 case $cc_basename in
|
cannam@86
|
5788 NCC*)
|
cannam@86
|
5789 # NonStop-UX NCC 3.20
|
cannam@86
|
5790 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@86
|
5791 ;;
|
cannam@86
|
5792 *)
|
cannam@86
|
5793 ;;
|
cannam@86
|
5794 esac
|
cannam@86
|
5795 ;;
|
cannam@86
|
5796 unixware*)
|
cannam@86
|
5797 ;;
|
cannam@86
|
5798 vxworks*)
|
cannam@86
|
5799 ;;
|
cannam@86
|
5800 *)
|
cannam@86
|
5801 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
cannam@86
|
5802 ;;
|
cannam@86
|
5803 esac
|
cannam@86
|
5804 fi
|
cannam@86
|
5805 ],
|
cannam@86
|
5806 [
|
cannam@86
|
5807 if test "$GCC" = yes; then
|
cannam@86
|
5808 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@86
|
5809 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
cannam@86
|
5810
|
cannam@86
|
5811 case $host_os in
|
cannam@86
|
5812 aix*)
|
cannam@86
|
5813 # All AIX code is PIC.
|
cannam@86
|
5814 if test "$host_cpu" = ia64; then
|
cannam@86
|
5815 # AIX 5 now supports IA64 processor
|
cannam@86
|
5816 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@86
|
5817 fi
|
cannam@86
|
5818 ;;
|
cannam@86
|
5819
|
cannam@86
|
5820 amigaos*)
|
cannam@86
|
5821 # FIXME: we need at least 68020 code to build shared libraries, but
|
cannam@86
|
5822 # adding the `-m68020' flag to GCC prevents building anything better,
|
cannam@86
|
5823 # like `-m68040'.
|
cannam@86
|
5824 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
|
cannam@86
|
5825 ;;
|
cannam@86
|
5826
|
cannam@86
|
5827 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
cannam@86
|
5828 # PIC is the default for these OSes.
|
cannam@86
|
5829 ;;
|
cannam@86
|
5830
|
cannam@86
|
5831 mingw* | pw32* | os2*)
|
cannam@86
|
5832 # This hack is so that the source file can tell whether it is being
|
cannam@86
|
5833 # built for inclusion in a dll (and should export symbols for example).
|
cannam@86
|
5834 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
|
cannam@86
|
5835 ;;
|
cannam@86
|
5836
|
cannam@86
|
5837 darwin* | rhapsody*)
|
cannam@86
|
5838 # PIC is the default on this platform
|
cannam@86
|
5839 # Common symbols not allowed in MH_DYLIB files
|
cannam@86
|
5840 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
cannam@86
|
5841 ;;
|
cannam@86
|
5842
|
cannam@86
|
5843 msdosdjgpp*)
|
cannam@86
|
5844 # Just because we use GCC doesn't mean we suddenly get shared libraries
|
cannam@86
|
5845 # on systems that don't support them.
|
cannam@86
|
5846 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
cannam@86
|
5847 enable_shared=no
|
cannam@86
|
5848 ;;
|
cannam@86
|
5849
|
cannam@86
|
5850 sysv4*MP*)
|
cannam@86
|
5851 if test -d /usr/nec; then
|
cannam@86
|
5852 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
|
cannam@86
|
5853 fi
|
cannam@86
|
5854 ;;
|
cannam@86
|
5855
|
cannam@86
|
5856 hpux*)
|
cannam@86
|
5857 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
cannam@86
|
5858 # not for PA HP-UX.
|
cannam@86
|
5859 case "$host_cpu" in
|
cannam@86
|
5860 hppa*64*|ia64*)
|
cannam@86
|
5861 # +Z the default
|
cannam@86
|
5862 ;;
|
cannam@86
|
5863 *)
|
cannam@86
|
5864 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
cannam@86
|
5865 ;;
|
cannam@86
|
5866 esac
|
cannam@86
|
5867 ;;
|
cannam@86
|
5868
|
cannam@86
|
5869 *)
|
cannam@86
|
5870 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
cannam@86
|
5871 ;;
|
cannam@86
|
5872 esac
|
cannam@86
|
5873 else
|
cannam@86
|
5874 # PORTME Check for flag to pass linker flags through the system compiler.
|
cannam@86
|
5875 case $host_os in
|
cannam@86
|
5876 aix*)
|
cannam@86
|
5877 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@86
|
5878 if test "$host_cpu" = ia64; then
|
cannam@86
|
5879 # AIX 5 now supports IA64 processor
|
cannam@86
|
5880 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@86
|
5881 else
|
cannam@86
|
5882 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
|
cannam@86
|
5883 fi
|
cannam@86
|
5884 ;;
|
cannam@86
|
5885 darwin*)
|
cannam@86
|
5886 # PIC is the default on this platform
|
cannam@86
|
5887 # Common symbols not allowed in MH_DYLIB files
|
cannam@86
|
5888 case $cc_basename in
|
cannam@86
|
5889 xlc*)
|
cannam@86
|
5890 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
|
cannam@86
|
5891 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@86
|
5892 ;;
|
cannam@86
|
5893 esac
|
cannam@86
|
5894 ;;
|
cannam@86
|
5895
|
cannam@86
|
5896 mingw* | pw32* | os2*)
|
cannam@86
|
5897 # This hack is so that the source file can tell whether it is being
|
cannam@86
|
5898 # built for inclusion in a dll (and should export symbols for example).
|
cannam@86
|
5899 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
|
cannam@86
|
5900 ;;
|
cannam@86
|
5901
|
cannam@86
|
5902 hpux9* | hpux10* | hpux11*)
|
cannam@86
|
5903 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@86
|
5904 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
cannam@86
|
5905 # not for PA HP-UX.
|
cannam@86
|
5906 case "$host_cpu" in
|
cannam@86
|
5907 hppa*64*|ia64*)
|
cannam@86
|
5908 # +Z the default
|
cannam@86
|
5909 ;;
|
cannam@86
|
5910 *)
|
cannam@86
|
5911 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
cannam@86
|
5912 ;;
|
cannam@86
|
5913 esac
|
cannam@86
|
5914 # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
cannam@86
|
5915 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
|
cannam@86
|
5916 ;;
|
cannam@86
|
5917
|
cannam@86
|
5918 irix5* | irix6* | nonstopux*)
|
cannam@86
|
5919 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@86
|
5920 # PIC (with -KPIC) is the default.
|
cannam@86
|
5921 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
cannam@86
|
5922 ;;
|
cannam@86
|
5923
|
cannam@86
|
5924 newsos6)
|
cannam@86
|
5925 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@86
|
5926 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@86
|
5927 ;;
|
cannam@86
|
5928
|
cannam@86
|
5929 linux*)
|
cannam@86
|
5930 case $cc_basename in
|
cannam@86
|
5931 icc* | ecc*)
|
cannam@86
|
5932 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@86
|
5933 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@86
|
5934 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
cannam@86
|
5935 ;;
|
cannam@86
|
5936 pgcc* | pgf77* | pgf90*)
|
cannam@86
|
5937 # Portland Group compilers (*not* the Pentium gcc compiler,
|
cannam@86
|
5938 # which looks to be a dead project)
|
cannam@86
|
5939 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@86
|
5940 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
cannam@86
|
5941 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
cannam@86
|
5942 ;;
|
cannam@86
|
5943 ccc*)
|
cannam@86
|
5944 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@86
|
5945 # All Alpha code is PIC.
|
cannam@86
|
5946 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
cannam@86
|
5947 ;;
|
cannam@86
|
5948 esac
|
cannam@86
|
5949 ;;
|
cannam@86
|
5950
|
cannam@86
|
5951 osf3* | osf4* | osf5*)
|
cannam@86
|
5952 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@86
|
5953 # All OSF/1 code is PIC.
|
cannam@86
|
5954 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
cannam@86
|
5955 ;;
|
cannam@86
|
5956
|
cannam@86
|
5957 sco3.2v5*)
|
cannam@86
|
5958 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
|
cannam@86
|
5959 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
|
cannam@86
|
5960 ;;
|
cannam@86
|
5961
|
cannam@86
|
5962 solaris*)
|
cannam@86
|
5963 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@86
|
5964 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@86
|
5965 case $cc_basename in
|
cannam@86
|
5966 f77* | f90* | f95*)
|
cannam@86
|
5967 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
|
cannam@86
|
5968 *)
|
cannam@86
|
5969 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
|
cannam@86
|
5970 esac
|
cannam@86
|
5971 ;;
|
cannam@86
|
5972
|
cannam@86
|
5973 sunos4*)
|
cannam@86
|
5974 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
cannam@86
|
5975 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
cannam@86
|
5976 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@86
|
5977 ;;
|
cannam@86
|
5978
|
cannam@86
|
5979 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
cannam@86
|
5980 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@86
|
5981 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
cannam@86
|
5982 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@86
|
5983 ;;
|
cannam@86
|
5984
|
cannam@86
|
5985 sysv4*MP*)
|
cannam@86
|
5986 if test -d /usr/nec ;then
|
cannam@86
|
5987 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
|
cannam@86
|
5988 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@86
|
5989 fi
|
cannam@86
|
5990 ;;
|
cannam@86
|
5991
|
cannam@86
|
5992 unicos*)
|
cannam@86
|
5993 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
cannam@86
|
5994 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
cannam@86
|
5995 ;;
|
cannam@86
|
5996
|
cannam@86
|
5997 uts4*)
|
cannam@86
|
5998 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
cannam@86
|
5999 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
cannam@86
|
6000 ;;
|
cannam@86
|
6001
|
cannam@86
|
6002 *)
|
cannam@86
|
6003 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
cannam@86
|
6004 ;;
|
cannam@86
|
6005 esac
|
cannam@86
|
6006 fi
|
cannam@86
|
6007 ])
|
cannam@86
|
6008 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
|
cannam@86
|
6009
|
cannam@86
|
6010 #
|
cannam@86
|
6011 # Check to make sure the PIC flag actually works.
|
cannam@86
|
6012 #
|
cannam@86
|
6013 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
|
cannam@86
|
6014 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
|
cannam@86
|
6015 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
|
cannam@86
|
6016 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
|
cannam@86
|
6017 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
|
cannam@86
|
6018 "" | " "*) ;;
|
cannam@86
|
6019 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
|
cannam@86
|
6020 esac],
|
cannam@86
|
6021 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
cannam@86
|
6022 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
|
cannam@86
|
6023 fi
|
cannam@86
|
6024 case "$host_os" in
|
cannam@86
|
6025 # For platforms which do not support PIC, -DPIC is meaningless:
|
cannam@86
|
6026 *djgpp*)
|
cannam@86
|
6027 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
cannam@86
|
6028 ;;
|
cannam@86
|
6029 *)
|
cannam@86
|
6030 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
|
cannam@86
|
6031 ;;
|
cannam@86
|
6032 esac
|
cannam@86
|
6033 ])
|
cannam@86
|
6034
|
cannam@86
|
6035
|
cannam@86
|
6036 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
|
cannam@86
|
6037 # ------------------------------------
|
cannam@86
|
6038 # See if the linker supports building shared libraries.
|
cannam@86
|
6039 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
|
cannam@86
|
6040 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
cannam@86
|
6041 ifelse([$1],[CXX],[
|
cannam@86
|
6042 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
cannam@86
|
6043 case $host_os in
|
cannam@86
|
6044 aix4* | aix5*)
|
cannam@86
|
6045 # If we're using GNU nm, then we don't want the "-C" option.
|
cannam@86
|
6046 # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
cannam@86
|
6047 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
cannam@86
|
6048 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
|
cannam@86
|
6049 else
|
cannam@86
|
6050 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
|
cannam@86
|
6051 fi
|
cannam@86
|
6052 ;;
|
cannam@86
|
6053 pw32*)
|
cannam@86
|
6054 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
|
cannam@86
|
6055 ;;
|
cannam@86
|
6056 cygwin* | mingw*)
|
cannam@86
|
6057 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
|
cannam@86
|
6058 ;;
|
cannam@86
|
6059 *)
|
cannam@86
|
6060 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
cannam@86
|
6061 ;;
|
cannam@86
|
6062 esac
|
cannam@86
|
6063 ],[
|
cannam@86
|
6064 runpath_var=
|
cannam@86
|
6065 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
|
cannam@86
|
6066 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
|
cannam@86
|
6067 _LT_AC_TAGVAR(archive_cmds, $1)=
|
cannam@86
|
6068 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
|
cannam@86
|
6069 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
|
cannam@86
|
6070 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
|
cannam@86
|
6071 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
|
cannam@86
|
6072 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
cannam@86
|
6073 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
|
cannam@86
|
6074 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
cannam@86
|
6075 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
cannam@86
|
6076 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
cannam@86
|
6077 _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
cannam@86
|
6078 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
|
cannam@86
|
6079 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
cannam@86
|
6080 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
|
cannam@86
|
6081 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
|
cannam@86
|
6082 _LT_AC_TAGVAR(module_cmds, $1)=
|
cannam@86
|
6083 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
|
cannam@86
|
6084 _LT_AC_TAGVAR(always_export_symbols, $1)=no
|
cannam@86
|
6085 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
cannam@86
|
6086 # include_expsyms should be a list of space-separated symbols to be *always*
|
cannam@86
|
6087 # included in the symbol list
|
cannam@86
|
6088 _LT_AC_TAGVAR(include_expsyms, $1)=
|
cannam@86
|
6089 # exclude_expsyms can be an extended regexp of symbols to exclude
|
cannam@86
|
6090 # it will be wrapped by ` (' and `)$', so one must not match beginning or
|
cannam@86
|
6091 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
|
cannam@86
|
6092 # as well as any symbol that contains `d'.
|
cannam@86
|
6093 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
|
cannam@86
|
6094 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
cannam@86
|
6095 # platforms (ab)use it in PIC code, but their linkers get confused if
|
cannam@86
|
6096 # the symbol is explicitly referenced. Since portable code cannot
|
cannam@86
|
6097 # rely on this symbol name, it's probably fine to never include it in
|
cannam@86
|
6098 # preloaded symbol tables.
|
cannam@86
|
6099 extract_expsyms_cmds=
|
cannam@86
|
6100 # Just being paranoid about ensuring that cc_basename is set.
|
cannam@86
|
6101 _LT_CC_BASENAME([$compiler])
|
cannam@86
|
6102 case $host_os in
|
cannam@86
|
6103 cygwin* | mingw* | pw32*)
|
cannam@86
|
6104 # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
cannam@86
|
6105 # When not using gcc, we currently assume that we are using
|
cannam@86
|
6106 # Microsoft Visual C++.
|
cannam@86
|
6107 if test "$GCC" != yes; then
|
cannam@86
|
6108 with_gnu_ld=no
|
cannam@86
|
6109 fi
|
cannam@86
|
6110 ;;
|
cannam@86
|
6111 openbsd*)
|
cannam@86
|
6112 with_gnu_ld=no
|
cannam@86
|
6113 ;;
|
cannam@86
|
6114 esac
|
cannam@86
|
6115
|
cannam@86
|
6116 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
cannam@86
|
6117 if test "$with_gnu_ld" = yes; then
|
cannam@86
|
6118 # If archive_cmds runs LD, not CC, wlarc should be empty
|
cannam@86
|
6119 wlarc='${wl}'
|
cannam@86
|
6120
|
cannam@86
|
6121 # Set some defaults for GNU ld with shared library support. These
|
cannam@86
|
6122 # are reset later if shared libraries are not supported. Putting them
|
cannam@86
|
6123 # here allows them to be overridden if necessary.
|
cannam@86
|
6124 runpath_var=LD_RUN_PATH
|
cannam@86
|
6125 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
|
cannam@86
|
6126 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
cannam@86
|
6127 # ancient GNU ld didn't support --whole-archive et. al.
|
cannam@86
|
6128 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
|
cannam@86
|
6129 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
cannam@86
|
6130 else
|
cannam@86
|
6131 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
cannam@86
|
6132 fi
|
cannam@86
|
6133 supports_anon_versioning=no
|
cannam@86
|
6134 case `$LD -v 2>/dev/null` in
|
cannam@86
|
6135 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
|
cannam@86
|
6136 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
cannam@86
|
6137 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
cannam@86
|
6138 *\ 2.11.*) ;; # other 2.11 versions
|
cannam@86
|
6139 *) supports_anon_versioning=yes ;;
|
cannam@86
|
6140 esac
|
cannam@86
|
6141
|
cannam@86
|
6142 # See if GNU ld supports shared libraries.
|
cannam@86
|
6143 case $host_os in
|
cannam@86
|
6144 aix3* | aix4* | aix5*)
|
cannam@86
|
6145 # On AIX/PPC, the GNU linker is very broken
|
cannam@86
|
6146 if test "$host_cpu" != ia64; then
|
cannam@86
|
6147 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
6148 cat <<EOF 1>&2
|
cannam@86
|
6149
|
cannam@86
|
6150 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
|
cannam@86
|
6151 *** to be unable to reliably create shared libraries on AIX.
|
cannam@86
|
6152 *** Therefore, libtool is disabling shared libraries support. If you
|
cannam@86
|
6153 *** really care for shared libraries, you may want to modify your PATH
|
cannam@86
|
6154 *** so that a non-GNU linker is found, and then restart.
|
cannam@86
|
6155
|
cannam@86
|
6156 EOF
|
cannam@86
|
6157 fi
|
cannam@86
|
6158 ;;
|
cannam@86
|
6159
|
cannam@86
|
6160 amigaos*)
|
cannam@86
|
6161 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
|
cannam@86
|
6162 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@86
|
6163 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@86
|
6164
|
cannam@86
|
6165 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
|
cannam@86
|
6166 # that the semantics of dynamic libraries on AmigaOS, at least up
|
cannam@86
|
6167 # to version 4, is to share data among multiple programs linked
|
cannam@86
|
6168 # with the same dynamic library. Since this doesn't match the
|
cannam@86
|
6169 # behavior of shared libraries on other platforms, we can't use
|
cannam@86
|
6170 # them.
|
cannam@86
|
6171 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
6172 ;;
|
cannam@86
|
6173
|
cannam@86
|
6174 beos*)
|
cannam@86
|
6175 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
cannam@86
|
6176 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
cannam@86
|
6177 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
cannam@86
|
6178 # support --undefined. This deserves some investigation. FIXME
|
cannam@86
|
6179 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
6180 else
|
cannam@86
|
6181 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
6182 fi
|
cannam@86
|
6183 ;;
|
cannam@86
|
6184
|
cannam@86
|
6185 cygwin* | mingw* | pw32*)
|
cannam@86
|
6186 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
cannam@86
|
6187 # as there is no search path for DLLs.
|
cannam@86
|
6188 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@86
|
6189 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
cannam@86
|
6190 _LT_AC_TAGVAR(always_export_symbols, $1)=no
|
cannam@86
|
6191 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
cannam@86
|
6192 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
|
cannam@86
|
6193
|
cannam@86
|
6194 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
cannam@86
|
6195 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
cannam@86
|
6196 # If the export-symbols file already is a .def file (1st line
|
cannam@86
|
6197 # is EXPORTS), use it as is; otherwise, prepend...
|
cannam@86
|
6198 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
cannam@86
|
6199 cp $export_symbols $output_objdir/$soname.def;
|
cannam@86
|
6200 else
|
cannam@86
|
6201 echo EXPORTS > $output_objdir/$soname.def;
|
cannam@86
|
6202 cat $export_symbols >> $output_objdir/$soname.def;
|
cannam@86
|
6203 fi~
|
cannam@86
|
6204 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
cannam@86
|
6205 else
|
cannam@86
|
6206 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
6207 fi
|
cannam@86
|
6208 ;;
|
cannam@86
|
6209
|
cannam@86
|
6210 linux*)
|
cannam@86
|
6211 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
cannam@86
|
6212 tmp_addflag=
|
cannam@86
|
6213 case $cc_basename,$host_cpu in
|
cannam@86
|
6214 pgcc*) # Portland Group C compiler
|
cannam@86
|
6215 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
cannam@86
|
6216 ;;
|
cannam@86
|
6217 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
|
cannam@86
|
6218 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
cannam@86
|
6219 tmp_addflag=' -fpic -Mnomain' ;;
|
cannam@86
|
6220 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
cannam@86
|
6221 tmp_addflag=' -i_dynamic' ;;
|
cannam@86
|
6222 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
cannam@86
|
6223 tmp_addflag=' -i_dynamic -nofor_main' ;;
|
cannam@86
|
6224 ifc* | ifort*) # Intel Fortran compiler
|
cannam@86
|
6225 tmp_addflag=' -nofor_main' ;;
|
cannam@86
|
6226 esac
|
cannam@86
|
6227 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
6228
|
cannam@86
|
6229 if test $supports_anon_versioning = yes; then
|
cannam@86
|
6230 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
|
cannam@86
|
6231 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
cannam@86
|
6232 $echo "local: *; };" >> $output_objdir/$libname.ver~
|
cannam@86
|
6233 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
cannam@86
|
6234 fi
|
cannam@86
|
6235 else
|
cannam@86
|
6236 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
6237 fi
|
cannam@86
|
6238 ;;
|
cannam@86
|
6239
|
cannam@86
|
6240 netbsd*)
|
cannam@86
|
6241 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
cannam@86
|
6242 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
cannam@86
|
6243 wlarc=
|
cannam@86
|
6244 else
|
cannam@86
|
6245 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
6246 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@86
|
6247 fi
|
cannam@86
|
6248 ;;
|
cannam@86
|
6249
|
cannam@86
|
6250 solaris* | sysv5*)
|
cannam@86
|
6251 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
cannam@86
|
6252 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
6253 cat <<EOF 1>&2
|
cannam@86
|
6254
|
cannam@86
|
6255 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
cannam@86
|
6256 *** create shared libraries on Solaris systems. Therefore, libtool
|
cannam@86
|
6257 *** is disabling shared libraries support. We urge you to upgrade GNU
|
cannam@86
|
6258 *** binutils to release 2.9.1 or newer. Another option is to modify
|
cannam@86
|
6259 *** your PATH or compiler configuration so that the native linker is
|
cannam@86
|
6260 *** used, and then restart.
|
cannam@86
|
6261
|
cannam@86
|
6262 EOF
|
cannam@86
|
6263 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
cannam@86
|
6264 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
6265 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@86
|
6266 else
|
cannam@86
|
6267 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
6268 fi
|
cannam@86
|
6269 ;;
|
cannam@86
|
6270
|
cannam@86
|
6271 sunos4*)
|
cannam@86
|
6272 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
6273 wlarc=
|
cannam@86
|
6274 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
cannam@86
|
6275 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
6276 ;;
|
cannam@86
|
6277
|
cannam@86
|
6278 *)
|
cannam@86
|
6279 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
cannam@86
|
6280 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
cannam@86
|
6281 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@86
|
6282 else
|
cannam@86
|
6283 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
6284 fi
|
cannam@86
|
6285 ;;
|
cannam@86
|
6286 esac
|
cannam@86
|
6287
|
cannam@86
|
6288 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
|
cannam@86
|
6289 runpath_var=
|
cannam@86
|
6290 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
cannam@86
|
6291 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
|
cannam@86
|
6292 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
|
cannam@86
|
6293 fi
|
cannam@86
|
6294 else
|
cannam@86
|
6295 # PORTME fill in a description of your system's linker (not GNU ld)
|
cannam@86
|
6296 case $host_os in
|
cannam@86
|
6297 aix3*)
|
cannam@86
|
6298 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
cannam@86
|
6299 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
cannam@86
|
6300 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
|
cannam@86
|
6301 # Note: this linker hardcodes the directories in LIBPATH if there
|
cannam@86
|
6302 # are no directories specified by -L.
|
cannam@86
|
6303 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@86
|
6304 if test "$GCC" = yes && test -z "$link_static_flag"; then
|
cannam@86
|
6305 # Neither direct hardcoding nor static linking is supported with a
|
cannam@86
|
6306 # broken collect2.
|
cannam@86
|
6307 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
|
cannam@86
|
6308 fi
|
cannam@86
|
6309 ;;
|
cannam@86
|
6310
|
cannam@86
|
6311 aix4* | aix5*)
|
cannam@86
|
6312 if test "$host_cpu" = ia64; then
|
cannam@86
|
6313 # On IA64, the linker does run time linking by default, so we don't
|
cannam@86
|
6314 # have to do anything special.
|
cannam@86
|
6315 aix_use_runtimelinking=no
|
cannam@86
|
6316 exp_sym_flag='-Bexport'
|
cannam@86
|
6317 no_entry_flag=""
|
cannam@86
|
6318 else
|
cannam@86
|
6319 # If we're using GNU nm, then we don't want the "-C" option.
|
cannam@86
|
6320 # -C means demangle to AIX nm, but means don't demangle with GNU nm
|
cannam@86
|
6321 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
|
cannam@86
|
6322 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
|
cannam@86
|
6323 else
|
cannam@86
|
6324 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
|
cannam@86
|
6325 fi
|
cannam@86
|
6326 aix_use_runtimelinking=no
|
cannam@86
|
6327
|
cannam@86
|
6328 # Test if we are trying to use run time linking or normal
|
cannam@86
|
6329 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
cannam@86
|
6330 # need to do runtime linking.
|
cannam@86
|
6331 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
|
cannam@86
|
6332 for ld_flag in $LDFLAGS; do
|
cannam@86
|
6333 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
cannam@86
|
6334 aix_use_runtimelinking=yes
|
cannam@86
|
6335 break
|
cannam@86
|
6336 fi
|
cannam@86
|
6337 done
|
cannam@86
|
6338 esac
|
cannam@86
|
6339
|
cannam@86
|
6340 exp_sym_flag='-bexport'
|
cannam@86
|
6341 no_entry_flag='-bnoentry'
|
cannam@86
|
6342 fi
|
cannam@86
|
6343
|
cannam@86
|
6344 # When large executables or shared objects are built, AIX ld can
|
cannam@86
|
6345 # have problems creating the table of contents. If linking a library
|
cannam@86
|
6346 # or program results in "error TOC overflow" add -mminimal-toc to
|
cannam@86
|
6347 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
cannam@86
|
6348 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
cannam@86
|
6349
|
cannam@86
|
6350 _LT_AC_TAGVAR(archive_cmds, $1)=''
|
cannam@86
|
6351 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
cannam@86
|
6352 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
|
cannam@86
|
6353 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
cannam@86
|
6354
|
cannam@86
|
6355 if test "$GCC" = yes; then
|
cannam@86
|
6356 case $host_os in aix4.[[012]]|aix4.[[012]].*)
|
cannam@86
|
6357 # We only want to do this on AIX 4.2 and lower, the check
|
cannam@86
|
6358 # below for broken collect2 doesn't work under 4.3+
|
cannam@86
|
6359 collect2name=`${CC} -print-prog-name=collect2`
|
cannam@86
|
6360 if test -f "$collect2name" && \
|
cannam@86
|
6361 strings "$collect2name" | grep resolve_lib_name >/dev/null
|
cannam@86
|
6362 then
|
cannam@86
|
6363 # We have reworked collect2
|
cannam@86
|
6364 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
cannam@86
|
6365 else
|
cannam@86
|
6366 # We have old collect2
|
cannam@86
|
6367 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
|
cannam@86
|
6368 # It fails to find uninstalled libraries when the uninstalled
|
cannam@86
|
6369 # path is not listed in the libpath. Setting hardcode_minus_L
|
cannam@86
|
6370 # to unsupported forces relinking
|
cannam@86
|
6371 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@86
|
6372 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@86
|
6373 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
cannam@86
|
6374 fi
|
cannam@86
|
6375 esac
|
cannam@86
|
6376 shared_flag='-shared'
|
cannam@86
|
6377 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
6378 shared_flag="$shared_flag "'${wl}-G'
|
cannam@86
|
6379 fi
|
cannam@86
|
6380 else
|
cannam@86
|
6381 # not using gcc
|
cannam@86
|
6382 if test "$host_cpu" = ia64; then
|
cannam@86
|
6383 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
cannam@86
|
6384 # chokes on -Wl,-G. The following line is correct:
|
cannam@86
|
6385 shared_flag='-G'
|
cannam@86
|
6386 else
|
cannam@86
|
6387 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
6388 shared_flag='${wl}-G'
|
cannam@86
|
6389 else
|
cannam@86
|
6390 shared_flag='${wl}-bM:SRE'
|
cannam@86
|
6391 fi
|
cannam@86
|
6392 fi
|
cannam@86
|
6393 fi
|
cannam@86
|
6394
|
cannam@86
|
6395 # It seems that -bexpall does not export symbols beginning with
|
cannam@86
|
6396 # underscore (_), so it is better to generate a list of symbols to export.
|
cannam@86
|
6397 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
cannam@86
|
6398 if test "$aix_use_runtimelinking" = yes; then
|
cannam@86
|
6399 # Warning - without using the other runtime loading flags (-brtl),
|
cannam@86
|
6400 # -berok will link without error, but may produce a broken library.
|
cannam@86
|
6401 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
|
cannam@86
|
6402 # Determine the default libpath from the value encoded in an empty executable.
|
cannam@86
|
6403 _LT_AC_SYS_LIBPATH_AIX
|
cannam@86
|
6404 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
cannam@86
|
6405 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
cannam@86
|
6406 else
|
cannam@86
|
6407 if test "$host_cpu" = ia64; then
|
cannam@86
|
6408 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
|
cannam@86
|
6409 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
|
cannam@86
|
6410 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
|
cannam@86
|
6411 else
|
cannam@86
|
6412 # Determine the default libpath from the value encoded in an empty executable.
|
cannam@86
|
6413 _LT_AC_SYS_LIBPATH_AIX
|
cannam@86
|
6414 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
cannam@86
|
6415 # Warning - without using the other run time loading flags,
|
cannam@86
|
6416 # -berok will link without error, but may produce a broken library.
|
cannam@86
|
6417 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
|
cannam@86
|
6418 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
|
cannam@86
|
6419 # -bexpall does not export symbols beginning with underscore (_)
|
cannam@86
|
6420 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
cannam@86
|
6421 # Exported symbols can be pulled into shared objects from archives
|
cannam@86
|
6422 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
|
cannam@86
|
6423 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
cannam@86
|
6424 # This is similar to how AIX traditionally builds it's shared libraries.
|
cannam@86
|
6425 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
cannam@86
|
6426 fi
|
cannam@86
|
6427 fi
|
cannam@86
|
6428 ;;
|
cannam@86
|
6429
|
cannam@86
|
6430 amigaos*)
|
cannam@86
|
6431 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
|
cannam@86
|
6432 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@86
|
6433 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@86
|
6434 # see comment about different semantics on the GNU ld section
|
cannam@86
|
6435 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
6436 ;;
|
cannam@86
|
6437
|
cannam@86
|
6438 bsdi[[45]]*)
|
cannam@86
|
6439 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
|
cannam@86
|
6440 ;;
|
cannam@86
|
6441
|
cannam@86
|
6442 cygwin* | mingw* | pw32*)
|
cannam@86
|
6443 # When not using gcc, we currently assume that we are using
|
cannam@86
|
6444 # Microsoft Visual C++.
|
cannam@86
|
6445 # hardcode_libdir_flag_spec is actually meaningless, as there is
|
cannam@86
|
6446 # no search path for DLLs.
|
cannam@86
|
6447 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
|
cannam@86
|
6448 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
cannam@86
|
6449 # Tell ltmain to make .lib files, not .a files.
|
cannam@86
|
6450 libext=lib
|
cannam@86
|
6451 # Tell ltmain to make .dll files, not .so files.
|
cannam@86
|
6452 shrext_cmds=".dll"
|
cannam@86
|
6453 # FIXME: Setting linknames here is a bad hack.
|
cannam@86
|
6454 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
|
cannam@86
|
6455 # The linker will automatically build a .lib file if we build a DLL.
|
cannam@86
|
6456 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
|
cannam@86
|
6457 # FIXME: Should let the user specify the lib program.
|
cannam@86
|
6458 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
|
cannam@86
|
6459 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
|
cannam@86
|
6460 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
cannam@86
|
6461 ;;
|
cannam@86
|
6462
|
cannam@86
|
6463 darwin* | rhapsody*)
|
cannam@86
|
6464 case "$host_os" in
|
cannam@86
|
6465 rhapsody* | darwin1.[[012]])
|
cannam@86
|
6466 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
|
cannam@86
|
6467 ;;
|
cannam@86
|
6468 *) # Darwin 1.3 on
|
cannam@86
|
6469 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
|
cannam@86
|
6470 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
cannam@86
|
6471 else
|
cannam@86
|
6472 case ${MACOSX_DEPLOYMENT_TARGET} in
|
cannam@86
|
6473 10.[[012]])
|
cannam@86
|
6474 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
|
cannam@86
|
6475 ;;
|
cannam@86
|
6476 10.*)
|
cannam@86
|
6477 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
|
cannam@86
|
6478 ;;
|
cannam@86
|
6479 esac
|
cannam@86
|
6480 fi
|
cannam@86
|
6481 ;;
|
cannam@86
|
6482 esac
|
cannam@86
|
6483 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@86
|
6484 _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
cannam@86
|
6485 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
|
cannam@86
|
6486 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
cannam@86
|
6487 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
|
cannam@86
|
6488 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
cannam@86
|
6489 if test "$GCC" = yes ; then
|
cannam@86
|
6490 output_verbose_link_cmd='echo'
|
cannam@86
|
6491 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
cannam@86
|
6492 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
cannam@86
|
6493 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
cannam@86
|
6494 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
6495 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
6496 else
|
cannam@86
|
6497 case $cc_basename in
|
cannam@86
|
6498 xlc*)
|
cannam@86
|
6499 output_verbose_link_cmd='echo'
|
cannam@86
|
6500 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
|
cannam@86
|
6501 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
cannam@86
|
6502 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
cannam@86
|
6503 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
6504 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
cannam@86
|
6505 ;;
|
cannam@86
|
6506 *)
|
cannam@86
|
6507 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
6508 ;;
|
cannam@86
|
6509 esac
|
cannam@86
|
6510 fi
|
cannam@86
|
6511 ;;
|
cannam@86
|
6512
|
cannam@86
|
6513 dgux*)
|
cannam@86
|
6514 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
6515 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@86
|
6516 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
6517 ;;
|
cannam@86
|
6518
|
cannam@86
|
6519 freebsd1*)
|
cannam@86
|
6520 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
6521 ;;
|
cannam@86
|
6522
|
cannam@86
|
6523 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
cannam@86
|
6524 # support. Future versions do this automatically, but an explicit c++rt0.o
|
cannam@86
|
6525 # does not break anything, and helps significantly (at the cost of a little
|
cannam@86
|
6526 # extra space).
|
cannam@86
|
6527 freebsd2.2*)
|
cannam@86
|
6528 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
cannam@86
|
6529 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
cannam@86
|
6530 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
cannam@86
|
6531 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
6532 ;;
|
cannam@86
|
6533
|
cannam@86
|
6534 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
cannam@86
|
6535 freebsd2*)
|
cannam@86
|
6536 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
6537 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
cannam@86
|
6538 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@86
|
6539 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
6540 ;;
|
cannam@86
|
6541
|
cannam@86
|
6542 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
cannam@86
|
6543 freebsd* | kfreebsd*-gnu | dragonfly*)
|
cannam@86
|
6544 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
6545 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
cannam@86
|
6546 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
cannam@86
|
6547 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
6548 ;;
|
cannam@86
|
6549
|
cannam@86
|
6550 hpux9*)
|
cannam@86
|
6551 if test "$GCC" = yes; then
|
cannam@86
|
6552 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
cannam@86
|
6553 else
|
cannam@86
|
6554 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
cannam@86
|
6555 fi
|
cannam@86
|
6556 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
cannam@86
|
6557 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@86
|
6558 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
cannam@86
|
6559
|
cannam@86
|
6560 # hardcode_minus_L: Not really in the search PATH,
|
cannam@86
|
6561 # but as the default location of the library.
|
cannam@86
|
6562 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@86
|
6563 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
cannam@86
|
6564 ;;
|
cannam@86
|
6565
|
cannam@86
|
6566 hpux10* | hpux11*)
|
cannam@86
|
6567 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
cannam@86
|
6568 case "$host_cpu" in
|
cannam@86
|
6569 hppa*64*|ia64*)
|
cannam@86
|
6570 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
6571 ;;
|
cannam@86
|
6572 *)
|
cannam@86
|
6573 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
6574 ;;
|
cannam@86
|
6575 esac
|
cannam@86
|
6576 else
|
cannam@86
|
6577 case "$host_cpu" in
|
cannam@86
|
6578 hppa*64*|ia64*)
|
cannam@86
|
6579 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
6580 ;;
|
cannam@86
|
6581 *)
|
cannam@86
|
6582 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
6583 ;;
|
cannam@86
|
6584 esac
|
cannam@86
|
6585 fi
|
cannam@86
|
6586 if test "$with_gnu_ld" = no; then
|
cannam@86
|
6587 case "$host_cpu" in
|
cannam@86
|
6588 hppa*64*)
|
cannam@86
|
6589 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
cannam@86
|
6590 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
|
cannam@86
|
6591 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@86
|
6592 _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
cannam@86
|
6593 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
6594 ;;
|
cannam@86
|
6595 ia64*)
|
cannam@86
|
6596 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@86
|
6597 _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
cannam@86
|
6598 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
6599
|
cannam@86
|
6600 # hardcode_minus_L: Not really in the search PATH,
|
cannam@86
|
6601 # but as the default location of the library.
|
cannam@86
|
6602 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@86
|
6603 ;;
|
cannam@86
|
6604 *)
|
cannam@86
|
6605 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
cannam@86
|
6606 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@86
|
6607 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
cannam@86
|
6608 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
cannam@86
|
6609
|
cannam@86
|
6610 # hardcode_minus_L: Not really in the search PATH,
|
cannam@86
|
6611 # but as the default location of the library.
|
cannam@86
|
6612 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@86
|
6613 ;;
|
cannam@86
|
6614 esac
|
cannam@86
|
6615 fi
|
cannam@86
|
6616 ;;
|
cannam@86
|
6617
|
cannam@86
|
6618 irix5* | irix6* | nonstopux*)
|
cannam@86
|
6619 if test "$GCC" = yes; then
|
cannam@86
|
6620 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@86
|
6621 else
|
cannam@86
|
6622 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@86
|
6623 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
|
cannam@86
|
6624 fi
|
cannam@86
|
6625 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
6626 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@86
|
6627 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
cannam@86
|
6628 ;;
|
cannam@86
|
6629
|
cannam@86
|
6630 netbsd*)
|
cannam@86
|
6631 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
cannam@86
|
6632 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
cannam@86
|
6633 else
|
cannam@86
|
6634 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
cannam@86
|
6635 fi
|
cannam@86
|
6636 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
cannam@86
|
6637 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
cannam@86
|
6638 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
6639 ;;
|
cannam@86
|
6640
|
cannam@86
|
6641 newsos6)
|
cannam@86
|
6642 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
6643 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
cannam@86
|
6644 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
6645 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@86
|
6646 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
6647 ;;
|
cannam@86
|
6648
|
cannam@86
|
6649 openbsd*)
|
cannam@86
|
6650 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
cannam@86
|
6651 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
6652 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
cannam@86
|
6653 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
6654 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
cannam@86
|
6655 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
cannam@86
|
6656 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
cannam@86
|
6657 else
|
cannam@86
|
6658 case $host_os in
|
cannam@86
|
6659 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
|
cannam@86
|
6660 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
6661 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
cannam@86
|
6662 ;;
|
cannam@86
|
6663 *)
|
cannam@86
|
6664 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
6665 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
cannam@86
|
6666 ;;
|
cannam@86
|
6667 esac
|
cannam@86
|
6668 fi
|
cannam@86
|
6669 ;;
|
cannam@86
|
6670
|
cannam@86
|
6671 os2*)
|
cannam@86
|
6672 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@86
|
6673 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@86
|
6674 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
cannam@86
|
6675 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
|
cannam@86
|
6676 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
|
cannam@86
|
6677 ;;
|
cannam@86
|
6678
|
cannam@86
|
6679 osf3*)
|
cannam@86
|
6680 if test "$GCC" = yes; then
|
cannam@86
|
6681 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
cannam@86
|
6682 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@86
|
6683 else
|
cannam@86
|
6684 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
cannam@86
|
6685 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@86
|
6686 fi
|
cannam@86
|
6687 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
6688 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@86
|
6689 ;;
|
cannam@86
|
6690
|
cannam@86
|
6691 osf4* | osf5*) # as osf3* with the addition of -msym flag
|
cannam@86
|
6692 if test "$GCC" = yes; then
|
cannam@86
|
6693 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
cannam@86
|
6694 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
cannam@86
|
6695 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
cannam@86
|
6696 else
|
cannam@86
|
6697 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
cannam@86
|
6698 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
|
cannam@86
|
6699 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
|
cannam@86
|
6700 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
|
cannam@86
|
6701
|
cannam@86
|
6702 # Both c and cxx compiler support -rpath directly
|
cannam@86
|
6703 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
|
cannam@86
|
6704 fi
|
cannam@86
|
6705 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
cannam@86
|
6706 ;;
|
cannam@86
|
6707
|
cannam@86
|
6708 sco3.2v5*)
|
cannam@86
|
6709 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
6710 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
6711 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
|
cannam@86
|
6712 runpath_var=LD_RUN_PATH
|
cannam@86
|
6713 hardcode_runpath_var=yes
|
cannam@86
|
6714 ;;
|
cannam@86
|
6715
|
cannam@86
|
6716 solaris*)
|
cannam@86
|
6717 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
|
cannam@86
|
6718 if test "$GCC" = yes; then
|
cannam@86
|
6719 wlarc='${wl}'
|
cannam@86
|
6720 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
6721 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
cannam@86
|
6722 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
cannam@86
|
6723 else
|
cannam@86
|
6724 wlarc=''
|
cannam@86
|
6725 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
6726 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
cannam@86
|
6727 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
cannam@86
|
6728 fi
|
cannam@86
|
6729 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
cannam@86
|
6730 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
6731 case $host_os in
|
cannam@86
|
6732 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
cannam@86
|
6733 *)
|
cannam@86
|
6734 # The compiler driver will combine linker options so we
|
cannam@86
|
6735 # cannot just pass the convience library names through
|
cannam@86
|
6736 # without $wl, iff we do not link with $LD.
|
cannam@86
|
6737 # Luckily, gcc supports the same syntax we need for Sun Studio.
|
cannam@86
|
6738 # Supported since Solaris 2.6 (maybe 2.5.1?)
|
cannam@86
|
6739 case $wlarc in
|
cannam@86
|
6740 '')
|
cannam@86
|
6741 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
|
cannam@86
|
6742 *)
|
cannam@86
|
6743 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
|
cannam@86
|
6744 esac ;;
|
cannam@86
|
6745 esac
|
cannam@86
|
6746 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
cannam@86
|
6747 ;;
|
cannam@86
|
6748
|
cannam@86
|
6749 sunos4*)
|
cannam@86
|
6750 if test "x$host_vendor" = xsequent; then
|
cannam@86
|
6751 # Use $CC to link under sequent, because it throws in some extra .o
|
cannam@86
|
6752 # files that make .init and .fini sections work.
|
cannam@86
|
6753 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
6754 else
|
cannam@86
|
6755 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
6756 fi
|
cannam@86
|
6757 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@86
|
6758 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
cannam@86
|
6759 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
cannam@86
|
6760 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
6761 ;;
|
cannam@86
|
6762
|
cannam@86
|
6763 sysv4)
|
cannam@86
|
6764 case $host_vendor in
|
cannam@86
|
6765 sni)
|
cannam@86
|
6766 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
6767 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
|
cannam@86
|
6768 ;;
|
cannam@86
|
6769 siemens)
|
cannam@86
|
6770 ## LD is ld it makes a PLAMLIB
|
cannam@86
|
6771 ## CC just makes a GrossModule.
|
cannam@86
|
6772 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
6773 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
|
cannam@86
|
6774 _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
cannam@86
|
6775 ;;
|
cannam@86
|
6776 motorola)
|
cannam@86
|
6777 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
6778 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
|
cannam@86
|
6779 ;;
|
cannam@86
|
6780 esac
|
cannam@86
|
6781 runpath_var='LD_RUN_PATH'
|
cannam@86
|
6782 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
6783 ;;
|
cannam@86
|
6784
|
cannam@86
|
6785 sysv4.3*)
|
cannam@86
|
6786 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
6787 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
6788 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
|
cannam@86
|
6789 ;;
|
cannam@86
|
6790
|
cannam@86
|
6791 sysv4*MP*)
|
cannam@86
|
6792 if test -d /usr/nec; then
|
cannam@86
|
6793 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
6794 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
6795 runpath_var=LD_RUN_PATH
|
cannam@86
|
6796 hardcode_runpath_var=yes
|
cannam@86
|
6797 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
cannam@86
|
6798 fi
|
cannam@86
|
6799 ;;
|
cannam@86
|
6800
|
cannam@86
|
6801 sysv4.2uw2*)
|
cannam@86
|
6802 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
6803 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
cannam@86
|
6804 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
|
cannam@86
|
6805 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
6806 hardcode_runpath_var=yes
|
cannam@86
|
6807 runpath_var=LD_RUN_PATH
|
cannam@86
|
6808 ;;
|
cannam@86
|
6809
|
cannam@86
|
6810 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
|
cannam@86
|
6811 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
|
cannam@86
|
6812 if test "$GCC" = yes; then
|
cannam@86
|
6813 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
6814 else
|
cannam@86
|
6815 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@86
|
6816 fi
|
cannam@86
|
6817 runpath_var='LD_RUN_PATH'
|
cannam@86
|
6818 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
6819 ;;
|
cannam@86
|
6820
|
cannam@86
|
6821 sysv5*)
|
cannam@86
|
6822 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
|
cannam@86
|
6823 # $CC -shared without GNU ld will not create a library from C++
|
cannam@86
|
6824 # object files and a static libstdc++, better avoid it by now
|
cannam@86
|
6825 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
6826 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
cannam@86
|
6827 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
cannam@86
|
6828 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
cannam@86
|
6829 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
6830 runpath_var='LD_RUN_PATH'
|
cannam@86
|
6831 ;;
|
cannam@86
|
6832
|
cannam@86
|
6833 uts4*)
|
cannam@86
|
6834 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@86
|
6835 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
cannam@86
|
6836 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
cannam@86
|
6837 ;;
|
cannam@86
|
6838
|
cannam@86
|
6839 *)
|
cannam@86
|
6840 _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
cannam@86
|
6841 ;;
|
cannam@86
|
6842 esac
|
cannam@86
|
6843 fi
|
cannam@86
|
6844 ])
|
cannam@86
|
6845 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
|
cannam@86
|
6846 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
cannam@86
|
6847
|
cannam@86
|
6848 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
cannam@86
|
6849 if test "$GCC" = yes; then
|
cannam@86
|
6850 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
cannam@86
|
6851 fi
|
cannam@86
|
6852
|
cannam@86
|
6853 #
|
cannam@86
|
6854 # Do we need to explicitly link libc?
|
cannam@86
|
6855 #
|
cannam@86
|
6856 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
|
cannam@86
|
6857 x|xyes)
|
cannam@86
|
6858 # Assume -lc should be added
|
cannam@86
|
6859 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
cannam@86
|
6860
|
cannam@86
|
6861 if test "$enable_shared" = yes && test "$GCC" = yes; then
|
cannam@86
|
6862 case $_LT_AC_TAGVAR(archive_cmds, $1) in
|
cannam@86
|
6863 *'~'*)
|
cannam@86
|
6864 # FIXME: we may have to deal with multi-command sequences.
|
cannam@86
|
6865 ;;
|
cannam@86
|
6866 '$CC '*)
|
cannam@86
|
6867 # Test whether the compiler implicitly links with -lc since on some
|
cannam@86
|
6868 # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
cannam@86
|
6869 # to ld, don't add -lc before -lgcc.
|
cannam@86
|
6870 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
|
cannam@86
|
6871 $rm conftest*
|
cannam@86
|
6872 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@86
|
6873
|
cannam@86
|
6874 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
|
cannam@86
|
6875 soname=conftest
|
cannam@86
|
6876 lib=conftest
|
cannam@86
|
6877 libobjs=conftest.$ac_objext
|
cannam@86
|
6878 deplibs=
|
cannam@86
|
6879 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
|
cannam@86
|
6880 compiler_flags=-v
|
cannam@86
|
6881 linker_flags=-v
|
cannam@86
|
6882 verstring=
|
cannam@86
|
6883 output_objdir=.
|
cannam@86
|
6884 libname=conftest
|
cannam@86
|
6885 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
|
cannam@86
|
6886 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
|
cannam@86
|
6887 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
|
cannam@86
|
6888 then
|
cannam@86
|
6889 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
cannam@86
|
6890 else
|
cannam@86
|
6891 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
cannam@86
|
6892 fi
|
cannam@86
|
6893 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
|
cannam@86
|
6894 else
|
cannam@86
|
6895 cat conftest.err 1>&5
|
cannam@86
|
6896 fi
|
cannam@86
|
6897 $rm conftest*
|
cannam@86
|
6898 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
|
cannam@86
|
6899 ;;
|
cannam@86
|
6900 esac
|
cannam@86
|
6901 fi
|
cannam@86
|
6902 ;;
|
cannam@86
|
6903 esac
|
cannam@86
|
6904 ])# AC_LIBTOOL_PROG_LD_SHLIBS
|
cannam@86
|
6905
|
cannam@86
|
6906
|
cannam@86
|
6907 # _LT_AC_FILE_LTDLL_C
|
cannam@86
|
6908 # -------------------
|
cannam@86
|
6909 # Be careful that the start marker always follows a newline.
|
cannam@86
|
6910 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
|
cannam@86
|
6911 # /* ltdll.c starts here */
|
cannam@86
|
6912 # #define WIN32_LEAN_AND_MEAN
|
cannam@86
|
6913 # #include <windows.h>
|
cannam@86
|
6914 # #undef WIN32_LEAN_AND_MEAN
|
cannam@86
|
6915 # #include <stdio.h>
|
cannam@86
|
6916 #
|
cannam@86
|
6917 # #ifndef __CYGWIN__
|
cannam@86
|
6918 # # ifdef __CYGWIN32__
|
cannam@86
|
6919 # # define __CYGWIN__ __CYGWIN32__
|
cannam@86
|
6920 # # endif
|
cannam@86
|
6921 # #endif
|
cannam@86
|
6922 #
|
cannam@86
|
6923 # #ifdef __cplusplus
|
cannam@86
|
6924 # extern "C" {
|
cannam@86
|
6925 # #endif
|
cannam@86
|
6926 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
|
cannam@86
|
6927 # #ifdef __cplusplus
|
cannam@86
|
6928 # }
|
cannam@86
|
6929 # #endif
|
cannam@86
|
6930 #
|
cannam@86
|
6931 # #ifdef __CYGWIN__
|
cannam@86
|
6932 # #include <cygwin/cygwin_dll.h>
|
cannam@86
|
6933 # DECLARE_CYGWIN_DLL( DllMain );
|
cannam@86
|
6934 # #endif
|
cannam@86
|
6935 # HINSTANCE __hDllInstance_base;
|
cannam@86
|
6936 #
|
cannam@86
|
6937 # BOOL APIENTRY
|
cannam@86
|
6938 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
|
cannam@86
|
6939 # {
|
cannam@86
|
6940 # __hDllInstance_base = hInst;
|
cannam@86
|
6941 # return TRUE;
|
cannam@86
|
6942 # }
|
cannam@86
|
6943 # /* ltdll.c ends here */
|
cannam@86
|
6944 ])# _LT_AC_FILE_LTDLL_C
|
cannam@86
|
6945
|
cannam@86
|
6946
|
cannam@86
|
6947 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
|
cannam@86
|
6948 # ---------------------------------
|
cannam@86
|
6949 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
|
cannam@86
|
6950
|
cannam@86
|
6951
|
cannam@86
|
6952 # old names
|
cannam@86
|
6953 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
|
cannam@86
|
6954 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
|
cannam@86
|
6955 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
|
cannam@86
|
6956 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
|
cannam@86
|
6957 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
|
cannam@86
|
6958 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
|
cannam@86
|
6959 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
|
cannam@86
|
6960
|
cannam@86
|
6961 # This is just to silence aclocal about the macro not being used
|
cannam@86
|
6962 ifelse([AC_DISABLE_FAST_INSTALL])
|
cannam@86
|
6963
|
cannam@86
|
6964 AC_DEFUN([LT_AC_PROG_GCJ],
|
cannam@86
|
6965 [AC_CHECK_TOOL(GCJ, gcj, no)
|
cannam@86
|
6966 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
|
cannam@86
|
6967 AC_SUBST(GCJFLAGS)
|
cannam@86
|
6968 ])
|
cannam@86
|
6969
|
cannam@86
|
6970 AC_DEFUN([LT_AC_PROG_RC],
|
cannam@86
|
6971 [AC_CHECK_TOOL(RC, windres, no)
|
cannam@86
|
6972 ])
|
cannam@86
|
6973
|
cannam@86
|
6974 # NOTE: This macro has been submitted for inclusion into #
|
cannam@86
|
6975 # GNU Autoconf as AC_PROG_SED. When it is available in #
|
cannam@86
|
6976 # a released version of Autoconf we should remove this #
|
cannam@86
|
6977 # macro and use it instead. #
|
cannam@86
|
6978 # LT_AC_PROG_SED
|
cannam@86
|
6979 # --------------
|
cannam@86
|
6980 # Check for a fully-functional sed program, that truncates
|
cannam@86
|
6981 # as few characters as possible. Prefer GNU sed if found.
|
cannam@86
|
6982 AC_DEFUN([LT_AC_PROG_SED],
|
cannam@86
|
6983 [AC_MSG_CHECKING([for a sed that does not truncate output])
|
cannam@86
|
6984 AC_CACHE_VAL(lt_cv_path_SED,
|
cannam@86
|
6985 [# Loop through the user's path and test for sed and gsed.
|
cannam@86
|
6986 # Then use that list of sed's as ones to test for truncation.
|
cannam@86
|
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@86
|
6988 for as_dir in $PATH
|
cannam@86
|
6989 do
|
cannam@86
|
6990 IFS=$as_save_IFS
|
cannam@86
|
6991 test -z "$as_dir" && as_dir=.
|
cannam@86
|
6992 for lt_ac_prog in sed gsed; do
|
cannam@86
|
6993 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@86
|
6994 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
|
cannam@86
|
6995 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
|
cannam@86
|
6996 fi
|
cannam@86
|
6997 done
|
cannam@86
|
6998 done
|
cannam@86
|
6999 done
|
cannam@86
|
7000 lt_ac_max=0
|
cannam@86
|
7001 lt_ac_count=0
|
cannam@86
|
7002 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
|
cannam@86
|
7003 # along with /bin/sed that truncates output.
|
cannam@86
|
7004 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
|
cannam@86
|
7005 test ! -f $lt_ac_sed && continue
|
cannam@86
|
7006 cat /dev/null > conftest.in
|
cannam@86
|
7007 lt_ac_count=0
|
cannam@86
|
7008 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
|
cannam@86
|
7009 # Check for GNU sed and select it if it is found.
|
cannam@86
|
7010 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
|
cannam@86
|
7011 lt_cv_path_SED=$lt_ac_sed
|
cannam@86
|
7012 break
|
cannam@86
|
7013 fi
|
cannam@86
|
7014 while true; do
|
cannam@86
|
7015 cat conftest.in conftest.in >conftest.tmp
|
cannam@86
|
7016 mv conftest.tmp conftest.in
|
cannam@86
|
7017 cp conftest.in conftest.nl
|
cannam@86
|
7018 echo >>conftest.nl
|
cannam@86
|
7019 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
|
cannam@86
|
7020 cmp -s conftest.out conftest.nl || break
|
cannam@86
|
7021 # 10000 chars as input seems more than enough
|
cannam@86
|
7022 test $lt_ac_count -gt 10 && break
|
cannam@86
|
7023 lt_ac_count=`expr $lt_ac_count + 1`
|
cannam@86
|
7024 if test $lt_ac_count -gt $lt_ac_max; then
|
cannam@86
|
7025 lt_ac_max=$lt_ac_count
|
cannam@86
|
7026 lt_cv_path_SED=$lt_ac_sed
|
cannam@86
|
7027 fi
|
cannam@86
|
7028 done
|
cannam@86
|
7029 done
|
cannam@86
|
7030 ])
|
cannam@86
|
7031 SED=$lt_cv_path_SED
|
cannam@86
|
7032 AC_MSG_RESULT([$SED])
|
cannam@86
|
7033 ])
|
cannam@86
|
7034
|
cannam@86
|
7035 # Figure out how to run the assembler. -*- Autoconf -*-
|
cannam@86
|
7036
|
cannam@86
|
7037 # serial 2
|
cannam@86
|
7038
|
cannam@86
|
7039 # Copyright 2001 Free Software Foundation, Inc.
|
cannam@86
|
7040
|
cannam@86
|
7041 # This program is free software; you can redistribute it and/or modify
|
cannam@86
|
7042 # it under the terms of the GNU General Public License as published by
|
cannam@86
|
7043 # the Free Software Foundation; either version 2, or (at your option)
|
cannam@86
|
7044 # any later version.
|
cannam@86
|
7045
|
cannam@86
|
7046 # This program is distributed in the hope that it will be useful,
|
cannam@86
|
7047 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@86
|
7048 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@86
|
7049 # GNU General Public License for more details.
|
cannam@86
|
7050
|
cannam@86
|
7051 # You should have received a copy of the GNU General Public License
|
cannam@86
|
7052 # along with this program; if not, write to the Free Software
|
cannam@86
|
7053 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
cannam@86
|
7054 # 02111-1307, USA.
|
cannam@86
|
7055
|
cannam@86
|
7056 # AM_PROG_AS
|
cannam@86
|
7057 # ----------
|
cannam@86
|
7058 AC_DEFUN([AM_PROG_AS],
|
cannam@86
|
7059 [# By default we simply use the C compiler to build assembly code.
|
cannam@86
|
7060 AC_REQUIRE([AC_PROG_CC])
|
cannam@86
|
7061 : ${CCAS='$(CC)'}
|
cannam@86
|
7062 # Set ASFLAGS if not already set.
|
cannam@86
|
7063 : ${CCASFLAGS='$(CFLAGS)'}
|
cannam@86
|
7064 AC_SUBST(CCAS)
|
cannam@86
|
7065 AC_SUBST(CCASFLAGS)])
|
cannam@86
|
7066
|
cannam@86
|
7067 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
|
cannam@86
|
7068
|
cannam@86
|
7069 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
|
cannam@86
|
7070
|
cannam@86
|
7071 # This program is free software; you can redistribute it and/or modify
|
cannam@86
|
7072 # it under the terms of the GNU General Public License as published by
|
cannam@86
|
7073 # the Free Software Foundation; either version 2, or (at your option)
|
cannam@86
|
7074 # any later version.
|
cannam@86
|
7075
|
cannam@86
|
7076 # This program is distributed in the hope that it will be useful,
|
cannam@86
|
7077 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@86
|
7078 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@86
|
7079 # GNU General Public License for more details.
|
cannam@86
|
7080
|
cannam@86
|
7081 # You should have received a copy of the GNU General Public License
|
cannam@86
|
7082 # along with this program; if not, write to the Free Software
|
cannam@86
|
7083 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
cannam@86
|
7084 # 02111-1307, USA.
|
cannam@86
|
7085
|
cannam@86
|
7086 AC_PREREQ([2.52])
|
cannam@86
|
7087
|
cannam@86
|
7088 # serial 6
|
cannam@86
|
7089
|
cannam@86
|
7090 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
|
cannam@86
|
7091 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
|
cannam@86
|
7092
|
cannam@86
|
7093 # CFLAGS and library paths for XMMS
|
cannam@86
|
7094 # written 15 December 1999 by Ben Gertzfield <che@debian.org>
|
cannam@86
|
7095
|
cannam@86
|
7096 dnl Usage:
|
cannam@86
|
7097 dnl AM_PATH_XMMS([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
cannam@86
|
7098 dnl
|
cannam@86
|
7099 dnl Example:
|
cannam@86
|
7100 dnl AM_PATH_XMMS(0.9.5.1, , AC_MSG_ERROR([*** XMMS >= 0.9.5.1 not installed - please install first ***]))
|
cannam@86
|
7101 dnl
|
cannam@86
|
7102 dnl Defines XMMS_CFLAGS, XMMS_LIBS, XMMS_DATA_DIR, XMMS_PLUGIN_DIR,
|
cannam@86
|
7103 dnl XMMS_VISUALIZATION_PLUGIN_DIR, XMMS_INPUT_PLUGIN_DIR,
|
cannam@86
|
7104 dnl XMMS_OUTPUT_PLUGIN_DIR, XMMS_GENERAL_PLUGIN_DIR, XMMS_EFFECT_PLUGIN_DIR,
|
cannam@86
|
7105 dnl and XMMS_VERSION for your plugin pleasure.
|
cannam@86
|
7106 dnl
|
cannam@86
|
7107
|
cannam@86
|
7108 dnl XMMS_TEST_VERSION(AVAILABLE-VERSION, NEEDED-VERSION [, ACTION-IF-OKAY [, ACTION-IF-NOT-OKAY]])
|
cannam@86
|
7109 AC_DEFUN([XMMS_TEST_VERSION], [
|
cannam@86
|
7110
|
cannam@86
|
7111 # Determine which version number is greater. Prints 2 to stdout if
|
cannam@86
|
7112 # the second number is greater, 1 if the first number is greater,
|
cannam@86
|
7113 # 0 if the numbers are equal.
|
cannam@86
|
7114
|
cannam@86
|
7115 # Written 15 December 1999 by Ben Gertzfield <che@debian.org>
|
cannam@86
|
7116 # Revised 15 December 1999 by Jim Monty <monty@primenet.com>
|
cannam@86
|
7117
|
cannam@86
|
7118 AC_PROG_AWK
|
cannam@86
|
7119 xmms_got_version=[` $AWK ' \
|
cannam@86
|
7120 BEGIN { \
|
cannam@86
|
7121 print vercmp(ARGV[1], ARGV[2]); \
|
cannam@86
|
7122 } \
|
cannam@86
|
7123 \
|
cannam@86
|
7124 function vercmp(ver1, ver2, ver1arr, ver2arr, \
|
cannam@86
|
7125 ver1len, ver2len, \
|
cannam@86
|
7126 ver1int, ver2int, len, i, p) { \
|
cannam@86
|
7127 \
|
cannam@86
|
7128 ver1len = split(ver1, ver1arr, /\./); \
|
cannam@86
|
7129 ver2len = split(ver2, ver2arr, /\./); \
|
cannam@86
|
7130 \
|
cannam@86
|
7131 len = ver1len > ver2len ? ver1len : ver2len; \
|
cannam@86
|
7132 \
|
cannam@86
|
7133 for (i = 1; i <= len; i++) { \
|
cannam@86
|
7134 p = 1000 ^ (len - i); \
|
cannam@86
|
7135 ver1int += ver1arr[i] * p; \
|
cannam@86
|
7136 ver2int += ver2arr[i] * p; \
|
cannam@86
|
7137 } \
|
cannam@86
|
7138 \
|
cannam@86
|
7139 if (ver1int < ver2int) \
|
cannam@86
|
7140 return 2; \
|
cannam@86
|
7141 else if (ver1int > ver2int) \
|
cannam@86
|
7142 return 1; \
|
cannam@86
|
7143 else \
|
cannam@86
|
7144 return 0; \
|
cannam@86
|
7145 }' $1 $2`]
|
cannam@86
|
7146
|
cannam@86
|
7147 if test $xmms_got_version -eq 2; then # failure
|
cannam@86
|
7148 ifelse([$4], , :, $4)
|
cannam@86
|
7149 else # success!
|
cannam@86
|
7150 ifelse([$3], , :, $3)
|
cannam@86
|
7151 fi
|
cannam@86
|
7152 ])
|
cannam@86
|
7153
|
cannam@86
|
7154 AC_DEFUN([AM_PATH_XMMS],
|
cannam@86
|
7155 [
|
cannam@86
|
7156 AC_ARG_WITH(xmms-prefix,[ --with-xmms-prefix=PFX Prefix where XMMS is installed (optional)],
|
cannam@86
|
7157 xmms_config_prefix="$withval", xmms_config_prefix="")
|
cannam@86
|
7158 AC_ARG_WITH(xmms-exec-prefix,[ --with-xmms-exec-prefix=PFX Exec prefix where XMMS is installed (optional)],
|
cannam@86
|
7159 xmms_config_exec_prefix="$withval", xmms_config_exec_prefix="")
|
cannam@86
|
7160
|
cannam@86
|
7161 if test x$xmms_config_exec_prefix != x; then
|
cannam@86
|
7162 xmms_config_args="$xmms_config_args --exec-prefix=$xmms_config_exec_prefix"
|
cannam@86
|
7163 if test x${XMMS_CONFIG+set} != xset; then
|
cannam@86
|
7164 XMMS_CONFIG=$xmms_config_exec_prefix/bin/xmms-config
|
cannam@86
|
7165 fi
|
cannam@86
|
7166 fi
|
cannam@86
|
7167
|
cannam@86
|
7168 if test x$xmms_config_prefix != x; then
|
cannam@86
|
7169 xmms_config_args="$xmms_config_args --prefix=$xmms_config_prefix"
|
cannam@86
|
7170 if test x${XMMS_CONFIG+set} != xset; then
|
cannam@86
|
7171 XMMS_CONFIG=$xmms_config_prefix/bin/xmms-config
|
cannam@86
|
7172 fi
|
cannam@86
|
7173 fi
|
cannam@86
|
7174
|
cannam@86
|
7175 AC_PATH_PROG(XMMS_CONFIG, xmms-config, no)
|
cannam@86
|
7176 min_xmms_version=ifelse([$1], ,0.9.5.1, $1)
|
cannam@86
|
7177
|
cannam@86
|
7178 if test "$XMMS_CONFIG" = "no"; then
|
cannam@86
|
7179 no_xmms=yes
|
cannam@86
|
7180 else
|
cannam@86
|
7181 XMMS_CFLAGS=`$XMMS_CONFIG $xmms_config_args --cflags`
|
cannam@86
|
7182 XMMS_LIBS=`$XMMS_CONFIG $xmms_config_args --libs`
|
cannam@86
|
7183 XMMS_VERSION=`$XMMS_CONFIG $xmms_config_args --version`
|
cannam@86
|
7184 XMMS_DATA_DIR=`$XMMS_CONFIG $xmms_config_args --data-dir`
|
cannam@86
|
7185 XMMS_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --plugin-dir`
|
cannam@86
|
7186 XMMS_VISUALIZATION_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args \
|
cannam@86
|
7187 --visualization-plugin-dir`
|
cannam@86
|
7188 XMMS_INPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --input-plugin-dir`
|
cannam@86
|
7189 XMMS_OUTPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --output-plugin-dir`
|
cannam@86
|
7190 XMMS_EFFECT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --effect-plugin-dir`
|
cannam@86
|
7191 XMMS_GENERAL_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --general-plugin-dir`
|
cannam@86
|
7192
|
cannam@86
|
7193 XMMS_TEST_VERSION($XMMS_VERSION, $min_xmms_version, ,no_xmms=version)
|
cannam@86
|
7194 fi
|
cannam@86
|
7195
|
cannam@86
|
7196 AC_MSG_CHECKING(for XMMS - version >= $min_xmms_version)
|
cannam@86
|
7197
|
cannam@86
|
7198 if test "x$no_xmms" = x; then
|
cannam@86
|
7199 AC_MSG_RESULT(yes)
|
cannam@86
|
7200 ifelse([$2], , :, [$2])
|
cannam@86
|
7201 else
|
cannam@86
|
7202 AC_MSG_RESULT(no)
|
cannam@86
|
7203
|
cannam@86
|
7204 if test "$XMMS_CONFIG" = "no" ; then
|
cannam@86
|
7205 echo "*** The xmms-config script installed by XMMS could not be found."
|
cannam@86
|
7206 echo "*** If XMMS was installed in PREFIX, make sure PREFIX/bin is in"
|
cannam@86
|
7207 echo "*** your path, or set the XMMS_CONFIG environment variable to the"
|
cannam@86
|
7208 echo "*** full path to xmms-config."
|
cannam@86
|
7209 else
|
cannam@86
|
7210 if test "$no_xmms" = "version"; then
|
cannam@86
|
7211 echo "*** An old version of XMMS, $XMMS_VERSION, was found."
|
cannam@86
|
7212 echo "*** You need a version of XMMS newer than $min_xmms_version."
|
cannam@86
|
7213 echo "*** The latest version of XMMS is always available from"
|
cannam@86
|
7214 echo "*** http://www.xmms.org/"
|
cannam@86
|
7215 echo "***"
|
cannam@86
|
7216
|
cannam@86
|
7217 echo "*** If you have already installed a sufficiently new version, this error"
|
cannam@86
|
7218 echo "*** probably means that the wrong copy of the xmms-config shell script is"
|
cannam@86
|
7219 echo "*** being found. The easiest way to fix this is to remove the old version"
|
cannam@86
|
7220 echo "*** of XMMS, but you can also set the XMMS_CONFIG environment to point to the"
|
cannam@86
|
7221 echo "*** correct copy of xmms-config. (In this case, you will have to"
|
cannam@86
|
7222 echo "*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf"
|
cannam@86
|
7223 echo "*** so that the correct libraries are found at run-time)"
|
cannam@86
|
7224 fi
|
cannam@86
|
7225 fi
|
cannam@86
|
7226 XMMS_CFLAGS=""
|
cannam@86
|
7227 XMMS_LIBS=""
|
cannam@86
|
7228 ifelse([$3], , :, [$3])
|
cannam@86
|
7229 fi
|
cannam@86
|
7230 AC_SUBST(XMMS_CFLAGS)
|
cannam@86
|
7231 AC_SUBST(XMMS_LIBS)
|
cannam@86
|
7232 AC_SUBST(XMMS_VERSION)
|
cannam@86
|
7233 AC_SUBST(XMMS_DATA_DIR)
|
cannam@86
|
7234 AC_SUBST(XMMS_PLUGIN_DIR)
|
cannam@86
|
7235 AC_SUBST(XMMS_VISUALIZATION_PLUGIN_DIR)
|
cannam@86
|
7236 AC_SUBST(XMMS_INPUT_PLUGIN_DIR)
|
cannam@86
|
7237 AC_SUBST(XMMS_OUTPUT_PLUGIN_DIR)
|
cannam@86
|
7238 AC_SUBST(XMMS_GENERAL_PLUGIN_DIR)
|
cannam@86
|
7239 AC_SUBST(XMMS_EFFECT_PLUGIN_DIR)
|
cannam@86
|
7240 ])
|
cannam@86
|
7241
|
cannam@86
|
7242 # Configure paths for libogg
|
cannam@86
|
7243 # Jack Moffitt <jack@icecast.org> 10-21-2000
|
cannam@86
|
7244 # Shamelessly stolen from Owen Taylor and Manish Singh
|
cannam@86
|
7245
|
cannam@86
|
7246 dnl XIPH_PATH_OGG([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
|
cannam@86
|
7247 dnl Test for libogg, and define OGG_CFLAGS and OGG_LIBS
|
cannam@86
|
7248 dnl
|
cannam@86
|
7249 AC_DEFUN([XIPH_PATH_OGG],
|
cannam@86
|
7250 [dnl
|
cannam@86
|
7251 dnl Get the cflags and libraries
|
cannam@86
|
7252 dnl
|
cannam@86
|
7253 AC_ARG_WITH(ogg,[ --with-ogg=PFX Prefix where libogg is installed (optional)], ogg_prefix="$withval", ogg_prefix="")
|
cannam@86
|
7254 AC_ARG_WITH(ogg-libraries,[ --with-ogg-libraries=DIR Directory where libogg library is installed (optional)], ogg_libraries="$withval", ogg_libraries="")
|
cannam@86
|
7255 AC_ARG_WITH(ogg-includes,[ --with-ogg-includes=DIR Directory where libogg header files are installed (optional)], ogg_includes="$withval", ogg_includes="")
|
cannam@86
|
7256 AC_ARG_ENABLE(oggtest, [ --disable-oggtest Do not try to compile and run a test Ogg program],, enable_oggtest=yes)
|
cannam@86
|
7257
|
cannam@86
|
7258 if test "x$ogg_libraries" != "x" ; then
|
cannam@86
|
7259 OGG_LIBS="-L$ogg_libraries"
|
cannam@86
|
7260 elif test "x$ogg_prefix" != "x" ; then
|
cannam@86
|
7261 OGG_LIBS="-L$ogg_prefix/lib"
|
cannam@86
|
7262 elif test "x$prefix" != "xNONE" ; then
|
cannam@86
|
7263 OGG_LIBS="-L$prefix/lib"
|
cannam@86
|
7264 fi
|
cannam@86
|
7265
|
cannam@86
|
7266 OGG_LIBS="$OGG_LIBS -logg"
|
cannam@86
|
7267
|
cannam@86
|
7268 if test "x$ogg_includes" != "x" ; then
|
cannam@86
|
7269 OGG_CFLAGS="-I$ogg_includes"
|
cannam@86
|
7270 elif test "x$ogg_prefix" != "x" ; then
|
cannam@86
|
7271 OGG_CFLAGS="-I$ogg_prefix/include"
|
cannam@86
|
7272 elif test "x$prefix" != "xNONE"; then
|
cannam@86
|
7273 OGG_CFLAGS="-I$prefix/include"
|
cannam@86
|
7274 fi
|
cannam@86
|
7275
|
cannam@86
|
7276 AC_MSG_CHECKING(for Ogg)
|
cannam@86
|
7277 no_ogg=""
|
cannam@86
|
7278
|
cannam@86
|
7279
|
cannam@86
|
7280 if test "x$enable_oggtest" = "xyes" ; then
|
cannam@86
|
7281 ac_save_CFLAGS="$CFLAGS"
|
cannam@86
|
7282 ac_save_LIBS="$LIBS"
|
cannam@86
|
7283 CFLAGS="$CFLAGS $OGG_CFLAGS"
|
cannam@86
|
7284 LIBS="$LIBS $OGG_LIBS"
|
cannam@86
|
7285 dnl
|
cannam@86
|
7286 dnl Now check if the installed Ogg is sufficiently new.
|
cannam@86
|
7287 dnl
|
cannam@86
|
7288 rm -f conf.oggtest
|
cannam@86
|
7289 AC_TRY_RUN([
|
cannam@86
|
7290 #include <stdio.h>
|
cannam@86
|
7291 #include <stdlib.h>
|
cannam@86
|
7292 #include <string.h>
|
cannam@86
|
7293 #include <ogg/ogg.h>
|
cannam@86
|
7294
|
cannam@86
|
7295 int main ()
|
cannam@86
|
7296 {
|
cannam@86
|
7297 system("touch conf.oggtest");
|
cannam@86
|
7298 return 0;
|
cannam@86
|
7299 }
|
cannam@86
|
7300
|
cannam@86
|
7301 ],, no_ogg=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
|
cannam@86
|
7302 CFLAGS="$ac_save_CFLAGS"
|
cannam@86
|
7303 LIBS="$ac_save_LIBS"
|
cannam@86
|
7304 fi
|
cannam@86
|
7305
|
cannam@86
|
7306 if test "x$no_ogg" = "x" ; then
|
cannam@86
|
7307 AC_MSG_RESULT(yes)
|
cannam@86
|
7308 ifelse([$1], , :, [$1])
|
cannam@86
|
7309 else
|
cannam@86
|
7310 AC_MSG_RESULT(no)
|
cannam@86
|
7311 if test -f conf.oggtest ; then
|
cannam@86
|
7312 :
|
cannam@86
|
7313 else
|
cannam@86
|
7314 echo "*** Could not run Ogg test program, checking why..."
|
cannam@86
|
7315 CFLAGS="$CFLAGS $OGG_CFLAGS"
|
cannam@86
|
7316 LIBS="$LIBS $OGG_LIBS"
|
cannam@86
|
7317 AC_TRY_LINK([
|
cannam@86
|
7318 #include <stdio.h>
|
cannam@86
|
7319 #include <ogg/ogg.h>
|
cannam@86
|
7320 ], [ return 0; ],
|
cannam@86
|
7321 [ echo "*** The test program compiled, but did not run. This usually means"
|
cannam@86
|
7322 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
|
cannam@86
|
7323 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
|
cannam@86
|
7324 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
cannam@86
|
7325 echo "*** to the installed location Also, make sure you have run ldconfig if that"
|
cannam@86
|
7326 echo "*** is required on your system"
|
cannam@86
|
7327 echo "***"
|
cannam@86
|
7328 echo "*** If you have an old version installed, it is best to remove it, although"
|
cannam@86
|
7329 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
|
cannam@86
|
7330 [ echo "*** The test program failed to compile or link. See the file config.log for the"
|
cannam@86
|
7331 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
|
cannam@86
|
7332 echo "*** or that you have moved Ogg since it was installed." ])
|
cannam@86
|
7333 CFLAGS="$ac_save_CFLAGS"
|
cannam@86
|
7334 LIBS="$ac_save_LIBS"
|
cannam@86
|
7335 fi
|
cannam@86
|
7336 OGG_CFLAGS=""
|
cannam@86
|
7337 OGG_LIBS=""
|
cannam@86
|
7338 ifelse([$2], , :, [$2])
|
cannam@86
|
7339 fi
|
cannam@86
|
7340 AC_SUBST(OGG_CFLAGS)
|
cannam@86
|
7341 AC_SUBST(OGG_LIBS)
|
cannam@86
|
7342 rm -f conf.oggtest
|
cannam@86
|
7343 ])
|
cannam@86
|
7344
|
cannam@86
|
7345 # iconv.m4 serial AM4 (gettext-0.11.3)
|
cannam@86
|
7346 dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
|
cannam@86
|
7347 dnl This file is free software; the Free Software Foundation
|
cannam@86
|
7348 dnl gives unlimited permission to copy and/or distribute it,
|
cannam@86
|
7349 dnl with or without modifications, as long as this notice is preserved.
|
cannam@86
|
7350
|
cannam@86
|
7351 dnl From Bruno Haible.
|
cannam@86
|
7352
|
cannam@86
|
7353 AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
|
cannam@86
|
7354 [
|
cannam@86
|
7355 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
|
cannam@86
|
7356 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
|
cannam@86
|
7357 AC_REQUIRE([AC_LIB_RPATH])
|
cannam@86
|
7358
|
cannam@86
|
7359 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
|
cannam@86
|
7360 dnl accordingly.
|
cannam@86
|
7361 AC_LIB_LINKFLAGS_BODY([iconv])
|
cannam@86
|
7362 ])
|
cannam@86
|
7363
|
cannam@86
|
7364 AC_DEFUN([AM_ICONV_LINK],
|
cannam@86
|
7365 [
|
cannam@86
|
7366 dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
|
cannam@86
|
7367 dnl those with the standalone portable GNU libiconv installed).
|
cannam@86
|
7368
|
cannam@86
|
7369 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
|
cannam@86
|
7370 dnl accordingly.
|
cannam@86
|
7371 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
|
cannam@86
|
7372
|
cannam@86
|
7373 dnl Add $INCICONV to CPPFLAGS before performing the following checks,
|
cannam@86
|
7374 dnl because if the user has installed libiconv and not disabled its use
|
cannam@86
|
7375 dnl via --without-libiconv-prefix, he wants to use it. The first
|
cannam@86
|
7376 dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
|
cannam@86
|
7377 am_save_CPPFLAGS="$CPPFLAGS"
|
cannam@86
|
7378 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
|
cannam@86
|
7379
|
cannam@86
|
7380 AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
|
cannam@86
|
7381 am_cv_func_iconv="no, consider installing GNU libiconv"
|
cannam@86
|
7382 am_cv_lib_iconv=no
|
cannam@86
|
7383 AC_TRY_LINK([#include <stdlib.h>
|
cannam@86
|
7384 #include <iconv.h>],
|
cannam@86
|
7385 [iconv_t cd = iconv_open("","");
|
cannam@86
|
7386 iconv(cd,NULL,NULL,NULL,NULL);
|
cannam@86
|
7387 iconv_close(cd);],
|
cannam@86
|
7388 am_cv_func_iconv=yes)
|
cannam@86
|
7389 if test "$am_cv_func_iconv" != yes; then
|
cannam@86
|
7390 am_save_LIBS="$LIBS"
|
cannam@86
|
7391 LIBS="$LIBS $LIBICONV"
|
cannam@86
|
7392 AC_TRY_LINK([#include <stdlib.h>
|
cannam@86
|
7393 #include <iconv.h>],
|
cannam@86
|
7394 [iconv_t cd = iconv_open("","");
|
cannam@86
|
7395 iconv(cd,NULL,NULL,NULL,NULL);
|
cannam@86
|
7396 iconv_close(cd);],
|
cannam@86
|
7397 am_cv_lib_iconv=yes
|
cannam@86
|
7398 am_cv_func_iconv=yes)
|
cannam@86
|
7399 LIBS="$am_save_LIBS"
|
cannam@86
|
7400 fi
|
cannam@86
|
7401 ])
|
cannam@86
|
7402 if test "$am_cv_func_iconv" = yes; then
|
cannam@86
|
7403 AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
|
cannam@86
|
7404 fi
|
cannam@86
|
7405 if test "$am_cv_lib_iconv" = yes; then
|
cannam@86
|
7406 AC_MSG_CHECKING([how to link with libiconv])
|
cannam@86
|
7407 AC_MSG_RESULT([$LIBICONV])
|
cannam@86
|
7408 else
|
cannam@86
|
7409 dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
|
cannam@86
|
7410 dnl either.
|
cannam@86
|
7411 CPPFLAGS="$am_save_CPPFLAGS"
|
cannam@86
|
7412 LIBICONV=
|
cannam@86
|
7413 LTLIBICONV=
|
cannam@86
|
7414 fi
|
cannam@86
|
7415 AC_SUBST(LIBICONV)
|
cannam@86
|
7416 AC_SUBST(LTLIBICONV)
|
cannam@86
|
7417 ])
|
cannam@86
|
7418
|
cannam@86
|
7419 AC_DEFUN([AM_ICONV],
|
cannam@86
|
7420 [
|
cannam@86
|
7421 AM_ICONV_LINK
|
cannam@86
|
7422 if test "$am_cv_func_iconv" = yes; then
|
cannam@86
|
7423 AC_MSG_CHECKING([for iconv declaration])
|
cannam@86
|
7424 AC_CACHE_VAL(am_cv_proto_iconv, [
|
cannam@86
|
7425 AC_TRY_COMPILE([
|
cannam@86
|
7426 #include <stdlib.h>
|
cannam@86
|
7427 #include <iconv.h>
|
cannam@86
|
7428 extern
|
cannam@86
|
7429 #ifdef __cplusplus
|
cannam@86
|
7430 "C"
|
cannam@86
|
7431 #endif
|
cannam@86
|
7432 #if defined(__STDC__) || defined(__cplusplus)
|
cannam@86
|
7433 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
|
cannam@86
|
7434 #else
|
cannam@86
|
7435 size_t iconv();
|
cannam@86
|
7436 #endif
|
cannam@86
|
7437 ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
|
cannam@86
|
7438 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
|
cannam@86
|
7439 am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
|
cannam@86
|
7440 AC_MSG_RESULT([$]{ac_t:-
|
cannam@86
|
7441 }[$]am_cv_proto_iconv)
|
cannam@86
|
7442 AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
|
cannam@86
|
7443 [Define as const if the declaration of iconv() needs const.])
|
cannam@86
|
7444 fi
|
cannam@86
|
7445 ])
|
cannam@86
|
7446
|
cannam@86
|
7447 # lib-prefix.m4 serial 4 (gettext-0.14.2)
|
cannam@86
|
7448 dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
|
cannam@86
|
7449 dnl This file is free software; the Free Software Foundation
|
cannam@86
|
7450 dnl gives unlimited permission to copy and/or distribute it,
|
cannam@86
|
7451 dnl with or without modifications, as long as this notice is preserved.
|
cannam@86
|
7452
|
cannam@86
|
7453 dnl From Bruno Haible.
|
cannam@86
|
7454
|
cannam@86
|
7455 dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
|
cannam@86
|
7456 dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
|
cannam@86
|
7457 dnl require excessive bracketing.
|
cannam@86
|
7458 ifdef([AC_HELP_STRING],
|
cannam@86
|
7459 [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
|
cannam@86
|
7460 [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
|
cannam@86
|
7461
|
cannam@86
|
7462 dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
|
cannam@86
|
7463 dnl to access previously installed libraries. The basic assumption is that
|
cannam@86
|
7464 dnl a user will want packages to use other packages he previously installed
|
cannam@86
|
7465 dnl with the same --prefix option.
|
cannam@86
|
7466 dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
|
cannam@86
|
7467 dnl libraries, but is otherwise very convenient.
|
cannam@86
|
7468 AC_DEFUN([AC_LIB_PREFIX],
|
cannam@86
|
7469 [
|
cannam@86
|
7470 AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
|
cannam@86
|
7471 AC_REQUIRE([AC_PROG_CC])
|
cannam@86
|
7472 AC_REQUIRE([AC_CANONICAL_HOST])
|
cannam@86
|
7473 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
|
cannam@86
|
7474 dnl By default, look in $includedir and $libdir.
|
cannam@86
|
7475 use_additional=yes
|
cannam@86
|
7476 AC_LIB_WITH_FINAL_PREFIX([
|
cannam@86
|
7477 eval additional_includedir=\"$includedir\"
|
cannam@86
|
7478 eval additional_libdir=\"$libdir\"
|
cannam@86
|
7479 ])
|
cannam@86
|
7480 AC_LIB_ARG_WITH([lib-prefix],
|
cannam@86
|
7481 [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
|
cannam@86
|
7482 --without-lib-prefix don't search for libraries in includedir and libdir],
|
cannam@86
|
7483 [
|
cannam@86
|
7484 if test "X$withval" = "Xno"; then
|
cannam@86
|
7485 use_additional=no
|
cannam@86
|
7486 else
|
cannam@86
|
7487 if test "X$withval" = "X"; then
|
cannam@86
|
7488 AC_LIB_WITH_FINAL_PREFIX([
|
cannam@86
|
7489 eval additional_includedir=\"$includedir\"
|
cannam@86
|
7490 eval additional_libdir=\"$libdir\"
|
cannam@86
|
7491 ])
|
cannam@86
|
7492 else
|
cannam@86
|
7493 additional_includedir="$withval/include"
|
cannam@86
|
7494 additional_libdir="$withval/lib"
|
cannam@86
|
7495 fi
|
cannam@86
|
7496 fi
|
cannam@86
|
7497 ])
|
cannam@86
|
7498 if test $use_additional = yes; then
|
cannam@86
|
7499 dnl Potentially add $additional_includedir to $CPPFLAGS.
|
cannam@86
|
7500 dnl But don't add it
|
cannam@86
|
7501 dnl 1. if it's the standard /usr/include,
|
cannam@86
|
7502 dnl 2. if it's already present in $CPPFLAGS,
|
cannam@86
|
7503 dnl 3. if it's /usr/local/include and we are using GCC on Linux,
|
cannam@86
|
7504 dnl 4. if it doesn't exist as a directory.
|
cannam@86
|
7505 if test "X$additional_includedir" != "X/usr/include"; then
|
cannam@86
|
7506 haveit=
|
cannam@86
|
7507 for x in $CPPFLAGS; do
|
cannam@86
|
7508 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
cannam@86
|
7509 if test "X$x" = "X-I$additional_includedir"; then
|
cannam@86
|
7510 haveit=yes
|
cannam@86
|
7511 break
|
cannam@86
|
7512 fi
|
cannam@86
|
7513 done
|
cannam@86
|
7514 if test -z "$haveit"; then
|
cannam@86
|
7515 if test "X$additional_includedir" = "X/usr/local/include"; then
|
cannam@86
|
7516 if test -n "$GCC"; then
|
cannam@86
|
7517 case $host_os in
|
cannam@86
|
7518 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
|
cannam@86
|
7519 esac
|
cannam@86
|
7520 fi
|
cannam@86
|
7521 fi
|
cannam@86
|
7522 if test -z "$haveit"; then
|
cannam@86
|
7523 if test -d "$additional_includedir"; then
|
cannam@86
|
7524 dnl Really add $additional_includedir to $CPPFLAGS.
|
cannam@86
|
7525 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
|
cannam@86
|
7526 fi
|
cannam@86
|
7527 fi
|
cannam@86
|
7528 fi
|
cannam@86
|
7529 fi
|
cannam@86
|
7530 dnl Potentially add $additional_libdir to $LDFLAGS.
|
cannam@86
|
7531 dnl But don't add it
|
cannam@86
|
7532 dnl 1. if it's the standard /usr/lib,
|
cannam@86
|
7533 dnl 2. if it's already present in $LDFLAGS,
|
cannam@86
|
7534 dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
|
cannam@86
|
7535 dnl 4. if it doesn't exist as a directory.
|
cannam@86
|
7536 if test "X$additional_libdir" != "X/usr/lib"; then
|
cannam@86
|
7537 haveit=
|
cannam@86
|
7538 for x in $LDFLAGS; do
|
cannam@86
|
7539 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
cannam@86
|
7540 if test "X$x" = "X-L$additional_libdir"; then
|
cannam@86
|
7541 haveit=yes
|
cannam@86
|
7542 break
|
cannam@86
|
7543 fi
|
cannam@86
|
7544 done
|
cannam@86
|
7545 if test -z "$haveit"; then
|
cannam@86
|
7546 if test "X$additional_libdir" = "X/usr/local/lib"; then
|
cannam@86
|
7547 if test -n "$GCC"; then
|
cannam@86
|
7548 case $host_os in
|
cannam@86
|
7549 linux*) haveit=yes;;
|
cannam@86
|
7550 esac
|
cannam@86
|
7551 fi
|
cannam@86
|
7552 fi
|
cannam@86
|
7553 if test -z "$haveit"; then
|
cannam@86
|
7554 if test -d "$additional_libdir"; then
|
cannam@86
|
7555 dnl Really add $additional_libdir to $LDFLAGS.
|
cannam@86
|
7556 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
|
cannam@86
|
7557 fi
|
cannam@86
|
7558 fi
|
cannam@86
|
7559 fi
|
cannam@86
|
7560 fi
|
cannam@86
|
7561 fi
|
cannam@86
|
7562 ])
|
cannam@86
|
7563
|
cannam@86
|
7564 dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
|
cannam@86
|
7565 dnl acl_final_exec_prefix, containing the values to which $prefix and
|
cannam@86
|
7566 dnl $exec_prefix will expand at the end of the configure script.
|
cannam@86
|
7567 AC_DEFUN([AC_LIB_PREPARE_PREFIX],
|
cannam@86
|
7568 [
|
cannam@86
|
7569 dnl Unfortunately, prefix and exec_prefix get only finally determined
|
cannam@86
|
7570 dnl at the end of configure.
|
cannam@86
|
7571 if test "X$prefix" = "XNONE"; then
|
cannam@86
|
7572 acl_final_prefix="$ac_default_prefix"
|
cannam@86
|
7573 else
|
cannam@86
|
7574 acl_final_prefix="$prefix"
|
cannam@86
|
7575 fi
|
cannam@86
|
7576 if test "X$exec_prefix" = "XNONE"; then
|
cannam@86
|
7577 acl_final_exec_prefix='${prefix}'
|
cannam@86
|
7578 else
|
cannam@86
|
7579 acl_final_exec_prefix="$exec_prefix"
|
cannam@86
|
7580 fi
|
cannam@86
|
7581 acl_save_prefix="$prefix"
|
cannam@86
|
7582 prefix="$acl_final_prefix"
|
cannam@86
|
7583 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
|
cannam@86
|
7584 prefix="$acl_save_prefix"
|
cannam@86
|
7585 ])
|
cannam@86
|
7586
|
cannam@86
|
7587 dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
|
cannam@86
|
7588 dnl variables prefix and exec_prefix bound to the values they will have
|
cannam@86
|
7589 dnl at the end of the configure script.
|
cannam@86
|
7590 AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
|
cannam@86
|
7591 [
|
cannam@86
|
7592 acl_save_prefix="$prefix"
|
cannam@86
|
7593 prefix="$acl_final_prefix"
|
cannam@86
|
7594 acl_save_exec_prefix="$exec_prefix"
|
cannam@86
|
7595 exec_prefix="$acl_final_exec_prefix"
|
cannam@86
|
7596 $1
|
cannam@86
|
7597 exec_prefix="$acl_save_exec_prefix"
|
cannam@86
|
7598 prefix="$acl_save_prefix"
|
cannam@86
|
7599 ])
|
cannam@86
|
7600
|
cannam@86
|
7601 # lib-link.m4 serial 6 (gettext-0.14.3)
|
cannam@86
|
7602 dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
|
cannam@86
|
7603 dnl This file is free software; the Free Software Foundation
|
cannam@86
|
7604 dnl gives unlimited permission to copy and/or distribute it,
|
cannam@86
|
7605 dnl with or without modifications, as long as this notice is preserved.
|
cannam@86
|
7606
|
cannam@86
|
7607 dnl From Bruno Haible.
|
cannam@86
|
7608
|
cannam@86
|
7609 AC_PREREQ(2.50)
|
cannam@86
|
7610
|
cannam@86
|
7611 dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
|
cannam@86
|
7612 dnl the libraries corresponding to explicit and implicit dependencies.
|
cannam@86
|
7613 dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
|
cannam@86
|
7614 dnl augments the CPPFLAGS variable.
|
cannam@86
|
7615 AC_DEFUN([AC_LIB_LINKFLAGS],
|
cannam@86
|
7616 [
|
cannam@86
|
7617 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
|
cannam@86
|
7618 AC_REQUIRE([AC_LIB_RPATH])
|
cannam@86
|
7619 define([Name],[translit([$1],[./-], [___])])
|
cannam@86
|
7620 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
|
cannam@86
|
7621 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
|
cannam@86
|
7622 AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
|
cannam@86
|
7623 AC_LIB_LINKFLAGS_BODY([$1], [$2])
|
cannam@86
|
7624 ac_cv_lib[]Name[]_libs="$LIB[]NAME"
|
cannam@86
|
7625 ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
|
cannam@86
|
7626 ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
|
cannam@86
|
7627 ])
|
cannam@86
|
7628 LIB[]NAME="$ac_cv_lib[]Name[]_libs"
|
cannam@86
|
7629 LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
|
cannam@86
|
7630 INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
|
cannam@86
|
7631 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
|
cannam@86
|
7632 AC_SUBST([LIB]NAME)
|
cannam@86
|
7633 AC_SUBST([LTLIB]NAME)
|
cannam@86
|
7634 dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
|
cannam@86
|
7635 dnl results of this search when this library appears as a dependency.
|
cannam@86
|
7636 HAVE_LIB[]NAME=yes
|
cannam@86
|
7637 undefine([Name])
|
cannam@86
|
7638 undefine([NAME])
|
cannam@86
|
7639 ])
|
cannam@86
|
7640
|
cannam@86
|
7641 dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
|
cannam@86
|
7642 dnl searches for libname and the libraries corresponding to explicit and
|
cannam@86
|
7643 dnl implicit dependencies, together with the specified include files and
|
cannam@86
|
7644 dnl the ability to compile and link the specified testcode. If found, it
|
cannam@86
|
7645 dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
|
cannam@86
|
7646 dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
|
cannam@86
|
7647 dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
|
cannam@86
|
7648 dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
|
cannam@86
|
7649 AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
|
cannam@86
|
7650 [
|
cannam@86
|
7651 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
|
cannam@86
|
7652 AC_REQUIRE([AC_LIB_RPATH])
|
cannam@86
|
7653 define([Name],[translit([$1],[./-], [___])])
|
cannam@86
|
7654 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
|
cannam@86
|
7655 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
|
cannam@86
|
7656
|
cannam@86
|
7657 dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
|
cannam@86
|
7658 dnl accordingly.
|
cannam@86
|
7659 AC_LIB_LINKFLAGS_BODY([$1], [$2])
|
cannam@86
|
7660
|
cannam@86
|
7661 dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
|
cannam@86
|
7662 dnl because if the user has installed lib[]Name and not disabled its use
|
cannam@86
|
7663 dnl via --without-lib[]Name-prefix, he wants to use it.
|
cannam@86
|
7664 ac_save_CPPFLAGS="$CPPFLAGS"
|
cannam@86
|
7665 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
|
cannam@86
|
7666
|
cannam@86
|
7667 AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
|
cannam@86
|
7668 ac_save_LIBS="$LIBS"
|
cannam@86
|
7669 LIBS="$LIBS $LIB[]NAME"
|
cannam@86
|
7670 AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
|
cannam@86
|
7671 LIBS="$ac_save_LIBS"
|
cannam@86
|
7672 ])
|
cannam@86
|
7673 if test "$ac_cv_lib[]Name" = yes; then
|
cannam@86
|
7674 HAVE_LIB[]NAME=yes
|
cannam@86
|
7675 AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
|
cannam@86
|
7676 AC_MSG_CHECKING([how to link with lib[]$1])
|
cannam@86
|
7677 AC_MSG_RESULT([$LIB[]NAME])
|
cannam@86
|
7678 else
|
cannam@86
|
7679 HAVE_LIB[]NAME=no
|
cannam@86
|
7680 dnl If $LIB[]NAME didn't lead to a usable library, we don't need
|
cannam@86
|
7681 dnl $INC[]NAME either.
|
cannam@86
|
7682 CPPFLAGS="$ac_save_CPPFLAGS"
|
cannam@86
|
7683 LIB[]NAME=
|
cannam@86
|
7684 LTLIB[]NAME=
|
cannam@86
|
7685 fi
|
cannam@86
|
7686 AC_SUBST([HAVE_LIB]NAME)
|
cannam@86
|
7687 AC_SUBST([LIB]NAME)
|
cannam@86
|
7688 AC_SUBST([LTLIB]NAME)
|
cannam@86
|
7689 undefine([Name])
|
cannam@86
|
7690 undefine([NAME])
|
cannam@86
|
7691 ])
|
cannam@86
|
7692
|
cannam@86
|
7693 dnl Determine the platform dependent parameters needed to use rpath:
|
cannam@86
|
7694 dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
|
cannam@86
|
7695 dnl hardcode_direct, hardcode_minus_L.
|
cannam@86
|
7696 AC_DEFUN([AC_LIB_RPATH],
|
cannam@86
|
7697 [
|
cannam@86
|
7698 dnl Tell automake >= 1.10 to complain if config.rpath is missing.
|
cannam@86
|
7699 m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
|
cannam@86
|
7700 AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
|
cannam@86
|
7701 AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
|
cannam@86
|
7702 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
|
cannam@86
|
7703 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
|
cannam@86
|
7704 AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
|
cannam@86
|
7705 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
|
cannam@86
|
7706 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
|
cannam@86
|
7707 . ./conftest.sh
|
cannam@86
|
7708 rm -f ./conftest.sh
|
cannam@86
|
7709 acl_cv_rpath=done
|
cannam@86
|
7710 ])
|
cannam@86
|
7711 wl="$acl_cv_wl"
|
cannam@86
|
7712 libext="$acl_cv_libext"
|
cannam@86
|
7713 shlibext="$acl_cv_shlibext"
|
cannam@86
|
7714 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
|
cannam@86
|
7715 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
|
cannam@86
|
7716 hardcode_direct="$acl_cv_hardcode_direct"
|
cannam@86
|
7717 hardcode_minus_L="$acl_cv_hardcode_minus_L"
|
cannam@86
|
7718 dnl Determine whether the user wants rpath handling at all.
|
cannam@86
|
7719 AC_ARG_ENABLE(rpath,
|
cannam@86
|
7720 [ --disable-rpath do not hardcode runtime library paths],
|
cannam@86
|
7721 :, enable_rpath=yes)
|
cannam@86
|
7722 ])
|
cannam@86
|
7723
|
cannam@86
|
7724 dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
|
cannam@86
|
7725 dnl the libraries corresponding to explicit and implicit dependencies.
|
cannam@86
|
7726 dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
|
cannam@86
|
7727 AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
|
cannam@86
|
7728 [
|
cannam@86
|
7729 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
|
cannam@86
|
7730 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
|
cannam@86
|
7731 dnl By default, look in $includedir and $libdir.
|
cannam@86
|
7732 use_additional=yes
|
cannam@86
|
7733 AC_LIB_WITH_FINAL_PREFIX([
|
cannam@86
|
7734 eval additional_includedir=\"$includedir\"
|
cannam@86
|
7735 eval additional_libdir=\"$libdir\"
|
cannam@86
|
7736 ])
|
cannam@86
|
7737 AC_LIB_ARG_WITH([lib$1-prefix],
|
cannam@86
|
7738 [ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
|
cannam@86
|
7739 --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
|
cannam@86
|
7740 [
|
cannam@86
|
7741 if test "X$withval" = "Xno"; then
|
cannam@86
|
7742 use_additional=no
|
cannam@86
|
7743 else
|
cannam@86
|
7744 if test "X$withval" = "X"; then
|
cannam@86
|
7745 AC_LIB_WITH_FINAL_PREFIX([
|
cannam@86
|
7746 eval additional_includedir=\"$includedir\"
|
cannam@86
|
7747 eval additional_libdir=\"$libdir\"
|
cannam@86
|
7748 ])
|
cannam@86
|
7749 else
|
cannam@86
|
7750 additional_includedir="$withval/include"
|
cannam@86
|
7751 additional_libdir="$withval/lib"
|
cannam@86
|
7752 fi
|
cannam@86
|
7753 fi
|
cannam@86
|
7754 ])
|
cannam@86
|
7755 dnl Search the library and its dependencies in $additional_libdir and
|
cannam@86
|
7756 dnl $LDFLAGS. Using breadth-first-seach.
|
cannam@86
|
7757 LIB[]NAME=
|
cannam@86
|
7758 LTLIB[]NAME=
|
cannam@86
|
7759 INC[]NAME=
|
cannam@86
|
7760 rpathdirs=
|
cannam@86
|
7761 ltrpathdirs=
|
cannam@86
|
7762 names_already_handled=
|
cannam@86
|
7763 names_next_round='$1 $2'
|
cannam@86
|
7764 while test -n "$names_next_round"; do
|
cannam@86
|
7765 names_this_round="$names_next_round"
|
cannam@86
|
7766 names_next_round=
|
cannam@86
|
7767 for name in $names_this_round; do
|
cannam@86
|
7768 already_handled=
|
cannam@86
|
7769 for n in $names_already_handled; do
|
cannam@86
|
7770 if test "$n" = "$name"; then
|
cannam@86
|
7771 already_handled=yes
|
cannam@86
|
7772 break
|
cannam@86
|
7773 fi
|
cannam@86
|
7774 done
|
cannam@86
|
7775 if test -z "$already_handled"; then
|
cannam@86
|
7776 names_already_handled="$names_already_handled $name"
|
cannam@86
|
7777 dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
|
cannam@86
|
7778 dnl or AC_LIB_HAVE_LINKFLAGS call.
|
cannam@86
|
7779 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
|
cannam@86
|
7780 eval value=\"\$HAVE_LIB$uppername\"
|
cannam@86
|
7781 if test -n "$value"; then
|
cannam@86
|
7782 if test "$value" = yes; then
|
cannam@86
|
7783 eval value=\"\$LIB$uppername\"
|
cannam@86
|
7784 test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
|
cannam@86
|
7785 eval value=\"\$LTLIB$uppername\"
|
cannam@86
|
7786 test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
|
cannam@86
|
7787 else
|
cannam@86
|
7788 dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
|
cannam@86
|
7789 dnl that this library doesn't exist. So just drop it.
|
cannam@86
|
7790 :
|
cannam@86
|
7791 fi
|
cannam@86
|
7792 else
|
cannam@86
|
7793 dnl Search the library lib$name in $additional_libdir and $LDFLAGS
|
cannam@86
|
7794 dnl and the already constructed $LIBNAME/$LTLIBNAME.
|
cannam@86
|
7795 found_dir=
|
cannam@86
|
7796 found_la=
|
cannam@86
|
7797 found_so=
|
cannam@86
|
7798 found_a=
|
cannam@86
|
7799 if test $use_additional = yes; then
|
cannam@86
|
7800 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
|
cannam@86
|
7801 found_dir="$additional_libdir"
|
cannam@86
|
7802 found_so="$additional_libdir/lib$name.$shlibext"
|
cannam@86
|
7803 if test -f "$additional_libdir/lib$name.la"; then
|
cannam@86
|
7804 found_la="$additional_libdir/lib$name.la"
|
cannam@86
|
7805 fi
|
cannam@86
|
7806 else
|
cannam@86
|
7807 if test -f "$additional_libdir/lib$name.$libext"; then
|
cannam@86
|
7808 found_dir="$additional_libdir"
|
cannam@86
|
7809 found_a="$additional_libdir/lib$name.$libext"
|
cannam@86
|
7810 if test -f "$additional_libdir/lib$name.la"; then
|
cannam@86
|
7811 found_la="$additional_libdir/lib$name.la"
|
cannam@86
|
7812 fi
|
cannam@86
|
7813 fi
|
cannam@86
|
7814 fi
|
cannam@86
|
7815 fi
|
cannam@86
|
7816 if test "X$found_dir" = "X"; then
|
cannam@86
|
7817 for x in $LDFLAGS $LTLIB[]NAME; do
|
cannam@86
|
7818 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
cannam@86
|
7819 case "$x" in
|
cannam@86
|
7820 -L*)
|
cannam@86
|
7821 dir=`echo "X$x" | sed -e 's/^X-L//'`
|
cannam@86
|
7822 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
|
cannam@86
|
7823 found_dir="$dir"
|
cannam@86
|
7824 found_so="$dir/lib$name.$shlibext"
|
cannam@86
|
7825 if test -f "$dir/lib$name.la"; then
|
cannam@86
|
7826 found_la="$dir/lib$name.la"
|
cannam@86
|
7827 fi
|
cannam@86
|
7828 else
|
cannam@86
|
7829 if test -f "$dir/lib$name.$libext"; then
|
cannam@86
|
7830 found_dir="$dir"
|
cannam@86
|
7831 found_a="$dir/lib$name.$libext"
|
cannam@86
|
7832 if test -f "$dir/lib$name.la"; then
|
cannam@86
|
7833 found_la="$dir/lib$name.la"
|
cannam@86
|
7834 fi
|
cannam@86
|
7835 fi
|
cannam@86
|
7836 fi
|
cannam@86
|
7837 ;;
|
cannam@86
|
7838 esac
|
cannam@86
|
7839 if test "X$found_dir" != "X"; then
|
cannam@86
|
7840 break
|
cannam@86
|
7841 fi
|
cannam@86
|
7842 done
|
cannam@86
|
7843 fi
|
cannam@86
|
7844 if test "X$found_dir" != "X"; then
|
cannam@86
|
7845 dnl Found the library.
|
cannam@86
|
7846 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
|
cannam@86
|
7847 if test "X$found_so" != "X"; then
|
cannam@86
|
7848 dnl Linking with a shared library. We attempt to hardcode its
|
cannam@86
|
7849 dnl directory into the executable's runpath, unless it's the
|
cannam@86
|
7850 dnl standard /usr/lib.
|
cannam@86
|
7851 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
|
cannam@86
|
7852 dnl No hardcoding is needed.
|
cannam@86
|
7853 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
|
cannam@86
|
7854 else
|
cannam@86
|
7855 dnl Use an explicit option to hardcode DIR into the resulting
|
cannam@86
|
7856 dnl binary.
|
cannam@86
|
7857 dnl Potentially add DIR to ltrpathdirs.
|
cannam@86
|
7858 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
|
cannam@86
|
7859 haveit=
|
cannam@86
|
7860 for x in $ltrpathdirs; do
|
cannam@86
|
7861 if test "X$x" = "X$found_dir"; then
|
cannam@86
|
7862 haveit=yes
|
cannam@86
|
7863 break
|
cannam@86
|
7864 fi
|
cannam@86
|
7865 done
|
cannam@86
|
7866 if test -z "$haveit"; then
|
cannam@86
|
7867 ltrpathdirs="$ltrpathdirs $found_dir"
|
cannam@86
|
7868 fi
|
cannam@86
|
7869 dnl The hardcoding into $LIBNAME is system dependent.
|
cannam@86
|
7870 if test "$hardcode_direct" = yes; then
|
cannam@86
|
7871 dnl Using DIR/libNAME.so during linking hardcodes DIR into the
|
cannam@86
|
7872 dnl resulting binary.
|
cannam@86
|
7873 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
|
cannam@86
|
7874 else
|
cannam@86
|
7875 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
|
cannam@86
|
7876 dnl Use an explicit option to hardcode DIR into the resulting
|
cannam@86
|
7877 dnl binary.
|
cannam@86
|
7878 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
|
cannam@86
|
7879 dnl Potentially add DIR to rpathdirs.
|
cannam@86
|
7880 dnl The rpathdirs will be appended to $LIBNAME at the end.
|
cannam@86
|
7881 haveit=
|
cannam@86
|
7882 for x in $rpathdirs; do
|
cannam@86
|
7883 if test "X$x" = "X$found_dir"; then
|
cannam@86
|
7884 haveit=yes
|
cannam@86
|
7885 break
|
cannam@86
|
7886 fi
|
cannam@86
|
7887 done
|
cannam@86
|
7888 if test -z "$haveit"; then
|
cannam@86
|
7889 rpathdirs="$rpathdirs $found_dir"
|
cannam@86
|
7890 fi
|
cannam@86
|
7891 else
|
cannam@86
|
7892 dnl Rely on "-L$found_dir".
|
cannam@86
|
7893 dnl But don't add it if it's already contained in the LDFLAGS
|
cannam@86
|
7894 dnl or the already constructed $LIBNAME
|
cannam@86
|
7895 haveit=
|
cannam@86
|
7896 for x in $LDFLAGS $LIB[]NAME; do
|
cannam@86
|
7897 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
cannam@86
|
7898 if test "X$x" = "X-L$found_dir"; then
|
cannam@86
|
7899 haveit=yes
|
cannam@86
|
7900 break
|
cannam@86
|
7901 fi
|
cannam@86
|
7902 done
|
cannam@86
|
7903 if test -z "$haveit"; then
|
cannam@86
|
7904 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
|
cannam@86
|
7905 fi
|
cannam@86
|
7906 if test "$hardcode_minus_L" != no; then
|
cannam@86
|
7907 dnl FIXME: Not sure whether we should use
|
cannam@86
|
7908 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
|
cannam@86
|
7909 dnl here.
|
cannam@86
|
7910 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
|
cannam@86
|
7911 else
|
cannam@86
|
7912 dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
|
cannam@86
|
7913 dnl here, because this doesn't fit in flags passed to the
|
cannam@86
|
7914 dnl compiler. So give up. No hardcoding. This affects only
|
cannam@86
|
7915 dnl very old systems.
|
cannam@86
|
7916 dnl FIXME: Not sure whether we should use
|
cannam@86
|
7917 dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
|
cannam@86
|
7918 dnl here.
|
cannam@86
|
7919 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
|
cannam@86
|
7920 fi
|
cannam@86
|
7921 fi
|
cannam@86
|
7922 fi
|
cannam@86
|
7923 fi
|
cannam@86
|
7924 else
|
cannam@86
|
7925 if test "X$found_a" != "X"; then
|
cannam@86
|
7926 dnl Linking with a static library.
|
cannam@86
|
7927 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
|
cannam@86
|
7928 else
|
cannam@86
|
7929 dnl We shouldn't come here, but anyway it's good to have a
|
cannam@86
|
7930 dnl fallback.
|
cannam@86
|
7931 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
|
cannam@86
|
7932 fi
|
cannam@86
|
7933 fi
|
cannam@86
|
7934 dnl Assume the include files are nearby.
|
cannam@86
|
7935 additional_includedir=
|
cannam@86
|
7936 case "$found_dir" in
|
cannam@86
|
7937 */lib | */lib/)
|
cannam@86
|
7938 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
|
cannam@86
|
7939 additional_includedir="$basedir/include"
|
cannam@86
|
7940 ;;
|
cannam@86
|
7941 esac
|
cannam@86
|
7942 if test "X$additional_includedir" != "X"; then
|
cannam@86
|
7943 dnl Potentially add $additional_includedir to $INCNAME.
|
cannam@86
|
7944 dnl But don't add it
|
cannam@86
|
7945 dnl 1. if it's the standard /usr/include,
|
cannam@86
|
7946 dnl 2. if it's /usr/local/include and we are using GCC on Linux,
|
cannam@86
|
7947 dnl 3. if it's already present in $CPPFLAGS or the already
|
cannam@86
|
7948 dnl constructed $INCNAME,
|
cannam@86
|
7949 dnl 4. if it doesn't exist as a directory.
|
cannam@86
|
7950 if test "X$additional_includedir" != "X/usr/include"; then
|
cannam@86
|
7951 haveit=
|
cannam@86
|
7952 if test "X$additional_includedir" = "X/usr/local/include"; then
|
cannam@86
|
7953 if test -n "$GCC"; then
|
cannam@86
|
7954 case $host_os in
|
cannam@86
|
7955 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
|
cannam@86
|
7956 esac
|
cannam@86
|
7957 fi
|
cannam@86
|
7958 fi
|
cannam@86
|
7959 if test -z "$haveit"; then
|
cannam@86
|
7960 for x in $CPPFLAGS $INC[]NAME; do
|
cannam@86
|
7961 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
cannam@86
|
7962 if test "X$x" = "X-I$additional_includedir"; then
|
cannam@86
|
7963 haveit=yes
|
cannam@86
|
7964 break
|
cannam@86
|
7965 fi
|
cannam@86
|
7966 done
|
cannam@86
|
7967 if test -z "$haveit"; then
|
cannam@86
|
7968 if test -d "$additional_includedir"; then
|
cannam@86
|
7969 dnl Really add $additional_includedir to $INCNAME.
|
cannam@86
|
7970 INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
|
cannam@86
|
7971 fi
|
cannam@86
|
7972 fi
|
cannam@86
|
7973 fi
|
cannam@86
|
7974 fi
|
cannam@86
|
7975 fi
|
cannam@86
|
7976 dnl Look for dependencies.
|
cannam@86
|
7977 if test -n "$found_la"; then
|
cannam@86
|
7978 dnl Read the .la file. It defines the variables
|
cannam@86
|
7979 dnl dlname, library_names, old_library, dependency_libs, current,
|
cannam@86
|
7980 dnl age, revision, installed, dlopen, dlpreopen, libdir.
|
cannam@86
|
7981 save_libdir="$libdir"
|
cannam@86
|
7982 case "$found_la" in
|
cannam@86
|
7983 */* | *\\*) . "$found_la" ;;
|
cannam@86
|
7984 *) . "./$found_la" ;;
|
cannam@86
|
7985 esac
|
cannam@86
|
7986 libdir="$save_libdir"
|
cannam@86
|
7987 dnl We use only dependency_libs.
|
cannam@86
|
7988 for dep in $dependency_libs; do
|
cannam@86
|
7989 case "$dep" in
|
cannam@86
|
7990 -L*)
|
cannam@86
|
7991 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
|
cannam@86
|
7992 dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
|
cannam@86
|
7993 dnl But don't add it
|
cannam@86
|
7994 dnl 1. if it's the standard /usr/lib,
|
cannam@86
|
7995 dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
|
cannam@86
|
7996 dnl 3. if it's already present in $LDFLAGS or the already
|
cannam@86
|
7997 dnl constructed $LIBNAME,
|
cannam@86
|
7998 dnl 4. if it doesn't exist as a directory.
|
cannam@86
|
7999 if test "X$additional_libdir" != "X/usr/lib"; then
|
cannam@86
|
8000 haveit=
|
cannam@86
|
8001 if test "X$additional_libdir" = "X/usr/local/lib"; then
|
cannam@86
|
8002 if test -n "$GCC"; then
|
cannam@86
|
8003 case $host_os in
|
cannam@86
|
8004 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
|
cannam@86
|
8005 esac
|
cannam@86
|
8006 fi
|
cannam@86
|
8007 fi
|
cannam@86
|
8008 if test -z "$haveit"; then
|
cannam@86
|
8009 haveit=
|
cannam@86
|
8010 for x in $LDFLAGS $LIB[]NAME; do
|
cannam@86
|
8011 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
cannam@86
|
8012 if test "X$x" = "X-L$additional_libdir"; then
|
cannam@86
|
8013 haveit=yes
|
cannam@86
|
8014 break
|
cannam@86
|
8015 fi
|
cannam@86
|
8016 done
|
cannam@86
|
8017 if test -z "$haveit"; then
|
cannam@86
|
8018 if test -d "$additional_libdir"; then
|
cannam@86
|
8019 dnl Really add $additional_libdir to $LIBNAME.
|
cannam@86
|
8020 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
|
cannam@86
|
8021 fi
|
cannam@86
|
8022 fi
|
cannam@86
|
8023 haveit=
|
cannam@86
|
8024 for x in $LDFLAGS $LTLIB[]NAME; do
|
cannam@86
|
8025 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
cannam@86
|
8026 if test "X$x" = "X-L$additional_libdir"; then
|
cannam@86
|
8027 haveit=yes
|
cannam@86
|
8028 break
|
cannam@86
|
8029 fi
|
cannam@86
|
8030 done
|
cannam@86
|
8031 if test -z "$haveit"; then
|
cannam@86
|
8032 if test -d "$additional_libdir"; then
|
cannam@86
|
8033 dnl Really add $additional_libdir to $LTLIBNAME.
|
cannam@86
|
8034 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
|
cannam@86
|
8035 fi
|
cannam@86
|
8036 fi
|
cannam@86
|
8037 fi
|
cannam@86
|
8038 fi
|
cannam@86
|
8039 ;;
|
cannam@86
|
8040 -R*)
|
cannam@86
|
8041 dir=`echo "X$dep" | sed -e 's/^X-R//'`
|
cannam@86
|
8042 if test "$enable_rpath" != no; then
|
cannam@86
|
8043 dnl Potentially add DIR to rpathdirs.
|
cannam@86
|
8044 dnl The rpathdirs will be appended to $LIBNAME at the end.
|
cannam@86
|
8045 haveit=
|
cannam@86
|
8046 for x in $rpathdirs; do
|
cannam@86
|
8047 if test "X$x" = "X$dir"; then
|
cannam@86
|
8048 haveit=yes
|
cannam@86
|
8049 break
|
cannam@86
|
8050 fi
|
cannam@86
|
8051 done
|
cannam@86
|
8052 if test -z "$haveit"; then
|
cannam@86
|
8053 rpathdirs="$rpathdirs $dir"
|
cannam@86
|
8054 fi
|
cannam@86
|
8055 dnl Potentially add DIR to ltrpathdirs.
|
cannam@86
|
8056 dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
|
cannam@86
|
8057 haveit=
|
cannam@86
|
8058 for x in $ltrpathdirs; do
|
cannam@86
|
8059 if test "X$x" = "X$dir"; then
|
cannam@86
|
8060 haveit=yes
|
cannam@86
|
8061 break
|
cannam@86
|
8062 fi
|
cannam@86
|
8063 done
|
cannam@86
|
8064 if test -z "$haveit"; then
|
cannam@86
|
8065 ltrpathdirs="$ltrpathdirs $dir"
|
cannam@86
|
8066 fi
|
cannam@86
|
8067 fi
|
cannam@86
|
8068 ;;
|
cannam@86
|
8069 -l*)
|
cannam@86
|
8070 dnl Handle this in the next round.
|
cannam@86
|
8071 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
|
cannam@86
|
8072 ;;
|
cannam@86
|
8073 *.la)
|
cannam@86
|
8074 dnl Handle this in the next round. Throw away the .la's
|
cannam@86
|
8075 dnl directory; it is already contained in a preceding -L
|
cannam@86
|
8076 dnl option.
|
cannam@86
|
8077 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
|
cannam@86
|
8078 ;;
|
cannam@86
|
8079 *)
|
cannam@86
|
8080 dnl Most likely an immediate library name.
|
cannam@86
|
8081 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
|
cannam@86
|
8082 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
|
cannam@86
|
8083 ;;
|
cannam@86
|
8084 esac
|
cannam@86
|
8085 done
|
cannam@86
|
8086 fi
|
cannam@86
|
8087 else
|
cannam@86
|
8088 dnl Didn't find the library; assume it is in the system directories
|
cannam@86
|
8089 dnl known to the linker and runtime loader. (All the system
|
cannam@86
|
8090 dnl directories known to the linker should also be known to the
|
cannam@86
|
8091 dnl runtime loader, otherwise the system is severely misconfigured.)
|
cannam@86
|
8092 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
|
cannam@86
|
8093 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
|
cannam@86
|
8094 fi
|
cannam@86
|
8095 fi
|
cannam@86
|
8096 fi
|
cannam@86
|
8097 done
|
cannam@86
|
8098 done
|
cannam@86
|
8099 if test "X$rpathdirs" != "X"; then
|
cannam@86
|
8100 if test -n "$hardcode_libdir_separator"; then
|
cannam@86
|
8101 dnl Weird platform: only the last -rpath option counts, the user must
|
cannam@86
|
8102 dnl pass all path elements in one option. We can arrange that for a
|
cannam@86
|
8103 dnl single library, but not when more than one $LIBNAMEs are used.
|
cannam@86
|
8104 alldirs=
|
cannam@86
|
8105 for found_dir in $rpathdirs; do
|
cannam@86
|
8106 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
|
cannam@86
|
8107 done
|
cannam@86
|
8108 dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
|
cannam@86
|
8109 acl_save_libdir="$libdir"
|
cannam@86
|
8110 libdir="$alldirs"
|
cannam@86
|
8111 eval flag=\"$hardcode_libdir_flag_spec\"
|
cannam@86
|
8112 libdir="$acl_save_libdir"
|
cannam@86
|
8113 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
|
cannam@86
|
8114 else
|
cannam@86
|
8115 dnl The -rpath options are cumulative.
|
cannam@86
|
8116 for found_dir in $rpathdirs; do
|
cannam@86
|
8117 acl_save_libdir="$libdir"
|
cannam@86
|
8118 libdir="$found_dir"
|
cannam@86
|
8119 eval flag=\"$hardcode_libdir_flag_spec\"
|
cannam@86
|
8120 libdir="$acl_save_libdir"
|
cannam@86
|
8121 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
|
cannam@86
|
8122 done
|
cannam@86
|
8123 fi
|
cannam@86
|
8124 fi
|
cannam@86
|
8125 if test "X$ltrpathdirs" != "X"; then
|
cannam@86
|
8126 dnl When using libtool, the option that works for both libraries and
|
cannam@86
|
8127 dnl executables is -R. The -R options are cumulative.
|
cannam@86
|
8128 for found_dir in $ltrpathdirs; do
|
cannam@86
|
8129 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
|
cannam@86
|
8130 done
|
cannam@86
|
8131 fi
|
cannam@86
|
8132 ])
|
cannam@86
|
8133
|
cannam@86
|
8134 dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
|
cannam@86
|
8135 dnl unless already present in VAR.
|
cannam@86
|
8136 dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
|
cannam@86
|
8137 dnl contains two or three consecutive elements that belong together.
|
cannam@86
|
8138 AC_DEFUN([AC_LIB_APPENDTOVAR],
|
cannam@86
|
8139 [
|
cannam@86
|
8140 for element in [$2]; do
|
cannam@86
|
8141 haveit=
|
cannam@86
|
8142 for x in $[$1]; do
|
cannam@86
|
8143 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
cannam@86
|
8144 if test "X$x" = "X$element"; then
|
cannam@86
|
8145 haveit=yes
|
cannam@86
|
8146 break
|
cannam@86
|
8147 fi
|
cannam@86
|
8148 done
|
cannam@86
|
8149 if test -z "$haveit"; then
|
cannam@86
|
8150 [$1]="${[$1]}${[$1]:+ }$element"
|
cannam@86
|
8151 fi
|
cannam@86
|
8152 done
|
cannam@86
|
8153 ])
|
cannam@86
|
8154
|
cannam@86
|
8155 # lib-ld.m4 serial 3 (gettext-0.13)
|
cannam@86
|
8156 dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
|
cannam@86
|
8157 dnl This file is free software; the Free Software Foundation
|
cannam@86
|
8158 dnl gives unlimited permission to copy and/or distribute it,
|
cannam@86
|
8159 dnl with or without modifications, as long as this notice is preserved.
|
cannam@86
|
8160
|
cannam@86
|
8161 dnl Subroutines of libtool.m4,
|
cannam@86
|
8162 dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
|
cannam@86
|
8163 dnl with libtool.m4.
|
cannam@86
|
8164
|
cannam@86
|
8165 dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
|
cannam@86
|
8166 AC_DEFUN([AC_LIB_PROG_LD_GNU],
|
cannam@86
|
8167 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
|
cannam@86
|
8168 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
cannam@86
|
8169 case `$LD -v 2>&1 </dev/null` in
|
cannam@86
|
8170 *GNU* | *'with BFD'*)
|
cannam@86
|
8171 acl_cv_prog_gnu_ld=yes ;;
|
cannam@86
|
8172 *)
|
cannam@86
|
8173 acl_cv_prog_gnu_ld=no ;;
|
cannam@86
|
8174 esac])
|
cannam@86
|
8175 with_gnu_ld=$acl_cv_prog_gnu_ld
|
cannam@86
|
8176 ])
|
cannam@86
|
8177
|
cannam@86
|
8178 dnl From libtool-1.4. Sets the variable LD.
|
cannam@86
|
8179 AC_DEFUN([AC_LIB_PROG_LD],
|
cannam@86
|
8180 [AC_ARG_WITH(gnu-ld,
|
cannam@86
|
8181 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
|
cannam@86
|
8182 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
|
cannam@86
|
8183 AC_REQUIRE([AC_PROG_CC])dnl
|
cannam@86
|
8184 AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
cannam@86
|
8185 # Prepare PATH_SEPARATOR.
|
cannam@86
|
8186 # The user is always right.
|
cannam@86
|
8187 if test "${PATH_SEPARATOR+set}" != set; then
|
cannam@86
|
8188 echo "#! /bin/sh" >conf$$.sh
|
cannam@86
|
8189 echo "exit 0" >>conf$$.sh
|
cannam@86
|
8190 chmod +x conf$$.sh
|
cannam@86
|
8191 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
cannam@86
|
8192 PATH_SEPARATOR=';'
|
cannam@86
|
8193 else
|
cannam@86
|
8194 PATH_SEPARATOR=:
|
cannam@86
|
8195 fi
|
cannam@86
|
8196 rm -f conf$$.sh
|
cannam@86
|
8197 fi
|
cannam@86
|
8198 ac_prog=ld
|
cannam@86
|
8199 if test "$GCC" = yes; then
|
cannam@86
|
8200 # Check if gcc -print-prog-name=ld gives a path.
|
cannam@86
|
8201 AC_MSG_CHECKING([for ld used by GCC])
|
cannam@86
|
8202 case $host in
|
cannam@86
|
8203 *-*-mingw*)
|
cannam@86
|
8204 # gcc leaves a trailing carriage return which upsets mingw
|
cannam@86
|
8205 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
cannam@86
|
8206 *)
|
cannam@86
|
8207 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
cannam@86
|
8208 esac
|
cannam@86
|
8209 case $ac_prog in
|
cannam@86
|
8210 # Accept absolute paths.
|
cannam@86
|
8211 [[\\/]* | [A-Za-z]:[\\/]*)]
|
cannam@86
|
8212 [re_direlt='/[^/][^/]*/\.\./']
|
cannam@86
|
8213 # Canonicalize the path of ld
|
cannam@86
|
8214 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
cannam@86
|
8215 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
cannam@86
|
8216 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
cannam@86
|
8217 done
|
cannam@86
|
8218 test -z "$LD" && LD="$ac_prog"
|
cannam@86
|
8219 ;;
|
cannam@86
|
8220 "")
|
cannam@86
|
8221 # If it fails, then pretend we aren't using GCC.
|
cannam@86
|
8222 ac_prog=ld
|
cannam@86
|
8223 ;;
|
cannam@86
|
8224 *)
|
cannam@86
|
8225 # If it is relative, then search for the first ld in PATH.
|
cannam@86
|
8226 with_gnu_ld=unknown
|
cannam@86
|
8227 ;;
|
cannam@86
|
8228 esac
|
cannam@86
|
8229 elif test "$with_gnu_ld" = yes; then
|
cannam@86
|
8230 AC_MSG_CHECKING([for GNU ld])
|
cannam@86
|
8231 else
|
cannam@86
|
8232 AC_MSG_CHECKING([for non-GNU ld])
|
cannam@86
|
8233 fi
|
cannam@86
|
8234 AC_CACHE_VAL(acl_cv_path_LD,
|
cannam@86
|
8235 [if test -z "$LD"; then
|
cannam@86
|
8236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
cannam@86
|
8237 for ac_dir in $PATH; do
|
cannam@86
|
8238 test -z "$ac_dir" && ac_dir=.
|
cannam@86
|
8239 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
cannam@86
|
8240 acl_cv_path_LD="$ac_dir/$ac_prog"
|
cannam@86
|
8241 # Check to see if the program is GNU ld. I'd rather use --version,
|
cannam@86
|
8242 # but apparently some GNU ld's only accept -v.
|
cannam@86
|
8243 # Break only if it was the GNU/non-GNU ld that we prefer.
|
cannam@86
|
8244 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
|
cannam@86
|
8245 *GNU* | *'with BFD'*)
|
cannam@86
|
8246 test "$with_gnu_ld" != no && break ;;
|
cannam@86
|
8247 *)
|
cannam@86
|
8248 test "$with_gnu_ld" != yes && break ;;
|
cannam@86
|
8249 esac
|
cannam@86
|
8250 fi
|
cannam@86
|
8251 done
|
cannam@86
|
8252 IFS="$ac_save_ifs"
|
cannam@86
|
8253 else
|
cannam@86
|
8254 acl_cv_path_LD="$LD" # Let the user override the test with a path.
|
cannam@86
|
8255 fi])
|
cannam@86
|
8256 LD="$acl_cv_path_LD"
|
cannam@86
|
8257 if test -n "$LD"; then
|
cannam@86
|
8258 AC_MSG_RESULT($LD)
|
cannam@86
|
8259 else
|
cannam@86
|
8260 AC_MSG_RESULT(no)
|
cannam@86
|
8261 fi
|
cannam@86
|
8262 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
|
cannam@86
|
8263 AC_LIB_PROG_LD_GNU
|
cannam@86
|
8264 ])
|
cannam@86
|
8265
|
cannam@86
|
8266 # codeset.m4 serial AM1 (gettext-0.10.40)
|
cannam@86
|
8267 dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
|
cannam@86
|
8268 dnl This file is free software; the Free Software Foundation
|
cannam@86
|
8269 dnl gives unlimited permission to copy and/or distribute it,
|
cannam@86
|
8270 dnl with or without modifications, as long as this notice is preserved.
|
cannam@86
|
8271
|
cannam@86
|
8272 dnl From Bruno Haible.
|
cannam@86
|
8273
|
cannam@86
|
8274 AC_DEFUN([AM_LANGINFO_CODESET],
|
cannam@86
|
8275 [
|
cannam@86
|
8276 AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
|
cannam@86
|
8277 [AC_TRY_LINK([#include <langinfo.h>],
|
cannam@86
|
8278 [char* cs = nl_langinfo(CODESET);],
|
cannam@86
|
8279 am_cv_langinfo_codeset=yes,
|
cannam@86
|
8280 am_cv_langinfo_codeset=no)
|
cannam@86
|
8281 ])
|
cannam@86
|
8282 if test $am_cv_langinfo_codeset = yes; then
|
cannam@86
|
8283 AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
|
cannam@86
|
8284 [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
|
cannam@86
|
8285 fi
|
cannam@86
|
8286 ])
|
cannam@86
|
8287
|