/[debian]/mimetic/trunk/aclocal.m4
ViewVC logotype

Contents of /mimetic/trunk/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1444 - (show annotations)
Thu Sep 18 20:33:08 2008 UTC (12 years, 10 months ago) by gregoa
File size: 239203 byte(s)
New upstream release.
1 # aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*-
2
3 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
4 # Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 # Do all the work for Automake. -*- Autoconf -*-
15
16 # This macro actually does too much some checks are only needed if
17 # your package does certain things. But this isn't really a big deal.
18
19 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
20 # Free Software Foundation, Inc.
21
22 # This program is free software; you can redistribute it and/or modify
23 # it under the terms of the GNU General Public License as published by
24 # the Free Software Foundation; either version 2, or (at your option)
25 # any later version.
26
27 # This program is distributed in the hope that it will be useful,
28 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 # GNU General Public License for more details.
31
32 # You should have received a copy of the GNU General Public License
33 # along with this program; if not, write to the Free Software
34 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
35 # 02111-1307, USA.
36
37 # serial 8
38
39 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
40 # written in clear, in which case automake, when reading aclocal.m4,
41 # will think it sees a *use*, and therefore will trigger all it's
42 # C support machinery. Also note that it means that autoscan, seeing
43 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
44
45
46 AC_PREREQ([2.52])
47
48 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
49 # the ones we care about.
50 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
51
52 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
53 # AM_INIT_AUTOMAKE([OPTIONS])
54 # -----------------------------------------------
55 # The call with PACKAGE and VERSION arguments is the old style
56 # call (pre autoconf-2.50), which is being phased out. PACKAGE
57 # and VERSION should now be passed to AC_INIT and removed from
58 # the call to AM_INIT_AUTOMAKE.
59 # We support both call styles for the transition. After
60 # the next Automake release, Autoconf can make the AC_INIT
61 # arguments mandatory, and then we can depend on a new Autoconf
62 # release and drop the old call support.
63 AC_DEFUN([AM_INIT_AUTOMAKE],
64 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
65 AC_REQUIRE([AC_PROG_INSTALL])dnl
66 # test to see if srcdir already configured
67 if test "`cd $srcdir && pwd`" != "`pwd`" &&
68 test -f $srcdir/config.status; then
69 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
70 fi
71
72 # Define the identity of the package.
73 dnl Distinguish between old-style and new-style calls.
74 m4_ifval([$2],
75 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
76 AC_SUBST([PACKAGE], [$1])dnl
77 AC_SUBST([VERSION], [$2])],
78 [_AM_SET_OPTIONS([$1])dnl
79 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
80 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
81
82 _AM_IF_OPTION([no-define],,
83 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
84 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
85
86 # Some tools Automake needs.
87 AC_REQUIRE([AM_SANITY_CHECK])dnl
88 AC_REQUIRE([AC_ARG_PROGRAM])dnl
89 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
90 AM_MISSING_PROG(AUTOCONF, autoconf)
91 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
92 AM_MISSING_PROG(AUTOHEADER, autoheader)
93 AM_MISSING_PROG(MAKEINFO, makeinfo)
94 AM_MISSING_PROG(AMTAR, tar)
95 AM_PROG_INSTALL_SH
96 AM_PROG_INSTALL_STRIP
97 # We need awk for the "check" target. The system "awk" is bad on
98 # some platforms.
99 AC_REQUIRE([AC_PROG_AWK])dnl
100 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
101
102 _AM_IF_OPTION([no-dependencies],,
103 [AC_PROVIDE_IFELSE([AC_PROG_][CC],
104 [_AM_DEPENDENCIES(CC)],
105 [define([AC_PROG_][CC],
106 defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
107 AC_PROVIDE_IFELSE([AC_PROG_][CXX],
108 [_AM_DEPENDENCIES(CXX)],
109 [define([AC_PROG_][CXX],
110 defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
111 ])
112 ])
113
114 # Copyright 2002 Free Software Foundation, Inc.
115
116 # This program is free software; you can redistribute it and/or modify
117 # it under the terms of the GNU General Public License as published by
118 # the Free Software Foundation; either version 2, or (at your option)
119 # any later version.
120
121 # This program is distributed in the hope that it will be useful,
122 # but WITHOUT ANY WARRANTY; without even the implied warranty of
123 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
124 # GNU General Public License for more details.
125
126 # You should have received a copy of the GNU General Public License
127 # along with this program; if not, write to the Free Software
128 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
129
130 # AM_AUTOMAKE_VERSION(VERSION)
131 # ----------------------------
132 # Automake X.Y traces this macro to ensure aclocal.m4 has been
133 # generated from the m4 files accompanying Automake X.Y.
134 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"])
135
136 # AM_SET_CURRENT_AUTOMAKE_VERSION
137 # -------------------------------
138 # Call AM_AUTOMAKE_VERSION so it can be traced.
139 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
140 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
141 [AM_AUTOMAKE_VERSION([1.6.3])])
142
143 # Helper functions for option handling. -*- Autoconf -*-
144
145 # Copyright 2001, 2002 Free Software Foundation, Inc.
146
147 # This program is free software; you can redistribute it and/or modify
148 # it under the terms of the GNU General Public License as published by
149 # the Free Software Foundation; either version 2, or (at your option)
150 # any later version.
151
152 # This program is distributed in the hope that it will be useful,
153 # but WITHOUT ANY WARRANTY; without even the implied warranty of
154 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
155 # GNU General Public License for more details.
156
157 # You should have received a copy of the GNU General Public License
158 # along with this program; if not, write to the Free Software
159 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
160 # 02111-1307, USA.
161
162 # serial 2
163
164 # _AM_MANGLE_OPTION(NAME)
165 # -----------------------
166 AC_DEFUN([_AM_MANGLE_OPTION],
167 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
168
169 # _AM_SET_OPTION(NAME)
170 # ------------------------------
171 # Set option NAME. Presently that only means defining a flag for this option.
172 AC_DEFUN([_AM_SET_OPTION],
173 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
174
175 # _AM_SET_OPTIONS(OPTIONS)
176 # ----------------------------------
177 # OPTIONS is a space-separated list of Automake options.
178 AC_DEFUN([_AM_SET_OPTIONS],
179 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
180
181 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
182 # -------------------------------------------
183 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
184 AC_DEFUN([_AM_IF_OPTION],
185 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
186
187 #
188 # Check to make sure that the build environment is sane.
189 #
190
191 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
192
193 # This program is free software; you can redistribute it and/or modify
194 # it under the terms of the GNU General Public License as published by
195 # the Free Software Foundation; either version 2, or (at your option)
196 # any later version.
197
198 # This program is distributed in the hope that it will be useful,
199 # but WITHOUT ANY WARRANTY; without even the implied warranty of
200 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
201 # GNU General Public License for more details.
202
203 # You should have received a copy of the GNU General Public License
204 # along with this program; if not, write to the Free Software
205 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
206 # 02111-1307, USA.
207
208 # serial 3
209
210 # AM_SANITY_CHECK
211 # ---------------
212 AC_DEFUN([AM_SANITY_CHECK],
213 [AC_MSG_CHECKING([whether build environment is sane])
214 # Just in case
215 sleep 1
216 echo timestamp > conftest.file
217 # Do `set' in a subshell so we don't clobber the current shell's
218 # arguments. Must try -L first in case configure is actually a
219 # symlink; some systems play weird games with the mod time of symlinks
220 # (eg FreeBSD returns the mod time of the symlink's containing
221 # directory).
222 if (
223 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
224 if test "$[*]" = "X"; then
225 # -L didn't work.
226 set X `ls -t $srcdir/configure conftest.file`
227 fi
228 rm -f conftest.file
229 if test "$[*]" != "X $srcdir/configure conftest.file" \
230 && test "$[*]" != "X conftest.file $srcdir/configure"; then
231
232 # If neither matched, then we have a broken ls. This can happen
233 # if, for instance, CONFIG_SHELL is bash and it inherits a
234 # broken ls alias from the environment. This has actually
235 # happened. Such a system could not be considered "sane".
236 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
237 alias in your environment])
238 fi
239
240 test "$[2]" = conftest.file
241 )
242 then
243 # Ok.
244 :
245 else
246 AC_MSG_ERROR([newly created file is older than distributed files!
247 Check your system clock])
248 fi
249 AC_MSG_RESULT(yes)])
250
251 # -*- Autoconf -*-
252
253
254 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
255
256 # This program is free software; you can redistribute it and/or modify
257 # it under the terms of the GNU General Public License as published by
258 # the Free Software Foundation; either version 2, or (at your option)
259 # any later version.
260
261 # This program is distributed in the hope that it will be useful,
262 # but WITHOUT ANY WARRANTY; without even the implied warranty of
263 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
264 # GNU General Public License for more details.
265
266 # You should have received a copy of the GNU General Public License
267 # along with this program; if not, write to the Free Software
268 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
269 # 02111-1307, USA.
270
271 # serial 3
272
273 # AM_MISSING_PROG(NAME, PROGRAM)
274 # ------------------------------
275 AC_DEFUN([AM_MISSING_PROG],
276 [AC_REQUIRE([AM_MISSING_HAS_RUN])
277 $1=${$1-"${am_missing_run}$2"}
278 AC_SUBST($1)])
279
280
281 # AM_MISSING_HAS_RUN
282 # ------------------
283 # Define MISSING if not defined so far and test if it supports --run.
284 # If it does, set am_missing_run to use it, otherwise, to nothing.
285 AC_DEFUN([AM_MISSING_HAS_RUN],
286 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
287 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
288 # Use eval to expand $SHELL
289 if eval "$MISSING --run true"; then
290 am_missing_run="$MISSING --run "
291 else
292 am_missing_run=
293 AC_MSG_WARN([`missing' script is too old or missing])
294 fi
295 ])
296
297 # AM_AUX_DIR_EXPAND
298
299 # Copyright 2001 Free Software Foundation, Inc.
300
301 # This program is free software; you can redistribute it and/or modify
302 # it under the terms of the GNU General Public License as published by
303 # the Free Software Foundation; either version 2, or (at your option)
304 # any later version.
305
306 # This program is distributed in the hope that it will be useful,
307 # but WITHOUT ANY WARRANTY; without even the implied warranty of
308 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
309 # GNU General Public License for more details.
310
311 # You should have received a copy of the GNU General Public License
312 # along with this program; if not, write to the Free Software
313 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
314 # 02111-1307, USA.
315
316 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
317 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
318 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
319 #
320 # Of course, Automake must honor this variable whenever it calls a
321 # tool from the auxiliary directory. The problem is that $srcdir (and
322 # therefore $ac_aux_dir as well) can be either absolute or relative,
323 # depending on how configure is run. This is pretty annoying, since
324 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
325 # source directory, any form will work fine, but in subdirectories a
326 # relative path needs to be adjusted first.
327 #
328 # $ac_aux_dir/missing
329 # fails when called from a subdirectory if $ac_aux_dir is relative
330 # $top_srcdir/$ac_aux_dir/missing
331 # fails if $ac_aux_dir is absolute,
332 # fails when called from a subdirectory in a VPATH build with
333 # a relative $ac_aux_dir
334 #
335 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
336 # are both prefixed by $srcdir. In an in-source build this is usually
337 # harmless because $srcdir is `.', but things will broke when you
338 # start a VPATH build or use an absolute $srcdir.
339 #
340 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
341 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
342 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
343 # and then we would define $MISSING as
344 # MISSING="\${SHELL} $am_aux_dir/missing"
345 # This will work as long as MISSING is not called from configure, because
346 # unfortunately $(top_srcdir) has no meaning in configure.
347 # However there are other variables, like CC, which are often used in
348 # configure, and could therefore not use this "fixed" $ac_aux_dir.
349 #
350 # Another solution, used here, is to always expand $ac_aux_dir to an
351 # absolute PATH. The drawback is that using absolute paths prevent a
352 # configured tree to be moved without reconfiguration.
353
354 # Rely on autoconf to set up CDPATH properly.
355 AC_PREREQ([2.50])
356
357 AC_DEFUN([AM_AUX_DIR_EXPAND], [
358 # expand $ac_aux_dir to an absolute path
359 am_aux_dir=`cd $ac_aux_dir && pwd`
360 ])
361
362 # AM_PROG_INSTALL_SH
363 # ------------------
364 # Define $install_sh.
365
366 # Copyright 2001 Free Software Foundation, Inc.
367
368 # This program is free software; you can redistribute it and/or modify
369 # it under the terms of the GNU General Public License as published by
370 # the Free Software Foundation; either version 2, or (at your option)
371 # any later version.
372
373 # This program is distributed in the hope that it will be useful,
374 # but WITHOUT ANY WARRANTY; without even the implied warranty of
375 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376 # GNU General Public License for more details.
377
378 # You should have received a copy of the GNU General Public License
379 # along with this program; if not, write to the Free Software
380 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
381 # 02111-1307, USA.
382
383 AC_DEFUN([AM_PROG_INSTALL_SH],
384 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
385 install_sh=${install_sh-"$am_aux_dir/install-sh"}
386 AC_SUBST(install_sh)])
387
388 # AM_PROG_INSTALL_STRIP
389
390 # Copyright 2001 Free Software Foundation, Inc.
391
392 # This program is free software; you can redistribute it and/or modify
393 # it under the terms of the GNU General Public License as published by
394 # the Free Software Foundation; either version 2, or (at your option)
395 # any later version.
396
397 # This program is distributed in the hope that it will be useful,
398 # but WITHOUT ANY WARRANTY; without even the implied warranty of
399 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
400 # GNU General Public License for more details.
401
402 # You should have received a copy of the GNU General Public License
403 # along with this program; if not, write to the Free Software
404 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
405 # 02111-1307, USA.
406
407 # One issue with vendor `install' (even GNU) is that you can't
408 # specify the program used to strip binaries. This is especially
409 # annoying in cross-compiling environments, where the build's strip
410 # is unlikely to handle the host's binaries.
411 # Fortunately install-sh will honor a STRIPPROG variable, so we
412 # always use install-sh in `make install-strip', and initialize
413 # STRIPPROG with the value of the STRIP variable (set by the user).
414 AC_DEFUN([AM_PROG_INSTALL_STRIP],
415 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
416 # Installed binaries are usually stripped using `strip' when the user
417 # run `make install-strip'. However `strip' might not be the right
418 # tool to use in cross-compilation environments, therefore Automake
419 # will honor the `STRIP' environment variable to overrule this program.
420 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
421 if test "$cross_compiling" != no; then
422 AC_CHECK_TOOL([STRIP], [strip], :)
423 fi
424 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
425 AC_SUBST([INSTALL_STRIP_PROGRAM])])
426
427 # serial 4 -*- Autoconf -*-
428
429 # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
430
431 # This program is free software; you can redistribute it and/or modify
432 # it under the terms of the GNU General Public License as published by
433 # the Free Software Foundation; either version 2, or (at your option)
434 # any later version.
435
436 # This program is distributed in the hope that it will be useful,
437 # but WITHOUT ANY WARRANTY; without even the implied warranty of
438 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
439 # GNU General Public License for more details.
440
441 # You should have received a copy of the GNU General Public License
442 # along with this program; if not, write to the Free Software
443 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
444 # 02111-1307, USA.
445
446
447 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
448 # written in clear, in which case automake, when reading aclocal.m4,
449 # will think it sees a *use*, and therefore will trigger all it's
450 # C support machinery. Also note that it means that autoscan, seeing
451 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
452
453
454
455 # _AM_DEPENDENCIES(NAME)
456 # ----------------------
457 # See how the compiler implements dependency checking.
458 # NAME is "CC", "CXX", "GCJ", or "OBJC".
459 # We try a few techniques and use that to set a single cache variable.
460 #
461 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
462 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
463 # dependency, and given that the user is not expected to run this macro,
464 # just rely on AC_PROG_CC.
465 AC_DEFUN([_AM_DEPENDENCIES],
466 [AC_REQUIRE([AM_SET_DEPDIR])dnl
467 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
468 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
469 AC_REQUIRE([AM_DEP_TRACK])dnl
470
471 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
472 [$1], CXX, [depcc="$CXX" am_compiler_list=],
473 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
474 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
475 [depcc="$$1" am_compiler_list=])
476
477 AC_CACHE_CHECK([dependency style of $depcc],
478 [am_cv_$1_dependencies_compiler_type],
479 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
480 # We make a subdir and do the tests there. Otherwise we can end up
481 # making bogus files that we don't know about and never remove. For
482 # instance it was reported that on HP-UX the gcc test will end up
483 # making a dummy file named `D' -- because `-MD' means `put the output
484 # in D'.
485 mkdir conftest.dir
486 # Copy depcomp to subdir because otherwise we won't find it if we're
487 # using a relative directory.
488 cp "$am_depcomp" conftest.dir
489 cd conftest.dir
490
491 am_cv_$1_dependencies_compiler_type=none
492 if test "$am_compiler_list" = ""; then
493 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
494 fi
495 for depmode in $am_compiler_list; do
496 # We need to recreate these files for each test, as the compiler may
497 # overwrite some of them when testing with obscure command lines.
498 # This happens at least with the AIX C compiler.
499 echo '#include "conftest.h"' > conftest.c
500 echo 'int i;' > conftest.h
501 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
502
503 case $depmode in
504 nosideeffect)
505 # after this tag, mechanisms are not by side-effect, so they'll
506 # only be used when explicitly requested
507 if test "x$enable_dependency_tracking" = xyes; then
508 continue
509 else
510 break
511 fi
512 ;;
513 none) break ;;
514 esac
515 # We check with `-c' and `-o' for the sake of the "dashmstdout"
516 # mode. It turns out that the SunPro C++ compiler does not properly
517 # handle `-M -o', and we need to detect this.
518 if depmode=$depmode \
519 source=conftest.c object=conftest.o \
520 depfile=conftest.Po tmpdepfile=conftest.TPo \
521 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
522 grep conftest.h conftest.Po > /dev/null 2>&1 &&
523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
524 am_cv_$1_dependencies_compiler_type=$depmode
525 break
526 fi
527 done
528
529 cd ..
530 rm -rf conftest.dir
531 else
532 am_cv_$1_dependencies_compiler_type=none
533 fi
534 ])
535 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
536 ])
537
538
539 # AM_SET_DEPDIR
540 # -------------
541 # Choose a directory name for dependency files.
542 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
543 AC_DEFUN([AM_SET_DEPDIR],
544 [rm -f .deps 2>/dev/null
545 mkdir .deps 2>/dev/null
546 if test -d .deps; then
547 DEPDIR=.deps
548 else
549 # MS-DOS does not allow filenames that begin with a dot.
550 DEPDIR=_deps
551 fi
552 rmdir .deps 2>/dev/null
553 AC_SUBST([DEPDIR])
554 ])
555
556
557 # AM_DEP_TRACK
558 # ------------
559 AC_DEFUN([AM_DEP_TRACK],
560 [AC_ARG_ENABLE(dependency-tracking,
561 [ --disable-dependency-tracking Speeds up one-time builds
562 --enable-dependency-tracking Do not reject slow dependency extractors])
563 if test "x$enable_dependency_tracking" != xno; then
564 am_depcomp="$ac_aux_dir/depcomp"
565 AMDEPBACKSLASH='\'
566 fi
567 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
568 AC_SUBST([AMDEPBACKSLASH])
569 ])
570
571 # Generate code to set up dependency tracking. -*- Autoconf -*-
572
573 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
574
575 # This program is free software; you can redistribute it and/or modify
576 # it under the terms of the GNU General Public License as published by
577 # the Free Software Foundation; either version 2, or (at your option)
578 # any later version.
579
580 # This program is distributed in the hope that it will be useful,
581 # but WITHOUT ANY WARRANTY; without even the implied warranty of
582 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
583 # GNU General Public License for more details.
584
585 # You should have received a copy of the GNU General Public License
586 # along with this program; if not, write to the Free Software
587 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
588 # 02111-1307, USA.
589
590 #serial 2
591
592 # _AM_OUTPUT_DEPENDENCY_COMMANDS
593 # ------------------------------
594 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
595 [for mf in $CONFIG_FILES; do
596 # Strip MF so we end up with the name of the file.
597 mf=`echo "$mf" | sed -e 's/:.*$//'`
598 # Check whether this is an Automake generated Makefile or not.
599 # We used to match only the files named `Makefile.in', but
600 # some people rename them; so instead we look at the file content.
601 # Grep'ing the first line is not enough: some people post-process
602 # each Makefile.in and add a new line on top of each file to say so.
603 # So let's grep whole file.
604 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
605 dirpart=`AS_DIRNAME("$mf")`
606 else
607 continue
608 fi
609 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
610 # Extract the definition of DEP_FILES from the Makefile without
611 # running `make'.
612 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
613 test -z "$DEPDIR" && continue
614 # When using ansi2knr, U may be empty or an underscore; expand it
615 U=`sed -n -e '/^U = / s///p' < "$mf"`
616 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
617 # We invoke sed twice because it is the simplest approach to
618 # changing $(DEPDIR) to its actual value in the expansion.
619 for file in `sed -n -e '
620 /^DEP_FILES = .*\\\\$/ {
621 s/^DEP_FILES = //
622 :loop
623 s/\\\\$//
624 p
625 n
626 /\\\\$/ b loop
627 p
628 }
629 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
630 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
631 # Make sure the directory exists.
632 test -f "$dirpart/$file" && continue
633 fdir=`AS_DIRNAME(["$file"])`
634 AS_MKDIR_P([$dirpart/$fdir])
635 # echo "creating $dirpart/$file"
636 echo '# dummy' > "$dirpart/$file"
637 done
638 done
639 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
640
641
642 # AM_OUTPUT_DEPENDENCY_COMMANDS
643 # -----------------------------
644 # This macro should only be invoked once -- use via AC_REQUIRE.
645 #
646 # This code is only required when automatic dependency tracking
647 # is enabled. FIXME. This creates each `.P' file that we will
648 # need in order to bootstrap the dependency handling code.
649 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
650 [AC_CONFIG_COMMANDS([depfiles],
651 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
652 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
653 ])
654
655 # Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-
656
657 # This program is free software; you can redistribute it and/or modify
658 # it under the terms of the GNU General Public License as published by
659 # the Free Software Foundation; either version 2, or (at your option)
660 # any later version.
661
662 # This program is distributed in the hope that it will be useful,
663 # but WITHOUT ANY WARRANTY; without even the implied warranty of
664 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
665 # GNU General Public License for more details.
666
667 # You should have received a copy of the GNU General Public License
668 # along with this program; if not, write to the Free Software
669 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
670 # 02111-1307, USA.
671
672 # serial 2
673
674 # AM_MAKE_INCLUDE()
675 # -----------------
676 # Check to see how make treats includes.
677 AC_DEFUN([AM_MAKE_INCLUDE],
678 [am_make=${MAKE-make}
679 cat > confinc << 'END'
680 doit:
681 @echo done
682 END
683 # If we don't find an include directive, just comment out the code.
684 AC_MSG_CHECKING([for style of include used by $am_make])
685 am__include="#"
686 am__quote=
687 _am_result=none
688 # First try GNU make style include.
689 echo "include confinc" > confmf
690 # We grep out `Entering directory' and `Leaving directory'
691 # messages which can occur if `w' ends up in MAKEFLAGS.
692 # In particular we don't look at `^make:' because GNU make might
693 # be invoked under some other name (usually "gmake"), in which
694 # case it prints its new name instead of `make'.
695 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
696 am__include=include
697 am__quote=
698 _am_result=GNU
699 fi
700 # Now try BSD make style include.
701 if test "$am__include" = "#"; then
702 echo '.include "confinc"' > confmf
703 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
704 am__include=.include
705 am__quote="\""
706 _am_result=BSD
707 fi
708 fi
709 AC_SUBST(am__include)
710 AC_SUBST(am__quote)
711 AC_MSG_RESULT($_am_result)
712 rm -f confinc confmf
713 ])
714
715 # AM_CONDITIONAL -*- Autoconf -*-
716
717 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
718
719 # This program is free software; you can redistribute it and/or modify
720 # it under the terms of the GNU General Public License as published by
721 # the Free Software Foundation; either version 2, or (at your option)
722 # any later version.
723
724 # This program is distributed in the hope that it will be useful,
725 # but WITHOUT ANY WARRANTY; without even the implied warranty of
726 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
727 # GNU General Public License for more details.
728
729 # You should have received a copy of the GNU General Public License
730 # along with this program; if not, write to the Free Software
731 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
732 # 02111-1307, USA.
733
734 # serial 5
735
736 AC_PREREQ(2.52)
737
738 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
739 # -------------------------------------
740 # Define a conditional.
741 AC_DEFUN([AM_CONDITIONAL],
742 [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
743 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
744 AC_SUBST([$1_TRUE])
745 AC_SUBST([$1_FALSE])
746 if $2; then
747 $1_TRUE=
748 $1_FALSE='#'
749 else
750 $1_TRUE='#'
751 $1_FALSE=
752 fi
753 AC_CONFIG_COMMANDS_PRE(
754 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
755 AC_MSG_ERROR([conditional \"$1\" was never defined.
756 Usually this means the macro was only invoked conditionally.])
757 fi])])
758
759 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
760
761 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
762
763 # This program is free software; you can redistribute it and/or modify
764 # it under the terms of the GNU General Public License as published by
765 # the Free Software Foundation; either version 2, or (at your option)
766 # any later version.
767
768 # This program is distributed in the hope that it will be useful,
769 # but WITHOUT ANY WARRANTY; without even the implied warranty of
770 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
771 # GNU General Public License for more details.
772
773 # You should have received a copy of the GNU General Public License
774 # along with this program; if not, write to the Free Software
775 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
776 # 02111-1307, USA.
777
778 AC_PREREQ([2.52])
779
780 # serial 6
781
782 # When config.status generates a header, we must update the stamp-h file.
783 # This file resides in the same directory as the config header
784 # that is generated. We must strip everything past the first ":",
785 # and everything past the last "/".
786
787 # _AM_DIRNAME(PATH)
788 # -----------------
789 # Like AS_DIRNAME, only do it during macro expansion
790 AC_DEFUN([_AM_DIRNAME],
791 [m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
792 m4_if(regexp([$1], [^//\([^/]\|$\)]), -1,
793 m4_if(regexp([$1], [^/.*]), -1,
794 [.],
795 patsubst([$1], [^\(/\).*], [\1])),
796 patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
797 patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
798 ])# _AM_DIRNAME
799
800
801 # The stamp files are numbered to have different names.
802 # We could number them on a directory basis, but that's additional
803 # complications, let's have a unique counter.
804 m4_define([_AM_STAMP_Count], [0])
805
806
807 # _AM_STAMP(HEADER)
808 # -----------------
809 # The name of the stamp file for HEADER.
810 AC_DEFUN([_AM_STAMP],
811 [m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl
812 AS_ESCAPE(_AM_DIRNAME(patsubst([$1],
813 [:.*])))/stamp-h[]_AM_STAMP_Count])
814
815
816 # _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS)
817 # ------------------------------------------------------------
818 # We used to try to get a real timestamp in stamp-h. But the fear is that
819 # that will cause unnecessary cvs conflicts.
820 AC_DEFUN([_AM_CONFIG_HEADER],
821 [# Add the stamp file to the list of files AC keeps track of,
822 # along with our hook.
823 AC_CONFIG_HEADERS([$1],
824 [# update the timestamp
825 echo 'timestamp for $1' >"_AM_STAMP([$1])"
826 $2],
827 [$3])
828 ])# _AM_CONFIG_HEADER
829
830
831 # AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS)
832 # --------------------------------------------------------------
833 AC_DEFUN([AM_CONFIG_HEADER],
834 [AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])])
835 ])# AM_CONFIG_HEADER
836
837 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
838
839 # serial 47 AC_PROG_LIBTOOL
840
841
842 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
843 # -----------------------------------------------------------
844 # If this macro is not defined by Autoconf, define it here.
845 m4_ifdef([AC_PROVIDE_IFELSE],
846 [],
847 [m4_define([AC_PROVIDE_IFELSE],
848 [m4_ifdef([AC_PROVIDE_$1],
849 [$2], [$3])])])
850
851
852 # AC_PROG_LIBTOOL
853 # ---------------
854 AC_DEFUN([AC_PROG_LIBTOOL],
855 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
856 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
857 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
858 AC_PROVIDE_IFELSE([AC_PROG_CXX],
859 [AC_LIBTOOL_CXX],
860 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
861 ])])
862 dnl And a similar setup for Fortran 77 support
863 AC_PROVIDE_IFELSE([AC_PROG_F77],
864 [AC_LIBTOOL_F77],
865 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
866 ])])
867
868 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
869 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
870 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
871 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
872 [AC_LIBTOOL_GCJ],
873 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
874 [AC_LIBTOOL_GCJ],
875 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
876 [AC_LIBTOOL_GCJ],
877 [ifdef([AC_PROG_GCJ],
878 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
879 ifdef([A][M_PROG_GCJ],
880 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
881 ifdef([LT_AC_PROG_GCJ],
882 [define([LT_AC_PROG_GCJ],
883 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
884 ])])# AC_PROG_LIBTOOL
885
886
887 # _AC_PROG_LIBTOOL
888 # ----------------
889 AC_DEFUN([_AC_PROG_LIBTOOL],
890 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
891 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
892 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
893 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
894
895 # This can be used to rebuild libtool when needed
896 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
897
898 # Always use our own libtool.
899 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
900 AC_SUBST(LIBTOOL)dnl
901
902 # Prevent multiple expansion
903 define([AC_PROG_LIBTOOL], [])
904 ])# _AC_PROG_LIBTOOL
905
906
907 # AC_LIBTOOL_SETUP
908 # ----------------
909 AC_DEFUN([AC_LIBTOOL_SETUP],
910 [AC_PREREQ(2.50)dnl
911 AC_REQUIRE([AC_ENABLE_SHARED])dnl
912 AC_REQUIRE([AC_ENABLE_STATIC])dnl
913 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
914 AC_REQUIRE([AC_CANONICAL_HOST])dnl
915 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
916 AC_REQUIRE([AC_PROG_CC])dnl
917 AC_REQUIRE([AC_PROG_LD])dnl
918 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
919 AC_REQUIRE([AC_PROG_NM])dnl
920
921 AC_REQUIRE([AC_PROG_LN_S])dnl
922 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
923 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
924 AC_REQUIRE([AC_OBJEXT])dnl
925 AC_REQUIRE([AC_EXEEXT])dnl
926 dnl
927
928 AC_LIBTOOL_SYS_MAX_CMD_LEN
929 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
930 AC_LIBTOOL_OBJDIR
931
932 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
933 _LT_AC_PROG_ECHO_BACKSLASH
934
935 case $host_os in
936 aix3*)
937 # AIX sometimes has problems with the GCC collect2 program. For some
938 # reason, if we set the COLLECT_NAMES environment variable, the problems
939 # vanish in a puff of smoke.
940 if test "X${COLLECT_NAMES+set}" != Xset; then
941 COLLECT_NAMES=
942 export COLLECT_NAMES
943 fi
944 ;;
945 esac
946
947 # Sed substitution that helps us do robust quoting. It backslashifies
948 # metacharacters that are still active within double-quoted strings.
949 Xsed='sed -e s/^X//'
950 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
951
952 # Same as above, but do not quote variable references.
953 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
954
955 # Sed substitution to delay expansion of an escaped shell variable in a
956 # double_quote_subst'ed string.
957 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
958
959 # Sed substitution to undo escaping of the cmd sep variable
960 unescape_variable_subst='s/\\\(${_S_}\)/\1/g'
961
962 # Sed substitution to avoid accidental globbing in evaled expressions
963 no_glob_subst='s/\*/\\\*/g'
964
965 # Constants:
966 rm="rm -f"
967
968 # Global variables:
969 default_ofile=libtool
970 can_build_shared=yes
971
972 # All known linkers require a `.a' archive for static linking (except M$VC,
973 # which needs '.lib').
974 libext=a
975 ltmain="$ac_aux_dir/ltmain.sh"
976 ofile="$default_ofile"
977 with_gnu_ld="$lt_cv_prog_gnu_ld"
978
979 AC_CHECK_TOOL(AR, ar, false)
980 AC_CHECK_TOOL(RANLIB, ranlib, :)
981 AC_CHECK_TOOL(STRIP, strip, :)
982
983 old_CC="$CC"
984 old_CFLAGS="$CFLAGS"
985
986 # Set sane defaults for various variables
987 test -z "$AR" && AR=ar
988 test -z "$AR_FLAGS" && AR_FLAGS=cru
989 test -z "$AS" && AS=as
990 test -z "$CC" && CC=cc
991 test -z "$LTCC" && LTCC=$CC
992 test -z "$DLLTOOL" && DLLTOOL=dlltool
993 test -z "$LD" && LD=ld
994 test -z "$LN_S" && LN_S="ln -s"
995 test -z "$MAGIC_CMD" && MAGIC_CMD=file
996 test -z "$NM" && NM=nm
997 test -z "$SED" && SED=sed
998 test -z "$OBJDUMP" && OBJDUMP=objdump
999 test -z "$RANLIB" && RANLIB=:
1000 test -z "$STRIP" && STRIP=:
1001 test -z "$ac_objext" && ac_objext=o
1002
1003 # Determine commands to create old-style static archives.
1004 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1005 old_postinstall_cmds='chmod 644 $oldlib'
1006 old_postuninstall_cmds=
1007
1008 if test -n "$RANLIB"; then
1009 case $host_os in
1010 openbsd*)
1011 old_postinstall_cmds="\$RANLIB -t \$oldlib\${_S_}$old_postinstall_cmds"
1012 ;;
1013 *)
1014 old_postinstall_cmds="\$RANLIB \$oldlib\${_S_}$old_postinstall_cmds"
1015 ;;
1016 esac
1017 old_archive_cmds="$old_archive_cmds\${_S_}\$RANLIB \$oldlib"
1018 fi
1019
1020 # Only perform the check for file, if the check method requires it
1021 case $deplibs_check_method in
1022 file_magic*)
1023 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1024 AC_PATH_MAGIC
1025 fi
1026 ;;
1027 esac
1028
1029 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1030 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1031 enable_win32_dll=yes, enable_win32_dll=no)
1032
1033 AC_ARG_ENABLE([libtool-lock],
1034 [AC_HELP_STRING([--disable-libtool-lock],
1035 [avoid locking (might break parallel builds)])])
1036 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1037
1038 AC_ARG_WITH([pic],
1039 [AC_HELP_STRING([--with-pic],
1040 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1041 [pic_mode="$withval"],
1042 [pic_mode=default])
1043 test -z "$pic_mode" && pic_mode=default
1044
1045 # Use C for the default configuration in the libtool script
1046 tagname=
1047 AC_LIBTOOL_LANG_C_CONFIG
1048 _LT_AC_TAGCONFIG
1049 ])# AC_LIBTOOL_SETUP
1050
1051
1052 # _LT_AC_SYS_COMPILER
1053 # -------------------
1054 AC_DEFUN([_LT_AC_SYS_COMPILER],
1055 [AC_REQUIRE([AC_PROG_CC])dnl
1056
1057 # If no C compiler was specified, use CC.
1058 LTCC=${LTCC-"$CC"}
1059
1060 # Allow CC to be a program name with arguments.
1061 compiler=$CC
1062 ])# _LT_AC_SYS_COMPILER
1063
1064
1065 # _LT_AC_SYS_LIBPATH_AIX
1066 # ----------------------
1067 # Links a minimal program and checks the executable
1068 # for the system default hardcoded library path. In most cases,
1069 # this is /usr/lib:/lib, but when the MPI compilers are used
1070 # the location of the communication and MPI libs are included too.
1071 # If we don't find anything, use the default library path according
1072 # to the aix ld manual.
1073 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1074 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1075 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1076 }'`
1077 # Check for a 64-bit object if we didn't find anything.
1078 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; }
1079 }'`; fi],[])
1080 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1081 ])# _LT_AC_SYS_LIBPATH_AIX
1082
1083
1084 # _LT_AC_SHELL_INIT(ARG)
1085 # ----------------------
1086 AC_DEFUN([_LT_AC_SHELL_INIT],
1087 [ifdef([AC_DIVERSION_NOTICE],
1088 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1089 [AC_DIVERT_PUSH(NOTICE)])
1090 $1
1091 AC_DIVERT_POP
1092 ])# _LT_AC_SHELL_INIT
1093
1094
1095 # _LT_AC_PROG_ECHO_BACKSLASH
1096 # --------------------------
1097 # Add some code to the start of the generated configure script which
1098 # will find an echo command which doesn't interpret backslashes.
1099 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1100 [_LT_AC_SHELL_INIT([
1101 # Check that we are running under the correct shell.
1102 SHELL=${CONFIG_SHELL-/bin/sh}
1103
1104 case X$ECHO in
1105 X*--fallback-echo)
1106 # Remove one level of quotation (which was required for Make).
1107 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1108 ;;
1109 esac
1110
1111 echo=${ECHO-echo}
1112 if test "X[$]1" = X--no-reexec; then
1113 # Discard the --no-reexec flag, and continue.
1114 shift
1115 elif test "X[$]1" = X--fallback-echo; then
1116 # Avoid inline document here, it may be left over
1117 :
1118 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1119 # Yippee, $echo works!
1120 :
1121 else
1122 # Restart under the correct shell.
1123 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1124 fi
1125
1126 if test "X[$]1" = X--fallback-echo; then
1127 # used as fallback echo
1128 shift
1129 cat <<EOF
1130 [$]*
1131 EOF
1132 exit 0
1133 fi
1134
1135 # The HP-UX ksh and POSIX shell print the target directory to stdout
1136 # if CDPATH is set.
1137 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
1138
1139 if test -z "$ECHO"; then
1140 if test "X${echo_test_string+set}" != Xset; then
1141 # find a string as large as possible, as long as the shell can cope with it
1142 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1143 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1144 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
1145 echo_test_string="`eval $cmd`" &&
1146 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1147 then
1148 break
1149 fi
1150 done
1151 fi
1152
1153 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1154 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1155 test "X$echo_testing_string" = "X$echo_test_string"; then
1156 :
1157 else
1158 # The Solaris, AIX, and Digital Unix default echo programs unquote
1159 # backslashes. This makes it impossible to quote backslashes using
1160 # echo "$something" | sed 's/\\/\\\\/g'
1161 #
1162 # So, first we look for a working echo in the user's PATH.
1163
1164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1165 for dir in $PATH /usr/ucb; do
1166 IFS="$lt_save_ifs"
1167 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1168 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1169 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1170 test "X$echo_testing_string" = "X$echo_test_string"; then
1171 echo="$dir/echo"
1172 break
1173 fi
1174 done
1175 IFS="$lt_save_ifs"
1176
1177 if test "X$echo" = Xecho; then
1178 # We didn't find a better echo, so look for alternatives.
1179 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1180 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1181 test "X$echo_testing_string" = "X$echo_test_string"; then
1182 # This shell has a builtin print -r that does the trick.
1183 echo='print -r'
1184 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1185 test "X$CONFIG_SHELL" != X/bin/ksh; then
1186 # If we have ksh, try running configure again with it.
1187 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1188 export ORIGINAL_CONFIG_SHELL
1189 CONFIG_SHELL=/bin/ksh
1190 export CONFIG_SHELL
1191 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1192 else
1193 # Try using printf.
1194 echo='printf %s\n'
1195 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1196 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1197 test "X$echo_testing_string" = "X$echo_test_string"; then
1198 # Cool, printf works
1199 :
1200 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1201 test "X$echo_testing_string" = 'X\t' &&
1202 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1203 test "X$echo_testing_string" = "X$echo_test_string"; then
1204 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1205 export CONFIG_SHELL
1206 SHELL="$CONFIG_SHELL"
1207 export SHELL
1208 echo="$CONFIG_SHELL [$]0 --fallback-echo"
1209 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1210 test "X$echo_testing_string" = 'X\t' &&
1211 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1212 test "X$echo_testing_string" = "X$echo_test_string"; then
1213 echo="$CONFIG_SHELL [$]0 --fallback-echo"
1214 else
1215 # maybe with a smaller string...
1216 prev=:
1217
1218 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1219 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1220 then
1221 break
1222 fi
1223 prev="$cmd"
1224 done
1225
1226 if test "$prev" != 'sed 50q "[$]0"'; then
1227 echo_test_string=`eval $prev`
1228 export echo_test_string
1229 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1230 else
1231 # Oops. We lost completely, so just stick with echo.
1232 echo=echo
1233 fi
1234 fi
1235 fi
1236 fi
1237 fi
1238 fi
1239
1240 # Copy echo and quote the copy suitably for passing to libtool from
1241 # the Makefile, instead of quoting the original, which is used later.
1242 ECHO=$echo
1243 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1244 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1245 fi
1246
1247 AC_SUBST(ECHO)
1248 ])])# _LT_AC_PROG_ECHO_BACKSLASH
1249
1250
1251 # _LT_AC_LOCK
1252 # -----------
1253 AC_DEFUN([_LT_AC_LOCK],
1254 [AC_ARG_ENABLE([libtool-lock],
1255 [AC_HELP_STRING([--disable-libtool-lock],
1256 [avoid locking (might break parallel builds)])])
1257 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1258
1259 # Some flags need to be propagated to the compiler or linker for good
1260 # libtool support.
1261 case $host in
1262 ia64-*-hpux*)
1263 # Find out which ABI we are using.
1264 echo 'int i;' > conftest.$ac_ext
1265 if AC_TRY_EVAL(ac_compile); then
1266 case `/usr/bin/file conftest.$ac_objext` in
1267 *ELF-32*)
1268 HPUX_IA64_MODE="32"
1269 ;;
1270 *ELF-64*)
1271 HPUX_IA64_MODE="64"
1272 ;;
1273 esac
1274 fi
1275 rm -rf conftest*
1276 ;;
1277 *-*-irix6*)
1278 # Find out which ABI we are using.
1279 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1280 if AC_TRY_EVAL(ac_compile); then
1281 if test "$lt_cv_prog_gnu_ld" = yes; then
1282 case `/usr/bin/file conftest.$ac_objext` in
1283 *32-bit*)
1284 LD="${LD-ld} -melf32bsmip"
1285 ;;
1286 *N32*)
1287 LD="${LD-ld} -melf32bmipn32"
1288 ;;
1289 *64-bit*)
1290 LD="${LD-ld} -melf64bmip"
1291 ;;
1292 esac
1293 else
1294 case `/usr/bin/file conftest.$ac_objext` in
1295 *32-bit*)
1296 LD="${LD-ld} -32"
1297 ;;
1298 *N32*)
1299 LD="${LD-ld} -n32"
1300 ;;
1301 *64-bit*)
1302 LD="${LD-ld} -64"
1303 ;;
1304 esac
1305 fi
1306 fi
1307 rm -rf conftest*
1308 ;;
1309
1310 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1311 # Find out which ABI we are using.
1312 echo 'int i;' > conftest.$ac_ext
1313 if AC_TRY_EVAL(ac_compile); then
1314 case "`/usr/bin/file conftest.o`" in
1315 *32-bit*)
1316 case $host in
1317 x86_64-*linux*)
1318 LD="${LD-ld} -m elf_i386"
1319 ;;
1320 ppc64-*linux*)
1321 LD="${LD-ld} -m elf32ppclinux"
1322 ;;
1323 s390x-*linux*)
1324 LD="${LD-ld} -m elf_s390"
1325 ;;
1326 sparc64-*linux*)
1327 LD="${LD-ld} -m elf32_sparc"
1328 ;;
1329 esac
1330 ;;
1331 *64-bit*)
1332 case $host in
1333 x86_64-*linux*)
1334 LD="${LD-ld} -m elf_x86_64"
1335 ;;
1336 ppc*-*linux*|powerpc*-*linux*)
1337 LD="${LD-ld} -m elf64ppc"
1338 ;;
1339 s390*-*linux*)
1340 LD="${LD-ld} -m elf64_s390"
1341 ;;
1342 sparc*-*linux*)
1343 LD="${LD-ld} -m elf64_sparc"
1344 ;;
1345 esac
1346 ;;
1347 esac
1348 fi
1349 rm -rf conftest*
1350 ;;
1351
1352 *-*-sco3.2v5*)
1353 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1354 SAVE_CFLAGS="$CFLAGS"
1355 CFLAGS="$CFLAGS -belf"
1356 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1357 [AC_LANG_PUSH(C)
1358 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1359 AC_LANG_POP])
1360 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1361 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1362 CFLAGS="$SAVE_CFLAGS"
1363 fi
1364 ;;
1365 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1366 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1367 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1368 AC_CHECK_TOOL(AS, as, false)
1369 AC_CHECK_TOOL(OBJDUMP, objdump, false)
1370 ;;
1371 ])
1372 esac
1373
1374 need_locks="$enable_libtool_lock"
1375
1376 ])# _LT_AC_LOCK
1377
1378
1379 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1380 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1381 # ----------------------------------------------------------------
1382 # Check whether the given compiler option works
1383 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1384 [AC_CACHE_CHECK([$1], [$2],
1385 [$2=no
1386 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1387 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1388 lt_compiler_flag="$3"
1389 # Insert the option either (1) after the last *FLAGS variable, or
1390 # (2) before a word containing "conftest.", or (3) at the end.
1391 # Note that $ac_compile itself does not contain backslashes and begins
1392 # with a dollar sign (not a hyphen), so the echo should work correctly.
1393 # The option is referenced via a variable to avoid confusing sed.
1394 lt_compile=`echo "$ac_compile" | $SED \
1395 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1396 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1397 -e 's:$: $lt_compiler_flag:'`
1398 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1399 (eval "$lt_compile" 2>conftest.err)
1400 ac_status=$?
1401 cat conftest.err >&AS_MESSAGE_LOG_FD
1402 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1403 if (exit $ac_status) && test -s "$ac_outfile"; then
1404 # The compiler can only warn and ignore the option if not recognized
1405 # So say no if there are warnings
1406 if test ! -s conftest.err; then
1407 $2=yes
1408 fi
1409 fi
1410 $rm conftest*
1411 ])
1412
1413 if test x"[$]$2" = xyes; then
1414 ifelse([$5], , :, [$5])
1415 else
1416 ifelse([$6], , :, [$6])
1417 fi
1418 ])# AC_LIBTOOL_COMPILER_OPTION
1419
1420
1421 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1422 # [ACTION-SUCCESS], [ACTION-FAILURE])
1423 # ------------------------------------------------------------
1424 # Check whether the given compiler option works
1425 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1426 [AC_CACHE_CHECK([$1], [$2],
1427 [$2=no
1428 save_LDFLAGS="$LDFLAGS"
1429 LDFLAGS="$LDFLAGS $3"
1430 printf "$lt_simple_link_test_code" > conftest.$ac_ext
1431 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1432 # The compiler can only warn and ignore the option if not recognized
1433 # So say no if there are warnings
1434 if test -s conftest.err; then
1435 # Append any errors to the config.log.
1436 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1437 else
1438 $2=yes
1439 fi
1440 fi
1441 $rm conftest*
1442 LDFLAGS="$save_LDFLAGS"
1443 ])
1444
1445 if test x"[$]$2" = xyes; then
1446 ifelse([$4], , :, [$4])
1447 else
1448 ifelse([$5], , :, [$5])
1449 fi
1450 ])# AC_LIBTOOL_LINKER_OPTION
1451
1452
1453 # AC_LIBTOOL_SYS_MAX_CMD_LEN
1454 # --------------------------
1455 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1456 [# find the maximum length of command line arguments
1457 AC_MSG_CHECKING([the maximum length of command line arguments])
1458 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1459 i=0
1460 testring="ABCD"
1461
1462 case $build_os in
1463 msdosdjgpp*)
1464 # On DJGPP, this test can blow up pretty badly due to problems in libc
1465 # (any single argument exceeding 2000 bytes causes a buffer overrun
1466 # during glob expansion). Even if it were fixed, the result of this
1467 # check would be larger than it should be.
1468 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1469 ;;
1470
1471 gnu*)
1472 # Under GNU Hurd, this test is not required because there is
1473 # no limit to the length of command line arguments.
1474 # Libtool will interpret -1 as no limit whatsoever
1475 lt_cv_sys_max_cmd_len=-1;
1476 ;;
1477
1478 cygwin* | mingw*)
1479 # On Win9x/ME, this test blows up -- it succeeds, but takes
1480 # about 5 minutes as the teststring grows exponentially.
1481 # Worse, since 9x/ME are not pre-emptively multitasking,
1482 # you end up with a "frozen" computer, even though with patience
1483 # the test eventually succeeds (with a max line length of 256k).
1484 # Instead, let's just punt: use the minimum linelength reported by
1485 # all of the supported platforms: 8192 (on NT/2K/XP).
1486 lt_cv_sys_max_cmd_len=8192;
1487 ;;
1488
1489 *)
1490 # If test is not a shell built-in, we'll probably end up computing a
1491 # maximum length that is only half of the actual maximum length, but
1492 # we can't tell.
1493 while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
1494 = "XX$testring") >/dev/null 2>&1 &&
1495 new_result=`expr "X$testring" : ".*" 2>&1` &&
1496 lt_cv_sys_max_cmd_len=$new_result &&
1497 test $i != 17 # 1/2 MB should be enough
1498 do
1499 i=`expr $i + 1`
1500 testring=$testring$testring
1501 done
1502 testring=
1503 # Add a significant safety factor because C++ compilers can tack on massive
1504 # amounts of additional arguments before passing them to the linker.
1505 # It appears as though 1/2 is a usable value.
1506 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1507 ;;
1508 esac
1509 ])
1510 if test -n $lt_cv_sys_max_cmd_len ; then
1511 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1512 else
1513 AC_MSG_RESULT(none)
1514 fi
1515 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1516
1517
1518 # _LT_AC_CHECK_DLFCN
1519 # --------------------
1520 AC_DEFUN([_LT_AC_CHECK_DLFCN],
1521 [AC_CHECK_HEADERS(dlfcn.h)dnl
1522 ])# _LT_AC_CHECK_DLFCN
1523
1524
1525 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1526 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1527 # ------------------------------------------------------------------
1528 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1529 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1530 if test "$cross_compiling" = yes; then :
1531 [$4]
1532 else
1533 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1534 lt_status=$lt_dlunknown
1535 cat > conftest.$ac_ext <<EOF
1536 [#line __oline__ "configure"
1537 #include "confdefs.h"
1538
1539 #if HAVE_DLFCN_H
1540 #include <dlfcn.h>
1541 #endif
1542
1543 #include <stdio.h>
1544
1545 #ifdef RTLD_GLOBAL
1546 # define LT_DLGLOBAL RTLD_GLOBAL
1547 #else
1548 # ifdef DL_GLOBAL
1549 # define LT_DLGLOBAL DL_GLOBAL
1550 # else
1551 # define LT_DLGLOBAL 0
1552 # endif
1553 #endif
1554
1555 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1556 find out it does not work in some platform. */
1557 #ifndef LT_DLLAZY_OR_NOW
1558 # ifdef RTLD_LAZY
1559 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1560 # else
1561 # ifdef DL_LAZY
1562 # define LT_DLLAZY_OR_NOW DL_LAZY
1563 # else
1564 # ifdef RTLD_NOW
1565 # define LT_DLLAZY_OR_NOW RTLD_NOW
1566 # else
1567 # ifdef DL_NOW
1568 # define LT_DLLAZY_OR_NOW DL_NOW
1569 # else
1570 # define LT_DLLAZY_OR_NOW 0
1571 # endif
1572 # endif
1573 # endif
1574 # endif
1575 #endif
1576
1577 #ifdef __cplusplus
1578 extern "C" void exit (int);
1579 #endif
1580
1581 void fnord() { int i=42;}
1582 int main ()
1583 {
1584 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1585 int status = $lt_dlunknown;
1586
1587 if (self)
1588 {
1589 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1590 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1591 /* dlclose (self); */
1592 }
1593
1594 exit (status);
1595 }]
1596 EOF
1597 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1598 (./conftest; exit; ) 2>/dev/null
1599 lt_status=$?
1600 case x$lt_status in
1601 x$lt_dlno_uscore) $1 ;;
1602 x$lt_dlneed_uscore) $2 ;;
1603 x$lt_unknown|x*) $3 ;;
1604 esac
1605 else :
1606 # compilation failed
1607 $3
1608 fi
1609 fi
1610 rm -fr conftest*
1611 ])# _LT_AC_TRY_DLOPEN_SELF
1612
1613
1614 # AC_LIBTOOL_DLOPEN_SELF
1615 # -------------------
1616 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1617 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1618 if test "x$enable_dlopen" != xyes; then
1619 enable_dlopen=unknown
1620 enable_dlopen_self=unknown
1621 enable_dlopen_self_static=unknown
1622 else
1623 lt_cv_dlopen=no
1624 lt_cv_dlopen_libs=
1625
1626 case $host_os in
1627 beos*)
1628 lt_cv_dlopen="load_add_on"
1629 lt_cv_dlopen_libs=
1630 lt_cv_dlopen_self=yes
1631 ;;
1632
1633 mingw* | pw32*)
1634 lt_cv_dlopen="LoadLibrary"
1635 lt_cv_dlopen_libs=
1636 ;;
1637
1638 cygwin*)
1639 lt_cv_dlopen="dlopen"
1640 lt_cv_dlopen_libs=
1641 ;;
1642
1643 darwin*)
1644 # if libdl is installed we need to link against it
1645 AC_CHECK_LIB([dl], [dlopen],
1646 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1647 lt_cv_dlopen="dyld"
1648 lt_cv_dlopen_libs=
1649 lt_cv_dlopen_self=yes
1650 ])
1651 ;;
1652
1653 *)
1654 AC_CHECK_FUNC([shl_load],
1655 [lt_cv_dlopen="shl_load"],
1656 [AC_CHECK_LIB([dld], [shl_load],
1657 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1658 [AC_CHECK_FUNC([dlopen],
1659 [lt_cv_dlopen="dlopen"],
1660 [AC_CHECK_LIB([dl], [dlopen],
1661 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1662 [AC_CHECK_LIB([svld], [dlopen],
1663 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1664 [AC_CHECK_LIB([dld], [dld_link],
1665 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1666 ])
1667 ])
1668 ])
1669 ])
1670 ])
1671 ;;
1672 esac
1673
1674 if test "x$lt_cv_dlopen" != xno; then
1675 enable_dlopen=yes
1676 else
1677 enable_dlopen=no
1678 fi
1679
1680 case $lt_cv_dlopen in
1681 dlopen)
1682 save_CPPFLAGS="$CPPFLAGS"
1683 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1684
1685 save_LDFLAGS="$LDFLAGS"
1686 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1687
1688 save_LIBS="$LIBS"
1689 LIBS="$lt_cv_dlopen_libs $LIBS"
1690
1691 AC_CACHE_CHECK([whether a program can dlopen itself],
1692 lt_cv_dlopen_self, [dnl
1693 _LT_AC_TRY_DLOPEN_SELF(
1694 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1695 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1696 ])
1697
1698 if test "x$lt_cv_dlopen_self" = xyes; then
1699 LDFLAGS="$LDFLAGS $link_static_flag"
1700 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1701 lt_cv_dlopen_self_static, [dnl
1702 _LT_AC_TRY_DLOPEN_SELF(
1703 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1704 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1705 ])
1706 fi
1707
1708 CPPFLAGS="$save_CPPFLAGS"
1709 LDFLAGS="$save_LDFLAGS"
1710 LIBS="$save_LIBS"
1711 ;;
1712 esac
1713
1714 case $lt_cv_dlopen_self in
1715 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1716 *) enable_dlopen_self=unknown ;;
1717 esac
1718
1719 case $lt_cv_dlopen_self_static in
1720 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1721 *) enable_dlopen_self_static=unknown ;;
1722 esac
1723 fi
1724 ])# AC_LIBTOOL_DLOPEN_SELF
1725
1726
1727 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1728 # ---------------------------------
1729 # Check to see if options -c and -o are simultaneously supported by compiler
1730 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1731 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1732 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1733 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1734 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1735 $rm -r conftest 2>/dev/null
1736 mkdir conftest
1737 cd conftest
1738 mkdir out
1739 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1740
1741 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
1742 # that will create temporary files in the current directory regardless of
1743 # the output directory. Thus, making CWD read-only will cause this test
1744 # to fail, enabling locking or at least warning the user not to do parallel
1745 # builds.
1746 chmod -w .
1747
1748 lt_compiler_flag="-o out/conftest2.$ac_objext"
1749 # Insert the option either (1) after the last *FLAGS variable, or
1750 # (2) before a word containing "conftest.", or (3) at the end.
1751 # Note that $ac_compile itself does not contain backslashes and begins
1752 # with a dollar sign (not a hyphen), so the echo should work correctly.
1753 lt_compile=`echo "$ac_compile" | $SED \
1754 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1755 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1756 -e 's:$: $lt_compiler_flag:'`
1757 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1758 (eval "$lt_compile" 2>out/conftest.err)
1759 ac_status=$?
1760 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1761 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1762 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1763 then
1764 # The compiler can only warn and ignore the option if not recognized
1765 # So say no if there are warnings
1766 if test ! -s out/conftest.err; then
1767 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1768 fi
1769 fi
1770 chmod u+w .
1771 $rm conftest* out/*
1772 rmdir out
1773 cd ..
1774 rmdir conftest
1775 $rm conftest*
1776 ])
1777 ])# AC_LIBTOOL_PROG_CC_C_O
1778
1779
1780 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1781 # -----------------------------------------
1782 # Check to see if we can do hard links to lock some files if needed
1783 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1784 [AC_REQUIRE([_LT_AC_LOCK])dnl
1785
1786 hard_links="nottested"
1787 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1788 # do not overwrite the value of need_locks provided by the user
1789 AC_MSG_CHECKING([if we can lock with hard links])
1790 hard_links=yes
1791 $rm conftest*
1792 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1793 touch conftest.a
1794 ln conftest.a conftest.b 2>&5 || hard_links=no
1795 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1796 AC_MSG_RESULT([$hard_links])
1797 if test "$hard_links" = no; then
1798 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1799 need_locks=warn
1800 fi
1801 else
1802 need_locks=no
1803 fi
1804 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1805
1806
1807 # AC_LIBTOOL_OBJDIR
1808 # -----------------
1809 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1810 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1811 [rm -f .libs 2>/dev/null
1812 mkdir .libs 2>/dev/null
1813 if test -d .libs; then
1814 lt_cv_objdir=.libs
1815 else
1816 # MS-DOS does not allow filenames that begin with a dot.
1817 lt_cv_objdir=_libs
1818 fi
1819 rmdir .libs 2>/dev/null])
1820 objdir=$lt_cv_objdir
1821 ])# AC_LIBTOOL_OBJDIR
1822
1823
1824 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1825 # ----------------------------------------------
1826 # Check hardcoding attributes.
1827 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1828 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1829 _LT_AC_TAGVAR(hardcode_action, $1)=
1830 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1831 test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1832 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
1833
1834 # We can hardcode non-existant directories.
1835 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1836 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1837 # have to relink, otherwise we might link with an installed library
1838 # when we should be linking with a yet-to-be-installed one
1839 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1840 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1841 # Linking always hardcodes the temporary library directory.
1842 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1843 else
1844 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1845 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1846 fi
1847 else
1848 # We cannot hardcode anything, or else we can only hardcode existing
1849 # directories.
1850 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1851 fi
1852 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1853
1854 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1855 # Fast installation is not supported
1856 enable_fast_install=no
1857 elif test "$shlibpath_overrides_runpath" = yes ||
1858 test "$enable_shared" = no; then
1859 # Fast installation is not necessary
1860 enable_fast_install=needless
1861 fi
1862 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1863
1864
1865 # AC_LIBTOOL_SYS_LIB_STRIP
1866 # ------------------------
1867 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1868 [striplib=
1869 old_striplib=
1870 AC_MSG_CHECKING([whether stripping libraries is possible])
1871 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1872 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1873 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1874 AC_MSG_RESULT([yes])
1875 else
1876 # FIXME - insert some real tests, host_os isn't really good enough
1877 case $host_os in
1878 NOT-darwin*)
1879 if test -n "$STRIP" ; then
1880 striplib="$STRIP -x"
1881 AC_MSG_RESULT([yes])
1882 else
1883 AC_MSG_RESULT([no])
1884 fi
1885 ;;
1886 *)
1887 AC_MSG_RESULT([no])
1888 ;;
1889 esac
1890 fi
1891 ])# AC_LIBTOOL_SYS_LIB_STRIP
1892
1893
1894 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1895 # -----------------------------
1896 # PORTME Fill in your ld.so characteristics
1897 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1898 [AC_MSG_CHECKING([dynamic linker characteristics])
1899 library_names_spec=
1900 libname_spec='lib$name'
1901 soname_spec=
1902 shrext=".so"
1903 postinstall_cmds=
1904 postuninstall_cmds=
1905 finish_cmds=
1906 finish_eval=
1907 shlibpath_var=
1908 shlibpath_overrides_runpath=unknown
1909 version_type=none
1910 dynamic_linker="$host_os ld.so"
1911 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1912 if test "$GCC" = yes; then
1913 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1914 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1915 # if the path contains ";" then we assume it to be the separator
1916 # otherwise default to the standard path separator (i.e. ":") - it is
1917 # assumed that no part of a normal pathname contains ";" but that should
1918 # okay in the real world where ";" in dirpaths is itself problematic.
1919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1920 else
1921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1922 fi
1923 else
1924 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1925 fi
1926 need_lib_prefix=unknown
1927 hardcode_into_libs=no
1928
1929 # when you set need_version to no, make sure it does not cause -set_version
1930 # flags to be left without arguments
1931 need_version=unknown
1932
1933 case $host_os in
1934 aix3*)
1935 version_type=linux
1936 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1937 shlibpath_var=LIBPATH
1938
1939 # AIX 3 has no versioning support, so we append a major version to the name.
1940 soname_spec='${libname}${release}${shared_ext}$major'
1941 ;;
1942
1943 aix4* | aix5*)
1944 version_type=linux
1945 need_lib_prefix=no
1946 need_version=no
1947 hardcode_into_libs=yes
1948 if test "$host_cpu" = ia64; then
1949 # AIX 5 supports IA64
1950 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1951 shlibpath_var=LD_LIBRARY_PATH
1952 else
1953 # With GCC up to 2.95.x, collect2 would create an import file
1954 # for dependence libraries. The import file would start with
1955 # the line `#! .'. This would cause the generated library to
1956 # depend on `.', always an invalid library. This was fixed in
1957 # development snapshots of GCC prior to 3.0.
1958 case $host_os in
1959 aix4 | aix4.[[01]] | aix4.[[01]].*)
1960 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1961 echo ' yes '
1962 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1963 :
1964 else
1965 can_build_shared=no
1966 fi
1967 ;;
1968 esac
1969 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1970 # soname into executable. Probably we can add versioning support to
1971 # collect2, so additional links can be useful in future.
1972 if test "$aix_use_runtimelinking" = yes; then
1973 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1974 # instead of lib<name>.a to let people know that these are not
1975 # typical AIX shared libraries.
1976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1977 else
1978 # We preserve .a as extension for shared libraries through AIX4.2
1979 # and later when we are not doing run time linking.
1980 library_names_spec='${libname}${release}.a $libname.a'
1981 soname_spec='${libname}${release}${shared_ext}$major'
1982 fi
1983 shlibpath_var=LIBPATH
1984 fi
1985 ;;
1986
1987 amigaos*)
1988 library_names_spec='$libname.ixlibrary $libname.a'
1989 # Create ${libname}_ixlibrary.a entries in /sys/libs.
1990 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'
1991 ;;
1992
1993 beos*)
1994 library_names_spec='${libname}${shared_ext}'
1995 dynamic_linker="$host_os ld.so"
1996 shlibpath_var=LIBRARY_PATH
1997 ;;
1998
1999 bsdi4*)
2000 version_type=linux
2001 need_version=no
2002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2003 soname_spec='${libname}${release}${shared_ext}$major'
2004 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2005 shlibpath_var=LD_LIBRARY_PATH
2006 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2007 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2008 # the default ld.so.conf also contains /usr/contrib/lib and
2009 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2010 # libtool to hard-code these into programs
2011 ;;
2012
2013 cygwin* | mingw* | pw32*)
2014 version_type=windows
2015 shrext=".dll"
2016 need_version=no
2017 need_lib_prefix=no
2018
2019 case $GCC,$host_os in
2020 yes,cygwin* | yes,mingw* | yes,pw32*)
2021 library_names_spec='$libname.dll.a'
2022 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2023 postinstall_cmds='base_file=`basename \${file}`${_S_}
2024 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
2025 dldir=$destdir/`dirname \$dlpath`${_S_}
2026 test -d \$dldir || mkdir -p \$dldir${_S_}
2027 $install_prog $dir/$dlname \$dldir/$dlname'
2028 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
2029 dlpath=$dir/\$dldll${_S_}
2030 $rm \$dlpath'
2031 shlibpath_overrides_runpath=yes
2032
2033 case $host_os in
2034 cygwin*)
2035 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2036 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2037 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
2038 ;;
2039 mingw*)
2040 # MinGW DLLs use traditional 'lib' prefix
2041 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2042 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2043 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2044 # It is most probably a Windows format PATH printed by
2045 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2046 # path with ; separators, and with drive letters. We can handle the
2047 # drive letters (cygwin fileutils understands them), so leave them,
2048 # especially as we might pass files found there to a mingw objdump,
2049 # which wouldn't understand a cygwinified path. Ahh.
2050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2051 else
2052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2053 fi
2054 ;;
2055 pw32*)
2056 # pw32 DLLs use 'pw' prefix rather than 'lib'
2057 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
2058 ;;
2059 esac
2060 ;;
2061
2062 *)
2063 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2064 ;;
2065 esac
2066 dynamic_linker='Win32 ld.exe'
2067 # FIXME: first we should search . and the directory the executable is in
2068 shlibpath_var=PATH
2069 ;;
2070
2071 darwin* | rhapsody*)
2072 dynamic_linker="$host_os dyld"
2073 version_type=darwin
2074 need_lib_prefix=no
2075 need_version=no
2076 # FIXME: Relying on posixy $() will cause problems for
2077 # cross-compilation, but unfortunately the echo tests do not
2078 # yet detect zsh echo's removal of \ escapes.
2079 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
2080 soname_spec='${libname}${release}${major}$shared_ext'
2081 shlibpath_overrides_runpath=yes
2082 shlibpath_var=DYLD_LIBRARY_PATH
2083 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
2084 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2085 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
2086 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"`
2087 fi
2088 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2089 ;;
2090
2091 dgux*)
2092 version_type=linux
2093 need_lib_prefix=no
2094 need_version=no
2095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2096 soname_spec='${libname}${release}${shared_ext}$major'
2097 shlibpath_var=LD_LIBRARY_PATH
2098 ;;
2099
2100 freebsd1*)
2101 dynamic_linker=no
2102 ;;
2103
2104 freebsd*)
2105 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2106 version_type=freebsd-$objformat
2107 case $version_type in
2108 freebsd-elf*)
2109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2110 need_version=no
2111 need_lib_prefix=no
2112 ;;
2113 freebsd-*)
2114 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2115 need_version=yes
2116 ;;
2117 esac
2118 shlibpath_var=LD_LIBRARY_PATH
2119 case $host_os in
2120 freebsd2*)
2121 shlibpath_overrides_runpath=yes
2122 ;;
2123 freebsd3.[01]* | freebsdelf3.[01]*)
2124 shlibpath_overrides_runpath=yes
2125 hardcode_into_libs=yes
2126 ;;
2127 *) # from 3.2 on
2128 shlibpath_overrides_runpath=no
2129 hardcode_into_libs=yes
2130 ;;
2131 esac
2132 ;;
2133
2134 gnu*)
2135 version_type=linux
2136 need_lib_prefix=no
2137 need_version=no
2138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2139 soname_spec='${libname}${release}${shared_ext}$major'
2140 shlibpath_var=LD_LIBRARY_PATH
2141 hardcode_into_libs=yes
2142 ;;
2143
2144 hpux9* | hpux10* | hpux11*)
2145 # Give a soname corresponding to the major version so that dld.sl refuses to
2146 # link against other versions.
2147 version_type=sunos
2148 need_lib_prefix=no
2149 need_version=no
2150 case "$host_cpu" in
2151 ia64*)
2152 shrext='.so'
2153 hardcode_into_libs=yes
2154 dynamic_linker="$host_os dld.so"
2155 shlibpath_var=LD_LIBRARY_PATH
2156 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2158 soname_spec='${libname}${release}${shared_ext}$major'
2159 if test "X$HPUX_IA64_MODE" = X32; then
2160 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2161 else
2162 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2163 fi
2164 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2165 ;;
2166 hppa*64*)
2167 shrext='.sl'
2168 hardcode_into_libs=yes
2169 dynamic_linker="$host_os dld.sl"
2170 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2173 soname_spec='${libname}${release}${shared_ext}$major'
2174 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2175 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2176 ;;
2177 *)
2178 shrext='.sl'
2179 dynamic_linker="$host_os dld.sl"
2180 shlibpath_var=SHLIB_PATH
2181 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2183 soname_spec='${libname}${release}${shared_ext}$major'
2184 ;;
2185 esac
2186 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2187 postinstall_cmds='chmod 555 $lib'
2188 ;;
2189
2190 irix5* | irix6* | nonstopux*)
2191 case $host_os in
2192 nonstopux*) version_type=nonstopux ;;
2193 *)
2194 if test "$lt_cv_prog_gnu_ld" = yes; then
2195 version_type=linux
2196 else
2197 version_type=irix
2198 fi ;;
2199 esac
2200 need_lib_prefix=no
2201 need_version=no
2202 soname_spec='${libname}${release}${shared_ext}$major'
2203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2204 case $host_os in
2205 irix5* | nonstopux*)
2206 libsuff= shlibsuff=
2207 ;;
2208 *)
2209 case $LD in # libtool.m4 will add one of these switches to LD
2210 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2211 libsuff= shlibsuff= libmagic=32-bit;;
2212 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2213 libsuff=32 shlibsuff=N32 libmagic=N32;;
2214 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2215 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2216 *) libsuff= shlibsuff= libmagic=never-match;;
2217 esac
2218 ;;
2219 esac
2220 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2221 shlibpath_overrides_runpath=no
2222 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2223 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2224 hardcode_into_libs=yes
2225 ;;
2226
2227 # No shared lib support for Linux oldld, aout, or coff.
2228 linux*oldld* | linux*aout* | linux*coff*)
2229 dynamic_linker=no
2230 ;;
2231
2232 # This must be Linux ELF.
2233 linux*)
2234 version_type=linux
2235 need_lib_prefix=no
2236 need_version=no
2237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2238 soname_spec='${libname}${release}${shared_ext}$major'
2239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2240 shlibpath_var=LD_LIBRARY_PATH
2241 shlibpath_overrides_runpath=no
2242 # This implies no fast_install, which is unacceptable.
2243 # Some rework will be needed to allow for fast_install
2244 # before this can be enabled.
2245 hardcode_into_libs=yes
2246
2247 # We used to test for /lib/ld.so.1 and disable shared libraries on
2248 # powerpc, because MkLinux only supported shared libraries with the
2249 # GNU dynamic linker. Since this was broken with cross compilers,
2250 # most powerpc-linux boxes support dynamic linking these days and
2251 # people can always --disable-shared, the test was removed, and we
2252 # assume the GNU/Linux dynamic linker is in use.
2253 dynamic_linker='GNU/Linux ld.so'
2254 ;;
2255
2256 netbsd*)
2257 version_type=sunos
2258 need_lib_prefix=no
2259 need_version=no
2260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2263 dynamic_linker='NetBSD (a.out) ld.so'
2264 else
2265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
2266 soname_spec='${libname}${release}${shared_ext}$major'
2267 dynamic_linker='NetBSD ld.elf_so'
2268 fi
2269 shlibpath_var=LD_LIBRARY_PATH
2270 shlibpath_overrides_runpath=yes
2271 hardcode_into_libs=yes
2272 ;;
2273
2274 newsos6)
2275 version_type=linux
2276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2277 shlibpath_var=LD_LIBRARY_PATH
2278 shlibpath_overrides_runpath=yes
2279 ;;
2280
2281 nto-qnx)
2282 version_type=linux
2283 need_lib_prefix=no
2284 need_version=no
2285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2286 soname_spec='${libname}${release}${shared_ext}$major'
2287 shlibpath_var=LD_LIBRARY_PATH
2288 shlibpath_overrides_runpath=yes
2289 ;;
2290
2291 openbsd*)
2292 version_type=sunos
2293 need_lib_prefix=no
2294 need_version=no
2295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2297 shlibpath_var=LD_LIBRARY_PATH
2298 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2299 case $host_os in
2300 openbsd2.[[89]] | openbsd2.[[89]].*)
2301 shlibpath_overrides_runpath=no
2302 ;;
2303 *)
2304 shlibpath_overrides_runpath=yes
2305 ;;
2306 esac
2307 else
2308 shlibpath_overrides_runpath=yes
2309 fi
2310 ;;
2311
2312 os2*)
2313 libname_spec='$name'
2314 shrext=".dll"
2315 need_lib_prefix=no
2316 library_names_spec='$libname${shared_ext} $libname.a'
2317 dynamic_linker='OS/2 ld.exe'
2318 shlibpath_var=LIBPATH
2319 ;;
2320
2321 osf3* | osf4* | osf5*)
2322 version_type=osf
2323 need_lib_prefix=no
2324 need_version=no
2325 soname_spec='${libname}${release}${shared_ext}$major'
2326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2327 shlibpath_var=LD_LIBRARY_PATH
2328 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2329 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2330 ;;
2331
2332 sco3.2v5*)
2333 version_type=osf
2334 soname_spec='${libname}${release}${shared_ext}$major'
2335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2336 shlibpath_var=LD_LIBRARY_PATH
2337 ;;
2338
2339 solaris*)
2340 version_type=linux
2341 need_lib_prefix=no
2342 need_version=no
2343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2344 soname_spec='${libname}${release}${shared_ext}$major'
2345 shlibpath_var=LD_LIBRARY_PATH
2346 shlibpath_overrides_runpath=yes
2347 hardcode_into_libs=yes
2348 # ldd complains unless libraries are executable
2349 postinstall_cmds='chmod +x $lib'
2350 ;;
2351
2352 sunos4*)
2353 version_type=sunos
2354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2355 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2356 shlibpath_var=LD_LIBRARY_PATH
2357 shlibpath_overrides_runpath=yes
2358 if test "$with_gnu_ld" = yes; then
2359 need_lib_prefix=no
2360 fi
2361 need_version=yes
2362 ;;
2363
2364 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2365 version_type=linux
2366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2367 soname_spec='${libname}${release}${shared_ext}$major'
2368 shlibpath_var=LD_LIBRARY_PATH
2369 case $host_vendor in
2370 sni)
2371 shlibpath_overrides_runpath=no
2372 need_lib_prefix=no
2373 export_dynamic_flag_spec='${wl}-Blargedynsym'
2374 runpath_var=LD_RUN_PATH
2375 ;;
2376 siemens)
2377 need_lib_prefix=no
2378 ;;
2379 motorola)
2380 need_lib_prefix=no
2381 need_version=no
2382 shlibpath_overrides_runpath=no
2383 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2384 ;;
2385 esac
2386 ;;
2387
2388 sysv4*MP*)
2389 if test -d /usr/nec ;then
2390 version_type=linux
2391 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2392 soname_spec='$libname${shared_ext}.$major'
2393 shlibpath_var=LD_LIBRARY_PATH
2394 fi
2395 ;;
2396
2397 uts4*)
2398 version_type=linux
2399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2400 soname_spec='${libname}${release}${shared_ext}$major'
2401 shlibpath_var=LD_LIBRARY_PATH
2402 ;;
2403
2404 *)
2405 dynamic_linker=no
2406 ;;
2407 esac
2408 AC_MSG_RESULT([$dynamic_linker])
2409 test "$dynamic_linker" = no && can_build_shared=no
2410 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2411
2412
2413 # _LT_AC_TAGCONFIG
2414 # ----------------
2415 AC_DEFUN([_LT_AC_TAGCONFIG],
2416 [AC_ARG_WITH([tags],
2417 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2418 [include additional configurations @<:@automatic@:>@])],
2419 [tagnames="$withval"])
2420
2421 if test -f "$ltmain" && test -n "$tagnames"; then
2422 if test ! -f "${ofile}"; then
2423 AC_MSG_WARN([output file `$ofile' does not exist])
2424 fi
2425
2426 if test -z "$LTCC"; then
2427 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2428 if test -z "$LTCC"; then
2429 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2430 else
2431 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2432 fi
2433 fi
2434
2435 # Extract list of available tagged configurations in $ofile.
2436 # Note that this assumes the entire list is on one line.
2437 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2438
2439 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2440 for tagname in $tagnames; do
2441 IFS="$lt_save_ifs"
2442 # Check whether tagname contains only valid characters
2443 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2444 "") ;;
2445 *) AC_MSG_ERROR([invalid tag name: $tagname])
2446 ;;
2447 esac
2448
2449 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2450 then
2451 AC_MSG_ERROR([tag name \"$tagname\" already exists])
2452 fi
2453
2454 # Update the list of available tags.
2455 if test -n "$tagname"; then
2456 echo appending configuration tag \"$tagname\" to $ofile
2457
2458 case $tagname in
2459 CXX)
2460 if test -n "$CXX" && test "X$CXX" != "Xno"; then
2461 AC_LIBTOOL_LANG_CXX_CONFIG
2462 else
2463 tagname=""
2464 fi
2465 ;;
2466
2467 F77)
2468 if test -n "$F77" && test "X$F77" != "Xno"; then
2469 AC_LIBTOOL_LANG_F77_CONFIG
2470 else
2471 tagname=""
2472 fi
2473 ;;
2474
2475 GCJ)
2476 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2477 AC_LIBTOOL_LANG_GCJ_CONFIG
2478 else
2479 tagname=""
2480 fi
2481 ;;
2482
2483 RC)
2484 AC_LIBTOOL_LANG_RC_CONFIG
2485 ;;
2486
2487 *)
2488 AC_MSG_ERROR([Unsupported tag name: $tagname])
2489 ;;
2490 esac
2491
2492 # Append the new tag name to the list of available tags.
2493 if test -n "$tagname" ; then
2494 available_tags="$available_tags $tagname"
2495 fi
2496 fi
2497 done
2498 IFS="$lt_save_ifs"
2499
2500 # Now substitute the updated list of available tags.
2501 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2502 mv "${ofile}T" "$ofile"
2503 chmod +x "$ofile"
2504 else
2505 rm -f "${ofile}T"
2506 AC_MSG_ERROR([unable to update list of available tagged configurations.])
2507 fi
2508 fi
2509 ])# _LT_AC_TAGCONFIG
2510
2511
2512 # AC_LIBTOOL_DLOPEN
2513 # -----------------
2514 # enable checks for dlopen support
2515 AC_DEFUN([AC_LIBTOOL_DLOPEN],
2516 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2517 ])# AC_LIBTOOL_DLOPEN
2518
2519
2520 # AC_LIBTOOL_WIN32_DLL
2521 # --------------------
2522 # declare package support for building win32 dll's
2523 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2524 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2525 ])# AC_LIBTOOL_WIN32_DLL
2526
2527
2528 # AC_ENABLE_SHARED([DEFAULT])
2529 # ---------------------------
2530 # implement the --enable-shared flag
2531 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2532 AC_DEFUN([AC_ENABLE_SHARED],
2533 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2534 AC_ARG_ENABLE([shared],
2535 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2536 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2537 [p=${PACKAGE-default}
2538 case $enableval in
2539 yes) enable_shared=yes ;;
2540 no) enable_shared=no ;;
2541 *)
2542 enable_shared=no
2543 # Look at the argument we got. We use all the common list separators.
2544 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2545 for pkg in $enableval; do
2546 IFS="$lt_save_ifs"
2547 if test "X$pkg" = "X$p"; then
2548 enable_shared=yes
2549 fi
2550 done
2551 IFS="$lt_save_ifs"
2552 ;;
2553 esac],
2554 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2555 ])# AC_ENABLE_SHARED
2556
2557
2558 # AC_DISABLE_SHARED
2559 # -----------------
2560 #- set the default shared flag to --disable-shared
2561 AC_DEFUN([AC_DISABLE_SHARED],
2562 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2563 AC_ENABLE_SHARED(no)
2564 ])# AC_DISABLE_SHARED
2565
2566
2567 # AC_ENABLE_STATIC([DEFAULT])
2568 # ---------------------------
2569 # implement the --enable-static flag
2570 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2571 AC_DEFUN([AC_ENABLE_STATIC],
2572 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2573 AC_ARG_ENABLE([static],
2574 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2575 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2576 [p=${PACKAGE-default}
2577 case $enableval in
2578 yes) enable_static=yes ;;
2579 no) enable_static=no ;;
2580 *)
2581 enable_static=no
2582 # Look at the argument we got. We use all the common list separators.
2583 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2584 for pkg in $enableval; do
2585 IFS="$lt_save_ifs"
2586 if test "X$pkg" = "X$p"; then
2587 enable_static=yes
2588 fi
2589 done
2590 IFS="$lt_save_ifs"
2591 ;;
2592 esac],
2593 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2594 ])# AC_ENABLE_STATIC
2595
2596
2597 # AC_DISABLE_STATIC
2598 # -----------------
2599 # set the default static flag to --disable-static
2600 AC_DEFUN([AC_DISABLE_STATIC],
2601 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2602 AC_ENABLE_STATIC(no)
2603 ])# AC_DISABLE_STATIC
2604
2605
2606 # AC_ENABLE_FAST_INSTALL([DEFAULT])
2607 # ---------------------------------
2608 # implement the --enable-fast-install flag
2609 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2610 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2611 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2612 AC_ARG_ENABLE([fast-install],
2613 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2614 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2615 [p=${PACKAGE-default}
2616 case $enableval in
2617 yes) enable_fast_install=yes ;;
2618 no) enable_fast_install=no ;;
2619 *)
2620 enable_fast_install=no
2621 # Look at the argument we got. We use all the common list separators.
2622 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2623 for pkg in $enableval; do
2624 IFS="$lt_save_ifs"
2625 if test "X$pkg" = "X$p"; then
2626 enable_fast_install=yes
2627 fi
2628 done
2629 IFS="$lt_save_ifs"
2630 ;;
2631 esac],
2632 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2633 ])# AC_ENABLE_FAST_INSTALL
2634
2635
2636 # AC_DISABLE_FAST_INSTALL
2637 # -----------------------
2638 # set the default to --disable-fast-install
2639 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2640 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2641 AC_ENABLE_FAST_INSTALL(no)
2642 ])# AC_DISABLE_FAST_INSTALL
2643
2644
2645 # AC_LIBTOOL_PICMODE([MODE])
2646 # --------------------------
2647 # implement the --with-pic flag
2648 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2649 AC_DEFUN([AC_LIBTOOL_PICMODE],
2650 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2651 pic_mode=ifelse($#,1,$1,default)
2652 ])# AC_LIBTOOL_PICMODE
2653
2654
2655 # AC_PROG_EGREP
2656 # -------------
2657 # This is predefined starting with Autoconf 2.54, so this conditional
2658 # definition can be removed once we require Autoconf 2.54 or later.
2659 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2660 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2661 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2662 then ac_cv_prog_egrep='grep -E'
2663 else ac_cv_prog_egrep='egrep'
2664 fi])
2665 EGREP=$ac_cv_prog_egrep
2666 AC_SUBST([EGREP])
2667 ])])
2668
2669
2670 # AC_PATH_TOOL_PREFIX
2671 # -------------------
2672 # find a file program which can recognise shared library
2673 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2674 [AC_REQUIRE([AC_PROG_EGREP])dnl
2675 AC_MSG_CHECKING([for $1])
2676 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2677 [case $MAGIC_CMD in
2678 [[\\/*] | ?:[\\/]*])
2679 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2680 ;;
2681 *)
2682 lt_save_MAGIC_CMD="$MAGIC_CMD"
2683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2684 dnl $ac_dummy forces splitting on constant user-supplied paths.
2685 dnl POSIX.2 word splitting is done only on the output of word expansions,
2686 dnl not every word. This closes a longstanding sh security hole.
2687 ac_dummy="ifelse([$2], , $PATH, [$2])"
2688 for ac_dir in $ac_dummy; do
2689 IFS="$lt_save_ifs"
2690 test -z "$ac_dir" && ac_dir=.
2691 if test -f $ac_dir/$1; then
2692 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2693 if test -n "$file_magic_test_file"; then
2694 case $deplibs_check_method in
2695 "file_magic "*)
2696 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2698 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2699 $EGREP "$file_magic_regex" > /dev/null; then
2700 :
2701 else
2702 cat <<EOF 1>&2
2703
2704 *** Warning: the command libtool uses to detect shared libraries,
2705 *** $file_magic_cmd, produces output that libtool cannot recognize.
2706 *** The result is that libtool may fail to recognize shared libraries
2707 *** as such. This will affect the creation of libtool libraries that
2708 *** depend on shared libraries, but programs linked with such libtool
2709 *** libraries will work regardless of this problem. Nevertheless, you
2710 *** may want to report the problem to your system manager and/or to
2711 *** bug-libtool@gnu.org
2712
2713 EOF
2714 fi ;;
2715 esac
2716 fi
2717 break
2718 fi
2719 done
2720 IFS="$lt_save_ifs"
2721 MAGIC_CMD="$lt_save_MAGIC_CMD"
2722 ;;
2723 esac])
2724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2725 if test -n "$MAGIC_CMD"; then
2726 AC_MSG_RESULT($MAGIC_CMD)
2727 else
2728 AC_MSG_RESULT(no)
2729 fi
2730 ])# AC_PATH_TOOL_PREFIX
2731
2732
2733 # AC_PATH_MAGIC
2734 # -------------
2735 # find a file program which can recognise a shared library
2736 AC_DEFUN([AC_PATH_MAGIC],
2737 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2738 if test -z "$lt_cv_path_MAGIC_CMD"; then
2739 if test -n "$ac_tool_prefix"; then
2740 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2741 else
2742 MAGIC_CMD=:
2743 fi
2744 fi
2745 ])# AC_PATH_MAGIC
2746
2747
2748 # AC_PROG_LD
2749 # ----------
2750 # find the path to the GNU or non-GNU linker
2751 AC_DEFUN([AC_PROG_LD],
2752 [AC_ARG_WITH([gnu-ld],
2753 [AC_HELP_STRING([--with-gnu-ld],
2754 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2755 [test "$withval" = no || with_gnu_ld=yes],
2756 [with_gnu_ld=no])
2757 AC_REQUIRE([LT_AC_PROG_SED])dnl
2758 AC_REQUIRE([AC_PROG_CC])dnl
2759 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2760 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2761 ac_prog=ld
2762 if test "$GCC" = yes; then
2763 # Check if gcc -print-prog-name=ld gives a path.
2764 AC_MSG_CHECKING([for ld used by $CC])
2765 case $host in
2766 *-*-mingw*)
2767 # gcc leaves a trailing carriage return which upsets mingw
2768 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2769 *)
2770 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2771 esac
2772 case $ac_prog in
2773 # Accept absolute paths.
2774 [[\\/]]* | ?:[[\\/]]*)
2775 re_direlt='/[[^/]][[^/]]*/\.\./'
2776 # Canonicalize the path of ld
2777 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2778 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2779 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2780 done
2781 test -z "$LD" && LD="$ac_prog"
2782 ;;
2783 "")
2784 # If it fails, then pretend we aren't using GCC.
2785 ac_prog=ld
2786 ;;
2787 *)
2788 # If it is relative, then search for the first ld in PATH.
2789 with_gnu_ld=unknown
2790 ;;
2791 esac
2792 elif test "$with_gnu_ld" = yes; then
2793 AC_MSG_CHECKING([for GNU ld])
2794 else
2795 AC_MSG_CHECKING([for non-GNU ld])
2796 fi
2797 AC_CACHE_VAL(lt_cv_path_LD,
2798 [if test -z "$LD"; then
2799 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2800 for ac_dir in $PATH; do
2801 IFS="$lt_save_ifs"
2802 test -z "$ac_dir" && ac_dir=.
2803 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2804 lt_cv_path_LD="$ac_dir/$ac_prog"
2805 # Check to see if the program is GNU ld. I'd rather use --version,
2806 # but apparently some GNU ld's only accept -v.
2807 # Break only if it was the GNU/non-GNU ld that we prefer.
2808 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2809 *GNU* | *'with BFD'*)
2810 test "$with_gnu_ld" != no && break
2811 ;;
2812 *)
2813 test "$with_gnu_ld" != yes && break
2814 ;;
2815 esac
2816 fi
2817 done
2818 IFS="$lt_save_ifs"
2819 else
2820 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2821 fi])
2822 LD="$lt_cv_path_LD"
2823 if test -n "$LD"; then
2824 AC_MSG_RESULT($LD)
2825 else
2826 AC_MSG_RESULT(no)
2827 fi
2828 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2829 AC_PROG_LD_GNU
2830 ])# AC_PROG_LD
2831
2832
2833 # AC_PROG_LD_GNU
2834 # --------------
2835 AC_DEFUN([AC_PROG_LD_GNU],
2836 [AC_REQUIRE([AC_PROG_EGREP])dnl
2837 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2838 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2839 case `"$LD" -v 2>&1 </dev/null` in
2840 *GNU* | *'with BFD'*)
2841 lt_cv_prog_gnu_ld=yes
2842 ;;
2843 *)
2844 lt_cv_prog_gnu_ld=no
2845 ;;
2846 esac])
2847 with_gnu_ld=$lt_cv_prog_gnu_ld
2848 ])# AC_PROG_LD_GNU
2849
2850
2851 # AC_PROG_LD_RELOAD_FLAG
2852 # ----------------------
2853 # find reload flag for linker
2854 # -- PORTME Some linkers may need a different reload flag.
2855 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2856 [AC_CACHE_CHECK([for $LD option to reload object files],
2857 lt_cv_ld_reload_flag,
2858 [lt_cv_ld_reload_flag='-r'])
2859 reload_flag=$lt_cv_ld_reload_flag
2860 case $reload_flag in
2861 "" | " "*) ;;
2862 *) reload_flag=" $reload_flag" ;;
2863 esac
2864 reload_cmds='$CC -nostdlib -Xlinker$reload_flag $archargs -o $output$reload_objs'
2865 ])# AC_PROG_LD_RELOAD_FLAG
2866
2867
2868 # AC_DEPLIBS_CHECK_METHOD
2869 # -----------------------
2870 # how to check for library dependencies
2871 # -- PORTME fill in with the dynamic library characteristics
2872 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2873 [AC_CACHE_CHECK([how to recognise dependent libraries],
2874 lt_cv_deplibs_check_method,
2875 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2876 lt_cv_file_magic_test_file=
2877 lt_cv_deplibs_check_method='unknown'
2878 # Need to set the preceding variable on all platforms that support
2879 # interlibrary dependencies.
2880 # 'none' -- dependencies not supported.
2881 # `unknown' -- same as none, but documents that we really don't know.
2882 # 'pass_all' -- all dependencies passed with no checks.
2883 # 'test_compile' -- check by making test program.
2884 # 'file_magic [[regex]]' -- check by looking for files in library path
2885 # which responds to the $file_magic_cmd with a given extended regex.
2886 # If you have `file' or equivalent on your system and you're not sure
2887 # whether `pass_all' will *always* work, you probably want this one.
2888
2889 case $host_os in
2890 aix4* | aix5*)
2891 lt_cv_deplibs_check_method=pass_all
2892 ;;
2893
2894 beos*)
2895 lt_cv_deplibs_check_method=pass_all
2896 ;;
2897
2898 bsdi4*)
2899 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2900 lt_cv_file_magic_cmd='/usr/bin/file -L'
2901 lt_cv_file_magic_test_file=/shlib/libc.so
2902 ;;
2903
2904 cygwin* | mingw* | pw32*)
2905 # win32_libid is a shell function defined in ltmain.sh
2906 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2907 lt_cv_file_magic_cmd='win32_libid'
2908 ;;
2909
2910 darwin* | rhapsody*)
2911 # this will be overwritten by pass_all, but leave it in just in case
2912 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2913 lt_cv_file_magic_cmd='/usr/bin/file -L'
2914 case "$host_os" in
2915 rhapsody* | darwin1.[[012]])
2916 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
2917 ;;
2918 *) # Darwin 1.3 on
2919 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2920 ;;
2921 esac
2922 lt_cv_deplibs_check_method=pass_all
2923 ;;
2924
2925 freebsd*)
2926 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2927 case $host_cpu in
2928 i*86 )
2929 # Not sure whether the presence of OpenBSD here was a mistake.
2930 # Let's accept both of them until this is cleared up.
2931 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
2932 lt_cv_file_magic_cmd=/usr/bin/file
2933 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2934 ;;
2935 esac
2936 else
2937 lt_cv_deplibs_check_method=pass_all
2938 fi
2939 ;;
2940
2941 gnu*)
2942 lt_cv_deplibs_check_method=pass_all
2943 ;;
2944
2945 hpux10.20* | hpux11*)
2946 lt_cv_file_magic_cmd=/usr/bin/file
2947 case "$host_cpu" in
2948 ia64*)
2949 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2950 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2951 ;;
2952 hppa*64*)
2953 [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]']
2954 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2955 ;;
2956 *)
2957 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2958 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2959 ;;
2960 esac
2961 ;;
2962
2963 irix5* | irix6* | nonstopux*)
2964 case $host_os in
2965 irix5* | nonstopux*)
2966 # this will be overridden with pass_all, but let us keep it just in case
2967 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2968 ;;
2969 *)
2970 case $LD in
2971 *-32|*"-32 ") libmagic=32-bit;;
2972 *-n32|*"-n32 ") libmagic=N32;;
2973 *-64|*"-64 ") libmagic=64-bit;;
2974 *) libmagic=never-match;;
2975 esac
2976 # this will be overridden with pass_all, but let us keep it just in case
2977 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
2978 ;;
2979 esac
2980 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2981 lt_cv_deplibs_check_method=pass_all
2982 ;;
2983
2984 # This must be Linux ELF.
2985 linux*)
2986 case $host_cpu in
2987 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
2988 lt_cv_deplibs_check_method=pass_all ;;
2989 *)
2990 # glibc up to 2.1.1 does not perform some relocations on ARM
2991 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
2992 esac
2993 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2994 ;;
2995
2996 netbsd*)
2997 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2998 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2999 else
3000 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3001 fi
3002 ;;
3003
3004 newos6*)
3005 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3006 lt_cv_file_magic_cmd=/usr/bin/file
3007 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3008 ;;
3009
3010 nto-qnx)
3011 lt_cv_deplibs_check_method=unknown
3012 ;;
3013
3014 openbsd*)
3015 lt_cv_file_magic_cmd=/usr/bin/file
3016 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3018 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
3019 else
3020 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3021 fi
3022 ;;
3023
3024 osf3* | osf4* | osf5*)
3025 # this will be overridden with pass_all, but let us keep it just in case
3026 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3027 lt_cv_file_magic_test_file=/shlib/libc.so
3028 lt_cv_deplibs_check_method=pass_all
3029 ;;
3030
3031 sco3.2v5*)
3032 lt_cv_deplibs_check_method=pass_all
3033 ;;
3034
3035 solaris*)
3036 lt_cv_deplibs_check_method=pass_all
3037 lt_cv_file_magic_test_file=/lib/libc.so
3038 ;;
3039
3040 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3041 case $host_vendor in
3042 motorola)
3043 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]]'
3044 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3045 ;;
3046 ncr)
3047 lt_cv_deplibs_check_method=pass_all
3048 ;;
3049 sequent)
3050 lt_cv_file_magic_cmd='/bin/file'
3051 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3052 ;;
3053 sni)
3054 lt_cv_file_magic_cmd='/bin/file'
3055 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3056 lt_cv_file_magic_test_file=/lib/libc.so
3057 ;;
3058 siemens)
3059 lt_cv_deplibs_check_method=pass_all
3060 ;;
3061 esac
3062 ;;
3063
3064 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
3065 lt_cv_deplibs_check_method=pass_all
3066 ;;
3067 esac
3068 ])
3069 file_magic_cmd=$lt_cv_file_magic_cmd
3070 deplibs_check_method=$lt_cv_deplibs_check_method
3071 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3072 ])# AC_DEPLIBS_CHECK_METHOD
3073
3074
3075 # AC_PROG_NM
3076 # ----------
3077 # find the path to a BSD-compatible name lister
3078 AC_DEFUN([AC_PROG_NM],
3079 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3080 [if test -n "$NM"; then
3081 # Let the user override the test.
3082 lt_cv_path_NM="$NM"
3083 else
3084 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3085 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3086 IFS="$lt_save_ifs"
3087 test -z "$ac_dir" && ac_dir=.
3088 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3089 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3090 # Check to see if the nm accepts a BSD-compat flag.
3091 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3092 # nm: unknown option "B" ignored
3093 # Tru64's nm complains that /dev/null is an invalid object file
3094 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3095 */dev/null* | *'Invalid file or object type'*)
3096 lt_cv_path_NM="$tmp_nm -B"
3097 break
3098 ;;
3099 *)
3100 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3101 */dev/null*)
3102 lt_cv_path_NM="$tmp_nm -p"
3103 break
3104 ;;
3105 *)
3106 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3107 continue # so that we can try to find one that supports BSD flags
3108 ;;
3109 esac
3110 esac
3111 fi
3112 done
3113 IFS="$lt_save_ifs"
3114 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3115 fi])
3116 NM="$lt_cv_path_NM"
3117 ])# AC_PROG_NM
3118
3119
3120 # AC_CHECK_LIBM
3121 # -------------
3122 # check for math library
3123 AC_DEFUN([AC_CHECK_LIBM],
3124 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3125 LIBM=
3126 case $host in
3127 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3128 # These system don't have libm, or don't need it
3129 ;;
3130 *-ncr-sysv4.3*)
3131 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3132 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3133 ;;
3134 *)
3135 AC_CHECK_LIB(m, cos, LIBM="-lm")
3136 ;;
3137 esac
3138 ])# AC_CHECK_LIBM
3139
3140
3141 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3142 # -----------------------------------
3143 # sets LIBLTDL to the link flags for the libltdl convenience library and
3144 # LTDLINCL to the include flags for the libltdl header and adds
3145 # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
3146 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3147 # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
3148 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3149 # '${top_srcdir}/' (note the single quotes!). If your package is not
3150 # flat and you're not using automake, define top_builddir and
3151 # top_srcdir appropriately in the Makefiles.
3152 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3153 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3154 case $enable_ltdl_convenience in
3155 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3156 "") enable_ltdl_convenience=yes
3157 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3158 esac
3159 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3160 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3161 # For backwards non-gettext consistent compatibility...
3162 INCLTDL="$LTDLINCL"
3163 ])# AC_LIBLTDL_CONVENIENCE
3164
3165
3166 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3167 # -----------------------------------
3168 # sets LIBLTDL to the link flags for the libltdl installable library and
3169 # LTDLINCL to the include flags for the libltdl header and adds
3170 # --enable-ltdl-install to the configure arguments. Note that LIBLTDL
3171 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3172 # DIRECTORY is not provided and an installed libltdl is not found, it is
3173 # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
3174 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3175 # quotes!). If your package is not flat and you're not using automake,
3176 # define top_builddir and top_srcdir appropriately in the Makefiles.
3177 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3178 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3179 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3180 AC_CHECK_LIB(ltdl, lt_dlinit,
3181 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3182 [if test x"$enable_ltdl_install" = xno; then
3183 AC_MSG_WARN([libltdl not installed, but installation disabled])
3184 else
3185 enable_ltdl_install=yes
3186 fi
3187 ])
3188 if test x"$enable_ltdl_install" = x"yes"; then
3189 ac_configure_args="$ac_configure_args --enable-ltdl-install"
3190 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3191 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3192 else
3193 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3194 LIBLTDL="-lltdl"
3195 LTDLINCL=
3196 fi
3197 # For backwards non-gettext consistent compatibility...
3198 INCLTDL="$LTDLINCL"
3199 ])# AC_LIBLTDL_INSTALLABLE
3200
3201
3202 # AC_LIBTOOL_CXX
3203 # --------------
3204 # enable support for C++ libraries
3205 AC_DEFUN([AC_LIBTOOL_CXX],
3206 [AC_REQUIRE([_LT_AC_LANG_CXX])
3207 ])# AC_LIBTOOL_CXX
3208
3209
3210 # _LT_AC_LANG_CXX
3211 # ---------------
3212 AC_DEFUN([_LT_AC_LANG_CXX],
3213 [AC_REQUIRE([AC_PROG_CXX])
3214 AC_REQUIRE([AC_PROG_CXXCPP])
3215 _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`])
3216 ])# _LT_AC_LANG_CXX
3217
3218
3219 # AC_LIBTOOL_F77
3220 # --------------
3221 # enable support for Fortran 77 libraries
3222 AC_DEFUN([AC_LIBTOOL_F77],
3223 [AC_REQUIRE([_LT_AC_LANG_F77])
3224 ])# AC_LIBTOOL_F77
3225
3226
3227 # _LT_AC_LANG_F77
3228 # ---------------
3229 AC_DEFUN([_LT_AC_LANG_F77],
3230 [AC_REQUIRE([AC_PROG_F77])
3231 _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,F77" | sed 's/^,//'`])
3232 ])# _LT_AC_LANG_F77
3233
3234
3235 # AC_LIBTOOL_GCJ
3236 # --------------
3237 # enable support for GCJ libraries
3238 AC_DEFUN([AC_LIBTOOL_GCJ],
3239 [AC_REQUIRE([_LT_AC_LANG_GCJ])
3240 ])# AC_LIBTOOL_GCJ
3241
3242
3243 # _LT_AC_LANG_GCJ
3244 # ---------------
3245 AC_DEFUN([_LT_AC_LANG_GCJ],
3246 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3247 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3248 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3249 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3250 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3251 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3252 _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,GCJ" | sed 's/^,//'`])
3253 ])# _LT_AC_LANG_GCJ
3254
3255
3256 # AC_LIBTOOL_RC
3257 # --------------
3258 # enable support for Windows resource files
3259 AC_DEFUN([AC_LIBTOOL_RC],
3260 [AC_REQUIRE([LT_AC_PROG_RC])
3261 _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,RC" | sed 's/^,//'`])
3262 ])# AC_LIBTOOL_RC
3263
3264
3265 # AC_LIBTOOL_LANG_C_CONFIG
3266 # ------------------------
3267 # Ensure that the configuration vars for the C compiler are
3268 # suitably defined. Those variables are subsequently used by
3269 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3270 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3271 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3272 [lt_save_CC="$CC"
3273 AC_LANG_PUSH(C)
3274
3275 # Source file extension for C test sources.
3276 ac_ext=c
3277
3278 # Object file extension for compiled C test sources.
3279 objext=o
3280 _LT_AC_TAGVAR(objext, $1)=$objext
3281
3282 # Code to be used in simple compile tests
3283 lt_simple_compile_test_code="int some_variable = 0;\n"
3284
3285 # Code to be used in simple link tests
3286 lt_simple_link_test_code='int main(){return(0);}\n'
3287
3288 _LT_AC_SYS_COMPILER
3289
3290 #
3291 # Check for any special shared library compilation flags.
3292 #
3293 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
3294 if test "$GCC" = no; then
3295 case $host_os in
3296 sco3.2v5*)
3297 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
3298 ;;
3299 esac
3300 fi
3301 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
3302 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
3303 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ ]]" >/dev/null; then :
3304 else
3305 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
3306 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
3307 fi
3308 fi
3309
3310
3311 #
3312 # Check to make sure the static flag actually works.
3313 #
3314 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
3315 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
3316 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
3317 [],
3318 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3319
3320
3321 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3322 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3323 AC_LIBTOOL_PROG_CC_C_O($1)
3324 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3325 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3326 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3327 AC_LIBTOOL_SYS_LIB_STRIP
3328 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3329 AC_LIBTOOL_DLOPEN_SELF($1)
3330
3331 # Report which librarie types wil actually be built
3332 AC_MSG_CHECKING([if libtool supports shared libraries])
3333 AC_MSG_RESULT([$can_build_shared])
3334
3335 AC_MSG_CHECKING([whether to build shared libraries])
3336 test "$can_build_shared" = "no" && enable_shared=no
3337
3338 # On AIX, shared libraries and static libraries use the same namespace, and
3339 # are all built from PIC.
3340 case "$host_os" in
3341 aix3*)
3342 test "$enable_shared" = yes && enable_static=no
3343 if test -n "$RANLIB"; then
3344 archive_cmds="$archive_cmds\${_S_}\$RANLIB \$lib"
3345 postinstall_cmds='$RANLIB $lib'
3346 fi
3347 ;;
3348
3349 aix4*)
3350 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3351 test "$enable_shared" = yes && enable_static=no
3352 fi
3353 ;;
3354 darwin* | rhapsody*)
3355 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
3356 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3357 case "$host_os" in
3358 rhapsody* | darwin1.[[012]])
3359 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3360 ;;
3361 darwin1.* | darwin[[2-6]].*) # Darwin 1.3 on, but less than 7.0
3362 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3363 ;;
3364 *) # Darwin 7.0 on
3365 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
3366 10.[[012]])
3367 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3368 ;;
3369 *) # 10.3 on
3370 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
3371 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3372 else
3373 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3374 fi
3375 ;;
3376 esac
3377 ;;
3378 esac
3379 # FIXME: Relying on posixy $() will cause problems for
3380 # cross-compilation, but unfortunately the echo tests do not
3381 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
3382 # `"' quotes if we put them in here... so don't!
3383 output_verbose_link_cmd='echo'
3384 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
3385 _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
3386 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3387 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3388 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3389 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3390 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3391 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3392 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3393 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3394 fi
3395 ;;
3396 esac
3397 AC_MSG_RESULT([$enable_shared])
3398
3399 AC_MSG_CHECKING([whether to build static libraries])
3400 # Make sure either enable_shared or enable_static is yes.
3401 test "$enable_shared" = yes || enable_static=yes
3402 AC_MSG_RESULT([$enable_static])
3403
3404 AC_LIBTOOL_CONFIG($1)
3405
3406 AC_LANG_POP
3407 CC="$lt_save_CC"
3408 ])# AC_LIBTOOL_LANG_C_CONFIG
3409
3410
3411 # AC_LIBTOOL_LANG_CXX_CONFIG
3412 # --------------------------
3413 # Ensure that the configuration vars for the C compiler are
3414 # suitably defined. Those variables are subsequently used by
3415 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3416 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3417 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3418 [AC_LANG_PUSH(C++)
3419 AC_REQUIRE([AC_PROG_CXX])
3420 AC_REQUIRE([AC_PROG_CXXCPP])
3421
3422 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3423 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
3424 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3425 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3426 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3427 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3428 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3429 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3430 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3431 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3432 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
3433 _LT_AC_TAGVAR(module_cmds, $1)=
3434 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
3435 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3436 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3437 _LT_AC_TAGVAR(no_undefined_flag, $1)=
3438 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3439 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3440
3441 # Dependencies to place before and after the object being linked:
3442 _LT_AC_TAGVAR(predep_objects, $1)=
3443 _LT_AC_TAGVAR(postdep_objects, $1)=
3444 _LT_AC_TAGVAR(predeps, $1)=
3445 _LT_AC_TAGVAR(postdeps, $1)=
3446 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3447
3448 # Source file extension for C++ test sources.
3449 ac_ext=cc
3450
3451 # Object file extension for compiled C++ test sources.
3452 objext=o
3453 _LT_AC_TAGVAR(objext, $1)=$objext
3454
3455 # Code to be used in simple compile tests
3456 lt_simple_compile_test_code="int some_variable = 0;\n"
3457
3458 # Code to be used in simple link tests
3459 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
3460
3461 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3462 _LT_AC_SYS_COMPILER
3463
3464 # Allow CC to be a program name with arguments.
3465 lt_save_CC=$CC
3466 lt_save_LD=$LD
3467 lt_save_GCC=$GCC
3468 GCC=$GXX
3469 lt_save_with_gnu_ld=$with_gnu_ld
3470 lt_save_path_LD=$lt_cv_path_LD
3471 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3472 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3473 else
3474 unset lt_cv_prog_gnu_ld
3475 fi
3476 if test -n "${lt_cv_path_LDCXX+set}"; then
3477 lt_cv_path_LD=$lt_cv_path_LDCXX
3478 else
3479 unset lt_cv_path_LD
3480 fi
3481 test -z "${LDCXX+set}" || LD=$LDCXX
3482 CC=${CXX-"c++"}
3483 compiler=$CC
3484 _LT_AC_TAGVAR(compiler, $1)=$CC
3485 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
3486
3487 # We don't want -fno-exception wen compiling C++ code, so set the
3488 # no_builtin_flag separately
3489 if test "$GXX" = yes; then
3490 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3491 else
3492 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3493 fi
3494
3495 if test "$GXX" = yes; then
3496 # Set up default GNU C++ configuration
3497
3498 AC_PROG_LD
3499
3500 # Check if GNU C++ uses GNU ld as the underlying linker, since the
3501 # archiving commands below assume that GNU ld is being used.
3502 if test "$with_gnu_ld" = yes; then
3503 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3504 _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'
3505
3506 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3507 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3508
3509 # If archive_cmds runs LD, not CC, wlarc should be empty
3510 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3511 # investigate it a little bit more. (MM)
3512 wlarc='${wl}'
3513
3514 # ancient GNU ld didn't support --whole-archive et. al.
3515 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3516 grep 'no-whole-archive' > /dev/null; then
3517 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3518 else
3519 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3520 fi
3521 else
3522 with_gnu_ld=no
3523 wlarc=
3524
3525 # A generic and very simple default shared library creation
3526 # command for GNU C++ for the case where it uses the native
3527 # linker, instead of GNU ld. If possible, this setting should
3528 # overridden to take advantage of the native linker features on
3529 # the platform it is being used on.
3530 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3531 fi
3532
3533 # Commands to make compiler produce verbose output that lists
3534 # what "hidden" libraries, object files and flags are used when
3535 # linking a shared library.
3536 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3537
3538 else
3539 GXX=no
3540 with_gnu_ld=no
3541 wlarc=
3542 fi
3543
3544 # PORTME: fill in a description of your system's C++ link characteristics
3545 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3546 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3547 case $host_os in
3548 aix3*)
3549 # FIXME: insert proper C++ library support
3550 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3551 ;;
3552 aix4* | aix5*)
3553 if test "$host_cpu" = ia64; then
3554 # On IA64, the linker does run time linking by default, so we don't
3555 # have to do anything special.
3556 aix_use_runtimelinking=no
3557 exp_sym_flag='-Bexport'
3558 no_entry_flag=""
3559 else
3560 aix_use_runtimelinking=no
3561
3562 # Test if we are trying to use run time linking or normal
3563 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3564 # need to do runtime linking.
3565 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3566 for ld_flag in $LDFLAGS; do
3567 case $ld_flag in
3568 *-brtl*)
3569 aix_use_runtimelinking=yes
3570 break
3571 ;;
3572 esac
3573 done
3574 esac
3575
3576 exp_sym_flag='-bexport'
3577 no_entry_flag='-bnoentry'
3578 fi
3579
3580 # When large executables or shared objects are built, AIX ld can
3581 # have problems creating the table of contents. If linking a library
3582 # or program results in "error TOC overflow" add -mminimal-toc to
3583 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3584 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3585
3586 _LT_AC_TAGVAR(archive_cmds, $1)=''
3587 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3588 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3589 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3590
3591 if test "$GXX" = yes; then
3592 case $host_os in aix4.[012]|aix4.[012].*)
3593 # We only want to do this on AIX 4.2 and lower, the check
3594 # below for broken collect2 doesn't work under 4.3+
3595 collect2name=`${CC} -print-prog-name=collect2`
3596 if test -f "$collect2name" && \
3597 strings "$collect2name" | grep resolve_lib_name >/dev/null
3598 then
3599 # We have reworked collect2
3600 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3601 else
3602 # We have old collect2
3603 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3604 # It fails to find uninstalled libraries when the uninstalled
3605 # path is not listed in the libpath. Setting hardcode_minus_L
3606 # to unsupported forces relinking
3607 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3608 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3609 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3610 fi
3611 esac
3612 shared_flag='-shared'
3613 else
3614 # not using gcc
3615 if test "$host_cpu" = ia64; then
3616 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3617 # chokes on -Wl,-G. The following line is correct:
3618 shared_flag='-G'
3619 else
3620 if test "$aix_use_runtimelinking" = yes; then
3621 shared_flag='${wl}-G'
3622 else
3623 shared_flag='${wl}-bM:SRE'
3624 fi
3625 fi
3626 fi
3627
3628 # It seems that -bexpall does not export symbols beginning with
3629 # underscore (_), so it is better to generate a list of symbols to export.
3630 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3631 if test "$aix_use_runtimelinking" = yes; then
3632 # Warning - without using the other runtime loading flags (-brtl),
3633 # -berok will link without error, but may produce a broken library.
3634 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3635 # Determine the default libpath from the value encoded in an empty executable.
3636 _LT_AC_SYS_LIBPATH_AIX
3637 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3638
3639 _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"
3640 else
3641 if test "$host_cpu" = ia64; then
3642 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3643 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3644 _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"
3645 else
3646 # Determine the default libpath from the value encoded in an empty executable.
3647 _LT_AC_SYS_LIBPATH_AIX
3648 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3649 # Warning - without using the other run time loading flags,
3650 # -berok will link without error, but may produce a broken library.
3651 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3652 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3653 # -bexpall does not export symbols beginning with underscore (_)
3654 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3655 # Exported symbols can be pulled into shared objects from archives
3656 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3657 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3658 # This is similar to how AIX traditionally builds it's shared libraries.
3659 _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}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3660 fi
3661 fi
3662 ;;
3663 chorus*)
3664 case $cc_basename in
3665 *)
3666 # FIXME: insert proper C++ library support
3667 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3668 ;;
3669 esac
3670 ;;
3671
3672 cygwin* | mingw* | pw32*)
3673 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3674 # as there is no search path for DLLs.
3675 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3676 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3677 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3678 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3679
3680 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3681 _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'
3682 # If the export-symbols file already is a .def file (1st line
3683 # is EXPORTS), use it as is; otherwise, prepend...
3684 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3685 cp $export_symbols $output_objdir/$soname.def;
3686 else
3687 echo EXPORTS > $output_objdir/$soname.def;
3688 cat $export_symbols >> $output_objdir/$soname.def;
3689 fi${_S_}
3690 $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'
3691 else
3692 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3693 fi
3694 ;;
3695
3696 darwin* | rhapsody*)
3697 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
3698 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3699 case "$host_os" in
3700 rhapsody* | darwin1.[[012]])
3701 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3702 ;;
3703 darwin1.* | darwin[[2-6]].*) # Darwin 1.3 on, but less than 7.0
3704 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3705 ;;
3706 *) # Darwin 7.0 on
3707 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
3708 10.[[012]])
3709 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3710 ;;
3711 *) # 10.3 on
3712 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
3713 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3714 else
3715 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3716 fi
3717 ;;
3718 esac
3719 ;;
3720 esac
3721 lt_int_apple_cc_single_mod=no
3722 output_verbose_link_cmd='echo'
3723 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3724 lt_int_apple_cc_single_mod=yes
3725 fi
3726 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3727 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3728 else
3729 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3730 fi
3731 _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
3732
3733 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3734 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3735 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3736 else
3737 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3738 fi
3739 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3740 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3741 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3742 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3743 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3744 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3745 fi
3746 ;;
3747
3748 dgux*)
3749 case $cc_basename in
3750 ec++)
3751 # FIXME: insert proper C++ library support
3752 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3753 ;;
3754 ghcx)
3755 # Green Hills C++ Compiler
3756 # FIXME: insert proper C++ library support
3757 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3758 ;;
3759 *)
3760 # FIXME: insert proper C++ library support
3761 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3762 ;;
3763 esac
3764 ;;
3765 freebsd[12]*)
3766 # C++ shared libraries reported to be fairly broken before switch to ELF
3767 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3768 ;;
3769 freebsd-elf*)
3770 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3771 ;;
3772 freebsd*)
3773 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3774 # conventions
3775 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3776 ;;
3777 gnu*)
3778 ;;
3779 hpux9*)
3780 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3781 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3782 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3783 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3784 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3785 # but as the default
3786 # location of the library.
3787
3788 case $cc_basename in
3789 CC)
3790 # FIXME: insert proper C++ library support
3791 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3792 ;;
3793 aCC)
3794 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname${_S_}$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3795 # Commands to make compiler produce verbose output that lists
3796 # what "hidden" libraries, object files and flags are used when
3797 # linking a shared library.
3798 #
3799 # There doesn't appear to be a way to prevent this compiler from
3800 # explicitly linking system object files so we need to strip them
3801 # from the output so that they don't get included in the library
3802 # dependencies.
3803 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3804 ;;
3805 *)
3806 if test "$GXX" = yes; then
3807 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname${_S_}$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3808 else
3809 # FIXME: insert proper C++ library support
3810 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3811 fi
3812 ;;
3813 esac
3814 ;;
3815 hpux10*|hpux11*)
3816 if test $with_gnu_ld = no; then
3817 case "$host_cpu" in
3818 hppa*64*)
3819 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3820 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3821 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3822 ;;
3823 ia64*)
3824 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3825 ;;
3826 *)
3827 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3828 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3829 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3830 ;;
3831 esac
3832 fi
3833 case "$host_cpu" in
3834 hppa*64*)
3835 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3836 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3837 ;;
3838 ia64*)
3839 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3840 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3841 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3842 # but as the default
3843 # location of the library.
3844 ;;
3845 *)
3846 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3847 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3848 # but as the default
3849 # location of the library.
3850 ;;
3851 esac
3852
3853 case $cc_basename in
3854 CC)
3855 # FIXME: insert proper C++ library support
3856 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3857 ;;
3858 aCC)
3859 case "$host_cpu" in
3860 hppa*64*|ia64*)
3861 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3862 ;;
3863 *)
3864 _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'
3865 ;;
3866 esac
3867 # Commands to make compiler produce verbose output that lists
3868 # what "hidden" libraries, object files and flags are used when
3869 # linking a shared library.
3870 #
3871 # There doesn't appear to be a way to prevent this compiler from
3872 # explicitly linking system object files so we need to strip them
3873 # from the output so that they don't get included in the library
3874 # dependencies.
3875 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'
3876 ;;
3877 *)
3878 if test "$GXX" = yes; then
3879 if test $with_gnu_ld = no; then
3880 case "$host_cpu" in
3881 ia64*|hppa*64*)
3882 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3883 ;;
3884 *)
3885 _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'
3886 ;;
3887 esac
3888 fi
3889 else
3890 # FIXME: insert proper C++ library support
3891 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3892 fi
3893 ;;
3894 esac
3895 ;;
3896 irix5* | irix6*)
3897 case $cc_basename in
3898 CC)
3899 # SGI C++
3900 _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 ${objdir}/so_locations -o $lib'
3901
3902 # Archives containing C++ object files must be created using
3903 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3904 # necessary to make sure instantiated templates are included
3905 # in the archive.
3906 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3907 ;;
3908 *)
3909 if test "$GXX" = yes; then
3910 if test "$with_gnu_ld" = no; then
3911 _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}${objdir}/so_locations -o $lib'
3912 else
3913 _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'
3914 fi
3915 fi
3916 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3917 ;;
3918 esac
3919 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3920 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3921 ;;
3922 linux*)
3923 case $cc_basename in
3924 KCC)
3925 # Kuck and Associates, Inc. (KAI) C++ Compiler
3926
3927 # KCC will only create a shared library if the output file
3928 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3929 # to its proper name (with version) after linking.
3930 _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'
3931 _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'
3932 # Commands to make compiler produce verbose output that lists
3933 # what "hidden" libraries, object files and flags are used when
3934 # linking a shared library.
3935 #
3936 # There doesn't appear to be a way to prevent this compiler from
3937 # explicitly linking system object files so we need to strip them
3938 # from the output so that they don't get included in the library
3939 # dependencies.
3940 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'
3941
3942 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3943 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3944
3945 # Archives containing C++ object files must be created using
3946 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3947 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3948 ;;
3949 icpc)
3950 # Intel C++
3951 with_gnu_ld=yes
3952 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3953 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3954 _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'
3955 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3956 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3957 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3958 ;;
3959 cxx)
3960 # Compaq C++
3961 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3962 _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'
3963
3964 runpath_var=LD_RUN_PATH
3965 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3966 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3967
3968 # Commands to make compiler produce verbose output that lists
3969 # what "hidden" libraries, object files and flags are used when
3970 # linking a shared library.
3971 #
3972 # There doesn't appear to be a way to prevent this compiler from
3973 # explicitly linking system object files so we need to strip them
3974 # from the output so that they don't get included in the library
3975 # dependencies.
3976 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'
3977 ;;
3978 esac
3979 ;;
3980 lynxos*)
3981 # FIXME: insert proper C++ library support
3982 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3983 ;;
3984 m88k*)
3985 # FIXME: insert proper C++ library support
3986 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3987 ;;
3988 mvs*)
3989 case $cc_basename in
3990 cxx)
3991 # FIXME: insert proper C++ library support
3992 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3993 ;;
3994 *)
3995 # FIXME: insert proper C++ library support
3996 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3997 ;;
3998 esac
3999 ;;
4000 netbsd*)
4001 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4002 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4003 wlarc=
4004 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4005 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4006 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4007 fi
4008 # Workaround some broken pre-1.5 toolchains
4009 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4010 ;;
4011 osf3*)
4012 case $cc_basename in
4013 KCC)
4014 # Kuck and Associates, Inc. (KAI) C++ Compiler
4015
4016 # KCC will only create a shared library if the output file
4017 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4018 # to its proper name (with version) after linking.
4019 _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'
4020
4021 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4022 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4023
4024 # Archives containing C++ object files must be created using
4025 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4026 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4027
4028 ;;
4029 RCC)
4030 # Rational C++ 2.4.1
4031 # FIXME: insert proper C++ library support
4032 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4033 ;;
4034 cxx)
4035 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4036 _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 ${objdir}/so_locations -o $lib'
4037
4038 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4039 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4040
4041 # Commands to make compiler produce verbose output that lists
4042 # what "hidden" libraries, object files and flags are used when
4043 # linking a shared library.
4044 #
4045 # There doesn't appear to be a way to prevent this compiler from
4046 # explicitly linking system object files so we need to strip them
4047 # from the output so that they don't get included in the library
4048 # dependencies.
4049 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'
4050 ;;
4051 *)
4052 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4053 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4054 _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}${objdir}/so_locations -o $lib'
4055
4056 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4057 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4058
4059 # Commands to make compiler produce verbose output that lists
4060 # what "hidden" libraries, object files and flags are used when
4061 # linking a shared library.
4062 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4063
4064 else
4065 # FIXME: insert proper C++ library support
4066 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4067 fi
4068 ;;
4069 esac
4070 ;;
4071 osf4* | osf5*)
4072 case $cc_basename in
4073 KCC)
4074 # Kuck and Associates, Inc. (KAI) C++ Compiler
4075
4076 # KCC will only create a shared library if the output file
4077 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4078 # to its proper name (with version) after linking.
4079 _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'
4080
4081 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4082 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4083
4084 # Archives containing C++ object files must be created using
4085 # the KAI C++ compiler.
4086 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4087 ;;
4088 RCC)
4089 # Rational C++ 2.4.1
4090 # FIXME: insert proper C++ library support
4091 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4092 ;;
4093 cxx)
4094 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4095 _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 ${objdir}/so_locations -o $lib'
4096 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done${_S_}
4097 echo "-hidden">> $lib.exp${_S_}
4098 $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 $objdir/so_locations -o $lib${_S_}
4099 $rm $lib.exp'
4100
4101 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4102 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4103
4104 # Commands to make compiler produce verbose output that lists
4105 # what "hidden" libraries, object files and flags are used when
4106 # linking a shared library.
4107 #
4108 # There doesn't appear to be a way to prevent this compiler from
4109 # explicitly linking system object files so we need to strip them
4110 # from the output so that they don't get included in the library
4111 # dependencies.
4112 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'
4113 ;;
4114 *)
4115 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4116 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4117 _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}${objdir}/so_locations -o $lib'
4118
4119 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4120 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4121
4122 # Commands to make compiler produce verbose output that lists
4123 # what "hidden" libraries, object files and flags are used when
4124 # linking a shared library.
4125 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4126
4127 else
4128 # FIXME: insert proper C++ library support
4129 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4130 fi
4131 ;;
4132 esac
4133 ;;
4134 psos*)
4135 # FIXME: insert proper C++ library support
4136 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4137 ;;
4138 sco*)
4139 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4140 case $cc_basename in
4141 CC)
4142 # FIXME: insert proper C++ library support
4143 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4144 ;;
4145 *)
4146 # FIXME: insert proper C++ library support
4147 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4148 ;;
4149 esac
4150 ;;
4151 sunos4*)
4152 case $cc_basename in
4153 CC)
4154 # Sun C++ 4.x
4155 # FIXME: insert proper C++ library support
4156 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4157 ;;
4158 lcc)
4159 # Lucid
4160 # FIXME: insert proper C++ library support
4161 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4162 ;;
4163 *)
4164 # FIXME: insert proper C++ library support
4165 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4166 ;;
4167 esac
4168 ;;
4169 solaris*)
4170 case $cc_basename in
4171 CC)
4172 # Sun C++ 4.2, 5.x and Centerline C++
4173 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4174 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4175 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
4176 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
4177
4178 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4179 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4180 case $host_os in
4181 solaris2.[0-5] | solaris2.[0-5].*) ;;
4182 *)
4183 # The C++ compiler is used as linker so we must use $wl
4184 # flag to pass the commands to the underlying system
4185 # linker.
4186 # Supported since Solaris 2.6 (maybe 2.5.1?)
4187 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4188 ;;
4189 esac
4190 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4191
4192 # Commands to make compiler produce verbose output that lists
4193 # what "hidden" libraries, object files and flags are used when
4194 # linking a shared library.
4195 #
4196 # There doesn't appear to be a way to prevent this compiler from
4197 # explicitly linking system object files so we need to strip them
4198 # from the output so that they don't get included in the library
4199 # dependencies.
4200 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'
4201
4202 # Archives containing C++ object files must be created using
4203 # "CC -xar", where "CC" is the Sun C++ compiler. This is
4204 # necessary to make sure instantiated templates are included
4205 # in the archive.
4206 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4207 ;;
4208 gcx)
4209 # Green Hills C++ Compiler
4210 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4211
4212 # The C++ compiler must be used to create the archive.
4213 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4214 ;;
4215 *)
4216 # GNU C++ compiler with Solaris linker
4217 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4218 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4219 if $CC --version | grep -v '^2\.7' > /dev/null; then
4220 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4221 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
4222 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
4223
4224 # Commands to make compiler produce verbose output that lists
4225 # what "hidden" libraries, object files and flags are used when
4226 # linking a shared library.
4227 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4228 else
4229 # g++ 2.7 appears to require `-G' NOT `-shared' on this
4230 # platform.
4231 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4232 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
4233 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
4234
4235 # Commands to make compiler produce verbose output that lists
4236 # what "hidden" libraries, object files and flags are used when
4237 # linking a shared library.
4238 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4239 fi
4240
4241 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4242 fi
4243 ;;
4244 esac
4245 ;;
4246 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
4247 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4248 ;;
4249 tandem*)
4250 case $cc_basename in
4251 NCC)
4252 # NonStop-UX NCC 3.20
4253 # FIXME: insert proper C++ library support
4254 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4255 ;;
4256 *)
4257 # FIXME: insert proper C++ library support
4258 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4259 ;;
4260 esac
4261 ;;
4262 vxworks*)
4263 # FIXME: insert proper C++ library support
4264 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4265 ;;
4266 *)
4267 # FIXME: insert proper C++ library support
4268 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4269 ;;
4270 esac
4271 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4272 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4273
4274 _LT_AC_TAGVAR(GCC, $1)="$GXX"
4275 _LT_AC_TAGVAR(LD, $1)="$LD"
4276
4277 AC_LIBTOOL_POSTDEP_PREDEP($1)
4278 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4279 AC_LIBTOOL_PROG_CC_C_O($1)
4280 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4281 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4282 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4283 AC_LIBTOOL_SYS_LIB_STRIP
4284 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4285 AC_LIBTOOL_DLOPEN_SELF($1)
4286
4287 AC_LIBTOOL_CONFIG($1)
4288
4289 AC_LANG_POP
4290 CC=$lt_save_CC
4291 LDCXX=$LD
4292 LD=$lt_save_LD
4293 GCC=$lt_save_GCC
4294 with_gnu_ldcxx=$with_gnu_ld
4295 with_gnu_ld=$lt_save_with_gnu_ld
4296 lt_cv_path_LDCXX=$lt_cv_path_LD
4297 lt_cv_path_LD=$lt_save_path_LD
4298 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4299 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4300 ])# AC_LIBTOOL_LANG_CXX_CONFIG
4301
4302 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4303 # ------------------------
4304 # Figure out "hidden" library dependencies from verbose
4305 # compiler output when linking a shared library.
4306 # Parse the compiler output and extract the necessary
4307 # objects, libraries and library flags.
4308 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4309 dnl we can't use the lt_simple_compile_test_code here,
4310 dnl because it contains code intended for an executable,
4311 dnl not a library. It's possible we should let each
4312 dnl tag define a new lt_????_link_test_code variable,
4313 dnl but it's only used here...
4314 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4315 int a;
4316 void foo (void) { a = 0; }
4317 EOF
4318 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4319 class Foo
4320 {
4321 public:
4322 Foo (void) { a = 0; }
4323 private:
4324 int a;
4325 };
4326 EOF
4327 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4328 subroutine foo
4329 implicit none
4330 integer*4 a
4331 a=0
4332 return
4333 end
4334 EOF
4335 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4336 public class foo {
4337 private int a;
4338 public void bar (void) {
4339 a = 0;
4340 }
4341 };
4342 EOF
4343 ])
4344 dnl Parse the compiler output and extract the necessary
4345 dnl objects, libraries and library flags.
4346 if AC_TRY_EVAL(ac_compile); then
4347 # Parse the compiler output and extract the necessary
4348 # objects, libraries and library flags.
4349
4350 # Sentinel used to keep track of whether or not we are before
4351 # the conftest object file.
4352 pre_test_object_deps_done=no
4353
4354 # The `*' in the case matches for architectures that use `case' in
4355 # $output_verbose_cmd can trigger glob expansion during the loop
4356 # eval without this substitution.
4357 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
4358
4359 for p in `eval $output_verbose_link_cmd`; do
4360 case $p in
4361
4362 -L* | -R* | -l*)
4363 # Some compilers place space between "-{L,R}" and the path.
4364 # Remove the space.
4365 if test $p = "-L" \
4366 || test $p = "-R"; then
4367 prev=$p
4368 continue
4369 else
4370 prev=
4371 fi
4372
4373 if test "$pre_test_object_deps_done" = no; then
4374 case $p in
4375 -L* | -R*)
4376 # Internal compiler library paths should come after those
4377 # provided the user. The postdeps already come after the
4378 # user supplied libs so there is no need to process them.
4379 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4380 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4381 else
4382 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4383 fi
4384 ;;
4385 # The "-l" case would never come before the object being
4386 # linked, so don't bother handling this case.
4387 esac
4388 else
4389 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4390 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4391 else
4392 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4393 fi
4394 fi
4395 ;;
4396
4397 *.$objext)
4398 # This assumes that the test object file only shows up
4399 # once in the compiler output.
4400 if test "$p" = "conftest.$objext"; then
4401 pre_test_object_deps_done=yes
4402 continue
4403 fi
4404
4405 if test "$pre_test_object_deps_done" = no; then
4406 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4407 _LT_AC_TAGVAR(predep_objects, $1)="$p"
4408 else
4409 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4410 fi
4411 else
4412 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4413 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4414 else
4415 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4416 fi
4417 fi
4418 ;;
4419
4420 *) ;; # Ignore the rest.
4421
4422 esac
4423 done
4424
4425 # Clean up.
4426 rm -f a.out a.exe
4427 else
4428 echo "libtool.m4: error: problem compiling $1 test program"
4429 fi
4430
4431 $rm -f confest.$objext
4432
4433 case " $_LT_AC_TAGVAR(postdeps, $1) " in
4434 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4435 esac
4436 ])# AC_LIBTOOL_POSTDEP_PREDEP
4437
4438 # AC_LIBTOOL_LANG_F77_CONFIG
4439 # ------------------------
4440 # Ensure that the configuration vars for the C compiler are
4441 # suitably defined. Those variables are subsequently used by
4442 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4443 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4444 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4445 [AC_REQUIRE([AC_PROG_F77])
4446 AC_LANG_PUSH(Fortran 77)
4447
4448 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4449 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4450 _LT_AC_TAGVAR(always_export_symbols, $1)=no
4451 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4452 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4453 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4454 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4455 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4456 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4457 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4458 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4459 _LT_AC_TAGVAR(module_cmds, $1)=
4460 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4461 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4462 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4463 _LT_AC_TAGVAR(no_undefined_flag, $1)=
4464 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4465 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4466
4467 # Source file extension for f77 test sources.
4468 ac_ext=f
4469
4470 # Object file extension for compiled f77 test sources.
4471 objext=o
4472 _LT_AC_TAGVAR(objext, $1)=$objext
4473
4474 # Code to be used in simple compile tests
4475 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4476
4477 # Code to be used in simple link tests
4478 lt_simple_link_test_code=" program t\n end\n"
4479
4480 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4481 _LT_AC_SYS_COMPILER
4482
4483 # Allow CC to be a program name with arguments.
4484 lt_save_CC="$CC"
4485 CC=${F77-"f77"}
4486 compiler=$CC
4487 _LT_AC_TAGVAR(compiler, $1)=$CC
4488 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
4489
4490 AC_MSG_CHECKING([if libtool supports shared libraries])
4491 AC_MSG_RESULT([$can_build_shared])
4492
4493 AC_MSG_CHECKING([whether to build shared libraries])
4494 test "$can_build_shared" = "no" && enable_shared=no
4495
4496 # On AIX, shared libraries and static libraries use the same namespace, and
4497 # are all built from PIC.
4498 case "$host_os" in
4499 aix3*)
4500 test "$enable_shared" = yes && enable_static=no
4501 if test -n "$RANLIB"; then
4502 archive_cmds="$archive_cmds\${_S_}\$RANLIB \$lib"
4503 postinstall_cmds='$RANLIB $lib'
4504 fi
4505 ;;
4506 aix4*)
4507 test "$enable_shared" = yes && enable_static=no
4508 ;;
4509 esac
4510 AC_MSG_RESULT([$enable_shared])
4511
4512 AC_MSG_CHECKING([whether to build static libraries])
4513 # Make sure either enable_shared or enable_static is yes.
4514 test "$enable_shared" = yes || enable_static=yes
4515 AC_MSG_RESULT([$enable_static])
4516
4517 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4518
4519 _LT_AC_TAGVAR(GCC, $1)="$G77"
4520 _LT_AC_TAGVAR(LD, $1)="$LD"
4521
4522 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4523 AC_LIBTOOL_PROG_CC_C_O($1)
4524 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4525 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4526 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4527 AC_LIBTOOL_SYS_LIB_STRIP
4528 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4529
4530 AC_LIBTOOL_CONFIG($1)
4531
4532 AC_LANG_POP
4533 CC="$lt_save_CC"
4534 ])# AC_LIBTOOL_LANG_F77_CONFIG
4535
4536
4537 # AC_LIBTOOL_LANG_GCJ_CONFIG
4538 # --------------------------
4539 # Ensure that the configuration vars for the C compiler are
4540 # suitably defined. Those variables are subsequently used by
4541 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4542 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4543 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4544 [AC_LANG_SAVE
4545
4546 # Source file extension for Java test sources.
4547 ac_ext=java
4548
4549 # Object file extension for compiled Java test sources.
4550 objext=o
4551 _LT_AC_TAGVAR(objext, $1)=$objext
4552
4553 # Code to be used in simple compile tests
4554 lt_simple_compile_test_code="class foo {}\n"
4555
4556 # Code to be used in simple link tests
4557 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
4558
4559 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4560 _LT_AC_SYS_COMPILER
4561
4562 # Allow CC to be a program name with arguments.
4563 lt_save_CC="$CC"
4564 CC=${GCJ-"gcj"}
4565 compiler=$CC
4566 _LT_AC_TAGVAR(compiler, $1)=$CC
4567
4568 # GCJ did not exist at the time GCC didn't implicitly link libc in.
4569 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4570
4571 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4572 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4573 AC_LIBTOOL_PROG_CC_C_O($1)
4574 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4575 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4576 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4577 AC_LIBTOOL_SYS_LIB_STRIP
4578 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4579 AC_LIBTOOL_DLOPEN_SELF($1)
4580
4581 AC_LIBTOOL_CONFIG($1)
4582
4583 AC_LANG_RESTORE
4584 CC="$lt_save_CC"
4585 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
4586
4587
4588 # AC_LIBTOOL_LANG_RC_CONFIG
4589 # --------------------------
4590 # Ensure that the configuration vars for the Windows resource compiler are
4591 # suitably defined. Those variables are subsequently used by
4592 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4593 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4594 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4595 [AC_LANG_SAVE
4596
4597 # Source file extension for RC test sources.
4598 ac_ext=rc
4599
4600 # Object file extension for compiled RC test sources.
4601 objext=o
4602 _LT_AC_TAGVAR(objext, $1)=$objext
4603
4604 # Code to be used in simple compile tests
4605 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4606
4607 # Code to be used in simple link tests
4608 lt_simple_link_test_code="$lt_simple_compile_test_code"
4609
4610 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4611 _LT_AC_SYS_COMPILER
4612
4613 # Allow CC to be a program name with arguments.
4614 lt_save_CC="$CC"
4615 CC=${RC-"windres"}
4616 compiler=$CC
4617 _LT_AC_TAGVAR(compiler, $1)=$CC
4618 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4619
4620 AC_LIBTOOL_CONFIG($1)
4621
4622 AC_LANG_RESTORE
4623 CC="$lt_save_CC"
4624 ])# AC_LIBTOOL_LANG_RC_CONFIG
4625
4626
4627 # AC_LIBTOOL_CONFIG([TAGNAME])
4628 # ----------------------------
4629 # If TAGNAME is not passed, then create an initial libtool script
4630 # with a default configuration from the untagged config vars. Otherwise
4631 # add code to config.status for appending the configuration named by
4632 # TAGNAME from the matching tagged config vars.
4633 AC_DEFUN([AC_LIBTOOL_CONFIG],
4634 [# The else clause should only fire when bootstrapping the
4635 # libtool distribution, otherwise you forgot to ship ltmain.sh
4636 # with your package, and you will get complaints that there are
4637 # no rules to generate ltmain.sh.
4638 if test -f "$ltmain"; then
4639 # See if we are running on zsh, and set the options which allow our commands through
4640 # without removal of \ escapes.
4641 if test -n "${ZSH_VERSION+set}" ; then
4642 setopt NO_GLOB_SUBST
4643 fi
4644 # Now quote all the things that may contain metacharacters while being
4645 # careful not to overquote the AC_SUBSTed values. We take copies of the
4646 # variables and quote the copies for generation of the libtool script.
4647 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
4648 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4649 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4650 deplibs_check_method reload_flag reload_cmds need_locks \
4651 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4652 lt_cv_sys_global_symbol_to_c_name_address \
4653 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4654 old_postinstall_cmds old_postuninstall_cmds \
4655 _LT_AC_TAGVAR(compiler, $1) \
4656 _LT_AC_TAGVAR(CC, $1) \
4657 _LT_AC_TAGVAR(LD, $1) \
4658 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4659 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4660 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4661 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4662 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4663 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4664 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4665 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4666 _LT_AC_TAGVAR(old_archive_cmds, $1) \
4667 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4668 _LT_AC_TAGVAR(predep_objects, $1) \
4669 _LT_AC_TAGVAR(postdep_objects, $1) \
4670 _LT_AC_TAGVAR(predeps, $1) \
4671 _LT_AC_TAGVAR(postdeps, $1) \
4672 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4673 _LT_AC_TAGVAR(archive_cmds, $1) \
4674 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4675 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4676 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4677 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4678 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4679 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4680 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4681 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4682 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4683 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4684 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4685 _LT_AC_TAGVAR(module_cmds, $1) \
4686 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4687 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4688 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4689 _LT_AC_TAGVAR(include_expsyms, $1); do
4690
4691 case $var in
4692 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4693 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4694 _LT_AC_TAGVAR(archive_cmds, $1) | \
4695 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4696 _LT_AC_TAGVAR(module_cmds, $1) | \
4697 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4698 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4699 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4700 extract_expsyms_cmds | reload_cmds | finish_cmds | \
4701 postinstall_cmds | postuninstall_cmds | \
4702 old_postinstall_cmds | old_postuninstall_cmds | \
4703 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4704 # Double-quote double-evaled strings.
4705 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
4706 ;;
4707 *)
4708 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4709 ;;
4710 esac
4711 done
4712
4713 case $lt_echo in
4714 *'\[$]0 --fallback-echo"')
4715 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4716 ;;
4717 esac
4718
4719 ifelse([$1], [],
4720 [cfgfile="${ofile}T"
4721 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4722 $rm -f "$cfgfile"
4723 AC_MSG_NOTICE([creating $ofile])],
4724 [cfgfile="$ofile"])
4725
4726 cat <<__EOF__ >> "$cfgfile"
4727 ifelse([$1], [],
4728 [#! $SHELL
4729
4730 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4731 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4732 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4733 #
4734 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4735 # Free Software Foundation, Inc.
4736 #
4737 # This file is part of GNU Libtool:
4738 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4739 #
4740 # This program is free software; you can redistribute it and/or modify
4741 # it under the terms of the GNU General Public License as published by
4742 # the Free Software Foundation; either version 2 of the License, or
4743 # (at your option) any later version.
4744 #
4745 # This program is distributed in the hope that it will be useful, but
4746 # WITHOUT ANY WARRANTY; without even the implied warranty of
4747 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4748 # General Public License for more details.
4749 #
4750 # You should have received a copy of the GNU General Public License
4751 # along with this program; if not, write to the Free Software
4752 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4753 #
4754 # As a special exception to the GNU General Public License, if you
4755 # distribute this file as part of a program that contains a
4756 # configuration script generated by Autoconf, you may include it under
4757 # the same distribution terms that you use for the rest of that program.
4758
4759 # A sed program that does not truncate output.
4760 SED=$lt_SED
4761
4762 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4763 Xsed="$SED -e s/^X//"
4764
4765 # The HP-UX ksh and POSIX shell print the target directory to stdout
4766 # if CDPATH is set.
4767 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4768
4769 # The names of the tagged configurations supported by this script.
4770 available_tags=
4771
4772 # ### BEGIN LIBTOOL CONFIG],
4773 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4774
4775 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4776
4777 # Set the command separator (default: ~)
4778 _S_=\${LIBTOOL_CMD_SEP-\~}
4779
4780 # Shell to use when invoking shell scripts.
4781 SHELL=$lt_SHELL
4782
4783 # Whether or not to build shared libraries.
4784 build_libtool_libs=$enable_shared
4785
4786 # Whether or not to build static libraries.
4787 build_old_libs=$enable_static
4788
4789 # Whether or not to add -lc for building shared libraries.
4790 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4791
4792 # Whether or not to disallow shared libs when runtime libs are static
4793 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4794
4795 # Whether or not to optimize for fast installation.
4796 fast_install=$enable_fast_install
4797
4798 # The host system.
4799 host_alias=$host_alias
4800 host=$host
4801
4802 # An echo program that does not interpret backslashes.
4803 echo=$lt_echo
4804
4805 # The archiver.
4806 AR=$lt_AR
4807 AR_FLAGS=$lt_AR_FLAGS
4808
4809 # A C compiler.
4810 LTCC=$lt_LTCC
4811
4812 # A language-specific compiler.
4813 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4814
4815 # Is the compiler the GNU C compiler?
4816 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4817
4818 # An ERE matcher.
4819 EGREP=$lt_EGREP
4820
4821 # The linker used to build libraries.
4822 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4823
4824 # Whether we need hard or soft links.
4825 LN_S=$lt_LN_S
4826
4827 # A BSD-compatible nm program.
4828 NM=$lt_NM
4829
4830 # A symbol stripping program
4831 STRIP=$STRIP
4832
4833 # Used to examine libraries when file_magic_cmd begins "file"
4834 MAGIC_CMD=$MAGIC_CMD
4835
4836 # Used on cygwin: DLL creation program.
4837 DLLTOOL="$DLLTOOL"
4838
4839 # Used on cygwin: object dumper.
4840 OBJDUMP="$OBJDUMP"
4841
4842 # Used on cygwin: assembler.
4843 AS="$AS"
4844
4845 # The name of the directory that contains temporary libtool files.
4846 objdir=$objdir
4847
4848 # How to create reloadable object files.
4849 reload_flag=$lt_reload_flag
4850 reload_cmds=$lt_reload_cmds
4851
4852 # How to pass a linker flag through the compiler.
4853 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4854
4855 # Object file suffix (normally "o").
4856 objext="$ac_objext"
4857
4858 # Old archive suffix (normally "a").
4859 libext="$libext"
4860
4861 # Shared library suffix (normally ".so").
4862 shrext='$shrext'
4863
4864 # Executable file suffix (normally "").
4865 exeext="$exeext"
4866
4867 # Additional compiler flags for building library objects.
4868 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4869 pic_mode=$pic_mode
4870
4871 # What is the maximum length of a command?
4872 max_cmd_len=$lt_cv_sys_max_cmd_len
4873
4874 # Does compiler simultaneously support -c and -o options?
4875 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4876
4877 # Must we lock files when doing compilation ?
4878 need_locks=$lt_need_locks
4879
4880 # Do we need the lib prefix for modules?
4881 need_lib_prefix=$need_lib_prefix
4882
4883 # Do we need a version for libraries?
4884 need_version=$need_version
4885
4886 # Whether dlopen is supported.
4887 dlopen_support=$enable_dlopen
4888
4889 # Whether dlopen of programs is supported.
4890 dlopen_self=$enable_dlopen_self
4891
4892 # Whether dlopen of statically linked programs is supported.
4893 dlopen_self_static=$enable_dlopen_self_static
4894
4895 # Compiler flag to prevent dynamic linking.
4896 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4897
4898 # Compiler flag to turn off builtin functions.
4899 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4900
4901 # Compiler flag to allow reflexive dlopens.
4902 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4903
4904 # Compiler flag to generate shared objects directly from archives.
4905 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4906
4907 # Compiler flag to generate thread-safe objects.
4908 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4909
4910 # Library versioning type.
4911 version_type=$version_type
4912
4913 # Format of library name prefix.
4914 libname_spec=$lt_libname_spec
4915
4916 # List of archive names. First name is the real one, the rest are links.
4917 # The last name is the one that the linker finds with -lNAME.
4918 library_names_spec=$lt_library_names_spec
4919
4920 # The coded name of the library, if different from the real name.
4921 soname_spec=$lt_soname_spec
4922
4923 # Commands used to build and install an old-style archive.
4924 RANLIB=$lt_RANLIB
4925 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4926 old_postinstall_cmds=$lt_old_postinstall_cmds
4927 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4928
4929 # Create an old-style archive from a shared archive.
4930 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4931
4932 # Create a temporary old-style archive to link instead of a shared archive.
4933 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4934
4935 # Commands used to build and install a shared archive.
4936 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4937 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4938 postinstall_cmds=$lt_postinstall_cmds
4939 postuninstall_cmds=$lt_postuninstall_cmds
4940
4941 # Commands used to build a loadable module (assumed same as above if empty)
4942 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4943 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4944
4945 # Commands to strip libraries.
4946 old_striplib=$lt_old_striplib
4947 striplib=$lt_striplib
4948
4949 # Dependencies to place before the objects being linked to create a
4950 # shared library.
4951 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4952
4953 # Dependencies to place after the objects being linked to create a
4954 # shared library.
4955 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4956
4957 # Dependencies to place before the objects being linked to create a
4958 # shared library.
4959 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4960
4961 # Dependencies to place after the objects being linked to create a
4962 # shared library.
4963 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4964
4965 # The library search path used internally by the compiler when linking
4966 # a shared library.
4967 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4968
4969 # Method to check whether dependent libraries are shared objects.
4970 deplibs_check_method=$lt_deplibs_check_method
4971
4972 # Command to use when deplibs_check_method == file_magic.
4973 file_magic_cmd=$lt_file_magic_cmd
4974
4975 # Flag that allows shared libraries with undefined symbols to be built.
4976 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4977
4978 # Flag that forces no undefined symbols.
4979 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4980
4981 # Commands used to finish a libtool library installation in a directory.
4982 finish_cmds=$lt_finish_cmds
4983
4984 # Same as above, but a single script fragment to be evaled but not shown.
4985 finish_eval=$lt_finish_eval
4986
4987 # Take the output of nm and produce a listing of raw symbols and C names.
4988 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4989
4990 # Transform the output of nm in a proper C declaration
4991 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4992
4993 # Transform the output of nm in a C name address pair
4994 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4995
4996 # This is the shared library runtime path variable.
4997 runpath_var=$runpath_var
4998
4999 # This is the shared library path variable.
5000 shlibpath_var=$shlibpath_var
5001
5002 # Is shlibpath searched before the hard-coded library search path?
5003 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5004
5005 # How to hardcode a shared library path into an executable.
5006 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5007
5008 # Whether we should hardcode library paths into libraries.
5009 hardcode_into_libs=$hardcode_into_libs
5010
5011 # Flag to hardcode \$libdir into a binary during linking.
5012 # This must work even if \$libdir does not exist.
5013 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5014
5015 # If ld is used when linking, flag to hardcode \$libdir into
5016 # a binary during linking. This must work even if \$libdir does
5017 # not exist.
5018 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5019
5020 # Whether we need a single -rpath flag with a separated argument.
5021 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5022
5023 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5024 # resulting binary.
5025 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5026
5027 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5028 # resulting binary.
5029 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5030
5031 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5032 # the resulting binary.
5033 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5034
5035 # Set to yes if building a shared library automatically hardcodes DIR into the library
5036 # and all subsequent libraries and executables linked against it.
5037 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5038
5039 # Variables whose values should be saved in libtool wrapper scripts and
5040 # restored at relink time.
5041 variables_saved_for_relink="$variables_saved_for_relink"
5042
5043 # Whether libtool must link a program against all its dependency libraries.
5044 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5045
5046 # Compile-time system search path for libraries
5047 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5048
5049 # Run-time system search path for libraries
5050 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5051
5052 # Fix the shell variable \$srcfile for the compiler.
5053 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5054
5055 # Set to yes if exported symbols are required.
5056 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5057
5058 # The commands to list exported symbols.
5059 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5060
5061 # The commands to extract the exported symbol list from a shared archive.
5062 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5063
5064 # Symbols that should not be listed in the preloaded symbols.
5065 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5066
5067 # Symbols that must always be exported.
5068 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5069
5070 ifelse([$1],[],
5071 [# ### END LIBTOOL CONFIG],
5072 [# ### END LIBTOOL TAG CONFIG: $tagname])
5073
5074 __EOF__
5075
5076 ifelse([$1],[], [
5077 case $host_os in
5078 aix3*)
5079 cat <<\EOF >> "$cfgfile"
5080
5081 # AIX sometimes has problems with the GCC collect2 program. For some
5082 # reason, if we set the COLLECT_NAMES environment variable, the problems
5083 # vanish in a puff of smoke.
5084 if test "X${COLLECT_NAMES+set}" != Xset; then
5085 COLLECT_NAMES=
5086 export COLLECT_NAMES
5087 fi
5088 EOF
5089 ;;
5090 esac
5091
5092 # We use sed instead of cat because bash on DJGPP gets confused if
5093 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5094 # text mode, it properly converts lines to CR/LF. This bash problem
5095 # is reportedly fixed, but why not run on old versions too?
5096 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5097
5098 mv -f "$cfgfile" "$ofile" || \
5099 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5100 chmod +x "$ofile"
5101 ])
5102 else
5103 # If there is no Makefile yet, we rely on a make rule to execute
5104 # `config.status --recheck' to rerun these tests and create the
5105 # libtool script then.
5106 test -f Makefile && make "$ltmain"
5107 fi
5108 ])# AC_LIBTOOL_CONFIG
5109
5110
5111 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5112 # -------------------------------------------
5113 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5114 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5115
5116 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5117
5118 if test "$GCC" = yes; then
5119 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5120
5121 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5122 lt_cv_prog_compiler_rtti_exceptions,
5123 [-fno-rtti -fno-exceptions], [],
5124 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5125 fi
5126 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5127
5128
5129 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5130 # ---------------------------------
5131 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5132 [AC_REQUIRE([AC_CANONICAL_HOST])
5133 AC_REQUIRE([AC_PROG_NM])
5134 AC_REQUIRE([AC_OBJEXT])
5135 # Check for command to grab the raw symbol name followed by C symbol from nm.
5136 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5137 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5138 [
5139 # These are sane defaults that work on at least a few old systems.
5140 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5141
5142 # Character class describing NM global symbol codes.
5143 symcode='[[BCDEGRST]]'
5144
5145 # Regexp to match symbols that can be accessed directly from C.
5146 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5147
5148 # Transform the above into a raw symbol and a C symbol.
5149 symxfrm='\1 \2\3 \3'
5150
5151 # Transform an extracted symbol line into a proper C declaration
5152 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5153
5154 # Transform an extracted symbol line into symbol name and symbol address
5155 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'"
5156
5157 # Define system-specific variables.
5158 case $host_os in
5159 aix*)
5160 symcode='[[BCDT]]'
5161 ;;
5162 cygwin* | mingw* | pw32*)
5163 symcode='[[ABCDGISTW]]'
5164 ;;
5165 hpux*) # Its linker distinguishes data from code symbols
5166 if test "$host_cpu" = ia64; then
5167 symcode='[[ABCDEGRST]]'
5168 fi
5169 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5170 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'"
5171 ;;
5172 irix* | nonstopux*)
5173 symcode='[[BCDEGRST]]'
5174 ;;
5175 osf*)
5176 symcode='[[BCDEGQRST]]'
5177 ;;
5178 solaris* | sysv5*)
5179 symcode='[[BDT]]'
5180 ;;
5181 sysv4)
5182 symcode='[[DFNSTU]]'
5183 ;;
5184 esac
5185
5186 # Handle CRLF in mingw tool chain
5187 opt_cr=
5188 case $build_os in
5189 mingw*)
5190 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5191 ;;
5192 esac
5193
5194 # If we're using GNU nm, then use its standard symbol codes.
5195 case `$NM -V 2>&1` in
5196 *GNU* | *'with BFD'*)
5197 symcode='[[ABCDGISTW]]' ;;
5198 esac
5199
5200 # Try without a prefix undercore, then with it.
5201 for ac_symprfx in "" "_"; do
5202
5203 # Write the raw and C identifiers.
5204 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5205
5206 # Check to see that the pipe works correctly.
5207 pipe_works=no
5208
5209 rm -f conftest*
5210 cat > conftest.$ac_ext <<EOF
5211 #ifdef __cplusplus
5212 extern "C" {
5213 #endif
5214 char nm_test_var;
5215 void nm_test_func(){}
5216 #ifdef __cplusplus
5217 }
5218 #endif
5219 int main(){nm_test_var='a';nm_test_func();return(0);}
5220 EOF
5221
5222 if AC_TRY_EVAL(ac_compile); then
5223 # Now try to grab the symbols.
5224 nlist=conftest.nm
5225 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5226 # Try sorting and uniquifying the output.
5227 if sort "$nlist" | uniq > "$nlist"T; then
5228 mv -f "$nlist"T "$nlist"
5229 else
5230 rm -f "$nlist"T
5231 fi
5232
5233 # Make sure that we snagged all the symbols we need.
5234 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5235 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5236 cat <<EOF > conftest.$ac_ext
5237 #ifdef __cplusplus
5238 extern "C" {
5239 #endif
5240
5241 EOF
5242 # Now generate the symbol file.
5243 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5244
5245 cat <<EOF >> conftest.$ac_ext
5246 #if defined (__STDC__) && __STDC__
5247 # define lt_ptr_t void *
5248 #else
5249 # define lt_ptr_t char *
5250 # define const
5251 #endif
5252
5253 /* The mapping between symbol names and symbols. */
5254 const struct {
5255 const char *name;
5256 lt_ptr_t address;
5257 }
5258 lt_preloaded_symbols[[]] =
5259 {
5260 EOF
5261 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5262 cat <<\EOF >> conftest.$ac_ext
5263 {0, (lt_ptr_t) 0}
5264 };
5265
5266 #ifdef __cplusplus
5267 }
5268 #endif
5269 EOF
5270 # Now try linking the two files.
5271 mv conftest.$ac_objext conftstm.$ac_objext
5272 lt_save_LIBS="$LIBS"
5273 lt_save_CFLAGS="$CFLAGS"
5274 LIBS="conftstm.$ac_objext"
5275 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5276 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5277 pipe_works=yes
5278 fi
5279 LIBS="$lt_save_LIBS"
5280 CFLAGS="$lt_save_CFLAGS"
5281 else
5282 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5283 fi
5284 else
5285 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5286 fi
5287 else
5288 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5289 fi
5290 else
5291 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5292 cat conftest.$ac_ext >&5
5293 fi
5294 rm -f conftest* conftst*
5295
5296 # Do not use the global_symbol_pipe unless it works.
5297 if test "$pipe_works" = yes; then
5298 break
5299 else
5300 lt_cv_sys_global_symbol_pipe=
5301 fi
5302 done
5303 ])
5304 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5305 lt_cv_sys_global_symbol_to_cdecl=
5306 fi
5307 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5308 AC_MSG_RESULT(failed)
5309 else
5310 AC_MSG_RESULT(ok)
5311 fi
5312 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5313
5314
5315 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5316 # ---------------------------------------
5317 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5318 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5319 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5320 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5321
5322 AC_MSG_CHECKING([for $compiler option to produce PIC])
5323 ifelse([$1],[CXX],[
5324 # C++ specific cases for pic, static, wl, etc.
5325 if test "$GXX" = yes; then
5326 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5327 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5328
5329 case $host_os in
5330 aix*)
5331 # All AIX code is PIC.
5332 if test "$host_cpu" = ia64; then
5333 # AIX 5 now supports IA64 processor
5334 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5335 fi
5336 ;;
5337 amigaos*)
5338 # FIXME: we need at least 68020 code to build shared libraries, but
5339 # adding the `-m68020' flag to GCC prevents building anything better,
5340 # like `-m68040'.
5341 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5342 ;;
5343 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5344 # PIC is the default for these OSes.
5345 ;;
5346 mingw* | os2* | pw32*)
5347 # This hack is so that the source file can tell whether it is being
5348 # built for inclusion in a dll (and should export symbols for example).
5349 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5350 ;;
5351 darwin* | rhapsody*)
5352 # PIC is the default on this platform
5353 # Common symbols not allowed in MH_DYLIB files
5354 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5355 ;;
5356 *djgpp*)
5357 # DJGPP does not support shared libraries at all
5358 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5359 ;;
5360 sysv4*MP*)
5361 if test -d /usr/nec; then
5362 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5363 fi
5364 ;;
5365 hpux*)
5366 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5367 # not for PA HP-UX.
5368 case "$host_cpu" in
5369 hppa*64*|ia64*)
5370 ;;
5371 *)
5372 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5373 ;;
5374 esac
5375 ;;
5376 *)
5377 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5378 ;;
5379 esac
5380 else
5381 case $host_os in
5382 aix4* | aix5*)
5383 # All AIX code is PIC.
5384 if test "$host_cpu" = ia64; then
5385 # AIX 5 now supports IA64 processor
5386 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5387 else
5388 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5389 fi
5390 ;;
5391 chorus*)
5392 case $cc_basename in
5393 cxch68)
5394 # Green Hills C++ Compiler
5395 # _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"
5396 ;;
5397 esac
5398 ;;
5399 dgux*)
5400 case $cc_basename in
5401 ec++)
5402 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5403 ;;
5404 ghcx)
5405 # Green Hills C++ Compiler
5406 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5407 ;;
5408 *)
5409 ;;
5410 esac
5411 ;;
5412 freebsd*)
5413 # FreeBSD uses GNU C++
5414 ;;
5415 hpux9* | hpux10* | hpux11*)
5416 case $cc_basename in
5417 CC)
5418 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5419 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5420 if test "$host_cpu" != ia64; then
5421 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5422 fi
5423 ;;
5424 aCC)
5425 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5426 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5427 case "$host_cpu" in
5428 hppa*64*|ia64*)
5429 # +Z the default
5430 ;;
5431 *)
5432 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5433 ;;
5434 esac
5435 ;;
5436 *)
5437 ;;
5438 esac
5439 ;;
5440 irix5* | irix6* | nonstopux*)
5441 case $cc_basename in
5442 CC)
5443 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5444 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5445 # CC pic flag -KPIC is the default.
5446 ;;
5447 *)
5448 ;;
5449 esac
5450 ;;
5451 linux*)
5452 case $cc_basename in
5453 KCC)
5454 # KAI C++ Compiler
5455 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5456 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5457 ;;
5458 icpc)
5459 # Intel C++
5460 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5461 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5462 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5463 ;;
5464 cxx)
5465 # Compaq C++
5466 # Make sure the PIC flag is empty. It appears that all Alpha
5467 # Linux and Compaq Tru64 Unix objects are PIC.
5468 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5469 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5470 ;;
5471 *)
5472 ;;
5473 esac
5474 ;;
5475 lynxos*)
5476 ;;
5477 m88k*)
5478 ;;
5479 mvs*)
5480 case $cc_basename in
5481 cxx)
5482 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5483 ;;
5484 *)
5485 ;;
5486 esac
5487 ;;
5488 netbsd*)
5489 ;;
5490 osf3* | osf4* | osf5*)
5491 case $cc_basename in
5492 KCC)
5493 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5494 ;;
5495 RCC)
5496 # Rational C++ 2.4.1
5497 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5498 ;;
5499 cxx)
5500 # Digital/Compaq C++
5501 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5502 # Make sure the PIC flag is empty. It appears that all Alpha
5503 # Linux and Compaq Tru64 Unix objects are PIC.
5504 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5505 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5506 ;;
5507 *)
5508 ;;
5509 esac
5510 ;;
5511 psos*)
5512 ;;
5513 sco*)
5514 case $cc_basename in
5515 CC)
5516 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5517 ;;
5518 *)
5519 ;;
5520 esac
5521 ;;
5522 solaris*)
5523 case $cc_basename in
5524 CC)
5525 # Sun C++ 4.2, 5.x and Centerline C++
5526 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5527 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5528 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5529 ;;
5530 gcx)
5531 # Green Hills C++ Compiler
5532 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5533 ;;
5534 *)
5535 ;;
5536 esac
5537 ;;
5538 sunos4*)
5539 case $cc_basename in
5540 CC)
5541 # Sun C++ 4.x
5542 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5543 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5544 ;;
5545 lcc)
5546 # Lucid
5547 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5548 ;;
5549 *)
5550 ;;
5551 esac
5552 ;;
5553 tandem*)
5554 case $cc_basename in
5555 NCC)
5556 # NonStop-UX NCC 3.20
5557 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5558 ;;
5559 *)
5560 ;;
5561 esac
5562 ;;
5563 unixware*)
5564 ;;
5565 vxworks*)
5566 ;;
5567 *)
5568 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5569 ;;
5570 esac
5571 fi
5572 ],
5573 [
5574 if test "$GCC" = yes; then
5575 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5576 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5577
5578 case $host_os in
5579 aix*)
5580 # All AIX code is PIC.
5581 if test "$host_cpu" = ia64; then
5582 # AIX 5 now supports IA64 processor
5583 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5584 fi
5585 ;;
5586
5587 amigaos*)
5588 # FIXME: we need at least 68020 code to build shared libraries, but
5589 # adding the `-m68020' flag to GCC prevents building anything better,
5590 # like `-m68040'.
5591 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5592 ;;
5593
5594 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5595 # PIC is the default for these OSes.
5596 ;;
5597
5598 mingw* | pw32* | os2*)
5599 # This hack is so that the source file can tell whether it is being
5600 # built for inclusion in a dll (and should export symbols for example).
5601 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5602 ;;
5603
5604 darwin* | rhapsody*)
5605 # PIC is the default on this platform
5606 # Common symbols not allowed in MH_DYLIB files
5607 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5608 ;;
5609
5610 msdosdjgpp*)
5611 # Just because we use GCC doesn't mean we suddenly get shared libraries
5612 # on systems that don't support them.
5613 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5614 enable_shared=no
5615 ;;
5616
5617 sysv4*MP*)
5618 if test -d /usr/nec; then
5619 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5620 fi
5621 ;;
5622
5623 hpux*)
5624 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5625 # not for PA HP-UX.
5626 case "$host_cpu" in
5627 hppa*64*|ia64*)
5628 # +Z the default
5629 ;;
5630 *)
5631 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5632 ;;
5633 esac
5634 ;;
5635
5636 *)
5637 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5638 ;;
5639 esac
5640 else
5641 # PORTME Check for flag to pass linker flags through the system compiler.
5642 case $host_os in
5643 aix*)
5644 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5645 if test "$host_cpu" = ia64; then
5646 # AIX 5 now supports IA64 processor
5647 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5648 else
5649 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5650 fi
5651 ;;
5652
5653 mingw* | pw32* | os2*)
5654 # This hack is so that the source file can tell whether it is being
5655 # built for inclusion in a dll (and should export symbols for example).
5656 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5657 ;;
5658
5659 hpux9* | hpux10* | hpux11*)
5660 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5661 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5662 # not for PA HP-UX.
5663 case "$host_cpu" in
5664 hppa*64*|ia64*)
5665 # +Z the default
5666 ;;
5667 *)
5668 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5669 ;;
5670 esac
5671 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5672 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5673 ;;
5674
5675 irix5* | irix6* | nonstopux*)
5676 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5677 # PIC (with -KPIC) is the default.
5678 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5679 ;;
5680
5681 newsos6)
5682 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5683 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5684 ;;
5685
5686 linux*)
5687 case $CC in
5688 icc|ecc)
5689 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5690 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5691 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5692 ;;
5693 ccc)
5694 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5695 # All Alpha code is PIC.
5696 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5697 ;;
5698 esac
5699 ;;
5700
5701 osf3* | osf4* | osf5*)
5702 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5703 # All OSF/1 code is PIC.
5704 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5705 ;;
5706
5707 sco3.2v5*)
5708 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5709 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5710 ;;
5711
5712 solaris*)
5713 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5714 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5715 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5716 ;;
5717
5718 sunos4*)
5719 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5720 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5721 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5722 ;;
5723
5724 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5725 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5726 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5727 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5728 ;;
5729
5730 sysv4*MP*)
5731 if test -d /usr/nec ;then
5732 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5733 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5734 fi
5735 ;;
5736
5737 uts4*)
5738 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5739 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5740 ;;
5741
5742 *)
5743 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5744 ;;
5745 esac
5746 fi
5747 ])
5748 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5749
5750 #
5751 # Check to make sure the PIC flag actually works.
5752 #
5753 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5754 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5755 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5756 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5757 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5758 "" | " "*) ;;
5759 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5760 esac],
5761 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5762 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5763 fi
5764 case "$host_os" in
5765 # For platforms which do not support PIC, -DPIC is meaningless:
5766 *djgpp*)
5767 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5768 ;;
5769 *)
5770 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5771 ;;
5772 esac
5773 ])
5774
5775