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