1# generated automatically by aclocal 1.10.1 -*- Autoconf -*- 2 3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4# 2005, 2006, 2007, 2008 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 14m4_ifndef([AC_AUTOCONF_VERSION], 15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 16m4_if(AC_AUTOCONF_VERSION, [2.63],, 17[m4_warning([this file was generated for autoconf 2.63. 18You have another version of autoconf. It may work, but is not guaranteed to. 19If you have problems, you may need to regenerate the build system entirely. 20To do so, use the procedure documented by the package, typically `autoreconf'.])]) 21 22# Configure paths for GTK+ 23# Owen Taylor 1997-2001 24 25dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) 26dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES, 27dnl pass to pkg-config 28dnl 29AC_DEFUN([AM_PATH_GTK_2_0], 30[dnl 31dnl Get the cflags and libraries from pkg-config 32dnl 33AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program], 34 , enable_gtktest=yes) 35 36 pkg_config_args=gtk+-2.0 37 for module in . $4 38 do 39 case "$module" in 40 gthread) 41 pkg_config_args="$pkg_config_args gthread-2.0" 42 ;; 43 esac 44 done 45 46 no_gtk="" 47 48 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) 49 50 if test x$PKG_CONFIG != xno ; then 51 if pkg-config --atleast-pkgconfig-version 0.7 ; then 52 : 53 else 54 echo "*** pkg-config too old; version 0.7 or better required." 55 no_gtk=yes 56 PKG_CONFIG=no 57 fi 58 else 59 no_gtk=yes 60 fi 61 62 min_gtk_version=ifelse([$1], ,2.0.0,$1) 63 AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version) 64 65 if test x$PKG_CONFIG != xno ; then 66 ## don't try to run the test against uninstalled libtool libs 67 if $PKG_CONFIG --uninstalled $pkg_config_args; then 68 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" 69 enable_gtktest=no 70 fi 71 72 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then 73 : 74 else 75 no_gtk=yes 76 fi 77 fi 78 79 if test x"$no_gtk" = x ; then 80 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` 81 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` 82 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 83 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` 84 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 85 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` 86 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 87 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` 88 if test "x$enable_gtktest" = "xyes" ; then 89 ac_save_CFLAGS="$CFLAGS" 90 ac_save_LIBS="$LIBS" 91 CFLAGS="$CFLAGS $GTK_CFLAGS" 92 LIBS="$GTK_LIBS $LIBS" 93dnl 94dnl Now check if the installed GTK+ is sufficiently new. (Also sanity 95dnl checks the results of pkg-config to some extent) 96dnl 97 rm -f conf.gtktest 98 AC_TRY_RUN([ 99#include <gtk/gtk.h> 100#include <stdio.h> 101#include <stdlib.h> 102 103int 104main () 105{ 106 int major, minor, micro; 107 char *tmp_version; 108 109 system ("touch conf.gtktest"); 110 111 /* HP/UX 9 (%@#!) writes to sscanf strings */ 112 tmp_version = g_strdup("$min_gtk_version"); 113 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 114 printf("%s, bad version string\n", "$min_gtk_version"); 115 exit(1); 116 } 117 118 if ((gtk_major_version != $gtk_config_major_version) || 119 (gtk_minor_version != $gtk_config_minor_version) || 120 (gtk_micro_version != $gtk_config_micro_version)) 121 { 122 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 123 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 124 gtk_major_version, gtk_minor_version, gtk_micro_version); 125 printf ("*** was found! If pkg-config was correct, then it is best\n"); 126 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 127 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 128 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 129 printf("*** required on your system.\n"); 130 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); 131 printf("*** to point to the correct configuration files\n"); 132 } 133 else if ((gtk_major_version != GTK_MAJOR_VERSION) || 134 (gtk_minor_version != GTK_MINOR_VERSION) || 135 (gtk_micro_version != GTK_MICRO_VERSION)) 136 { 137 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", 138 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); 139 printf("*** library (version %d.%d.%d)\n", 140 gtk_major_version, gtk_minor_version, gtk_micro_version); 141 } 142 else 143 { 144 if ((gtk_major_version > major) || 145 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 146 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 147 { 148 return 0; 149 } 150 else 151 { 152 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", 153 gtk_major_version, gtk_minor_version, gtk_micro_version); 154 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", 155 major, minor, micro); 156 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 157 printf("***\n"); 158 printf("*** If you have already installed a sufficiently new version, this error\n"); 159 printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); 160 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 161 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); 162 printf("*** correct copy of pkg-config. (In this case, you will have to\n"); 163 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 164 printf("*** so that the correct libraries are found at run-time))\n"); 165 } 166 } 167 return 1; 168} 169],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) 170 CFLAGS="$ac_save_CFLAGS" 171 LIBS="$ac_save_LIBS" 172 fi 173 fi 174 if test "x$no_gtk" = x ; then 175 AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)) 176 ifelse([$2], , :, [$2]) 177 else 178 AC_MSG_RESULT(no) 179 if test "$PKG_CONFIG" = "no" ; then 180 echo "*** A new enough version of pkg-config was not found." 181 echo "*** See http://pkgconfig.sourceforge.net" 182 else 183 if test -f conf.gtktest ; then 184 : 185 else 186 echo "*** Could not run GTK+ test program, checking why..." 187 ac_save_CFLAGS="$CFLAGS" 188 ac_save_LIBS="$LIBS" 189 CFLAGS="$CFLAGS $GTK_CFLAGS" 190 LIBS="$LIBS $GTK_LIBS" 191 AC_TRY_LINK([ 192#include <gtk/gtk.h> 193#include <stdio.h> 194], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ], 195 [ echo "*** The test program compiled, but did not run. This usually means" 196 echo "*** that the run-time linker is not finding GTK+ or finding the wrong" 197 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" 198 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 199 echo "*** to the installed location Also, make sure you have run ldconfig if that" 200 echo "*** is required on your system" 201 echo "***" 202 echo "*** If you have an old version installed, it is best to remove it, although" 203 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], 204 [ echo "*** The test program failed to compile or link. See the file config.log for the" 205 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."]) 206 CFLAGS="$ac_save_CFLAGS" 207 LIBS="$ac_save_LIBS" 208 fi 209 fi 210 GTK_CFLAGS="" 211 GTK_LIBS="" 212 ifelse([$3], , :, [$3]) 213 fi 214 AC_SUBST(GTK_CFLAGS) 215 AC_SUBST(GTK_LIBS) 216 rm -f conf.gtktest 217]) 218 219# Configure paths for GTK+ 220# Owen Taylor 97-11-3 221 222dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) 223dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS 224dnl 225AC_DEFUN([AM_PATH_GTK], 226[dnl 227dnl Get the cflags and libraries from the gtk-config script 228dnl 229AC_ARG_WITH(gtk-prefix,[ --with-gtk-prefix=PFX Prefix where GTK is installed (optional)], 230 gtk_config_prefix="$withval", gtk_config_prefix="") 231AC_ARG_WITH(gtk-exec-prefix,[ --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)], 232 gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="") 233AC_ARG_ENABLE(gtktest, [ --disable-gtktest Do not try to compile and run a test GTK program], 234 , enable_gtktest=yes) 235 236 for module in . $4 237 do 238 case "$module" in 239 gthread) 240 gtk_config_args="$gtk_config_args gthread" 241 ;; 242 esac 243 done 244 245 if test x$gtk_config_exec_prefix != x ; then 246 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" 247 if test x${GTK_CONFIG+set} != xset ; then 248 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config 249 fi 250 fi 251 if test x$gtk_config_prefix != x ; then 252 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" 253 if test x${GTK_CONFIG+set} != xset ; then 254 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config 255 fi 256 fi 257 258 AC_PATH_PROG(GTK_CONFIG, gtk-config, no) 259 min_gtk_version=ifelse([$1], ,0.99.7,$1) 260 AC_MSG_CHECKING(for GTK - version >= $min_gtk_version) 261 no_gtk="" 262 if test "$GTK_CONFIG" = "no" ; then 263 no_gtk=yes 264 else 265 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` 266 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` 267 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ 268 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` 269 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ 270 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` 271 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ 272 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` 273 if test "x$enable_gtktest" = "xyes" ; then 274 ac_save_CFLAGS="$CFLAGS" 275 ac_save_LIBS="$LIBS" 276 CFLAGS="$CFLAGS $GTK_CFLAGS" 277 LIBS="$GTK_LIBS $LIBS" 278dnl 279dnl Now check if the installed GTK is sufficiently new. (Also sanity 280dnl checks the results of gtk-config to some extent 281dnl 282 rm -f conf.gtktest 283 AC_TRY_RUN([ 284#include <gtk/gtk.h> 285#include <stdio.h> 286#include <stdlib.h> 287 288int 289main () 290{ 291 int major, minor, micro; 292 char *tmp_version; 293 294 system ("touch conf.gtktest"); 295 296 /* HP/UX 9 (%@#!) writes to sscanf strings */ 297 tmp_version = g_strdup("$min_gtk_version"); 298 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 299 printf("%s, bad version string\n", "$min_gtk_version"); 300 exit(1); 301 } 302 303 if ((gtk_major_version != $gtk_config_major_version) || 304 (gtk_minor_version != $gtk_config_minor_version) || 305 (gtk_micro_version != $gtk_config_micro_version)) 306 { 307 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 308 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 309 gtk_major_version, gtk_minor_version, gtk_micro_version); 310 printf ("*** was found! If gtk-config was correct, then it is best\n"); 311 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 312 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 313 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 314 printf("*** required on your system.\n"); 315 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); 316 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); 317 printf("*** before re-running configure\n"); 318 } 319#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) 320 else if ((gtk_major_version != GTK_MAJOR_VERSION) || 321 (gtk_minor_version != GTK_MINOR_VERSION) || 322 (gtk_micro_version != GTK_MICRO_VERSION)) 323 { 324 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", 325 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); 326 printf("*** library (version %d.%d.%d)\n", 327 gtk_major_version, gtk_minor_version, gtk_micro_version); 328 } 329#endif /* defined (GTK_MAJOR_VERSION) ... */ 330 else 331 { 332 if ((gtk_major_version > major) || 333 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 334 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 335 { 336 return 0; 337 } 338 else 339 { 340 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", 341 gtk_major_version, gtk_minor_version, gtk_micro_version); 342 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", 343 major, minor, micro); 344 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 345 printf("***\n"); 346 printf("*** If you have already installed a sufficiently new version, this error\n"); 347 printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); 348 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 349 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); 350 printf("*** correct copy of gtk-config. (In this case, you will have to\n"); 351 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 352 printf("*** so that the correct libraries are found at run-time))\n"); 353 } 354 } 355 return 1; 356} 357],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) 358 CFLAGS="$ac_save_CFLAGS" 359 LIBS="$ac_save_LIBS" 360 fi 361 fi 362 if test "x$no_gtk" = x ; then 363 AC_MSG_RESULT(yes) 364 ifelse([$2], , :, [$2]) 365 else 366 AC_MSG_RESULT(no) 367 if test "$GTK_CONFIG" = "no" ; then 368 echo "*** The gtk-config script installed by GTK could not be found" 369 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" 370 echo "*** your path, or set the GTK_CONFIG environment variable to the" 371 echo "*** full path to gtk-config." 372 else 373 if test -f conf.gtktest ; then 374 : 375 else 376 echo "*** Could not run GTK test program, checking why..." 377 CFLAGS="$CFLAGS $GTK_CFLAGS" 378 LIBS="$LIBS $GTK_LIBS" 379 AC_TRY_LINK([ 380#include <gtk/gtk.h> 381#include <stdio.h> 382], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ], 383 [ echo "*** The test program compiled, but did not run. This usually means" 384 echo "*** that the run-time linker is not finding GTK or finding the wrong" 385 echo "*** version of GTK. If it is not finding GTK, you'll need to set your" 386 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 387 echo "*** to the installed location Also, make sure you have run ldconfig if that" 388 echo "*** is required on your system" 389 echo "***" 390 echo "*** If you have an old version installed, it is best to remove it, although" 391 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 392 echo "***" 393 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" 394 echo "*** came with the system with the command" 395 echo "***" 396 echo "*** rpm --erase --nodeps gtk gtk-devel" ], 397 [ echo "*** The test program failed to compile or link. See the file config.log for the" 398 echo "*** exact error that occured. This usually means GTK was incorrectly installed" 399 echo "*** or that you have moved GTK since it was installed. In the latter case, you" 400 echo "*** may want to edit the gtk-config script: $GTK_CONFIG" ]) 401 CFLAGS="$ac_save_CFLAGS" 402 LIBS="$ac_save_LIBS" 403 fi 404 fi 405 GTK_CFLAGS="" 406 GTK_LIBS="" 407 ifelse([$3], , :, [$3]) 408 fi 409 AC_SUBST(GTK_CFLAGS) 410 AC_SUBST(GTK_LIBS) 411 rm -f conf.gtktest 412]) 413 414# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 415# 416# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 417# 2006, 2007, 2008 Free Software Foundation, Inc. 418# Written by Gordon Matzigkeit, 1996 419# 420# This file is free software; the Free Software Foundation gives 421# unlimited permission to copy and/or distribute it, with or without 422# modifications, as long as this notice is preserved. 423 424m4_define([_LT_COPYING], [dnl 425# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 426# 2006, 2007, 2008 Free Software Foundation, Inc. 427# Written by Gordon Matzigkeit, 1996 428# 429# This file is part of GNU Libtool. 430# 431# GNU Libtool is free software; you can redistribute it and/or 432# modify it under the terms of the GNU General Public License as 433# published by the Free Software Foundation; either version 2 of 434# the License, or (at your option) any later version. 435# 436# As a special exception to the GNU General Public License, 437# if you distribute this file as part of a program or library that 438# is built using GNU Libtool, you may include this file under the 439# same distribution terms that you use for the rest of that program. 440# 441# GNU Libtool is distributed in the hope that it will be useful, 442# but WITHOUT ANY WARRANTY; without even the implied warranty of 443# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 444# GNU General Public License for more details. 445# 446# You should have received a copy of the GNU General Public License 447# along with GNU Libtool; see the file COPYING. If not, a copy 448# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 449# obtained by writing to the Free Software Foundation, Inc., 450# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 451]) 452 453# serial 56 LT_INIT 454 455 456# LT_PREREQ(VERSION) 457# ------------------ 458# Complain and exit if this libtool version is less that VERSION. 459m4_defun([LT_PREREQ], 460[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 461 [m4_default([$3], 462 [m4_fatal([Libtool version $1 or higher is required], 463 63)])], 464 [$2])]) 465 466 467# _LT_CHECK_BUILDDIR 468# ------------------ 469# Complain if the absolute build directory name contains unusual characters 470m4_defun([_LT_CHECK_BUILDDIR], 471[case `pwd` in 472 *\ * | *\ *) 473 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 474esac 475]) 476 477 478# LT_INIT([OPTIONS]) 479# ------------------ 480AC_DEFUN([LT_INIT], 481[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 482AC_BEFORE([$0], [LT_LANG])dnl 483AC_BEFORE([$0], [LT_OUTPUT])dnl 484AC_BEFORE([$0], [LTDL_INIT])dnl 485m4_require([_LT_CHECK_BUILDDIR])dnl 486 487dnl Autoconf doesn't catch unexpanded LT_ macros by default: 488m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 489m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 490dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 491dnl unless we require an AC_DEFUNed macro: 492AC_REQUIRE([LTOPTIONS_VERSION])dnl 493AC_REQUIRE([LTSUGAR_VERSION])dnl 494AC_REQUIRE([LTVERSION_VERSION])dnl 495AC_REQUIRE([LTOBSOLETE_VERSION])dnl 496m4_require([_LT_PROG_LTMAIN])dnl 497 498dnl Parse OPTIONS 499_LT_SET_OPTIONS([$0], [$1]) 500 501# This can be used to rebuild libtool when needed 502LIBTOOL_DEPS="$ltmain" 503 504# Always use our own libtool. 505LIBTOOL='$(SHELL) $(top_builddir)/libtool' 506AC_SUBST(LIBTOOL)dnl 507 508_LT_SETUP 509 510# Only expand once: 511m4_define([LT_INIT]) 512])# LT_INIT 513 514# Old names: 515AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 516AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 517dnl aclocal-1.4 backwards compatibility: 518dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 519dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 520 521 522# _LT_CC_BASENAME(CC) 523# ------------------- 524# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 525m4_defun([_LT_CC_BASENAME], 526[for cc_temp in $1""; do 527 case $cc_temp in 528 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 529 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 530 \-*) ;; 531 *) break;; 532 esac 533done 534cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 535]) 536 537 538# _LT_FILEUTILS_DEFAULTS 539# ---------------------- 540# It is okay to use these file commands and assume they have been set 541# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. 542m4_defun([_LT_FILEUTILS_DEFAULTS], 543[: ${CP="cp -f"} 544: ${MV="mv -f"} 545: ${RM="rm -f"} 546])# _LT_FILEUTILS_DEFAULTS 547 548 549# _LT_SETUP 550# --------- 551m4_defun([_LT_SETUP], 552[AC_REQUIRE([AC_CANONICAL_HOST])dnl 553AC_REQUIRE([AC_CANONICAL_BUILD])dnl 554_LT_DECL([], [host_alias], [0], [The host system])dnl 555_LT_DECL([], [host], [0])dnl 556_LT_DECL([], [host_os], [0])dnl 557dnl 558_LT_DECL([], [build_alias], [0], [The build system])dnl 559_LT_DECL([], [build], [0])dnl 560_LT_DECL([], [build_os], [0])dnl 561dnl 562AC_REQUIRE([AC_PROG_CC])dnl 563AC_REQUIRE([LT_PATH_LD])dnl 564AC_REQUIRE([LT_PATH_NM])dnl 565dnl 566AC_REQUIRE([AC_PROG_LN_S])dnl 567test -z "$LN_S" && LN_S="ln -s" 568_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 569dnl 570AC_REQUIRE([LT_CMD_MAX_LEN])dnl 571_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 572_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 573dnl 574m4_require([_LT_FILEUTILS_DEFAULTS])dnl 575m4_require([_LT_CHECK_SHELL_FEATURES])dnl 576m4_require([_LT_CMD_RELOAD])dnl 577m4_require([_LT_CHECK_MAGIC_METHOD])dnl 578m4_require([_LT_CMD_OLD_ARCHIVE])dnl 579m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 580 581_LT_CONFIG_LIBTOOL_INIT([ 582# See if we are running on zsh, and set the options which allow our 583# commands through without removal of \ escapes INIT. 584if test -n "\${ZSH_VERSION+set}" ; then 585 setopt NO_GLOB_SUBST 586fi 587]) 588if test -n "${ZSH_VERSION+set}" ; then 589 setopt NO_GLOB_SUBST 590fi 591 592_LT_CHECK_OBJDIR 593 594m4_require([_LT_TAG_COMPILER])dnl 595_LT_PROG_ECHO_BACKSLASH 596 597case $host_os in 598aix3*) 599 # AIX sometimes has problems with the GCC collect2 program. For some 600 # reason, if we set the COLLECT_NAMES environment variable, the problems 601 # vanish in a puff of smoke. 602 if test "X${COLLECT_NAMES+set}" != Xset; then 603 COLLECT_NAMES= 604 export COLLECT_NAMES 605 fi 606 ;; 607esac 608 609# Sed substitution that helps us do robust quoting. It backslashifies 610# metacharacters that are still active within double-quoted strings. 611sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 612 613# Same as above, but do not quote variable references. 614double_quote_subst='s/\([["`\\]]\)/\\\1/g' 615 616# Sed substitution to delay expansion of an escaped shell variable in a 617# double_quote_subst'ed string. 618delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 619 620# Sed substitution to delay expansion of an escaped single quote. 621delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 622 623# Sed substitution to avoid accidental globbing in evaled expressions 624no_glob_subst='s/\*/\\\*/g' 625 626# Global variables: 627ofile=libtool 628can_build_shared=yes 629 630# All known linkers require a `.a' archive for static linking (except MSVC, 631# which needs '.lib'). 632libext=a 633 634with_gnu_ld="$lt_cv_prog_gnu_ld" 635 636old_CC="$CC" 637old_CFLAGS="$CFLAGS" 638 639# Set sane defaults for various variables 640test -z "$CC" && CC=cc 641test -z "$LTCC" && LTCC=$CC 642test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 643test -z "$LD" && LD=ld 644test -z "$ac_objext" && ac_objext=o 645 646_LT_CC_BASENAME([$compiler]) 647 648# Only perform the check for file, if the check method requires it 649test -z "$MAGIC_CMD" && MAGIC_CMD=file 650case $deplibs_check_method in 651file_magic*) 652 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 653 _LT_PATH_MAGIC 654 fi 655 ;; 656esac 657 658# Use C for the default configuration in the libtool script 659LT_SUPPORTED_TAG([CC]) 660_LT_LANG_C_CONFIG 661_LT_LANG_DEFAULT_CONFIG 662_LT_CONFIG_COMMANDS 663])# _LT_SETUP 664 665 666# _LT_PROG_LTMAIN 667# --------------- 668# Note that this code is called both from `configure', and `config.status' 669# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 670# `config.status' has no value for ac_aux_dir unless we are using Automake, 671# so we pass a copy along to make sure it has a sensible value anyway. 672m4_defun([_LT_PROG_LTMAIN], 673[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 674_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 675ltmain="$ac_aux_dir/ltmain.sh" 676])# _LT_PROG_LTMAIN 677 678 679 680# So that we can recreate a full libtool script including additional 681# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 682# in macros and then make a single call at the end using the `libtool' 683# label. 684 685 686# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 687# ---------------------------------------- 688# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 689m4_define([_LT_CONFIG_LIBTOOL_INIT], 690[m4_ifval([$1], 691 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 692 [$1 693])])]) 694 695# Initialize. 696m4_define([_LT_OUTPUT_LIBTOOL_INIT]) 697 698 699# _LT_CONFIG_LIBTOOL([COMMANDS]) 700# ------------------------------ 701# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 702m4_define([_LT_CONFIG_LIBTOOL], 703[m4_ifval([$1], 704 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 705 [$1 706])])]) 707 708# Initialize. 709m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 710 711 712# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 713# ----------------------------------------------------- 714m4_defun([_LT_CONFIG_SAVE_COMMANDS], 715[_LT_CONFIG_LIBTOOL([$1]) 716_LT_CONFIG_LIBTOOL_INIT([$2]) 717]) 718 719 720# _LT_FORMAT_COMMENT([COMMENT]) 721# ----------------------------- 722# Add leading comment marks to the start of each line, and a trailing 723# full-stop to the whole comment if one is not present already. 724m4_define([_LT_FORMAT_COMMENT], 725[m4_ifval([$1], [ 726m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 727 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 728)]) 729 730 731 732 733 734# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 735# ------------------------------------------------------------------- 736# CONFIGNAME is the name given to the value in the libtool script. 737# VARNAME is the (base) name used in the configure script. 738# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 739# VARNAME. Any other value will be used directly. 740m4_define([_LT_DECL], 741[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 742 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 743 [m4_ifval([$1], [$1], [$2])]) 744 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 745 m4_ifval([$4], 746 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 747 lt_dict_add_subkey([lt_decl_dict], [$2], 748 [tagged?], [m4_ifval([$5], [yes], [no])])]) 749]) 750 751 752# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 753# -------------------------------------------------------- 754m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 755 756 757# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 758# ------------------------------------------------ 759m4_define([lt_decl_tag_varnames], 760[_lt_decl_filter([tagged?], [yes], $@)]) 761 762 763# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 764# --------------------------------------------------------- 765m4_define([_lt_decl_filter], 766[m4_case([$#], 767 [0], [m4_fatal([$0: too few arguments: $#])], 768 [1], [m4_fatal([$0: too few arguments: $#: $1])], 769 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 770 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 771 [lt_dict_filter([lt_decl_dict], $@)])[]dnl 772]) 773 774 775# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 776# -------------------------------------------------- 777m4_define([lt_decl_quote_varnames], 778[_lt_decl_filter([value], [1], $@)]) 779 780 781# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 782# --------------------------------------------------- 783m4_define([lt_decl_dquote_varnames], 784[_lt_decl_filter([value], [2], $@)]) 785 786 787# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 788# --------------------------------------------------- 789m4_define([lt_decl_varnames_tagged], 790[m4_assert([$# <= 2])dnl 791_$0(m4_quote(m4_default([$1], [[, ]])), 792 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 793 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 794m4_define([_lt_decl_varnames_tagged], 795[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 796 797 798# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 799# ------------------------------------------------ 800m4_define([lt_decl_all_varnames], 801[_$0(m4_quote(m4_default([$1], [[, ]])), 802 m4_if([$2], [], 803 m4_quote(lt_decl_varnames), 804 m4_quote(m4_shift($@))))[]dnl 805]) 806m4_define([_lt_decl_all_varnames], 807[lt_join($@, lt_decl_varnames_tagged([$1], 808 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 809]) 810 811 812# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 813# ------------------------------------ 814# Quote a variable value, and forward it to `config.status' so that its 815# declaration there will have the same value as in `configure'. VARNAME 816# must have a single quote delimited value for this to work. 817m4_define([_LT_CONFIG_STATUS_DECLARE], 818[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) 819 820 821# _LT_CONFIG_STATUS_DECLARATIONS 822# ------------------------------ 823# We delimit libtool config variables with single quotes, so when 824# we write them to config.status, we have to be sure to quote all 825# embedded single quotes properly. In configure, this macro expands 826# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 827# 828# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' 829m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 830[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 831 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 832 833 834# _LT_LIBTOOL_TAGS 835# ---------------- 836# Output comment and list of tags supported by the script 837m4_defun([_LT_LIBTOOL_TAGS], 838[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 839available_tags="_LT_TAGS"dnl 840]) 841 842 843# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 844# ----------------------------------- 845# Extract the dictionary values for VARNAME (optionally with TAG) and 846# expand to a commented shell variable setting: 847# 848# # Some comment about what VAR is for. 849# visible_name=$lt_internal_name 850m4_define([_LT_LIBTOOL_DECLARE], 851[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 852 [description])))[]dnl 853m4_pushdef([_libtool_name], 854 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 855m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 856 [0], [_libtool_name=[$]$1], 857 [1], [_libtool_name=$lt_[]$1], 858 [2], [_libtool_name=$lt_[]$1], 859 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 860m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 861]) 862 863 864# _LT_LIBTOOL_CONFIG_VARS 865# ----------------------- 866# Produce commented declarations of non-tagged libtool config variables 867# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' 868# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 869# section) are produced by _LT_LIBTOOL_TAG_VARS. 870m4_defun([_LT_LIBTOOL_CONFIG_VARS], 871[m4_foreach([_lt_var], 872 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 873 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 874 875 876# _LT_LIBTOOL_TAG_VARS(TAG) 877# ------------------------- 878m4_define([_LT_LIBTOOL_TAG_VARS], 879[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 880 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 881 882 883# _LT_TAGVAR(VARNAME, [TAGNAME]) 884# ------------------------------ 885m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 886 887 888# _LT_CONFIG_COMMANDS 889# ------------------- 890# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 891# variables for single and double quote escaping we saved from calls 892# to _LT_DECL, we can put quote escaped variables declarations 893# into `config.status', and then the shell code to quote escape them in 894# for loops in `config.status'. Finally, any additional code accumulated 895# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 896m4_defun([_LT_CONFIG_COMMANDS], 897[AC_PROVIDE_IFELSE([LT_OUTPUT], 898 dnl If the libtool generation code has been placed in $CONFIG_LT, 899 dnl instead of duplicating it all over again into config.status, 900 dnl then we will have config.status run $CONFIG_LT later, so it 901 dnl needs to know what name is stored there: 902 [AC_CONFIG_COMMANDS([libtool], 903 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 904 dnl If the libtool generation code is destined for config.status, 905 dnl expand the accumulated commands and init code now: 906 [AC_CONFIG_COMMANDS([libtool], 907 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 908])#_LT_CONFIG_COMMANDS 909 910 911# Initialize. 912m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 913[ 914 915# The HP-UX ksh and POSIX shell print the target directory to stdout 916# if CDPATH is set. 917(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 918 919sed_quote_subst='$sed_quote_subst' 920double_quote_subst='$double_quote_subst' 921delay_variable_subst='$delay_variable_subst' 922_LT_CONFIG_STATUS_DECLARATIONS 923LTCC='$LTCC' 924LTCFLAGS='$LTCFLAGS' 925compiler='$compiler_DEFAULT' 926 927# Quote evaled strings. 928for var in lt_decl_all_varnames([[ \ 929]], lt_decl_quote_varnames); do 930 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 931 *[[\\\\\\\`\\"\\\$]]*) 932 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 933 ;; 934 *) 935 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 936 ;; 937 esac 938done 939 940# Double-quote double-evaled strings. 941for var in lt_decl_all_varnames([[ \ 942]], lt_decl_dquote_varnames); do 943 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 944 *[[\\\\\\\`\\"\\\$]]*) 945 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 946 ;; 947 *) 948 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 949 ;; 950 esac 951done 952 953# Fix-up fallback echo if it was mangled by the above quoting rules. 954case \$lt_ECHO in 955*'\\\[$]0 --fallback-echo"')dnl " 956 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` 957 ;; 958esac 959 960_LT_OUTPUT_LIBTOOL_INIT 961]) 962 963 964# LT_OUTPUT 965# --------- 966# This macro allows early generation of the libtool script (before 967# AC_OUTPUT is called), incase it is used in configure for compilation 968# tests. 969AC_DEFUN([LT_OUTPUT], 970[: ${CONFIG_LT=./config.lt} 971AC_MSG_NOTICE([creating $CONFIG_LT]) 972cat >"$CONFIG_LT" <<_LTEOF 973#! $SHELL 974# Generated by $as_me. 975# Run this file to recreate a libtool stub with the current configuration. 976 977lt_cl_silent=false 978SHELL=\${CONFIG_SHELL-$SHELL} 979_LTEOF 980 981cat >>"$CONFIG_LT" <<\_LTEOF 982AS_SHELL_SANITIZE 983_AS_PREPARE 984 985exec AS_MESSAGE_FD>&1 986exec AS_MESSAGE_LOG_FD>>config.log 987{ 988 echo 989 AS_BOX([Running $as_me.]) 990} >&AS_MESSAGE_LOG_FD 991 992lt_cl_help="\ 993\`$as_me' creates a local libtool stub from the current configuration, 994for use in further configure time tests before the real libtool is 995generated. 996 997Usage: $[0] [[OPTIONS]] 998 999 -h, --help print this help, then exit 1000 -V, --version print version number, then exit 1001 -q, --quiet do not print progress messages 1002 -d, --debug don't remove temporary files 1003 1004Report bugs to <bug-libtool@gnu.org>." 1005 1006lt_cl_version="\ 1007m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 1008m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 1009configured by $[0], generated by m4_PACKAGE_STRING. 1010 1011Copyright (C) 2008 Free Software Foundation, Inc. 1012This config.lt script is free software; the Free Software Foundation 1013gives unlimited permision to copy, distribute and modify it." 1014 1015while test $[#] != 0 1016do 1017 case $[1] in 1018 --version | --v* | -V ) 1019 echo "$lt_cl_version"; exit 0 ;; 1020 --help | --h* | -h ) 1021 echo "$lt_cl_help"; exit 0 ;; 1022 --debug | --d* | -d ) 1023 debug=: ;; 1024 --quiet | --q* | --silent | --s* | -q ) 1025 lt_cl_silent=: ;; 1026 1027 -*) AC_MSG_ERROR([unrecognized option: $[1] 1028Try \`$[0] --help' for more information.]) ;; 1029 1030 *) AC_MSG_ERROR([unrecognized argument: $[1] 1031Try \`$[0] --help' for more information.]) ;; 1032 esac 1033 shift 1034done 1035 1036if $lt_cl_silent; then 1037 exec AS_MESSAGE_FD>/dev/null 1038fi 1039_LTEOF 1040 1041cat >>"$CONFIG_LT" <<_LTEOF 1042_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 1043_LTEOF 1044 1045cat >>"$CONFIG_LT" <<\_LTEOF 1046AC_MSG_NOTICE([creating $ofile]) 1047_LT_OUTPUT_LIBTOOL_COMMANDS 1048AS_EXIT(0) 1049_LTEOF 1050chmod +x "$CONFIG_LT" 1051 1052# configure is writing to config.log, but config.lt does its own redirection, 1053# appending to config.log, which fails on DOS, as config.log is still kept 1054# open by configure. Here we exec the FD to /dev/null, effectively closing 1055# config.log, so it can be properly (re)opened and appended to by config.lt. 1056if test "$no_create" != yes; then 1057 lt_cl_success=: 1058 test "$silent" = yes && 1059 lt_config_lt_args="$lt_config_lt_args --quiet" 1060 exec AS_MESSAGE_LOG_FD>/dev/null 1061 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 1062 exec AS_MESSAGE_LOG_FD>>config.log 1063 $lt_cl_success || AS_EXIT(1) 1064fi 1065])# LT_OUTPUT 1066 1067 1068# _LT_CONFIG(TAG) 1069# --------------- 1070# If TAG is the built-in tag, create an initial libtool script with a 1071# default configuration from the untagged config vars. Otherwise add code 1072# to config.status for appending the configuration named by TAG from the 1073# matching tagged config vars. 1074m4_defun([_LT_CONFIG], 1075[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1076_LT_CONFIG_SAVE_COMMANDS([ 1077 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 1078 m4_if(_LT_TAG, [C], [ 1079 # See if we are running on zsh, and set the options which allow our 1080 # commands through without removal of \ escapes. 1081 if test -n "${ZSH_VERSION+set}" ; then 1082 setopt NO_GLOB_SUBST 1083 fi 1084 1085 cfgfile="${ofile}T" 1086 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 1087 $RM "$cfgfile" 1088 1089 cat <<_LT_EOF >> "$cfgfile" 1090#! $SHELL 1091 1092# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 1093# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 1094# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 1095# NOTE: Changes made to this file will be lost: look at ltmain.sh. 1096# 1097_LT_COPYING 1098_LT_LIBTOOL_TAGS 1099 1100# ### BEGIN LIBTOOL CONFIG 1101_LT_LIBTOOL_CONFIG_VARS 1102_LT_LIBTOOL_TAG_VARS 1103# ### END LIBTOOL CONFIG 1104 1105_LT_EOF 1106 1107 case $host_os in 1108 aix3*) 1109 cat <<\_LT_EOF >> "$cfgfile" 1110# AIX sometimes has problems with the GCC collect2 program. For some 1111# reason, if we set the COLLECT_NAMES environment variable, the problems 1112# vanish in a puff of smoke. 1113if test "X${COLLECT_NAMES+set}" != Xset; then 1114 COLLECT_NAMES= 1115 export COLLECT_NAMES 1116fi 1117_LT_EOF 1118 ;; 1119 esac 1120 1121 _LT_PROG_LTMAIN 1122 1123 # We use sed instead of cat because bash on DJGPP gets confused if 1124 # if finds mixed CR/LF and LF-only lines. Since sed operates in 1125 # text mode, it properly converts lines to CR/LF. This bash problem 1126 # is reportedly fixed, but why not run on old versions too? 1127 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 1128 || (rm -f "$cfgfile"; exit 1) 1129 1130 _LT_PROG_XSI_SHELLFNS 1131 1132 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 1133 || (rm -f "$cfgfile"; exit 1) 1134 1135 mv -f "$cfgfile" "$ofile" || 1136 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 1137 chmod +x "$ofile" 1138], 1139[cat <<_LT_EOF >> "$ofile" 1140 1141dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 1142dnl in a comment (ie after a #). 1143# ### BEGIN LIBTOOL TAG CONFIG: $1 1144_LT_LIBTOOL_TAG_VARS(_LT_TAG) 1145# ### END LIBTOOL TAG CONFIG: $1 1146_LT_EOF 1147])dnl /m4_if 1148], 1149[m4_if([$1], [], [ 1150 PACKAGE='$PACKAGE' 1151 VERSION='$VERSION' 1152 TIMESTAMP='$TIMESTAMP' 1153 RM='$RM' 1154 ofile='$ofile'], []) 1155])dnl /_LT_CONFIG_SAVE_COMMANDS 1156])# _LT_CONFIG 1157 1158 1159# LT_SUPPORTED_TAG(TAG) 1160# --------------------- 1161# Trace this macro to discover what tags are supported by the libtool 1162# --tag option, using: 1163# autoconf --trace 'LT_SUPPORTED_TAG:$1' 1164AC_DEFUN([LT_SUPPORTED_TAG], []) 1165 1166 1167# C support is built-in for now 1168m4_define([_LT_LANG_C_enabled], []) 1169m4_define([_LT_TAGS], []) 1170 1171 1172# LT_LANG(LANG) 1173# ------------- 1174# Enable libtool support for the given language if not already enabled. 1175AC_DEFUN([LT_LANG], 1176[AC_BEFORE([$0], [LT_OUTPUT])dnl 1177m4_case([$1], 1178 [C], [_LT_LANG(C)], 1179 [C++], [_LT_LANG(CXX)], 1180 [Java], [_LT_LANG(GCJ)], 1181 [Fortran 77], [_LT_LANG(F77)], 1182 [Fortran], [_LT_LANG(FC)], 1183 [Windows Resource], [_LT_LANG(RC)], 1184 [m4_ifdef([_LT_LANG_]$1[_CONFIG], 1185 [_LT_LANG($1)], 1186 [m4_fatal([$0: unsupported language: "$1"])])])dnl 1187])# LT_LANG 1188 1189 1190# _LT_LANG(LANGNAME) 1191# ------------------ 1192m4_defun([_LT_LANG], 1193[m4_ifdef([_LT_LANG_]$1[_enabled], [], 1194 [LT_SUPPORTED_TAG([$1])dnl 1195 m4_append([_LT_TAGS], [$1 ])dnl 1196 m4_define([_LT_LANG_]$1[_enabled], [])dnl 1197 _LT_LANG_$1_CONFIG($1)])dnl 1198])# _LT_LANG 1199 1200 1201# _LT_LANG_DEFAULT_CONFIG 1202# ----------------------- 1203m4_defun([_LT_LANG_DEFAULT_CONFIG], 1204[AC_PROVIDE_IFELSE([AC_PROG_CXX], 1205 [LT_LANG(CXX)], 1206 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 1207 1208AC_PROVIDE_IFELSE([AC_PROG_F77], 1209 [LT_LANG(F77)], 1210 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 1211 1212AC_PROVIDE_IFELSE([AC_PROG_FC], 1213 [LT_LANG(FC)], 1214 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 1215 1216dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 1217dnl pulling things in needlessly. 1218AC_PROVIDE_IFELSE([AC_PROG_GCJ], 1219 [LT_LANG(GCJ)], 1220 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 1221 [LT_LANG(GCJ)], 1222 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 1223 [LT_LANG(GCJ)], 1224 [m4_ifdef([AC_PROG_GCJ], 1225 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 1226 m4_ifdef([A][M_PROG_GCJ], 1227 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 1228 m4_ifdef([LT_PROG_GCJ], 1229 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 1230 1231AC_PROVIDE_IFELSE([LT_PROG_RC], 1232 [LT_LANG(RC)], 1233 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 1234])# _LT_LANG_DEFAULT_CONFIG 1235 1236# Obsolete macros: 1237AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 1238AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 1239AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 1240AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 1241dnl aclocal-1.4 backwards compatibility: 1242dnl AC_DEFUN([AC_LIBTOOL_CXX], []) 1243dnl AC_DEFUN([AC_LIBTOOL_F77], []) 1244dnl AC_DEFUN([AC_LIBTOOL_FC], []) 1245dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 1246 1247 1248# _LT_TAG_COMPILER 1249# ---------------- 1250m4_defun([_LT_TAG_COMPILER], 1251[AC_REQUIRE([AC_PROG_CC])dnl 1252 1253_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 1254_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 1255_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 1256_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 1257 1258# If no C compiler was specified, use CC. 1259LTCC=${LTCC-"$CC"} 1260 1261# If no C compiler flags were specified, use CFLAGS. 1262LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 1263 1264# Allow CC to be a program name with arguments. 1265compiler=$CC 1266])# _LT_TAG_COMPILER 1267 1268 1269# _LT_COMPILER_BOILERPLATE 1270# ------------------------ 1271# Check for compiler boilerplate output or warnings with 1272# the simple compiler test code. 1273m4_defun([_LT_COMPILER_BOILERPLATE], 1274[m4_require([_LT_DECL_SED])dnl 1275ac_outfile=conftest.$ac_objext 1276echo "$lt_simple_compile_test_code" >conftest.$ac_ext 1277eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1278_lt_compiler_boilerplate=`cat conftest.err` 1279$RM conftest* 1280])# _LT_COMPILER_BOILERPLATE 1281 1282 1283# _LT_LINKER_BOILERPLATE 1284# ---------------------- 1285# Check for linker boilerplate output or warnings with 1286# the simple link test code. 1287m4_defun([_LT_LINKER_BOILERPLATE], 1288[m4_require([_LT_DECL_SED])dnl 1289ac_outfile=conftest.$ac_objext 1290echo "$lt_simple_link_test_code" >conftest.$ac_ext 1291eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1292_lt_linker_boilerplate=`cat conftest.err` 1293$RM -r conftest* 1294])# _LT_LINKER_BOILERPLATE 1295 1296# _LT_REQUIRED_DARWIN_CHECKS 1297# ------------------------- 1298m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 1299 case $host_os in 1300 rhapsody* | darwin*) 1301 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 1302 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 1303 AC_CHECK_TOOL([LIPO], [lipo], [:]) 1304 AC_CHECK_TOOL([OTOOL], [otool], [:]) 1305 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 1306 _LT_DECL([], [DSYMUTIL], [1], 1307 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 1308 _LT_DECL([], [NMEDIT], [1], 1309 [Tool to change global to local symbols on Mac OS X]) 1310 _LT_DECL([], [LIPO], [1], 1311 [Tool to manipulate fat objects and archives on Mac OS X]) 1312 _LT_DECL([], [OTOOL], [1], 1313 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 1314 _LT_DECL([], [OTOOL64], [1], 1315 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 1316 1317 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 1318 [lt_cv_apple_cc_single_mod=no 1319 if test -z "${LT_MULTI_MODULE}"; then 1320 # By default we will add the -single_module flag. You can override 1321 # by either setting the environment variable LT_MULTI_MODULE 1322 # non-empty at configure time, or by adding -multi_module to the 1323 # link flags. 1324 rm -rf libconftest.dylib* 1325 echo "int foo(void){return 1;}" > conftest.c 1326 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 1327-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 1328 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 1329 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 1330 _lt_result=$? 1331 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 1332 lt_cv_apple_cc_single_mod=yes 1333 else 1334 cat conftest.err >&AS_MESSAGE_LOG_FD 1335 fi 1336 rm -rf libconftest.dylib* 1337 rm -f conftest.* 1338 fi]) 1339 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 1340 [lt_cv_ld_exported_symbols_list], 1341 [lt_cv_ld_exported_symbols_list=no 1342 save_LDFLAGS=$LDFLAGS 1343 echo "_main" > conftest.sym 1344 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 1345 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 1346 [lt_cv_ld_exported_symbols_list=yes], 1347 [lt_cv_ld_exported_symbols_list=no]) 1348 LDFLAGS="$save_LDFLAGS" 1349 ]) 1350 case $host_os in 1351 rhapsody* | darwin1.[[012]]) 1352 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 1353 darwin1.*) 1354 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 1355 darwin*) # darwin 5.x on 1356 # if running on 10.5 or later, the deployment target defaults 1357 # to the OS version, if on x86, and 10.4, the deployment 1358 # target defaults to 10.4. Don't you love it? 1359 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 1360 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 1361 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 1362 10.[[012]]*) 1363 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 1364 10.*) 1365 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 1366 esac 1367 ;; 1368 esac 1369 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 1370 _lt_dar_single_mod='$single_module' 1371 fi 1372 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 1373 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 1374 else 1375 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 1376 fi 1377 if test "$DSYMUTIL" != ":"; then 1378 _lt_dsymutil='~$DSYMUTIL $lib || :' 1379 else 1380 _lt_dsymutil= 1381 fi 1382 ;; 1383 esac 1384]) 1385 1386 1387# _LT_DARWIN_LINKER_FEATURES 1388# -------------------------- 1389# Checks for linker and compiler features on darwin 1390m4_defun([_LT_DARWIN_LINKER_FEATURES], 1391[ 1392 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 1393 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 1394 _LT_TAGVAR(hardcode_direct, $1)=no 1395 _LT_TAGVAR(hardcode_automatic, $1)=yes 1396 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 1397 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 1398 _LT_TAGVAR(link_all_deplibs, $1)=yes 1399 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 1400 case $cc_basename in 1401 ifort*) _lt_dar_can_shared=yes ;; 1402 *) _lt_dar_can_shared=$GCC ;; 1403 esac 1404 if test "$_lt_dar_can_shared" = "yes"; then 1405 output_verbose_link_cmd=echo 1406 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 1407 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 1408 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 1409 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 1410 m4_if([$1], [CXX], 1411[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then 1412 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 1413 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 1414 fi 1415],[]) 1416 else 1417 _LT_TAGVAR(ld_shlibs, $1)=no 1418 fi 1419]) 1420 1421# _LT_SYS_MODULE_PATH_AIX 1422# ----------------------- 1423# Links a minimal program and checks the executable 1424# for the system default hardcoded library path. In most cases, 1425# this is /usr/lib:/lib, but when the MPI compilers are used 1426# the location of the communication and MPI libs are included too. 1427# If we don't find anything, use the default library path according 1428# to the aix ld manual. 1429m4_defun([_LT_SYS_MODULE_PATH_AIX], 1430[m4_require([_LT_DECL_SED])dnl 1431AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 1432lt_aix_libpath_sed=' 1433 /Import File Strings/,/^$/ { 1434 /^0/ { 1435 s/^0 *\(.*\)$/\1/ 1436 p 1437 } 1438 }' 1439aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1440# Check for a 64-bit object if we didn't find anything. 1441if test -z "$aix_libpath"; then 1442 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1443fi],[]) 1444if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 1445])# _LT_SYS_MODULE_PATH_AIX 1446 1447 1448# _LT_SHELL_INIT(ARG) 1449# ------------------- 1450m4_define([_LT_SHELL_INIT], 1451[ifdef([AC_DIVERSION_NOTICE], 1452 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 1453 [AC_DIVERT_PUSH(NOTICE)]) 1454$1 1455AC_DIVERT_POP 1456])# _LT_SHELL_INIT 1457 1458 1459# _LT_PROG_ECHO_BACKSLASH 1460# ----------------------- 1461# Add some code to the start of the generated configure script which 1462# will find an echo command which doesn't interpret backslashes. 1463m4_defun([_LT_PROG_ECHO_BACKSLASH], 1464[_LT_SHELL_INIT([ 1465# Check that we are running under the correct shell. 1466SHELL=${CONFIG_SHELL-/bin/sh} 1467 1468case X$lt_ECHO in 1469X*--fallback-echo) 1470 # Remove one level of quotation (which was required for Make). 1471 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 1472 ;; 1473esac 1474 1475ECHO=${lt_ECHO-echo} 1476if test "X[$]1" = X--no-reexec; then 1477 # Discard the --no-reexec flag, and continue. 1478 shift 1479elif test "X[$]1" = X--fallback-echo; then 1480 # Avoid inline document here, it may be left over 1481 : 1482elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 1483 # Yippee, $ECHO works! 1484 : 1485else 1486 # Restart under the correct shell. 1487 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 1488fi 1489 1490if test "X[$]1" = X--fallback-echo; then 1491 # used as fallback echo 1492 shift 1493 cat <<_LT_EOF 1494[$]* 1495_LT_EOF 1496 exit 0 1497fi 1498 1499# The HP-UX ksh and POSIX shell print the target directory to stdout 1500# if CDPATH is set. 1501(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1502 1503if test -z "$lt_ECHO"; then 1504 if test "X${echo_test_string+set}" != Xset; then 1505 # find a string as large as possible, as long as the shell can cope with it 1506 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 1507 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 1508 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 1509 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 1510 then 1511 break 1512 fi 1513 done 1514 fi 1515 1516 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 1517 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 1518 test "X$echo_testing_string" = "X$echo_test_string"; then 1519 : 1520 else 1521 # The Solaris, AIX, and Digital Unix default echo programs unquote 1522 # backslashes. This makes it impossible to quote backslashes using 1523 # echo "$something" | sed 's/\\/\\\\/g' 1524 # 1525 # So, first we look for a working echo in the user's PATH. 1526 1527 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 1528 for dir in $PATH /usr/ucb; do 1529 IFS="$lt_save_ifs" 1530 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 1531 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 1532 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 1533 test "X$echo_testing_string" = "X$echo_test_string"; then 1534 ECHO="$dir/echo" 1535 break 1536 fi 1537 done 1538 IFS="$lt_save_ifs" 1539 1540 if test "X$ECHO" = Xecho; then 1541 # We didn't find a better echo, so look for alternatives. 1542 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 1543 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 1544 test "X$echo_testing_string" = "X$echo_test_string"; then 1545 # This shell has a builtin print -r that does the trick. 1546 ECHO='print -r' 1547 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 1548 test "X$CONFIG_SHELL" != X/bin/ksh; then 1549 # If we have ksh, try running configure again with it. 1550 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 1551 export ORIGINAL_CONFIG_SHELL 1552 CONFIG_SHELL=/bin/ksh 1553 export CONFIG_SHELL 1554 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 1555 else 1556 # Try using printf. 1557 ECHO='printf %s\n' 1558 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 1559 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 1560 test "X$echo_testing_string" = "X$echo_test_string"; then 1561 # Cool, printf works 1562 : 1563 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1564 test "X$echo_testing_string" = 'X\t' && 1565 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1566 test "X$echo_testing_string" = "X$echo_test_string"; then 1567 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 1568 export CONFIG_SHELL 1569 SHELL="$CONFIG_SHELL" 1570 export SHELL 1571 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 1572 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1573 test "X$echo_testing_string" = 'X\t' && 1574 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1575 test "X$echo_testing_string" = "X$echo_test_string"; then 1576 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 1577 else 1578 # maybe with a smaller string... 1579 prev=: 1580 1581 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 1582 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 1583 then 1584 break 1585 fi 1586 prev="$cmd" 1587 done 1588 1589 if test "$prev" != 'sed 50q "[$]0"'; then 1590 echo_test_string=`eval $prev` 1591 export echo_test_string 1592 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 1593 else 1594 # Oops. We lost completely, so just stick with echo. 1595 ECHO=echo 1596 fi 1597 fi 1598 fi 1599 fi 1600 fi 1601fi 1602 1603# Copy echo and quote the copy suitably for passing to libtool from 1604# the Makefile, instead of quoting the original, which is used later. 1605lt_ECHO=$ECHO 1606if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 1607 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 1608fi 1609 1610AC_SUBST(lt_ECHO) 1611]) 1612_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 1613_LT_DECL([], [ECHO], [1], 1614 [An echo program that does not interpret backslashes]) 1615])# _LT_PROG_ECHO_BACKSLASH 1616 1617 1618# _LT_ENABLE_LOCK 1619# --------------- 1620m4_defun([_LT_ENABLE_LOCK], 1621[AC_ARG_ENABLE([libtool-lock], 1622 [AS_HELP_STRING([--disable-libtool-lock], 1623 [avoid locking (might break parallel builds)])]) 1624test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 1625 1626# Some flags need to be propagated to the compiler or linker for good 1627# libtool support. 1628case $host in 1629ia64-*-hpux*) 1630 # Find out which ABI we are using. 1631 echo 'int i;' > conftest.$ac_ext 1632 if AC_TRY_EVAL(ac_compile); then 1633 case `/usr/bin/file conftest.$ac_objext` in 1634 *ELF-32*) 1635 HPUX_IA64_MODE="32" 1636 ;; 1637 *ELF-64*) 1638 HPUX_IA64_MODE="64" 1639 ;; 1640 esac 1641 fi 1642 rm -rf conftest* 1643 ;; 1644*-*-irix6*) 1645 # Find out which ABI we are using. 1646 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 1647 if AC_TRY_EVAL(ac_compile); then 1648 if test "$lt_cv_prog_gnu_ld" = yes; then 1649 case `/usr/bin/file conftest.$ac_objext` in 1650 *32-bit*) 1651 LD="${LD-ld} -melf32bsmip" 1652 ;; 1653 *N32*) 1654 LD="${LD-ld} -melf32bmipn32" 1655 ;; 1656 *64-bit*) 1657 LD="${LD-ld} -melf64bmip" 1658 ;; 1659 esac 1660 else 1661 case `/usr/bin/file conftest.$ac_objext` in 1662 *32-bit*) 1663 LD="${LD-ld} -32" 1664 ;; 1665 *N32*) 1666 LD="${LD-ld} -n32" 1667 ;; 1668 *64-bit*) 1669 LD="${LD-ld} -64" 1670 ;; 1671 esac 1672 fi 1673 fi 1674 rm -rf conftest* 1675 ;; 1676 1677x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 1678s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 1679 # Find out which ABI we are using. 1680 echo 'int i;' > conftest.$ac_ext 1681 if AC_TRY_EVAL(ac_compile); then 1682 case `/usr/bin/file conftest.o` in 1683 *32-bit*) 1684 case $host in 1685 x86_64-*kfreebsd*-gnu) 1686 LD="${LD-ld} -m elf_i386_fbsd" 1687 ;; 1688 x86_64-*linux*) 1689 LD="${LD-ld} -m elf_i386" 1690 ;; 1691 ppc64-*linux*|powerpc64-*linux*) 1692 LD="${LD-ld} -m elf32ppclinux" 1693 ;; 1694 s390x-*linux*) 1695 LD="${LD-ld} -m elf_s390" 1696 ;; 1697 sparc64-*linux*) 1698 LD="${LD-ld} -m elf32_sparc" 1699 ;; 1700 esac 1701 ;; 1702 *64-bit*) 1703 case $host in 1704 x86_64-*kfreebsd*-gnu) 1705 LD="${LD-ld} -m elf_x86_64_fbsd" 1706 ;; 1707 x86_64-*linux*) 1708 LD="${LD-ld} -m elf_x86_64" 1709 ;; 1710 ppc*-*linux*|powerpc*-*linux*) 1711 LD="${LD-ld} -m elf64ppc" 1712 ;; 1713 s390*-*linux*|s390*-*tpf*) 1714 LD="${LD-ld} -m elf64_s390" 1715 ;; 1716 sparc*-*linux*) 1717 LD="${LD-ld} -m elf64_sparc" 1718 ;; 1719 esac 1720 ;; 1721 esac 1722 fi 1723 rm -rf conftest* 1724 ;; 1725 1726*-*-sco3.2v5*) 1727 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1728 SAVE_CFLAGS="$CFLAGS" 1729 CFLAGS="$CFLAGS -belf" 1730 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 1731 [AC_LANG_PUSH(C) 1732 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 1733 AC_LANG_POP]) 1734 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 1735 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 1736 CFLAGS="$SAVE_CFLAGS" 1737 fi 1738 ;; 1739sparc*-*solaris*) 1740 # Find out which ABI we are using. 1741 echo 'int i;' > conftest.$ac_ext 1742 if AC_TRY_EVAL(ac_compile); then 1743 case `/usr/bin/file conftest.o` in 1744 *64-bit*) 1745 case $lt_cv_prog_gnu_ld in 1746 yes*) LD="${LD-ld} -m elf64_sparc" ;; 1747 *) 1748 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 1749 LD="${LD-ld} -64" 1750 fi 1751 ;; 1752 esac 1753 ;; 1754 esac 1755 fi 1756 rm -rf conftest* 1757 ;; 1758esac 1759 1760need_locks="$enable_libtool_lock" 1761])# _LT_ENABLE_LOCK 1762 1763 1764# _LT_CMD_OLD_ARCHIVE 1765# ------------------- 1766m4_defun([_LT_CMD_OLD_ARCHIVE], 1767[AC_CHECK_TOOL(AR, ar, false) 1768test -z "$AR" && AR=ar 1769test -z "$AR_FLAGS" && AR_FLAGS=cru 1770_LT_DECL([], [AR], [1], [The archiver]) 1771_LT_DECL([], [AR_FLAGS], [1]) 1772 1773AC_CHECK_TOOL(STRIP, strip, :) 1774test -z "$STRIP" && STRIP=: 1775_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 1776 1777AC_CHECK_TOOL(RANLIB, ranlib, :) 1778test -z "$RANLIB" && RANLIB=: 1779_LT_DECL([], [RANLIB], [1], 1780 [Commands used to install an old-style archive]) 1781 1782# Determine commands to create old-style static archives. 1783old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 1784old_postinstall_cmds='chmod 644 $oldlib' 1785old_postuninstall_cmds= 1786 1787if test -n "$RANLIB"; then 1788 case $host_os in 1789 openbsd*) 1790 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 1791 ;; 1792 *) 1793 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 1794 ;; 1795 esac 1796 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 1797fi 1798_LT_DECL([], [old_postinstall_cmds], [2]) 1799_LT_DECL([], [old_postuninstall_cmds], [2]) 1800_LT_TAGDECL([], [old_archive_cmds], [2], 1801 [Commands used to build an old-style archive]) 1802])# _LT_CMD_OLD_ARCHIVE 1803 1804 1805# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1806# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 1807# ---------------------------------------------------------------- 1808# Check whether the given compiler option works 1809AC_DEFUN([_LT_COMPILER_OPTION], 1810[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1811m4_require([_LT_DECL_SED])dnl 1812AC_CACHE_CHECK([$1], [$2], 1813 [$2=no 1814 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 1815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 1816 lt_compiler_flag="$3" 1817 # Insert the option either (1) after the last *FLAGS variable, or 1818 # (2) before a word containing "conftest.", or (3) at the end. 1819 # Note that $ac_compile itself does not contain backslashes and begins 1820 # with a dollar sign (not a hyphen), so the echo should work correctly. 1821 # The option is referenced via a variable to avoid confusing sed. 1822 lt_compile=`echo "$ac_compile" | $SED \ 1823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 1824 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1825 -e 's:$: $lt_compiler_flag:'` 1826 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1827 (eval "$lt_compile" 2>conftest.err) 1828 ac_status=$? 1829 cat conftest.err >&AS_MESSAGE_LOG_FD 1830 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1831 if (exit $ac_status) && test -s "$ac_outfile"; then 1832 # The compiler can only warn and ignore the option if not recognized 1833 # So say no if there are warnings other than the usual output. 1834 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 1835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1836 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 1837 $2=yes 1838 fi 1839 fi 1840 $RM conftest* 1841]) 1842 1843if test x"[$]$2" = xyes; then 1844 m4_if([$5], , :, [$5]) 1845else 1846 m4_if([$6], , :, [$6]) 1847fi 1848])# _LT_COMPILER_OPTION 1849 1850# Old name: 1851AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 1852dnl aclocal-1.4 backwards compatibility: 1853dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 1854 1855 1856# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1857# [ACTION-SUCCESS], [ACTION-FAILURE]) 1858# ---------------------------------------------------- 1859# Check whether the given linker option works 1860AC_DEFUN([_LT_LINKER_OPTION], 1861[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1862m4_require([_LT_DECL_SED])dnl 1863AC_CACHE_CHECK([$1], [$2], 1864 [$2=no 1865 save_LDFLAGS="$LDFLAGS" 1866 LDFLAGS="$LDFLAGS $3" 1867 echo "$lt_simple_link_test_code" > conftest.$ac_ext 1868 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 1869 # The linker can only warn and ignore the option if not recognized 1870 # So say no if there are warnings 1871 if test -s conftest.err; then 1872 # Append any errors to the config.log. 1873 cat conftest.err 1>&AS_MESSAGE_LOG_FD 1874 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 1875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1876 if diff conftest.exp conftest.er2 >/dev/null; then 1877 $2=yes 1878 fi 1879 else 1880 $2=yes 1881 fi 1882 fi 1883 $RM -r conftest* 1884 LDFLAGS="$save_LDFLAGS" 1885]) 1886 1887if test x"[$]$2" = xyes; then 1888 m4_if([$4], , :, [$4]) 1889else 1890 m4_if([$5], , :, [$5]) 1891fi 1892])# _LT_LINKER_OPTION 1893 1894# Old name: 1895AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 1896dnl aclocal-1.4 backwards compatibility: 1897dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 1898 1899 1900# LT_CMD_MAX_LEN 1901#--------------- 1902AC_DEFUN([LT_CMD_MAX_LEN], 1903[AC_REQUIRE([AC_CANONICAL_HOST])dnl 1904# find the maximum length of command line arguments 1905AC_MSG_CHECKING([the maximum length of command line arguments]) 1906AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 1907 i=0 1908 teststring="ABCD" 1909 1910 case $build_os in 1911 msdosdjgpp*) 1912 # On DJGPP, this test can blow up pretty badly due to problems in libc 1913 # (any single argument exceeding 2000 bytes causes a buffer overrun 1914 # during glob expansion). Even if it were fixed, the result of this 1915 # check would be larger than it should be. 1916 lt_cv_sys_max_cmd_len=12288; # 12K is about right 1917 ;; 1918 1919 gnu*) 1920 # Under GNU Hurd, this test is not required because there is 1921 # no limit to the length of command line arguments. 1922 # Libtool will interpret -1 as no limit whatsoever 1923 lt_cv_sys_max_cmd_len=-1; 1924 ;; 1925 1926 cygwin* | mingw* | cegcc*) 1927 # On Win9x/ME, this test blows up -- it succeeds, but takes 1928 # about 5 minutes as the teststring grows exponentially. 1929 # Worse, since 9x/ME are not pre-emptively multitasking, 1930 # you end up with a "frozen" computer, even though with patience 1931 # the test eventually succeeds (with a max line length of 256k). 1932 # Instead, let's just punt: use the minimum linelength reported by 1933 # all of the supported platforms: 8192 (on NT/2K/XP). 1934 lt_cv_sys_max_cmd_len=8192; 1935 ;; 1936 1937 amigaos*) 1938 # On AmigaOS with pdksh, this test takes hours, literally. 1939 # So we just punt and use a minimum line length of 8192. 1940 lt_cv_sys_max_cmd_len=8192; 1941 ;; 1942 1943 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 1944 # This has been around since 386BSD, at least. Likely further. 1945 if test -x /sbin/sysctl; then 1946 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 1947 elif test -x /usr/sbin/sysctl; then 1948 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 1949 else 1950 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 1951 fi 1952 # And add a safety zone 1953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1954 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 1955 ;; 1956 1957 interix*) 1958 # We know the value 262144 and hardcode it with a safety zone (like BSD) 1959 lt_cv_sys_max_cmd_len=196608 1960 ;; 1961 1962 osf*) 1963 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 1964 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 1965 # nice to cause kernel panics so lets avoid the loop below. 1966 # First set a reasonable default. 1967 lt_cv_sys_max_cmd_len=16384 1968 # 1969 if test -x /sbin/sysconfig; then 1970 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 1971 *1*) lt_cv_sys_max_cmd_len=-1 ;; 1972 esac 1973 fi 1974 ;; 1975 sco3.2v5*) 1976 lt_cv_sys_max_cmd_len=102400 1977 ;; 1978 sysv5* | sco5v6* | sysv4.2uw2*) 1979 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 1980 if test -n "$kargmax"; then 1981 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 1982 else 1983 lt_cv_sys_max_cmd_len=32768 1984 fi 1985 ;; 1986 *) 1987 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 1988 if test -n "$lt_cv_sys_max_cmd_len"; then 1989 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1990 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 1991 else 1992 # Make teststring a little bigger before we do anything with it. 1993 # a 1K string should be a reasonable start. 1994 for i in 1 2 3 4 5 6 7 8 ; do 1995 teststring=$teststring$teststring 1996 done 1997 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 1998 # If test is not a shell built-in, we'll probably end up computing a 1999 # maximum length that is only half of the actual maximum length, but 2000 # we can't tell. 2001 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 2002 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 2003 test $i != 17 # 1/2 MB should be enough 2004 do 2005 i=`expr $i + 1` 2006 teststring=$teststring$teststring 2007 done 2008 # Only check the string length outside the loop. 2009 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 2010 teststring= 2011 # Add a significant safety factor because C++ compilers can tack on 2012 # massive amounts of additional arguments before passing them to the 2013 # linker. It appears as though 1/2 is a usable value. 2014 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 2015 fi 2016 ;; 2017 esac 2018]) 2019if test -n $lt_cv_sys_max_cmd_len ; then 2020 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 2021else 2022 AC_MSG_RESULT(none) 2023fi 2024max_cmd_len=$lt_cv_sys_max_cmd_len 2025_LT_DECL([], [max_cmd_len], [0], 2026 [What is the maximum length of a command?]) 2027])# LT_CMD_MAX_LEN 2028 2029# Old name: 2030AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 2031dnl aclocal-1.4 backwards compatibility: 2032dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 2033 2034 2035# _LT_HEADER_DLFCN 2036# ---------------- 2037m4_defun([_LT_HEADER_DLFCN], 2038[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 2039])# _LT_HEADER_DLFCN 2040 2041 2042# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 2043# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 2044# ---------------------------------------------------------------- 2045m4_defun([_LT_TRY_DLOPEN_SELF], 2046[m4_require([_LT_HEADER_DLFCN])dnl 2047if test "$cross_compiling" = yes; then : 2048 [$4] 2049else 2050 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 2051 lt_status=$lt_dlunknown 2052 cat > conftest.$ac_ext <<_LT_EOF 2053[#line __oline__ "configure" 2054#include "confdefs.h" 2055 2056#if HAVE_DLFCN_H 2057#include <dlfcn.h> 2058#endif 2059 2060#include <stdio.h> 2061 2062#ifdef RTLD_GLOBAL 2063# define LT_DLGLOBAL RTLD_GLOBAL 2064#else 2065# ifdef DL_GLOBAL 2066# define LT_DLGLOBAL DL_GLOBAL 2067# else 2068# define LT_DLGLOBAL 0 2069# endif 2070#endif 2071 2072/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 2073 find out it does not work in some platform. */ 2074#ifndef LT_DLLAZY_OR_NOW 2075# ifdef RTLD_LAZY 2076# define LT_DLLAZY_OR_NOW RTLD_LAZY 2077# else 2078# ifdef DL_LAZY 2079# define LT_DLLAZY_OR_NOW DL_LAZY 2080# else 2081# ifdef RTLD_NOW 2082# define LT_DLLAZY_OR_NOW RTLD_NOW 2083# else 2084# ifdef DL_NOW 2085# define LT_DLLAZY_OR_NOW DL_NOW 2086# else 2087# define LT_DLLAZY_OR_NOW 0 2088# endif 2089# endif 2090# endif 2091# endif 2092#endif 2093 2094void fnord() { int i=42;} 2095int main () 2096{ 2097 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 2098 int status = $lt_dlunknown; 2099 2100 if (self) 2101 { 2102 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 2103 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 2104 /* dlclose (self); */ 2105 } 2106 else 2107 puts (dlerror ()); 2108 2109 return status; 2110}] 2111_LT_EOF 2112 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 2113 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 2114 lt_status=$? 2115 case x$lt_status in 2116 x$lt_dlno_uscore) $1 ;; 2117 x$lt_dlneed_uscore) $2 ;; 2118 x$lt_dlunknown|x*) $3 ;; 2119 esac 2120 else : 2121 # compilation failed 2122 $3 2123 fi 2124fi 2125rm -fr conftest* 2126])# _LT_TRY_DLOPEN_SELF 2127 2128 2129# LT_SYS_DLOPEN_SELF 2130# ------------------ 2131AC_DEFUN([LT_SYS_DLOPEN_SELF], 2132[m4_require([_LT_HEADER_DLFCN])dnl 2133if test "x$enable_dlopen" != xyes; then 2134 enable_dlopen=unknown 2135 enable_dlopen_self=unknown 2136 enable_dlopen_self_static=unknown 2137else 2138 lt_cv_dlopen=no 2139 lt_cv_dlopen_libs= 2140 2141 case $host_os in 2142 beos*) 2143 lt_cv_dlopen="load_add_on" 2144 lt_cv_dlopen_libs= 2145 lt_cv_dlopen_self=yes 2146 ;; 2147 2148 mingw* | pw32* | cegcc*) 2149 lt_cv_dlopen="LoadLibrary" 2150 lt_cv_dlopen_libs= 2151 ;; 2152 2153 cygwin*) 2154 lt_cv_dlopen="dlopen" 2155 lt_cv_dlopen_libs= 2156 ;; 2157 2158 darwin*) 2159 # if libdl is installed we need to link against it 2160 AC_CHECK_LIB([dl], [dlopen], 2161 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 2162 lt_cv_dlopen="dyld" 2163 lt_cv_dlopen_libs= 2164 lt_cv_dlopen_self=yes 2165 ]) 2166 ;; 2167 2168 *) 2169 AC_CHECK_FUNC([shl_load], 2170 [lt_cv_dlopen="shl_load"], 2171 [AC_CHECK_LIB([dld], [shl_load], 2172 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 2173 [AC_CHECK_FUNC([dlopen], 2174 [lt_cv_dlopen="dlopen"], 2175 [AC_CHECK_LIB([dl], [dlopen], 2176 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 2177 [AC_CHECK_LIB([svld], [dlopen], 2178 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 2179 [AC_CHECK_LIB([dld], [dld_link], 2180 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 2181 ]) 2182 ]) 2183 ]) 2184 ]) 2185 ]) 2186 ;; 2187 esac 2188 2189 if test "x$lt_cv_dlopen" != xno; then 2190 enable_dlopen=yes 2191 else 2192 enable_dlopen=no 2193 fi 2194 2195 case $lt_cv_dlopen in 2196 dlopen) 2197 save_CPPFLAGS="$CPPFLAGS" 2198 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 2199 2200 save_LDFLAGS="$LDFLAGS" 2201 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 2202 2203 save_LIBS="$LIBS" 2204 LIBS="$lt_cv_dlopen_libs $LIBS" 2205 2206 AC_CACHE_CHECK([whether a program can dlopen itself], 2207 lt_cv_dlopen_self, [dnl 2208 _LT_TRY_DLOPEN_SELF( 2209 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 2210 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 2211 ]) 2212 2213 if test "x$lt_cv_dlopen_self" = xyes; then 2214 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 2215 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 2216 lt_cv_dlopen_self_static, [dnl 2217 _LT_TRY_DLOPEN_SELF( 2218 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 2219 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 2220 ]) 2221 fi 2222 2223 CPPFLAGS="$save_CPPFLAGS" 2224 LDFLAGS="$save_LDFLAGS" 2225 LIBS="$save_LIBS" 2226 ;; 2227 esac 2228 2229 case $lt_cv_dlopen_self in 2230 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 2231 *) enable_dlopen_self=unknown ;; 2232 esac 2233 2234 case $lt_cv_dlopen_self_static in 2235 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 2236 *) enable_dlopen_self_static=unknown ;; 2237 esac 2238fi 2239_LT_DECL([dlopen_support], [enable_dlopen], [0], 2240 [Whether dlopen is supported]) 2241_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 2242 [Whether dlopen of programs is supported]) 2243_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 2244 [Whether dlopen of statically linked programs is supported]) 2245])# LT_SYS_DLOPEN_SELF 2246 2247# Old name: 2248AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 2249dnl aclocal-1.4 backwards compatibility: 2250dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 2251 2252 2253# _LT_COMPILER_C_O([TAGNAME]) 2254# --------------------------- 2255# Check to see if options -c and -o are simultaneously supported by compiler. 2256# This macro does not hard code the compiler like AC_PROG_CC_C_O. 2257m4_defun([_LT_COMPILER_C_O], 2258[m4_require([_LT_DECL_SED])dnl 2259m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2260m4_require([_LT_TAG_COMPILER])dnl 2261AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 2262 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 2263 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 2264 $RM -r conftest 2>/dev/null 2265 mkdir conftest 2266 cd conftest 2267 mkdir out 2268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 2269 2270 lt_compiler_flag="-o out/conftest2.$ac_objext" 2271 # Insert the option either (1) after the last *FLAGS variable, or 2272 # (2) before a word containing "conftest.", or (3) at the end. 2273 # Note that $ac_compile itself does not contain backslashes and begins 2274 # with a dollar sign (not a hyphen), so the echo should work correctly. 2275 lt_compile=`echo "$ac_compile" | $SED \ 2276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 2277 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 2278 -e 's:$: $lt_compiler_flag:'` 2279 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 2280 (eval "$lt_compile" 2>out/conftest.err) 2281 ac_status=$? 2282 cat out/conftest.err >&AS_MESSAGE_LOG_FD 2283 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 2284 if (exit $ac_status) && test -s out/conftest2.$ac_objext 2285 then 2286 # The compiler can only warn and ignore the option if not recognized 2287 # So say no if there are warnings 2288 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 2289 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 2290 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 2291 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 2292 fi 2293 fi 2294 chmod u+w . 2>&AS_MESSAGE_LOG_FD 2295 $RM conftest* 2296 # SGI C++ compiler will create directory out/ii_files/ for 2297 # template instantiation 2298 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 2299 $RM out/* && rmdir out 2300 cd .. 2301 $RM -r conftest 2302 $RM conftest* 2303]) 2304_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 2305 [Does compiler simultaneously support -c and -o options?]) 2306])# _LT_COMPILER_C_O 2307 2308 2309# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 2310# ---------------------------------- 2311# Check to see if we can do hard links to lock some files if needed 2312m4_defun([_LT_COMPILER_FILE_LOCKS], 2313[m4_require([_LT_ENABLE_LOCK])dnl 2314m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2315_LT_COMPILER_C_O([$1]) 2316 2317hard_links="nottested" 2318if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 2319 # do not overwrite the value of need_locks provided by the user 2320 AC_MSG_CHECKING([if we can lock with hard links]) 2321 hard_links=yes 2322 $RM conftest* 2323 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2324 touch conftest.a 2325 ln conftest.a conftest.b 2>&5 || hard_links=no 2326 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2327 AC_MSG_RESULT([$hard_links]) 2328 if test "$hard_links" = no; then 2329 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 2330 need_locks=warn 2331 fi 2332else 2333 need_locks=no 2334fi 2335_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 2336])# _LT_COMPILER_FILE_LOCKS 2337 2338 2339# _LT_CHECK_OBJDIR 2340# ---------------- 2341m4_defun([_LT_CHECK_OBJDIR], 2342[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 2343[rm -f .libs 2>/dev/null 2344mkdir .libs 2>/dev/null 2345if test -d .libs; then 2346 lt_cv_objdir=.libs 2347else 2348 # MS-DOS does not allow filenames that begin with a dot. 2349 lt_cv_objdir=_libs 2350fi 2351rmdir .libs 2>/dev/null]) 2352objdir=$lt_cv_objdir 2353_LT_DECL([], [objdir], [0], 2354 [The name of the directory that contains temporary libtool files])dnl 2355m4_pattern_allow([LT_OBJDIR])dnl 2356AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", 2357 [Define to the sub-directory in which libtool stores uninstalled libraries.]) 2358])# _LT_CHECK_OBJDIR 2359 2360 2361# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 2362# -------------------------------------- 2363# Check hardcoding attributes. 2364m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 2365[AC_MSG_CHECKING([how to hardcode library paths into programs]) 2366_LT_TAGVAR(hardcode_action, $1)= 2367if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 2368 test -n "$_LT_TAGVAR(runpath_var, $1)" || 2369 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 2370 2371 # We can hardcode non-existent directories. 2372 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && 2373 # If the only mechanism to avoid hardcoding is shlibpath_var, we 2374 # have to relink, otherwise we might link with an installed library 2375 # when we should be linking with a yet-to-be-installed one 2376 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && 2377 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then 2378 # Linking always hardcodes the temporary library directory. 2379 _LT_TAGVAR(hardcode_action, $1)=relink 2380 else 2381 # We can link without hardcoding, and we can hardcode nonexisting dirs. 2382 _LT_TAGVAR(hardcode_action, $1)=immediate 2383 fi 2384else 2385 # We cannot hardcode anything, or else we can only hardcode existing 2386 # directories. 2387 _LT_TAGVAR(hardcode_action, $1)=unsupported 2388fi 2389AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 2390 2391if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || 2392 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then 2393 # Fast installation is not supported 2394 enable_fast_install=no 2395elif test "$shlibpath_overrides_runpath" = yes || 2396 test "$enable_shared" = no; then 2397 # Fast installation is not necessary 2398 enable_fast_install=needless 2399fi 2400_LT_TAGDECL([], [hardcode_action], [0], 2401 [How to hardcode a shared library path into an executable]) 2402])# _LT_LINKER_HARDCODE_LIBPATH 2403 2404 2405# _LT_CMD_STRIPLIB 2406# ---------------- 2407m4_defun([_LT_CMD_STRIPLIB], 2408[m4_require([_LT_DECL_EGREP]) 2409striplib= 2410old_striplib= 2411AC_MSG_CHECKING([whether stripping libraries is possible]) 2412if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 2413 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 2414 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 2415 AC_MSG_RESULT([yes]) 2416else 2417# FIXME - insert some real tests, host_os isn't really good enough 2418 case $host_os in 2419 darwin*) 2420 if test -n "$STRIP" ; then 2421 striplib="$STRIP -x" 2422 old_striplib="$STRIP -S" 2423 AC_MSG_RESULT([yes]) 2424 else 2425 AC_MSG_RESULT([no]) 2426 fi 2427 ;; 2428 *) 2429 AC_MSG_RESULT([no]) 2430 ;; 2431 esac 2432fi 2433_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 2434_LT_DECL([], [striplib], [1]) 2435])# _LT_CMD_STRIPLIB 2436 2437 2438# _LT_SYS_DYNAMIC_LINKER([TAG]) 2439# ----------------------------- 2440# PORTME Fill in your ld.so characteristics 2441m4_defun([_LT_SYS_DYNAMIC_LINKER], 2442[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2443m4_require([_LT_DECL_EGREP])dnl 2444m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2445m4_require([_LT_DECL_OBJDUMP])dnl 2446m4_require([_LT_DECL_SED])dnl 2447AC_MSG_CHECKING([dynamic linker characteristics]) 2448m4_if([$1], 2449 [], [ 2450if test "$GCC" = yes; then 2451 case $host_os in 2452 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 2453 *) lt_awk_arg="/^libraries:/" ;; 2454 esac 2455 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 2456 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 2457 # if the path contains ";" then we assume it to be the separator 2458 # otherwise default to the standard path separator (i.e. ":") - it is 2459 # assumed that no part of a normal pathname contains ";" but that should 2460 # okay in the real world where ";" in dirpaths is itself problematic. 2461 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 2462 else 2463 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2464 fi 2465 # Ok, now we have the path, separated by spaces, we can step through it 2466 # and add multilib dir if necessary. 2467 lt_tmp_lt_search_path_spec= 2468 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 2469 for lt_sys_path in $lt_search_path_spec; do 2470 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 2471 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 2472 else 2473 test -d "$lt_sys_path" && \ 2474 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 2475 fi 2476 done 2477 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 2478BEGIN {RS=" "; FS="/|\n";} { 2479 lt_foo=""; 2480 lt_count=0; 2481 for (lt_i = NF; lt_i > 0; lt_i--) { 2482 if ($lt_i != "" && $lt_i != ".") { 2483 if ($lt_i == "..") { 2484 lt_count++; 2485 } else { 2486 if (lt_count == 0) { 2487 lt_foo="/" $lt_i lt_foo; 2488 } else { 2489 lt_count--; 2490 } 2491 } 2492 } 2493 } 2494 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 2495 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 2496}'` 2497 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 2498else 2499 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 2500fi]) 2501library_names_spec= 2502libname_spec='lib$name' 2503soname_spec= 2504shrext_cmds=".so" 2505postinstall_cmds= 2506postuninstall_cmds= 2507finish_cmds= 2508finish_eval= 2509shlibpath_var= 2510shlibpath_overrides_runpath=unknown 2511version_type=none 2512dynamic_linker="$host_os ld.so" 2513sys_lib_dlsearch_path_spec="/lib /usr/lib" 2514need_lib_prefix=unknown 2515hardcode_into_libs=no 2516 2517# when you set need_version to no, make sure it does not cause -set_version 2518# flags to be left without arguments 2519need_version=unknown 2520 2521case $host_os in 2522aix3*) 2523 version_type=linux 2524 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 2525 shlibpath_var=LIBPATH 2526 2527 # AIX 3 has no versioning support, so we append a major version to the name. 2528 soname_spec='${libname}${release}${shared_ext}$major' 2529 ;; 2530 2531aix[[4-9]]*) 2532 version_type=linux 2533 need_lib_prefix=no 2534 need_version=no 2535 hardcode_into_libs=yes 2536 if test "$host_cpu" = ia64; then 2537 # AIX 5 supports IA64 2538 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 2539 shlibpath_var=LD_LIBRARY_PATH 2540 else 2541 # With GCC up to 2.95.x, collect2 would create an import file 2542 # for dependence libraries. The import file would start with 2543 # the line `#! .'. This would cause the generated library to 2544 # depend on `.', always an invalid library. This was fixed in 2545 # development snapshots of GCC prior to 3.0. 2546 case $host_os in 2547 aix4 | aix4.[[01]] | aix4.[[01]].*) 2548 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 2549 echo ' yes ' 2550 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 2551 : 2552 else 2553 can_build_shared=no 2554 fi 2555 ;; 2556 esac 2557 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 2558 # soname into executable. Probably we can add versioning support to 2559 # collect2, so additional links can be useful in future. 2560 if test "$aix_use_runtimelinking" = yes; then 2561 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 2562 # instead of lib<name>.a to let people know that these are not 2563 # typical AIX shared libraries. 2564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2565 else 2566 # We preserve .a as extension for shared libraries through AIX4.2 2567 # and later when we are not doing run time linking. 2568 library_names_spec='${libname}${release}.a $libname.a' 2569 soname_spec='${libname}${release}${shared_ext}$major' 2570 fi 2571 shlibpath_var=LIBPATH 2572 fi 2573 ;; 2574 2575amigaos*) 2576 case $host_cpu in 2577 powerpc) 2578 # Since July 2007 AmigaOS4 officially supports .so libraries. 2579 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 2580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2581 ;; 2582 m68k) 2583 library_names_spec='$libname.ixlibrary $libname.a' 2584 # Create ${libname}_ixlibrary.a entries in /sys/libs. 2585 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' 2586 ;; 2587 esac 2588 ;; 2589 2590beos*) 2591 library_names_spec='${libname}${shared_ext}' 2592 dynamic_linker="$host_os ld.so" 2593 shlibpath_var=LIBRARY_PATH 2594 ;; 2595 2596bsdi[[45]]*) 2597 version_type=linux 2598 need_version=no 2599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2600 soname_spec='${libname}${release}${shared_ext}$major' 2601 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 2602 shlibpath_var=LD_LIBRARY_PATH 2603 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 2604 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 2605 # the default ld.so.conf also contains /usr/contrib/lib and 2606 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 2607 # libtool to hard-code these into programs 2608 ;; 2609 2610cygwin* | mingw* | pw32* | cegcc*) 2611 version_type=windows 2612 shrext_cmds=".dll" 2613 need_version=no 2614 need_lib_prefix=no 2615 2616 case $GCC,$host_os in 2617 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 2618 library_names_spec='$libname.dll.a' 2619 # DLL is installed to $(libdir)/../bin by postinstall_cmds 2620 postinstall_cmds='base_file=`basename \${file}`~ 2621 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 2622 dldir=$destdir/`dirname \$dlpath`~ 2623 test -d \$dldir || mkdir -p \$dldir~ 2624 $install_prog $dir/$dlname \$dldir/$dlname~ 2625 chmod a+x \$dldir/$dlname~ 2626 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 2627 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 2628 fi' 2629 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2630 dlpath=$dir/\$dldll~ 2631 $RM \$dlpath' 2632 shlibpath_overrides_runpath=yes 2633 2634 case $host_os in 2635 cygwin*) 2636 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 2637 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2638 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 2639 ;; 2640 mingw* | cegcc*) 2641 # MinGW DLLs use traditional 'lib' prefix 2642 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2643 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 2644 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 2645 # It is most probably a Windows format PATH printed by 2646 # mingw gcc, but we are running on Cygwin. Gcc prints its search 2647 # path with ; separators, and with drive letters. We can handle the 2648 # drive letters (cygwin fileutils understands them), so leave them, 2649 # especially as we might pass files found there to a mingw objdump, 2650 # which wouldn't understand a cygwinified path. Ahh. 2651 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 2652 else 2653 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2654 fi 2655 ;; 2656 pw32*) 2657 # pw32 DLLs use 'pw' prefix rather than 'lib' 2658 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2659 ;; 2660 esac 2661 ;; 2662 2663 *) 2664 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 2665 ;; 2666 esac 2667 dynamic_linker='Win32 ld.exe' 2668 # FIXME: first we should search . and the directory the executable is in 2669 shlibpath_var=PATH 2670 ;; 2671 2672darwin* | rhapsody*) 2673 dynamic_linker="$host_os dyld" 2674 version_type=darwin 2675 need_lib_prefix=no 2676 need_version=no 2677 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 2678 soname_spec='${libname}${release}${major}$shared_ext' 2679 shlibpath_overrides_runpath=yes 2680 shlibpath_var=DYLD_LIBRARY_PATH 2681 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 2682m4_if([$1], [],[ 2683 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 2684 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 2685 ;; 2686 2687dgux*) 2688 version_type=linux 2689 need_lib_prefix=no 2690 need_version=no 2691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 2692 soname_spec='${libname}${release}${shared_ext}$major' 2693 shlibpath_var=LD_LIBRARY_PATH 2694 ;; 2695 2696freebsd1*) 2697 dynamic_linker=no 2698 ;; 2699 2700freebsd* | dragonfly*) 2701 # DragonFly does not have aout. When/if they implement a new 2702 # versioning mechanism, adjust this. 2703 if test -x /usr/bin/objformat; then 2704 objformat=`/usr/bin/objformat` 2705 else 2706 case $host_os in 2707 freebsd[[123]]*) objformat=aout ;; 2708 *) objformat=elf ;; 2709 esac 2710 fi 2711 version_type=freebsd-$objformat 2712 case $version_type in 2713 freebsd-elf*) 2714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 2715 need_version=no 2716 need_lib_prefix=no 2717 ;; 2718 freebsd-*) 2719 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 2720 need_version=yes 2721 ;; 2722 esac 2723 shlibpath_var=LD_LIBRARY_PATH 2724 case $host_os in 2725 freebsd2*) 2726 shlibpath_overrides_runpath=yes 2727 ;; 2728 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 2729 shlibpath_overrides_runpath=yes 2730 hardcode_into_libs=yes 2731 ;; 2732 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 2733 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 2734 shlibpath_overrides_runpath=no 2735 hardcode_into_libs=yes 2736 ;; 2737 *) # from 4.6 on, and DragonFly 2738 shlibpath_overrides_runpath=yes 2739 hardcode_into_libs=yes 2740 ;; 2741 esac 2742 ;; 2743 2744gnu*) 2745 version_type=linux 2746 need_lib_prefix=no 2747 need_version=no 2748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 2749 soname_spec='${libname}${release}${shared_ext}$major' 2750 shlibpath_var=LD_LIBRARY_PATH 2751 hardcode_into_libs=yes 2752 ;; 2753 2754hpux9* | hpux10* | hpux11*) 2755 # Give a soname corresponding to the major version so that dld.sl refuses to 2756 # link against other versions. 2757 version_type=sunos 2758 need_lib_prefix=no 2759 need_version=no 2760 case $host_cpu in 2761 ia64*) 2762 shrext_cmds='.so' 2763 hardcode_into_libs=yes 2764 dynamic_linker="$host_os dld.so" 2765 shlibpath_var=LD_LIBRARY_PATH 2766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2768 soname_spec='${libname}${release}${shared_ext}$major' 2769 if test "X$HPUX_IA64_MODE" = X32; then 2770 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 2771 else 2772 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 2773 fi 2774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2775 ;; 2776 hppa*64*) 2777 shrext_cmds='.sl' 2778 hardcode_into_libs=yes 2779 dynamic_linker="$host_os dld.sl" 2780 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 2781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2783 soname_spec='${libname}${release}${shared_ext}$major' 2784 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 2785 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2786 ;; 2787 *) 2788 shrext_cmds='.sl' 2789 dynamic_linker="$host_os dld.sl" 2790 shlibpath_var=SHLIB_PATH 2791 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 2792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2793 soname_spec='${libname}${release}${shared_ext}$major' 2794 ;; 2795 esac 2796 # HP-UX runs *really* slowly unless shared libraries are mode 555. 2797 postinstall_cmds='chmod 555 $lib' 2798 ;; 2799 2800interix[[3-9]]*) 2801 version_type=linux 2802 need_lib_prefix=no 2803 need_version=no 2804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2805 soname_spec='${libname}${release}${shared_ext}$major' 2806 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 2807 shlibpath_var=LD_LIBRARY_PATH 2808 shlibpath_overrides_runpath=no 2809 hardcode_into_libs=yes 2810 ;; 2811 2812irix5* | irix6* | nonstopux*) 2813 case $host_os in 2814 nonstopux*) version_type=nonstopux ;; 2815 *) 2816 if test "$lt_cv_prog_gnu_ld" = yes; then 2817 version_type=linux 2818 else 2819 version_type=irix 2820 fi ;; 2821 esac 2822 need_lib_prefix=no 2823 need_version=no 2824 soname_spec='${libname}${release}${shared_ext}$major' 2825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 2826 case $host_os in 2827 irix5* | nonstopux*) 2828 libsuff= shlibsuff= 2829 ;; 2830 *) 2831 case $LD in # libtool.m4 will add one of these switches to LD 2832 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 2833 libsuff= shlibsuff= libmagic=32-bit;; 2834 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 2835 libsuff=32 shlibsuff=N32 libmagic=N32;; 2836 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 2837 libsuff=64 shlibsuff=64 libmagic=64-bit;; 2838 *) libsuff= shlibsuff= libmagic=never-match;; 2839 esac 2840 ;; 2841 esac 2842 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 2843 shlibpath_overrides_runpath=no 2844 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 2845 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 2846 hardcode_into_libs=yes 2847 ;; 2848 2849# No shared lib support for Linux oldld, aout, or coff. 2850linux*oldld* | linux*aout* | linux*coff*) 2851 dynamic_linker=no 2852 ;; 2853 2854# This must be Linux ELF. 2855linux* | k*bsd*-gnu) 2856 version_type=linux 2857 need_lib_prefix=no 2858 need_version=no 2859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2860 soname_spec='${libname}${release}${shared_ext}$major' 2861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 2862 shlibpath_var=LD_LIBRARY_PATH 2863 shlibpath_overrides_runpath=no 2864 # Some binutils ld are patched to set DT_RUNPATH 2865 save_LDFLAGS=$LDFLAGS 2866 save_libdir=$libdir 2867 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 2868 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 2869 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 2870 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 2871 [shlibpath_overrides_runpath=yes])]) 2872 LDFLAGS=$save_LDFLAGS 2873 libdir=$save_libdir 2874 2875 # This implies no fast_install, which is unacceptable. 2876 # Some rework will be needed to allow for fast_install 2877 # before this can be enabled. 2878 hardcode_into_libs=yes 2879 2880 # Append ld.so.conf contents to the search path 2881 if test -f /etc/ld.so.conf; then 2882 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 2883 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 2884 fi 2885 2886 # We used to test for /lib/ld.so.1 and disable shared libraries on 2887 # powerpc, because MkLinux only supported shared libraries with the 2888 # GNU dynamic linker. Since this was broken with cross compilers, 2889 # most powerpc-linux boxes support dynamic linking these days and 2890 # people can always --disable-shared, the test was removed, and we 2891 # assume the GNU/Linux dynamic linker is in use. 2892 dynamic_linker='GNU/Linux ld.so' 2893 ;; 2894 2895netbsd*) 2896 version_type=sunos 2897 need_lib_prefix=no 2898 need_version=no 2899 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 2900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2902 dynamic_linker='NetBSD (a.out) ld.so' 2903 else 2904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2905 soname_spec='${libname}${release}${shared_ext}$major' 2906 dynamic_linker='NetBSD ld.elf_so' 2907 fi 2908 shlibpath_var=LD_LIBRARY_PATH 2909 shlibpath_overrides_runpath=yes 2910 hardcode_into_libs=yes 2911 ;; 2912 2913newsos6) 2914 version_type=linux 2915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2916 shlibpath_var=LD_LIBRARY_PATH 2917 shlibpath_overrides_runpath=yes 2918 ;; 2919 2920*nto* | *qnx*) 2921 version_type=qnx 2922 need_lib_prefix=no 2923 need_version=no 2924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2925 soname_spec='${libname}${release}${shared_ext}$major' 2926 shlibpath_var=LD_LIBRARY_PATH 2927 shlibpath_overrides_runpath=no 2928 hardcode_into_libs=yes 2929 dynamic_linker='ldqnx.so' 2930 ;; 2931 2932openbsd*) 2933 version_type=sunos 2934 sys_lib_dlsearch_path_spec="/usr/lib" 2935 need_lib_prefix=no 2936 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 2937 case $host_os in 2938 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 2939 *) need_version=no ;; 2940 esac 2941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2943 shlibpath_var=LD_LIBRARY_PATH 2944 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2945 case $host_os in 2946 openbsd2.[[89]] | openbsd2.[[89]].*) 2947 shlibpath_overrides_runpath=no 2948 ;; 2949 *) 2950 shlibpath_overrides_runpath=yes 2951 ;; 2952 esac 2953 else 2954 shlibpath_overrides_runpath=yes 2955 fi 2956 ;; 2957 2958os2*) 2959 libname_spec='$name' 2960 shrext_cmds=".dll" 2961 need_lib_prefix=no 2962 library_names_spec='$libname${shared_ext} $libname.a' 2963 dynamic_linker='OS/2 ld.exe' 2964 shlibpath_var=LIBPATH 2965 ;; 2966 2967osf3* | osf4* | osf5*) 2968 version_type=osf 2969 need_lib_prefix=no 2970 need_version=no 2971 soname_spec='${libname}${release}${shared_ext}$major' 2972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2973 shlibpath_var=LD_LIBRARY_PATH 2974 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 2975 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 2976 ;; 2977 2978rdos*) 2979 dynamic_linker=no 2980 ;; 2981 2982solaris*) 2983 version_type=linux 2984 need_lib_prefix=no 2985 need_version=no 2986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2987 soname_spec='${libname}${release}${shared_ext}$major' 2988 shlibpath_var=LD_LIBRARY_PATH 2989 shlibpath_overrides_runpath=yes 2990 hardcode_into_libs=yes 2991 # ldd complains unless libraries are executable 2992 postinstall_cmds='chmod +x $lib' 2993 ;; 2994 2995sunos4*) 2996 version_type=sunos 2997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2998 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 2999 shlibpath_var=LD_LIBRARY_PATH 3000 shlibpath_overrides_runpath=yes 3001 if test "$with_gnu_ld" = yes; then 3002 need_lib_prefix=no 3003 fi 3004 need_version=yes 3005 ;; 3006 3007sysv4 | sysv4.3*) 3008 version_type=linux 3009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3010 soname_spec='${libname}${release}${shared_ext}$major' 3011 shlibpath_var=LD_LIBRARY_PATH 3012 case $host_vendor in 3013 sni) 3014 shlibpath_overrides_runpath=no 3015 need_lib_prefix=no 3016 runpath_var=LD_RUN_PATH 3017 ;; 3018 siemens) 3019 need_lib_prefix=no 3020 ;; 3021 motorola) 3022 need_lib_prefix=no 3023 need_version=no 3024 shlibpath_overrides_runpath=no 3025 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 3026 ;; 3027 esac 3028 ;; 3029 3030sysv4*MP*) 3031 if test -d /usr/nec ;then 3032 version_type=linux 3033 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 3034 soname_spec='$libname${shared_ext}.$major' 3035 shlibpath_var=LD_LIBRARY_PATH 3036 fi 3037 ;; 3038 3039sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3040 version_type=freebsd-elf 3041 need_lib_prefix=no 3042 need_version=no 3043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 3044 soname_spec='${libname}${release}${shared_ext}$major' 3045 shlibpath_var=LD_LIBRARY_PATH 3046 shlibpath_overrides_runpath=yes 3047 hardcode_into_libs=yes 3048 if test "$with_gnu_ld" = yes; then 3049 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 3050 else 3051 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 3052 case $host_os in 3053 sco3.2v5*) 3054 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 3055 ;; 3056 esac 3057 fi 3058 sys_lib_dlsearch_path_spec='/usr/lib' 3059 ;; 3060 3061tpf*) 3062 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 3063 version_type=linux 3064 need_lib_prefix=no 3065 need_version=no 3066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3067 shlibpath_var=LD_LIBRARY_PATH 3068 shlibpath_overrides_runpath=no 3069 hardcode_into_libs=yes 3070 ;; 3071 3072uts4*) 3073 version_type=linux 3074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3075 soname_spec='${libname}${release}${shared_ext}$major' 3076 shlibpath_var=LD_LIBRARY_PATH 3077 ;; 3078 3079*) 3080 dynamic_linker=no 3081 ;; 3082esac 3083AC_MSG_RESULT([$dynamic_linker]) 3084test "$dynamic_linker" = no && can_build_shared=no 3085 3086variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 3087if test "$GCC" = yes; then 3088 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 3089fi 3090 3091if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 3092 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 3093fi 3094if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 3095 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 3096fi 3097 3098_LT_DECL([], [variables_saved_for_relink], [1], 3099 [Variables whose values should be saved in libtool wrapper scripts and 3100 restored at link time]) 3101_LT_DECL([], [need_lib_prefix], [0], 3102 [Do we need the "lib" prefix for modules?]) 3103_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 3104_LT_DECL([], [version_type], [0], [Library versioning type]) 3105_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 3106_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 3107_LT_DECL([], [shlibpath_overrides_runpath], [0], 3108 [Is shlibpath searched before the hard-coded library search path?]) 3109_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 3110_LT_DECL([], [library_names_spec], [1], 3111 [[List of archive names. First name is the real one, the rest are links. 3112 The last name is the one that the linker finds with -lNAME]]) 3113_LT_DECL([], [soname_spec], [1], 3114 [[The coded name of the library, if different from the real name]]) 3115_LT_DECL([], [postinstall_cmds], [2], 3116 [Command to use after installation of a shared archive]) 3117_LT_DECL([], [postuninstall_cmds], [2], 3118 [Command to use after uninstallation of a shared archive]) 3119_LT_DECL([], [finish_cmds], [2], 3120 [Commands used to finish a libtool library installation in a directory]) 3121_LT_DECL([], [finish_eval], [1], 3122 [[As "finish_cmds", except a single script fragment to be evaled but 3123 not shown]]) 3124_LT_DECL([], [hardcode_into_libs], [0], 3125 [Whether we should hardcode library paths into libraries]) 3126_LT_DECL([], [sys_lib_search_path_spec], [2], 3127 [Compile-time system search path for libraries]) 3128_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 3129 [Run-time system search path for libraries]) 3130])# _LT_SYS_DYNAMIC_LINKER 3131 3132 3133# _LT_PATH_TOOL_PREFIX(TOOL) 3134# -------------------------- 3135# find a file program which can recognize shared library 3136AC_DEFUN([_LT_PATH_TOOL_PREFIX], 3137[m4_require([_LT_DECL_EGREP])dnl 3138AC_MSG_CHECKING([for $1]) 3139AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 3140[case $MAGIC_CMD in 3141[[\\/*] | ?:[\\/]*]) 3142 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 3143 ;; 3144*) 3145 lt_save_MAGIC_CMD="$MAGIC_CMD" 3146 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3147dnl $ac_dummy forces splitting on constant user-supplied paths. 3148dnl POSIX.2 word splitting is done only on the output of word expansions, 3149dnl not every word. This closes a longstanding sh security hole. 3150 ac_dummy="m4_if([$2], , $PATH, [$2])" 3151 for ac_dir in $ac_dummy; do 3152 IFS="$lt_save_ifs" 3153 test -z "$ac_dir" && ac_dir=. 3154 if test -f $ac_dir/$1; then 3155 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 3156 if test -n "$file_magic_test_file"; then 3157 case $deplibs_check_method in 3158 "file_magic "*) 3159 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 3160 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3161 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3162 $EGREP "$file_magic_regex" > /dev/null; then 3163 : 3164 else 3165 cat <<_LT_EOF 1>&2 3166 3167*** Warning: the command libtool uses to detect shared libraries, 3168*** $file_magic_cmd, produces output that libtool cannot recognize. 3169*** The result is that libtool may fail to recognize shared libraries 3170*** as such. This will affect the creation of libtool libraries that 3171*** depend on shared libraries, but programs linked with such libtool 3172*** libraries will work regardless of this problem. Nevertheless, you 3173*** may want to report the problem to your system manager and/or to 3174*** bug-libtool@gnu.org 3175 3176_LT_EOF 3177 fi ;; 3178 esac 3179 fi 3180 break 3181 fi 3182 done 3183 IFS="$lt_save_ifs" 3184 MAGIC_CMD="$lt_save_MAGIC_CMD" 3185 ;; 3186esac]) 3187MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3188if test -n "$MAGIC_CMD"; then 3189 AC_MSG_RESULT($MAGIC_CMD) 3190else 3191 AC_MSG_RESULT(no) 3192fi 3193_LT_DECL([], [MAGIC_CMD], [0], 3194 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 3195])# _LT_PATH_TOOL_PREFIX 3196 3197# Old name: 3198AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 3199dnl aclocal-1.4 backwards compatibility: 3200dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 3201 3202 3203# _LT_PATH_MAGIC 3204# -------------- 3205# find a file program which can recognize a shared library 3206m4_defun([_LT_PATH_MAGIC], 3207[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 3208if test -z "$lt_cv_path_MAGIC_CMD"; then 3209 if test -n "$ac_tool_prefix"; then 3210 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 3211 else 3212 MAGIC_CMD=: 3213 fi 3214fi 3215])# _LT_PATH_MAGIC 3216 3217 3218# LT_PATH_LD 3219# ---------- 3220# find the pathname to the GNU or non-GNU linker 3221AC_DEFUN([LT_PATH_LD], 3222[AC_REQUIRE([AC_PROG_CC])dnl 3223AC_REQUIRE([AC_CANONICAL_HOST])dnl 3224AC_REQUIRE([AC_CANONICAL_BUILD])dnl 3225m4_require([_LT_DECL_SED])dnl 3226m4_require([_LT_DECL_EGREP])dnl 3227 3228AC_ARG_WITH([gnu-ld], 3229 [AS_HELP_STRING([--with-gnu-ld], 3230 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 3231 [test "$withval" = no || with_gnu_ld=yes], 3232 [with_gnu_ld=no])dnl 3233 3234ac_prog=ld 3235if test "$GCC" = yes; then 3236 # Check if gcc -print-prog-name=ld gives a path. 3237 AC_MSG_CHECKING([for ld used by $CC]) 3238 case $host in 3239 *-*-mingw*) 3240 # gcc leaves a trailing carriage return which upsets mingw 3241 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3242 *) 3243 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3244 esac 3245 case $ac_prog in 3246 # Accept absolute paths. 3247 [[\\/]]* | ?:[[\\/]]*) 3248 re_direlt='/[[^/]][[^/]]*/\.\./' 3249 # Canonicalize the pathname of ld 3250 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3251 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3252 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3253 done 3254 test -z "$LD" && LD="$ac_prog" 3255 ;; 3256 "") 3257 # If it fails, then pretend we aren't using GCC. 3258 ac_prog=ld 3259 ;; 3260 *) 3261 # If it is relative, then search for the first ld in PATH. 3262 with_gnu_ld=unknown 3263 ;; 3264 esac 3265elif test "$with_gnu_ld" = yes; then 3266 AC_MSG_CHECKING([for GNU ld]) 3267else 3268 AC_MSG_CHECKING([for non-GNU ld]) 3269fi 3270AC_CACHE_VAL(lt_cv_path_LD, 3271[if test -z "$LD"; then 3272 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3273 for ac_dir in $PATH; do 3274 IFS="$lt_save_ifs" 3275 test -z "$ac_dir" && ac_dir=. 3276 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3277 lt_cv_path_LD="$ac_dir/$ac_prog" 3278 # Check to see if the program is GNU ld. I'd rather use --version, 3279 # but apparently some variants of GNU ld only accept -v. 3280 # Break only if it was the GNU/non-GNU ld that we prefer. 3281 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3282 *GNU* | *'with BFD'*) 3283 test "$with_gnu_ld" != no && break 3284 ;; 3285 *) 3286 test "$with_gnu_ld" != yes && break 3287 ;; 3288 esac 3289 fi 3290 done 3291 IFS="$lt_save_ifs" 3292else 3293 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3294fi]) 3295LD="$lt_cv_path_LD" 3296if test -n "$LD"; then 3297 AC_MSG_RESULT($LD) 3298else 3299 AC_MSG_RESULT(no) 3300fi 3301test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 3302_LT_PATH_LD_GNU 3303AC_SUBST([LD]) 3304 3305_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 3306])# LT_PATH_LD 3307 3308# Old names: 3309AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 3310AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 3311dnl aclocal-1.4 backwards compatibility: 3312dnl AC_DEFUN([AM_PROG_LD], []) 3313dnl AC_DEFUN([AC_PROG_LD], []) 3314 3315 3316# _LT_PATH_LD_GNU 3317#- -------------- 3318m4_defun([_LT_PATH_LD_GNU], 3319[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 3320[# I'd rather use --version here, but apparently some GNU lds only accept -v. 3321case `$LD -v 2>&1 </dev/null` in 3322*GNU* | *'with BFD'*) 3323 lt_cv_prog_gnu_ld=yes 3324 ;; 3325*) 3326 lt_cv_prog_gnu_ld=no 3327 ;; 3328esac]) 3329with_gnu_ld=$lt_cv_prog_gnu_ld 3330])# _LT_PATH_LD_GNU 3331 3332 3333# _LT_CMD_RELOAD 3334# -------------- 3335# find reload flag for linker 3336# -- PORTME Some linkers may need a different reload flag. 3337m4_defun([_LT_CMD_RELOAD], 3338[AC_CACHE_CHECK([for $LD option to reload object files], 3339 lt_cv_ld_reload_flag, 3340 [lt_cv_ld_reload_flag='-r']) 3341reload_flag=$lt_cv_ld_reload_flag 3342case $reload_flag in 3343"" | " "*) ;; 3344*) reload_flag=" $reload_flag" ;; 3345esac 3346reload_cmds='$LD$reload_flag -o $output$reload_objs' 3347case $host_os in 3348 darwin*) 3349 if test "$GCC" = yes; then 3350 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3351 else 3352 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3353 fi 3354 ;; 3355esac 3356_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl 3357_LT_DECL([], [reload_cmds], [2])dnl 3358])# _LT_CMD_RELOAD 3359 3360 3361# _LT_CHECK_MAGIC_METHOD 3362# ---------------------- 3363# how to check for library dependencies 3364# -- PORTME fill in with the dynamic library characteristics 3365m4_defun([_LT_CHECK_MAGIC_METHOD], 3366[m4_require([_LT_DECL_EGREP]) 3367m4_require([_LT_DECL_OBJDUMP]) 3368AC_CACHE_CHECK([how to recognize dependent libraries], 3369lt_cv_deplibs_check_method, 3370[lt_cv_file_magic_cmd='$MAGIC_CMD' 3371lt_cv_file_magic_test_file= 3372lt_cv_deplibs_check_method='unknown' 3373# Need to set the preceding variable on all platforms that support 3374# interlibrary dependencies. 3375# 'none' -- dependencies not supported. 3376# `unknown' -- same as none, but documents that we really don't know. 3377# 'pass_all' -- all dependencies passed with no checks. 3378# 'test_compile' -- check by making test program. 3379# 'file_magic [[regex]]' -- check by looking for files in library path 3380# which responds to the $file_magic_cmd with a given extended regex. 3381# If you have `file' or equivalent on your system and you're not sure 3382# whether `pass_all' will *always* work, you probably want this one. 3383 3384case $host_os in 3385aix[[4-9]]*) 3386 lt_cv_deplibs_check_method=pass_all 3387 ;; 3388 3389beos*) 3390 lt_cv_deplibs_check_method=pass_all 3391 ;; 3392 3393bsdi[[45]]*) 3394 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 3395 lt_cv_file_magic_cmd='/usr/bin/file -L' 3396 lt_cv_file_magic_test_file=/shlib/libc.so 3397 ;; 3398 3399cygwin*) 3400 # func_win32_libid is a shell function defined in ltmain.sh 3401 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3402 lt_cv_file_magic_cmd='func_win32_libid' 3403 ;; 3404 3405mingw* | pw32*) 3406 # Base MSYS/MinGW do not provide the 'file' command needed by 3407 # func_win32_libid shell function, so use a weaker test based on 'objdump', 3408 # unless we find 'file', for example because we are cross-compiling. 3409 if ( file / ) >/dev/null 2>&1; then 3410 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3411 lt_cv_file_magic_cmd='func_win32_libid' 3412 else 3413 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3414 lt_cv_file_magic_cmd='$OBJDUMP -f' 3415 fi 3416 ;; 3417 3418cegcc) 3419 # use the weaker test based on 'objdump'. See mingw*. 3420 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 3421 lt_cv_file_magic_cmd='$OBJDUMP -f' 3422 ;; 3423 3424darwin* | rhapsody*) 3425 lt_cv_deplibs_check_method=pass_all 3426 ;; 3427 3428freebsd* | dragonfly*) 3429 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3430 case $host_cpu in 3431 i*86 ) 3432 # Not sure whether the presence of OpenBSD here was a mistake. 3433 # Let's accept both of them until this is cleared up. 3434 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 3435 lt_cv_file_magic_cmd=/usr/bin/file 3436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3437 ;; 3438 esac 3439 else 3440 lt_cv_deplibs_check_method=pass_all 3441 fi 3442 ;; 3443 3444gnu*) 3445 lt_cv_deplibs_check_method=pass_all 3446 ;; 3447 3448hpux10.20* | hpux11*) 3449 lt_cv_file_magic_cmd=/usr/bin/file 3450 case $host_cpu in 3451 ia64*) 3452 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 3453 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3454 ;; 3455 hppa*64*) 3456 [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]'] 3457 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3458 ;; 3459 *) 3460 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 3461 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3462 ;; 3463 esac 3464 ;; 3465 3466interix[[3-9]]*) 3467 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3468 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 3469 ;; 3470 3471irix5* | irix6* | nonstopux*) 3472 case $LD in 3473 *-32|*"-32 ") libmagic=32-bit;; 3474 *-n32|*"-n32 ") libmagic=N32;; 3475 *-64|*"-64 ") libmagic=64-bit;; 3476 *) libmagic=never-match;; 3477 esac 3478 lt_cv_deplibs_check_method=pass_all 3479 ;; 3480 3481# This must be Linux ELF. 3482linux* | k*bsd*-gnu) 3483 lt_cv_deplibs_check_method=pass_all 3484 ;; 3485 3486netbsd*) 3487 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3488 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3489 else 3490 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 3491 fi 3492 ;; 3493 3494newos6*) 3495 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 3496 lt_cv_file_magic_cmd=/usr/bin/file 3497 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3498 ;; 3499 3500*nto* | *qnx*) 3501 lt_cv_deplibs_check_method=pass_all 3502 ;; 3503 3504openbsd*) 3505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3506 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 3507 else 3508 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3509 fi 3510 ;; 3511 3512osf3* | osf4* | osf5*) 3513 lt_cv_deplibs_check_method=pass_all 3514 ;; 3515 3516rdos*) 3517 lt_cv_deplibs_check_method=pass_all 3518 ;; 3519 3520solaris*) 3521 lt_cv_deplibs_check_method=pass_all 3522 ;; 3523 3524sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3525 lt_cv_deplibs_check_method=pass_all 3526 ;; 3527 3528sysv4 | sysv4.3*) 3529 case $host_vendor in 3530 motorola) 3531 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]]' 3532 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3533 ;; 3534 ncr) 3535 lt_cv_deplibs_check_method=pass_all 3536 ;; 3537 sequent) 3538 lt_cv_file_magic_cmd='/bin/file' 3539 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 3540 ;; 3541 sni) 3542 lt_cv_file_magic_cmd='/bin/file' 3543 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 3544 lt_cv_file_magic_test_file=/lib/libc.so 3545 ;; 3546 siemens) 3547 lt_cv_deplibs_check_method=pass_all 3548 ;; 3549 pc) 3550 lt_cv_deplibs_check_method=pass_all 3551 ;; 3552 esac 3553 ;; 3554 3555tpf*) 3556 lt_cv_deplibs_check_method=pass_all 3557 ;; 3558esac 3559]) 3560file_magic_cmd=$lt_cv_file_magic_cmd 3561deplibs_check_method=$lt_cv_deplibs_check_method 3562test -z "$deplibs_check_method" && deplibs_check_method=unknown 3563 3564_LT_DECL([], [deplibs_check_method], [1], 3565 [Method to check whether dependent libraries are shared objects]) 3566_LT_DECL([], [file_magic_cmd], [1], 3567 [Command to use when deplibs_check_method == "file_magic"]) 3568])# _LT_CHECK_MAGIC_METHOD 3569 3570 3571# LT_PATH_NM 3572# ---------- 3573# find the pathname to a BSD- or MS-compatible name lister 3574AC_DEFUN([LT_PATH_NM], 3575[AC_REQUIRE([AC_PROG_CC])dnl 3576AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 3577[if test -n "$NM"; then 3578 # Let the user override the test. 3579 lt_cv_path_NM="$NM" 3580else 3581 lt_nm_to_check="${ac_tool_prefix}nm" 3582 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3583 lt_nm_to_check="$lt_nm_to_check nm" 3584 fi 3585 for lt_tmp_nm in $lt_nm_to_check; do 3586 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3587 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3588 IFS="$lt_save_ifs" 3589 test -z "$ac_dir" && ac_dir=. 3590 tmp_nm="$ac_dir/$lt_tmp_nm" 3591 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3592 # Check to see if the nm accepts a BSD-compat flag. 3593 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3594 # nm: unknown option "B" ignored 3595 # Tru64's nm complains that /dev/null is an invalid object file 3596 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3597 */dev/null* | *'Invalid file or object type'*) 3598 lt_cv_path_NM="$tmp_nm -B" 3599 break 3600 ;; 3601 *) 3602 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3603 */dev/null*) 3604 lt_cv_path_NM="$tmp_nm -p" 3605 break 3606 ;; 3607 *) 3608 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3609 continue # so that we can try to find one that supports BSD flags 3610 ;; 3611 esac 3612 ;; 3613 esac 3614 fi 3615 done 3616 IFS="$lt_save_ifs" 3617 done 3618 : ${lt_cv_path_NM=no} 3619fi]) 3620if test "$lt_cv_path_NM" != "no"; then 3621 NM="$lt_cv_path_NM" 3622else 3623 # Didn't find any BSD compatible name lister, look for dumpbin. 3624 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) 3625 AC_SUBST([DUMPBIN]) 3626 if test "$DUMPBIN" != ":"; then 3627 NM="$DUMPBIN" 3628 fi 3629fi 3630test -z "$NM" && NM=nm 3631AC_SUBST([NM]) 3632_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 3633 3634AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 3635 [lt_cv_nm_interface="BSD nm" 3636 echo "int some_variable = 0;" > conftest.$ac_ext 3637 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 3638 (eval "$ac_compile" 2>conftest.err) 3639 cat conftest.err >&AS_MESSAGE_LOG_FD 3640 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 3641 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 3642 cat conftest.err >&AS_MESSAGE_LOG_FD 3643 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) 3644 cat conftest.out >&AS_MESSAGE_LOG_FD 3645 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 3646 lt_cv_nm_interface="MS dumpbin" 3647 fi 3648 rm -f conftest*]) 3649])# LT_PATH_NM 3650 3651# Old names: 3652AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 3653AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 3654dnl aclocal-1.4 backwards compatibility: 3655dnl AC_DEFUN([AM_PROG_NM], []) 3656dnl AC_DEFUN([AC_PROG_NM], []) 3657 3658 3659# LT_LIB_M 3660# -------- 3661# check for math library 3662AC_DEFUN([LT_LIB_M], 3663[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3664LIBM= 3665case $host in 3666*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 3667 # These system don't have libm, or don't need it 3668 ;; 3669*-ncr-sysv4.3*) 3670 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 3671 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 3672 ;; 3673*) 3674 AC_CHECK_LIB(m, cos, LIBM="-lm") 3675 ;; 3676esac 3677AC_SUBST([LIBM]) 3678])# LT_LIB_M 3679 3680# Old name: 3681AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 3682dnl aclocal-1.4 backwards compatibility: 3683dnl AC_DEFUN([AC_CHECK_LIBM], []) 3684 3685 3686# _LT_COMPILER_NO_RTTI([TAGNAME]) 3687# ------------------------------- 3688m4_defun([_LT_COMPILER_NO_RTTI], 3689[m4_require([_LT_TAG_COMPILER])dnl 3690 3691_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 3692 3693if test "$GCC" = yes; then 3694 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 3695 3696 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 3697 lt_cv_prog_compiler_rtti_exceptions, 3698 [-fno-rtti -fno-exceptions], [], 3699 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 3700fi 3701_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 3702 [Compiler flag to turn off builtin functions]) 3703])# _LT_COMPILER_NO_RTTI 3704 3705 3706# _LT_CMD_GLOBAL_SYMBOLS 3707# ---------------------- 3708m4_defun([_LT_CMD_GLOBAL_SYMBOLS], 3709[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3710AC_REQUIRE([AC_PROG_CC])dnl 3711AC_REQUIRE([LT_PATH_NM])dnl 3712AC_REQUIRE([LT_PATH_LD])dnl 3713m4_require([_LT_DECL_SED])dnl 3714m4_require([_LT_DECL_EGREP])dnl 3715m4_require([_LT_TAG_COMPILER])dnl 3716 3717# Check for command to grab the raw symbol name followed by C symbol from nm. 3718AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 3719AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 3720[ 3721# These are sane defaults that work on at least a few old systems. 3722# [They come from Ultrix. What could be older than Ultrix?!! ;)] 3723 3724# Character class describing NM global symbol codes. 3725symcode='[[BCDEGRST]]' 3726 3727# Regexp to match symbols that can be accessed directly from C. 3728sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 3729 3730# Define system-specific variables. 3731case $host_os in 3732aix*) 3733 symcode='[[BCDT]]' 3734 ;; 3735cygwin* | mingw* | pw32* | cegcc*) 3736 symcode='[[ABCDGISTW]]' 3737 ;; 3738hpux*) 3739 if test "$host_cpu" = ia64; then 3740 symcode='[[ABCDEGRST]]' 3741 fi 3742 ;; 3743irix* | nonstopux*) 3744 symcode='[[BCDEGRST]]' 3745 ;; 3746osf*) 3747 symcode='[[BCDEGQRST]]' 3748 ;; 3749solaris*) 3750 symcode='[[BDRT]]' 3751 ;; 3752sco3.2v5*) 3753 symcode='[[DT]]' 3754 ;; 3755sysv4.2uw2*) 3756 symcode='[[DT]]' 3757 ;; 3758sysv5* | sco5v6* | unixware* | OpenUNIX*) 3759 symcode='[[ABDT]]' 3760 ;; 3761sysv4) 3762 symcode='[[DFNSTU]]' 3763 ;; 3764esac 3765 3766# If we're using GNU nm, then use its standard symbol codes. 3767case `$NM -V 2>&1` in 3768*GNU* | *'with BFD'*) 3769 symcode='[[ABCDGIRSTW]]' ;; 3770esac 3771 3772# Transform an extracted symbol line into a proper C declaration. 3773# Some systems (esp. on ia64) link data and code symbols differently, 3774# so use this general approach. 3775lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 3776 3777# Transform an extracted symbol line into symbol name and symbol address 3778lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 3779lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 3780 3781# Handle CRLF in mingw tool chain 3782opt_cr= 3783case $build_os in 3784mingw*) 3785 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 3786 ;; 3787esac 3788 3789# Try without a prefix underscore, then with it. 3790for ac_symprfx in "" "_"; do 3791 3792 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 3793 symxfrm="\\1 $ac_symprfx\\2 \\2" 3794 3795 # Write the raw and C identifiers. 3796 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 3797 # Fake it for dumpbin and say T for any non-static function 3798 # and D for any global variable. 3799 # Also find C++ and __fastcall symbols from MSVC++, 3800 # which start with @ or ?. 3801 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 3802" {last_section=section; section=\$ 3};"\ 3803" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 3804" \$ 0!~/External *\|/{next};"\ 3805" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 3806" {if(hide[section]) next};"\ 3807" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 3808" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 3809" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 3810" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 3811" ' prfx=^$ac_symprfx]" 3812 else 3813 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 3814 fi 3815 3816 # Check to see that the pipe works correctly. 3817 pipe_works=no 3818 3819 rm -f conftest* 3820 cat > conftest.$ac_ext <<_LT_EOF 3821#ifdef __cplusplus 3822extern "C" { 3823#endif 3824char nm_test_var; 3825void nm_test_func(void); 3826void nm_test_func(void){} 3827#ifdef __cplusplus 3828} 3829#endif 3830int main(){nm_test_var='a';nm_test_func();return(0);} 3831_LT_EOF 3832 3833 if AC_TRY_EVAL(ac_compile); then 3834 # Now try to grab the symbols. 3835 nlist=conftest.nm 3836 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 3837 # Try sorting and uniquifying the output. 3838 if sort "$nlist" | uniq > "$nlist"T; then 3839 mv -f "$nlist"T "$nlist" 3840 else 3841 rm -f "$nlist"T 3842 fi 3843 3844 # Make sure that we snagged all the symbols we need. 3845 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 3846 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 3847 cat <<_LT_EOF > conftest.$ac_ext 3848#ifdef __cplusplus 3849extern "C" { 3850#endif 3851 3852_LT_EOF 3853 # Now generate the symbol file. 3854 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 3855 3856 cat <<_LT_EOF >> conftest.$ac_ext 3857 3858/* The mapping between symbol names and symbols. */ 3859const struct { 3860 const char *name; 3861 void *address; 3862} 3863lt__PROGRAM__LTX_preloaded_symbols[[]] = 3864{ 3865 { "@PROGRAM@", (void *) 0 }, 3866_LT_EOF 3867 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 3868 cat <<\_LT_EOF >> conftest.$ac_ext 3869 {0, (void *) 0} 3870}; 3871 3872/* This works around a problem in FreeBSD linker */ 3873#ifdef FREEBSD_WORKAROUND 3874static const void *lt_preloaded_setup() { 3875 return lt__PROGRAM__LTX_preloaded_symbols; 3876} 3877#endif 3878 3879#ifdef __cplusplus 3880} 3881#endif 3882_LT_EOF 3883 # Now try linking the two files. 3884 mv conftest.$ac_objext conftstm.$ac_objext 3885 lt_save_LIBS="$LIBS" 3886 lt_save_CFLAGS="$CFLAGS" 3887 LIBS="conftstm.$ac_objext" 3888 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 3889 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 3890 pipe_works=yes 3891 fi 3892 LIBS="$lt_save_LIBS" 3893 CFLAGS="$lt_save_CFLAGS" 3894 else 3895 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 3896 fi 3897 else 3898 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 3899 fi 3900 else 3901 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 3902 fi 3903 else 3904 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 3905 cat conftest.$ac_ext >&5 3906 fi 3907 rm -rf conftest* conftst* 3908 3909 # Do not use the global_symbol_pipe unless it works. 3910 if test "$pipe_works" = yes; then 3911 break 3912 else 3913 lt_cv_sys_global_symbol_pipe= 3914 fi 3915done 3916]) 3917if test -z "$lt_cv_sys_global_symbol_pipe"; then 3918 lt_cv_sys_global_symbol_to_cdecl= 3919fi 3920if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 3921 AC_MSG_RESULT(failed) 3922else 3923 AC_MSG_RESULT(ok) 3924fi 3925 3926_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 3927 [Take the output of nm and produce a listing of raw symbols and C names]) 3928_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 3929 [Transform the output of nm in a proper C declaration]) 3930_LT_DECL([global_symbol_to_c_name_address], 3931 [lt_cv_sys_global_symbol_to_c_name_address], [1], 3932 [Transform the output of nm in a C name address pair]) 3933_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 3934 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 3935 [Transform the output of nm in a C name address pair when lib prefix is needed]) 3936]) # _LT_CMD_GLOBAL_SYMBOLS 3937 3938 3939# _LT_COMPILER_PIC([TAGNAME]) 3940# --------------------------- 3941m4_defun([_LT_COMPILER_PIC], 3942[m4_require([_LT_TAG_COMPILER])dnl 3943_LT_TAGVAR(lt_prog_compiler_wl, $1)= 3944_LT_TAGVAR(lt_prog_compiler_pic, $1)= 3945_LT_TAGVAR(lt_prog_compiler_static, $1)= 3946 3947AC_MSG_CHECKING([for $compiler option to produce PIC]) 3948m4_if([$1], [CXX], [ 3949 # C++ specific cases for pic, static, wl, etc. 3950 if test "$GXX" = yes; then 3951 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3952 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 3953 3954 case $host_os in 3955 aix*) 3956 # All AIX code is PIC. 3957 if test "$host_cpu" = ia64; then 3958 # AIX 5 now supports IA64 processor 3959 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3960 fi 3961 ;; 3962 3963 amigaos*) 3964 case $host_cpu in 3965 powerpc) 3966 # see comment about AmigaOS4 .so support 3967 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3968 ;; 3969 m68k) 3970 # FIXME: we need at least 68020 code to build shared libraries, but 3971 # adding the `-m68020' flag to GCC prevents building anything better, 3972 # like `-m68040'. 3973 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 3974 ;; 3975 esac 3976 ;; 3977 3978 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 3979 # PIC is the default for these OSes. 3980 ;; 3981 mingw* | cygwin* | os2* | pw32* | cegcc*) 3982 # This hack is so that the source file can tell whether it is being 3983 # built for inclusion in a dll (and should export symbols for example). 3984 # Although the cygwin gcc ignores -fPIC, still need this for old-style 3985 # (--disable-auto-import) libraries 3986 m4_if([$1], [GCJ], [], 3987 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 3988 ;; 3989 darwin* | rhapsody*) 3990 # PIC is the default on this platform 3991 # Common symbols not allowed in MH_DYLIB files 3992 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 3993 ;; 3994 *djgpp*) 3995 # DJGPP does not support shared libraries at all 3996 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 3997 ;; 3998 interix[[3-9]]*) 3999 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 4000 # Instead, we relocate shared libraries at runtime. 4001 ;; 4002 sysv4*MP*) 4003 if test -d /usr/nec; then 4004 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 4005 fi 4006 ;; 4007 hpux*) 4008 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 4009 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 4010 # sets the default TLS model and affects inlining. 4011 case $host_cpu in 4012 hppa*64*) 4013 ;; 4014 *) 4015 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4016 ;; 4017 esac 4018 ;; 4019 *qnx* | *nto*) 4020 # QNX uses GNU C++, but need to define -shared option too, otherwise 4021 # it will coredump. 4022 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4023 ;; 4024 *) 4025 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4026 ;; 4027 esac 4028 else 4029 case $host_os in 4030 aix[[4-9]]*) 4031 # All AIX code is PIC. 4032 if test "$host_cpu" = ia64; then 4033 # AIX 5 now supports IA64 processor 4034 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4035 else 4036 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 4037 fi 4038 ;; 4039 chorus*) 4040 case $cc_basename in 4041 cxch68*) 4042 # Green Hills C++ Compiler 4043 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 4044 ;; 4045 esac 4046 ;; 4047 dgux*) 4048 case $cc_basename in 4049 ec++*) 4050 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4051 ;; 4052 ghcx*) 4053 # Green Hills C++ Compiler 4054 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4055 ;; 4056 *) 4057 ;; 4058 esac 4059 ;; 4060 freebsd* | dragonfly*) 4061 # FreeBSD uses GNU C++ 4062 ;; 4063 hpux9* | hpux10* | hpux11*) 4064 case $cc_basename in 4065 CC*) 4066 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4067 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 4068 if test "$host_cpu" != ia64; then 4069 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4070 fi 4071 ;; 4072 aCC*) 4073 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4074 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 4075 case $host_cpu in 4076 hppa*64*|ia64*) 4077 # +Z the default 4078 ;; 4079 *) 4080 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4081 ;; 4082 esac 4083 ;; 4084 *) 4085 ;; 4086 esac 4087 ;; 4088 interix*) 4089 # This is c89, which is MS Visual C++ (no shared libs) 4090 # Anyone wants to do a port? 4091 ;; 4092 irix5* | irix6* | nonstopux*) 4093 case $cc_basename in 4094 CC*) 4095 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4096 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4097 # CC pic flag -KPIC is the default. 4098 ;; 4099 *) 4100 ;; 4101 esac 4102 ;; 4103 linux* | k*bsd*-gnu) 4104 case $cc_basename in 4105 KCC*) 4106 # KAI C++ Compiler 4107 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4108 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4109 ;; 4110 ecpc* ) 4111 # old Intel C++ for x86_64 which still supported -KPIC. 4112 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4113 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4114 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4115 ;; 4116 icpc* ) 4117 # Intel C++, used to be incompatible with GCC. 4118 # ICC 10 doesn't accept -KPIC any more. 4119 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4120 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4121 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4122 ;; 4123 pgCC* | pgcpp*) 4124 # Portland Group C++ compiler 4125 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4126 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4127 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4128 ;; 4129 cxx*) 4130 # Compaq C++ 4131 # Make sure the PIC flag is empty. It appears that all Alpha 4132 # Linux and Compaq Tru64 Unix objects are PIC. 4133 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4134 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4135 ;; 4136 xlc* | xlC*) 4137 # IBM XL 8.0 on PPC 4138 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4139 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 4140 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 4141 ;; 4142 *) 4143 case `$CC -V 2>&1 | sed 5q` in 4144 *Sun\ C*) 4145 # Sun C++ 5.9 4146 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4147 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4148 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4149 ;; 4150 esac 4151 ;; 4152 esac 4153 ;; 4154 lynxos*) 4155 ;; 4156 m88k*) 4157 ;; 4158 mvs*) 4159 case $cc_basename in 4160 cxx*) 4161 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 4162 ;; 4163 *) 4164 ;; 4165 esac 4166 ;; 4167 netbsd*) 4168 ;; 4169 *qnx* | *nto*) 4170 # QNX uses GNU C++, but need to define -shared option too, otherwise 4171 # it will coredump. 4172 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4173 ;; 4174 osf3* | osf4* | osf5*) 4175 case $cc_basename in 4176 KCC*) 4177 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4178 ;; 4179 RCC*) 4180 # Rational C++ 2.4.1 4181 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4182 ;; 4183 cxx*) 4184 # Digital/Compaq C++ 4185 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4186 # Make sure the PIC flag is empty. It appears that all Alpha 4187 # Linux and Compaq Tru64 Unix objects are PIC. 4188 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4189 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4190 ;; 4191 *) 4192 ;; 4193 esac 4194 ;; 4195 psos*) 4196 ;; 4197 solaris*) 4198 case $cc_basename in 4199 CC*) 4200 # Sun C++ 4.2, 5.x and Centerline C++ 4201 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4202 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4203 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4204 ;; 4205 gcx*) 4206 # Green Hills C++ Compiler 4207 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4208 ;; 4209 *) 4210 ;; 4211 esac 4212 ;; 4213 sunos4*) 4214 case $cc_basename in 4215 CC*) 4216 # Sun C++ 4.x 4217 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4218 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4219 ;; 4220 lcc*) 4221 # Lucid 4222 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4223 ;; 4224 *) 4225 ;; 4226 esac 4227 ;; 4228 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 4229 case $cc_basename in 4230 CC*) 4231 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4232 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4233 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4234 ;; 4235 esac 4236 ;; 4237 tandem*) 4238 case $cc_basename in 4239 NCC*) 4240 # NonStop-UX NCC 3.20 4241 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4242 ;; 4243 *) 4244 ;; 4245 esac 4246 ;; 4247 vxworks*) 4248 ;; 4249 *) 4250 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4251 ;; 4252 esac 4253 fi 4254], 4255[ 4256 if test "$GCC" = yes; then 4257 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4258 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4259 4260 case $host_os in 4261 aix*) 4262 # All AIX code is PIC. 4263 if test "$host_cpu" = ia64; then 4264 # AIX 5 now supports IA64 processor 4265 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4266 fi 4267 ;; 4268 4269 amigaos*) 4270 case $host_cpu in 4271 powerpc) 4272 # see comment about AmigaOS4 .so support 4273 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4274 ;; 4275 m68k) 4276 # FIXME: we need at least 68020 code to build shared libraries, but 4277 # adding the `-m68020' flag to GCC prevents building anything better, 4278 # like `-m68040'. 4279 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4280 ;; 4281 esac 4282 ;; 4283 4284 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4285 # PIC is the default for these OSes. 4286 ;; 4287 4288 mingw* | cygwin* | pw32* | os2* | cegcc*) 4289 # This hack is so that the source file can tell whether it is being 4290 # built for inclusion in a dll (and should export symbols for example). 4291 # Although the cygwin gcc ignores -fPIC, still need this for old-style 4292 # (--disable-auto-import) libraries 4293 m4_if([$1], [GCJ], [], 4294 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4295 ;; 4296 4297 darwin* | rhapsody*) 4298 # PIC is the default on this platform 4299 # Common symbols not allowed in MH_DYLIB files 4300 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4301 ;; 4302 4303 hpux*) 4304 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 4305 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 4306 # sets the default TLS model and affects inlining. 4307 case $host_cpu in 4308 hppa*64*) 4309 # +Z the default 4310 ;; 4311 *) 4312 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4313 ;; 4314 esac 4315 ;; 4316 4317 interix[[3-9]]*) 4318 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 4319 # Instead, we relocate shared libraries at runtime. 4320 ;; 4321 4322 msdosdjgpp*) 4323 # Just because we use GCC doesn't mean we suddenly get shared libraries 4324 # on systems that don't support them. 4325 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4326 enable_shared=no 4327 ;; 4328 4329 *nto* | *qnx*) 4330 # QNX uses GNU C++, but need to define -shared option too, otherwise 4331 # it will coredump. 4332 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4333 ;; 4334 4335 sysv4*MP*) 4336 if test -d /usr/nec; then 4337 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 4338 fi 4339 ;; 4340 4341 *) 4342 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4343 ;; 4344 esac 4345 else 4346 # PORTME Check for flag to pass linker flags through the system compiler. 4347 case $host_os in 4348 aix*) 4349 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4350 if test "$host_cpu" = ia64; then 4351 # AIX 5 now supports IA64 processor 4352 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4353 else 4354 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 4355 fi 4356 ;; 4357 4358 mingw* | cygwin* | pw32* | os2* | cegcc*) 4359 # This hack is so that the source file can tell whether it is being 4360 # built for inclusion in a dll (and should export symbols for example). 4361 m4_if([$1], [GCJ], [], 4362 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4363 ;; 4364 4365 hpux9* | hpux10* | hpux11*) 4366 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4367 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4368 # not for PA HP-UX. 4369 case $host_cpu in 4370 hppa*64*|ia64*) 4371 # +Z the default 4372 ;; 4373 *) 4374 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4375 ;; 4376 esac 4377 # Is there a better lt_prog_compiler_static that works with the bundled CC? 4378 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 4379 ;; 4380 4381 irix5* | irix6* | nonstopux*) 4382 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4383 # PIC (with -KPIC) is the default. 4384 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4385 ;; 4386 4387 linux* | k*bsd*-gnu) 4388 case $cc_basename in 4389 # old Intel for x86_64 which still supported -KPIC. 4390 ecc*) 4391 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4392 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4393 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4394 ;; 4395 # icc used to be incompatible with GCC. 4396 # ICC 10 doesn't accept -KPIC any more. 4397 icc* | ifort*) 4398 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4399 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4400 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4401 ;; 4402 # Lahey Fortran 8.1. 4403 lf95*) 4404 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4405 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 4406 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 4407 ;; 4408 pgcc* | pgf77* | pgf90* | pgf95*) 4409 # Portland Group compilers (*not* the Pentium gcc compiler, 4410 # which looks to be a dead project) 4411 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4412 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4413 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4414 ;; 4415 ccc*) 4416 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4417 # All Alpha code is PIC. 4418 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4419 ;; 4420 xl*) 4421 # IBM XL C 8.0/Fortran 10.1 on PPC 4422 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4423 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 4424 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 4425 ;; 4426 *) 4427 case `$CC -V 2>&1 | sed 5q` in 4428 *Sun\ C*) 4429 # Sun C 5.9 4430 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4431 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4432 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4433 ;; 4434 *Sun\ F*) 4435 # Sun Fortran 8.3 passes all unrecognized flags to the linker 4436 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4437 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4438 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 4439 ;; 4440 esac 4441 ;; 4442 esac 4443 ;; 4444 4445 newsos6) 4446 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4447 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4448 ;; 4449 4450 *nto* | *qnx*) 4451 # QNX uses GNU C++, but need to define -shared option too, otherwise 4452 # it will coredump. 4453 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4454 ;; 4455 4456 osf3* | osf4* | osf5*) 4457 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4458 # All OSF/1 code is PIC. 4459 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4460 ;; 4461 4462 rdos*) 4463 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4464 ;; 4465 4466 solaris*) 4467 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4468 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4469 case $cc_basename in 4470 f77* | f90* | f95*) 4471 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 4472 *) 4473 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 4474 esac 4475 ;; 4476 4477 sunos4*) 4478 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4479 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4480 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4481 ;; 4482 4483 sysv4 | sysv4.2uw2* | sysv4.3*) 4484 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4485 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4486 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4487 ;; 4488 4489 sysv4*MP*) 4490 if test -d /usr/nec ;then 4491 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 4492 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4493 fi 4494 ;; 4495 4496 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 4497 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4498 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4499 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4500 ;; 4501 4502 unicos*) 4503 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4504 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4505 ;; 4506 4507 uts4*) 4508 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4509 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4510 ;; 4511 4512 *) 4513 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4514 ;; 4515 esac 4516 fi 4517]) 4518case $host_os in 4519 # For platforms which do not support PIC, -DPIC is meaningless: 4520 *djgpp*) 4521 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4522 ;; 4523 *) 4524 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 4525 ;; 4526esac 4527AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 4528_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 4529 [How to pass a linker flag through the compiler]) 4530 4531# 4532# Check to make sure the PIC flag actually works. 4533# 4534if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 4535 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 4536 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 4537 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 4538 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 4539 "" | " "*) ;; 4540 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 4541 esac], 4542 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 4543 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 4544fi 4545_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 4546 [Additional compiler flags for building library objects]) 4547 4548# 4549# Check to make sure the static flag actually works. 4550# 4551wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 4552_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 4553 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 4554 $lt_tmp_static_flag, 4555 [], 4556 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 4557_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 4558 [Compiler flag to prevent dynamic linking]) 4559])# _LT_COMPILER_PIC 4560 4561 4562# _LT_LINKER_SHLIBS([TAGNAME]) 4563# ---------------------------- 4564# See if the linker supports building shared libraries. 4565m4_defun([_LT_LINKER_SHLIBS], 4566[AC_REQUIRE([LT_PATH_LD])dnl 4567AC_REQUIRE([LT_PATH_NM])dnl 4568m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4569m4_require([_LT_DECL_EGREP])dnl 4570m4_require([_LT_DECL_SED])dnl 4571m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 4572m4_require([_LT_TAG_COMPILER])dnl 4573AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 4574m4_if([$1], [CXX], [ 4575 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4576 case $host_os in 4577 aix[[4-9]]*) 4578 # If we're using GNU nm, then we don't want the "-C" option. 4579 # -C means demangle to AIX nm, but means don't demangle with GNU nm 4580 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4581 _LT_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' 4582 else 4583 _LT_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' 4584 fi 4585 ;; 4586 pw32*) 4587 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 4588 ;; 4589 cygwin* | mingw* | cegcc*) 4590 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 4591 ;; 4592 *) 4593 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4594 ;; 4595 esac 4596 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 4597], [ 4598 runpath_var= 4599 _LT_TAGVAR(allow_undefined_flag, $1)= 4600 _LT_TAGVAR(always_export_symbols, $1)=no 4601 _LT_TAGVAR(archive_cmds, $1)= 4602 _LT_TAGVAR(archive_expsym_cmds, $1)= 4603 _LT_TAGVAR(compiler_needs_object, $1)=no 4604 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 4605 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 4606 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4607 _LT_TAGVAR(hardcode_automatic, $1)=no 4608 _LT_TAGVAR(hardcode_direct, $1)=no 4609 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 4610 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 4611 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 4612 _LT_TAGVAR(hardcode_libdir_separator, $1)= 4613 _LT_TAGVAR(hardcode_minus_L, $1)=no 4614 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 4615 _LT_TAGVAR(inherit_rpath, $1)=no 4616 _LT_TAGVAR(link_all_deplibs, $1)=unknown 4617 _LT_TAGVAR(module_cmds, $1)= 4618 _LT_TAGVAR(module_expsym_cmds, $1)= 4619 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 4620 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 4621 _LT_TAGVAR(thread_safe_flag_spec, $1)= 4622 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4623 # include_expsyms should be a list of space-separated symbols to be *always* 4624 # included in the symbol list 4625 _LT_TAGVAR(include_expsyms, $1)= 4626 # exclude_expsyms can be an extended regexp of symbols to exclude 4627 # it will be wrapped by ` (' and `)$', so one must not match beginning or 4628 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 4629 # as well as any symbol that contains `d'. 4630 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 4631 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 4632 # platforms (ab)use it in PIC code, but their linkers get confused if 4633 # the symbol is explicitly referenced. Since portable code cannot 4634 # rely on this symbol name, it's probably fine to never include it in 4635 # preloaded symbol tables. 4636 # Exclude shared library initialization/finalization symbols. 4637dnl Note also adjust exclude_expsyms for C++ above. 4638 extract_expsyms_cmds= 4639 4640 case $host_os in 4641 cygwin* | mingw* | pw32* | cegcc*) 4642 # FIXME: the MSVC++ port hasn't been tested in a loooong time 4643 # When not using gcc, we currently assume that we are using 4644 # Microsoft Visual C++. 4645 if test "$GCC" != yes; then 4646 with_gnu_ld=no 4647 fi 4648 ;; 4649 interix*) 4650 # we just hope/assume this is gcc and not c89 (= MSVC++) 4651 with_gnu_ld=yes 4652 ;; 4653 openbsd*) 4654 with_gnu_ld=no 4655 ;; 4656 esac 4657 4658 _LT_TAGVAR(ld_shlibs, $1)=yes 4659 if test "$with_gnu_ld" = yes; then 4660 # If archive_cmds runs LD, not CC, wlarc should be empty 4661 wlarc='${wl}' 4662 4663 # Set some defaults for GNU ld with shared library support. These 4664 # are reset later if shared libraries are not supported. Putting them 4665 # here allows them to be overridden if necessary. 4666 runpath_var=LD_RUN_PATH 4667 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4668 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 4669 # ancient GNU ld didn't support --whole-archive et. al. 4670 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 4671 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 4672 else 4673 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4674 fi 4675 supports_anon_versioning=no 4676 case `$LD -v 2>&1` in 4677 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 4678 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 4679 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 4680 *\ 2.11.*) ;; # other 2.11 versions 4681 *) supports_anon_versioning=yes ;; 4682 esac 4683 4684 # See if GNU ld supports shared libraries. 4685 case $host_os in 4686 aix[[3-9]]*) 4687 # On AIX/PPC, the GNU linker is very broken 4688 if test "$host_cpu" != ia64; then 4689 _LT_TAGVAR(ld_shlibs, $1)=no 4690 cat <<_LT_EOF 1>&2 4691 4692*** Warning: the GNU linker, at least up to release 2.9.1, is reported 4693*** to be unable to reliably create shared libraries on AIX. 4694*** Therefore, libtool is disabling shared libraries support. If you 4695*** really care for shared libraries, you may want to modify your PATH 4696*** so that a non-GNU linker is found, and then restart. 4697 4698_LT_EOF 4699 fi 4700 ;; 4701 4702 amigaos*) 4703 case $host_cpu in 4704 powerpc) 4705 # see comment about AmigaOS4 .so support 4706 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4707 _LT_TAGVAR(archive_expsym_cmds, $1)='' 4708 ;; 4709 m68k) 4710 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 4711 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4712 _LT_TAGVAR(hardcode_minus_L, $1)=yes 4713 ;; 4714 esac 4715 ;; 4716 4717 beos*) 4718 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4719 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4720 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 4721 # support --undefined. This deserves some investigation. FIXME 4722 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4723 else 4724 _LT_TAGVAR(ld_shlibs, $1)=no 4725 fi 4726 ;; 4727 4728 cygwin* | mingw* | pw32* | cegcc*) 4729 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 4730 # as there is no search path for DLLs. 4731 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4732 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4733 _LT_TAGVAR(always_export_symbols, $1)=no 4734 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 4735 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' 4736 4737 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 4738 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 4739 # If the export-symbols file already is a .def file (1st line 4740 # is EXPORTS), use it as is; otherwise, prepend... 4741 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 4742 cp $export_symbols $output_objdir/$soname.def; 4743 else 4744 echo EXPORTS > $output_objdir/$soname.def; 4745 cat $export_symbols >> $output_objdir/$soname.def; 4746 fi~ 4747 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 4748 else 4749 _LT_TAGVAR(ld_shlibs, $1)=no 4750 fi 4751 ;; 4752 4753 interix[[3-9]]*) 4754 _LT_TAGVAR(hardcode_direct, $1)=no 4755 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4756 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4757 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4758 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 4759 # Instead, shared libraries are loaded at an image base (0x10000000 by 4760 # default) and relocated if they conflict, which is a slow very memory 4761 # consuming and fragmenting process. To avoid this, we pick a random, 4762 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 4763 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 4764 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 4765 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 4766 ;; 4767 4768 gnu* | linux* | tpf* | k*bsd*-gnu) 4769 tmp_diet=no 4770 if test "$host_os" = linux-dietlibc; then 4771 case $cc_basename in 4772 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 4773 esac 4774 fi 4775 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 4776 && test "$tmp_diet" = no 4777 then 4778 tmp_addflag= 4779 tmp_sharedflag='-shared' 4780 case $cc_basename,$host_cpu in 4781 pgcc*) # Portland Group C compiler 4782 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 4783 tmp_addflag=' $pic_flag' 4784 ;; 4785 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 4786 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 4787 tmp_addflag=' $pic_flag -Mnomain' ;; 4788 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 4789 tmp_addflag=' -i_dynamic' ;; 4790 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 4791 tmp_addflag=' -i_dynamic -nofor_main' ;; 4792 ifc* | ifort*) # Intel Fortran compiler 4793 tmp_addflag=' -nofor_main' ;; 4794 lf95*) # Lahey Fortran 8.1 4795 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4796 tmp_sharedflag='--shared' ;; 4797 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 4798 tmp_sharedflag='-qmkshrobj' 4799 tmp_addflag= ;; 4800 esac 4801 case `$CC -V 2>&1 | sed 5q` in 4802 *Sun\ C*) # Sun C 5.9 4803 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 4804 _LT_TAGVAR(compiler_needs_object, $1)=yes 4805 tmp_sharedflag='-G' ;; 4806 *Sun\ F*) # Sun Fortran 8.3 4807 tmp_sharedflag='-G' ;; 4808 esac 4809 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4810 4811 if test "x$supports_anon_versioning" = xyes; then 4812 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 4813 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 4814 echo "local: *; };" >> $output_objdir/$libname.ver~ 4815 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 4816 fi 4817 4818 case $cc_basename in 4819 xlf*) 4820 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 4821 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 4822 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 4823 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 4824 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 4825 if test "x$supports_anon_versioning" = xyes; then 4826 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 4827 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 4828 echo "local: *; };" >> $output_objdir/$libname.ver~ 4829 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 4830 fi 4831 ;; 4832 esac 4833 else 4834 _LT_TAGVAR(ld_shlibs, $1)=no 4835 fi 4836 ;; 4837 4838 netbsd*) 4839 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 4840 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 4841 wlarc= 4842 else 4843 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4844 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 4845 fi 4846 ;; 4847 4848 solaris*) 4849 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 4850 _LT_TAGVAR(ld_shlibs, $1)=no 4851 cat <<_LT_EOF 1>&2 4852 4853*** Warning: The releases 2.8.* of the GNU linker cannot reliably 4854*** create shared libraries on Solaris systems. Therefore, libtool 4855*** is disabling shared libraries support. We urge you to upgrade GNU 4856*** binutils to release 2.9.1 or newer. Another option is to modify 4857*** your PATH or compiler configuration so that the native linker is 4858*** used, and then restart. 4859 4860_LT_EOF 4861 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4862 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4863 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 4864 else 4865 _LT_TAGVAR(ld_shlibs, $1)=no 4866 fi 4867 ;; 4868 4869 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 4870 case `$LD -v 2>&1` in 4871 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 4872 _LT_TAGVAR(ld_shlibs, $1)=no 4873 cat <<_LT_EOF 1>&2 4874 4875*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 4876*** reliably create shared libraries on SCO systems. Therefore, libtool 4877*** is disabling shared libraries support. We urge you to upgrade GNU 4878*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 4879*** your PATH or compiler configuration so that the native linker is 4880*** used, and then restart. 4881 4882_LT_EOF 4883 ;; 4884 *) 4885 # For security reasons, it is highly recommended that you always 4886 # use absolute paths for naming shared libraries, and exclude the 4887 # DT_RUNPATH tag from executables and libraries. But doing so 4888 # requires that you compile everything twice, which is a pain. 4889 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4890 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4891 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4892 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 4893 else 4894 _LT_TAGVAR(ld_shlibs, $1)=no 4895 fi 4896 ;; 4897 esac 4898 ;; 4899 4900 sunos4*) 4901 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 4902 wlarc= 4903 _LT_TAGVAR(hardcode_direct, $1)=yes 4904 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4905 ;; 4906 4907 *) 4908 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4909 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4910 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 4911 else 4912 _LT_TAGVAR(ld_shlibs, $1)=no 4913 fi 4914 ;; 4915 esac 4916 4917 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then 4918 runpath_var= 4919 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 4920 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 4921 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4922 fi 4923 else 4924 # PORTME fill in a description of your system's linker (not GNU ld) 4925 case $host_os in 4926 aix3*) 4927 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4928 _LT_TAGVAR(always_export_symbols, $1)=yes 4929 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 4930 # Note: this linker hardcodes the directories in LIBPATH if there 4931 # are no directories specified by -L. 4932 _LT_TAGVAR(hardcode_minus_L, $1)=yes 4933 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 4934 # Neither direct hardcoding nor static linking is supported with a 4935 # broken collect2. 4936 _LT_TAGVAR(hardcode_direct, $1)=unsupported 4937 fi 4938 ;; 4939 4940 aix[[4-9]]*) 4941 if test "$host_cpu" = ia64; then 4942 # On IA64, the linker does run time linking by default, so we don't 4943 # have to do anything special. 4944 aix_use_runtimelinking=no 4945 exp_sym_flag='-Bexport' 4946 no_entry_flag="" 4947 else 4948 # If we're using GNU nm, then we don't want the "-C" option. 4949 # -C means demangle to AIX nm, but means don't demangle with GNU nm 4950 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4951 _LT_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' 4952 else 4953 _LT_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' 4954 fi 4955 aix_use_runtimelinking=no 4956 4957 # Test if we are trying to use run time linking or normal 4958 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 4959 # need to do runtime linking. 4960 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 4961 for ld_flag in $LDFLAGS; do 4962 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 4963 aix_use_runtimelinking=yes 4964 break 4965 fi 4966 done 4967 ;; 4968 esac 4969 4970 exp_sym_flag='-bexport' 4971 no_entry_flag='-bnoentry' 4972 fi 4973 4974 # When large executables or shared objects are built, AIX ld can 4975 # have problems creating the table of contents. If linking a library 4976 # or program results in "error TOC overflow" add -mminimal-toc to 4977 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 4978 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 4979 4980 _LT_TAGVAR(archive_cmds, $1)='' 4981 _LT_TAGVAR(hardcode_direct, $1)=yes 4982 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 4983 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 4984 _LT_TAGVAR(link_all_deplibs, $1)=yes 4985 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 4986 4987 if test "$GCC" = yes; then 4988 case $host_os in aix4.[[012]]|aix4.[[012]].*) 4989 # We only want to do this on AIX 4.2 and lower, the check 4990 # below for broken collect2 doesn't work under 4.3+ 4991 collect2name=`${CC} -print-prog-name=collect2` 4992 if test -f "$collect2name" && 4993 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 4994 then 4995 # We have reworked collect2 4996 : 4997 else 4998 # We have old collect2 4999 _LT_TAGVAR(hardcode_direct, $1)=unsupported 5000 # It fails to find uninstalled libraries when the uninstalled 5001 # path is not listed in the libpath. Setting hardcode_minus_L 5002 # to unsupported forces relinking 5003 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5004 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5005 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5006 fi 5007 ;; 5008 esac 5009 shared_flag='-shared' 5010 if test "$aix_use_runtimelinking" = yes; then 5011 shared_flag="$shared_flag "'${wl}-G' 5012 fi 5013 else 5014 # not using gcc 5015 if test "$host_cpu" = ia64; then 5016 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 5017 # chokes on -Wl,-G. The following line is correct: 5018 shared_flag='-G' 5019 else 5020 if test "$aix_use_runtimelinking" = yes; then 5021 shared_flag='${wl}-G' 5022 else 5023 shared_flag='${wl}-bM:SRE' 5024 fi 5025 fi 5026 fi 5027 5028 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 5029 # It seems that -bexpall does not export symbols beginning with 5030 # underscore (_), so it is better to generate a list of symbols to export. 5031 _LT_TAGVAR(always_export_symbols, $1)=yes 5032 if test "$aix_use_runtimelinking" = yes; then 5033 # Warning - without using the other runtime loading flags (-brtl), 5034 # -berok will link without error, but may produce a broken library. 5035 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 5036 # Determine the default libpath from the value encoded in an 5037 # empty executable. 5038 _LT_SYS_MODULE_PATH_AIX 5039 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5040 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 5041 else 5042 if test "$host_cpu" = ia64; then 5043 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 5044 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 5045 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 5046 else 5047 # Determine the default libpath from the value encoded in an 5048 # empty executable. 5049 _LT_SYS_MODULE_PATH_AIX 5050 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5051 # Warning - without using the other run time loading flags, 5052 # -berok will link without error, but may produce a broken library. 5053 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 5054 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 5055 # Exported symbols can be pulled into shared objects from archives 5056 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 5057 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5058 # This is similar to how AIX traditionally builds its shared libraries. 5059 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 5060 fi 5061 fi 5062 ;; 5063 5064 amigaos*) 5065 case $host_cpu in 5066 powerpc) 5067 # see comment about AmigaOS4 .so support 5068 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5069 _LT_TAGVAR(archive_expsym_cmds, $1)='' 5070 ;; 5071 m68k) 5072 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 5073 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5074 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5075 ;; 5076 esac 5077 ;; 5078 5079 bsdi[[45]]*) 5080 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 5081 ;; 5082 5083 cygwin* | mingw* | pw32* | cegcc*) 5084 # When not using gcc, we currently assume that we are using 5085 # Microsoft Visual C++. 5086 # hardcode_libdir_flag_spec is actually meaningless, as there is 5087 # no search path for DLLs. 5088 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5089 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5090 # Tell ltmain to make .lib files, not .a files. 5091 libext=lib 5092 # Tell ltmain to make .dll files, not .so files. 5093 shrext_cmds=".dll" 5094 # FIXME: Setting linknames here is a bad hack. 5095 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 5096 # The linker will automatically build a .lib file if we build a DLL. 5097 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 5098 # FIXME: Should let the user specify the lib program. 5099 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 5100 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 5101 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5102 ;; 5103 5104 darwin* | rhapsody*) 5105 _LT_DARWIN_LINKER_FEATURES($1) 5106 ;; 5107 5108 dgux*) 5109 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5110 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5111 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5112 ;; 5113 5114 freebsd1*) 5115 _LT_TAGVAR(ld_shlibs, $1)=no 5116 ;; 5117 5118 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 5119 # support. Future versions do this automatically, but an explicit c++rt0.o 5120 # does not break anything, and helps significantly (at the cost of a little 5121 # extra space). 5122 freebsd2.2*) 5123 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 5124 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5125 _LT_TAGVAR(hardcode_direct, $1)=yes 5126 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5127 ;; 5128 5129 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 5130 freebsd2*) 5131 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5132 _LT_TAGVAR(hardcode_direct, $1)=yes 5133 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5134 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5135 ;; 5136 5137 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5138 freebsd* | dragonfly*) 5139 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 5140 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5141 _LT_TAGVAR(hardcode_direct, $1)=yes 5142 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5143 ;; 5144 5145 hpux9*) 5146 if test "$GCC" = yes; then 5147 _LT_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' 5148 else 5149 _LT_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' 5150 fi 5151 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5152 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5153 _LT_TAGVAR(hardcode_direct, $1)=yes 5154 5155 # hardcode_minus_L: Not really in the search PATH, 5156 # but as the default location of the library. 5157 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5158 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5159 ;; 5160 5161 hpux10*) 5162 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 5163 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5164 else 5165 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 5166 fi 5167 if test "$with_gnu_ld" = no; then 5168 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5169 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 5170 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5171 _LT_TAGVAR(hardcode_direct, $1)=yes 5172 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5173 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5174 # hardcode_minus_L: Not really in the search PATH, 5175 # but as the default location of the library. 5176 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5177 fi 5178 ;; 5179 5180 hpux11*) 5181 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 5182 case $host_cpu in 5183 hppa*64*) 5184 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5185 ;; 5186 ia64*) 5187 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5188 ;; 5189 *) 5190 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5191 ;; 5192 esac 5193 else 5194 case $host_cpu in 5195 hppa*64*) 5196 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5197 ;; 5198 ia64*) 5199 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5200 ;; 5201 *) 5202 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5203 ;; 5204 esac 5205 fi 5206 if test "$with_gnu_ld" = no; then 5207 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5208 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5209 5210 case $host_cpu in 5211 hppa*64*|ia64*) 5212 _LT_TAGVAR(hardcode_direct, $1)=no 5213 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5214 ;; 5215 *) 5216 _LT_TAGVAR(hardcode_direct, $1)=yes 5217 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5218 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5219 5220 # hardcode_minus_L: Not really in the search PATH, 5221 # but as the default location of the library. 5222 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5223 ;; 5224 esac 5225 fi 5226 ;; 5227 5228 irix5* | irix6* | nonstopux*) 5229 if test "$GCC" = yes; then 5230 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 5231 # Try to use the -exported_symbol ld option, if it does not 5232 # work, assume that -exports_file does not work either and 5233 # implicitly export all symbols. 5234 save_LDFLAGS="$LDFLAGS" 5235 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 5236 AC_LINK_IFELSE(int foo(void) {}, 5237 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 5238 ) 5239 LDFLAGS="$save_LDFLAGS" 5240 else 5241 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 5242 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 5243 fi 5244 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5245 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5246 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5247 _LT_TAGVAR(inherit_rpath, $1)=yes 5248 _LT_TAGVAR(link_all_deplibs, $1)=yes 5249 ;; 5250 5251 netbsd*) 5252 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 5253 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 5254 else 5255 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 5256 fi 5257 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5258 _LT_TAGVAR(hardcode_direct, $1)=yes 5259 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5260 ;; 5261 5262 newsos6) 5263 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5264 _LT_TAGVAR(hardcode_direct, $1)=yes 5265 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5266 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5267 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5268 ;; 5269 5270 *nto* | *qnx*) 5271 ;; 5272 5273 openbsd*) 5274 if test -f /usr/libexec/ld.so; then 5275 _LT_TAGVAR(hardcode_direct, $1)=yes 5276 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5277 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5278 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5279 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5280 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 5281 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5282 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5283 else 5284 case $host_os in 5285 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 5286 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5287 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5288 ;; 5289 *) 5290 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5291 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5292 ;; 5293 esac 5294 fi 5295 else 5296 _LT_TAGVAR(ld_shlibs, $1)=no 5297 fi 5298 ;; 5299 5300 os2*) 5301 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5302 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5303 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5304 _LT_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' 5305 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 5306 ;; 5307 5308 osf3*) 5309 if test "$GCC" = yes; then 5310 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 5311 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 5312 else 5313 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5314 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 5315 fi 5316 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5317 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5318 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5319 ;; 5320 5321 osf4* | osf5*) # as osf3* with the addition of -msym flag 5322 if test "$GCC" = yes; then 5323 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 5324 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 5325 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5326 else 5327 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5328 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 5329 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 5330 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 5331 5332 # Both c and cxx compiler support -rpath directly 5333 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 5334 fi 5335 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5336 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5337 ;; 5338 5339 solaris*) 5340 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 5341 if test "$GCC" = yes; then 5342 wlarc='${wl}' 5343 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5344 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5345 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 5346 else 5347 case `$CC -V 2>&1` in 5348 *"Compilers 5.0"*) 5349 wlarc='' 5350 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5351 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5352 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 5353 ;; 5354 *) 5355 wlarc='${wl}' 5356 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 5357 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5358 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 5359 ;; 5360 esac 5361 fi 5362 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5363 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5364 case $host_os in 5365 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 5366 *) 5367 # The compiler driver will combine and reorder linker options, 5368 # but understands `-z linker_flag'. GCC discards it without `$wl', 5369 # but is careful enough not to reorder. 5370 # Supported since Solaris 2.6 (maybe 2.5.1?) 5371 if test "$GCC" = yes; then 5372 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 5373 else 5374 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 5375 fi 5376 ;; 5377 esac 5378 _LT_TAGVAR(link_all_deplibs, $1)=yes 5379 ;; 5380 5381 sunos4*) 5382 if test "x$host_vendor" = xsequent; then 5383 # Use $CC to link under sequent, because it throws in some extra .o 5384 # files that make .init and .fini sections work. 5385 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 5386 else 5387 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 5388 fi 5389 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5390 _LT_TAGVAR(hardcode_direct, $1)=yes 5391 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5392 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5393 ;; 5394 5395 sysv4) 5396 case $host_vendor in 5397 sni) 5398 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5399 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 5400 ;; 5401 siemens) 5402 ## LD is ld it makes a PLAMLIB 5403 ## CC just makes a GrossModule. 5404 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 5405 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 5406 _LT_TAGVAR(hardcode_direct, $1)=no 5407 ;; 5408 motorola) 5409 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5410 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 5411 ;; 5412 esac 5413 runpath_var='LD_RUN_PATH' 5414 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5415 ;; 5416 5417 sysv4.3*) 5418 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5419 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5420 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 5421 ;; 5422 5423 sysv4*MP*) 5424 if test -d /usr/nec; then 5425 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5426 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5427 runpath_var=LD_RUN_PATH 5428 hardcode_runpath_var=yes 5429 _LT_TAGVAR(ld_shlibs, $1)=yes 5430 fi 5431 ;; 5432 5433 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 5434 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 5435 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5436 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5437 runpath_var='LD_RUN_PATH' 5438 5439 if test "$GCC" = yes; then 5440 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5441 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5442 else 5443 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5444 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5445 fi 5446 ;; 5447 5448 sysv5* | sco3.2v5* | sco5v6*) 5449 # Note: We can NOT use -z defs as we might desire, because we do not 5450 # link with -lc, and that would cause any symbols used from libc to 5451 # always be unresolved, which means just about no library would 5452 # ever link correctly. If we're not using GNU ld we use -z text 5453 # though, which does catch some bad symbols but isn't as heavy-handed 5454 # as -z defs. 5455 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 5456 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 5457 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5458 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5459 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 5460 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5461 _LT_TAGVAR(link_all_deplibs, $1)=yes 5462 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 5463 runpath_var='LD_RUN_PATH' 5464 5465 if test "$GCC" = yes; then 5466 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5467 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5468 else 5469 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5470 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5471 fi 5472 ;; 5473 5474 uts4*) 5475 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5476 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5477 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5478 ;; 5479 5480 *) 5481 _LT_TAGVAR(ld_shlibs, $1)=no 5482 ;; 5483 esac 5484 5485 if test x$host_vendor = xsni; then 5486 case $host in 5487 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5488 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' 5489 ;; 5490 esac 5491 fi 5492 fi 5493]) 5494AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 5495test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 5496 5497_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 5498 5499_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 5500_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 5501_LT_DECL([], [extract_expsyms_cmds], [2], 5502 [The commands to extract the exported symbol list from a shared archive]) 5503 5504# 5505# Do we need to explicitly link libc? 5506# 5507case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 5508x|xyes) 5509 # Assume -lc should be added 5510 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5511 5512 if test "$enable_shared" = yes && test "$GCC" = yes; then 5513 case $_LT_TAGVAR(archive_cmds, $1) in 5514 *'~'*) 5515 # FIXME: we may have to deal with multi-command sequences. 5516 ;; 5517 '$CC '*) 5518 # Test whether the compiler implicitly links with -lc since on some 5519 # systems, -lgcc has to come before -lc. If gcc already passes -lc 5520 # to ld, don't add -lc before -lgcc. 5521 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 5522 $RM conftest* 5523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 5524 5525 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 5526 soname=conftest 5527 lib=conftest 5528 libobjs=conftest.$ac_objext 5529 deplibs= 5530 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 5531 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 5532 compiler_flags=-v 5533 linker_flags=-v 5534 verstring= 5535 output_objdir=. 5536 libname=conftest 5537 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 5538 _LT_TAGVAR(allow_undefined_flag, $1)= 5539 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 5540 then 5541 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5542 else 5543 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5544 fi 5545 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 5546 else 5547 cat conftest.err 1>&5 5548 fi 5549 $RM conftest* 5550 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) 5551 ;; 5552 esac 5553 fi 5554 ;; 5555esac 5556 5557_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 5558 [Whether or not to add -lc for building shared libraries]) 5559_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 5560 [enable_shared_with_static_runtimes], [0], 5561 [Whether or not to disallow shared libs when runtime libs are static]) 5562_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 5563 [Compiler flag to allow reflexive dlopens]) 5564_LT_TAGDECL([], [whole_archive_flag_spec], [1], 5565 [Compiler flag to generate shared objects directly from archives]) 5566_LT_TAGDECL([], [compiler_needs_object], [1], 5567 [Whether the compiler copes with passing no objects directly]) 5568_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 5569 [Create an old-style archive from a shared archive]) 5570_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 5571 [Create a temporary old-style archive to link instead of a shared archive]) 5572_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 5573_LT_TAGDECL([], [archive_expsym_cmds], [2]) 5574_LT_TAGDECL([], [module_cmds], [2], 5575 [Commands used to build a loadable module if different from building 5576 a shared archive.]) 5577_LT_TAGDECL([], [module_expsym_cmds], [2]) 5578_LT_TAGDECL([], [with_gnu_ld], [1], 5579 [Whether we are building with GNU ld or not]) 5580_LT_TAGDECL([], [allow_undefined_flag], [1], 5581 [Flag that allows shared libraries with undefined symbols to be built]) 5582_LT_TAGDECL([], [no_undefined_flag], [1], 5583 [Flag that enforces no undefined symbols]) 5584_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 5585 [Flag to hardcode $libdir into a binary during linking. 5586 This must work even if $libdir does not exist]) 5587_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], 5588 [[If ld is used when linking, flag to hardcode $libdir into a binary 5589 during linking. This must work even if $libdir does not exist]]) 5590_LT_TAGDECL([], [hardcode_libdir_separator], [1], 5591 [Whether we need a single "-rpath" flag with a separated argument]) 5592_LT_TAGDECL([], [hardcode_direct], [0], 5593 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 5594 DIR into the resulting binary]) 5595_LT_TAGDECL([], [hardcode_direct_absolute], [0], 5596 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 5597 DIR into the resulting binary and the resulting library dependency is 5598 "absolute", i.e impossible to change by setting ${shlibpath_var} if the 5599 library is relocated]) 5600_LT_TAGDECL([], [hardcode_minus_L], [0], 5601 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 5602 into the resulting binary]) 5603_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 5604 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 5605 into the resulting binary]) 5606_LT_TAGDECL([], [hardcode_automatic], [0], 5607 [Set to "yes" if building a shared library automatically hardcodes DIR 5608 into the library and all subsequent libraries and executables linked 5609 against it]) 5610_LT_TAGDECL([], [inherit_rpath], [0], 5611 [Set to yes if linker adds runtime paths of dependent libraries 5612 to runtime path list]) 5613_LT_TAGDECL([], [link_all_deplibs], [0], 5614 [Whether libtool must link a program against all its dependency libraries]) 5615_LT_TAGDECL([], [fix_srcfile_path], [1], 5616 [Fix the shell variable $srcfile for the compiler]) 5617_LT_TAGDECL([], [always_export_symbols], [0], 5618 [Set to "yes" if exported symbols are required]) 5619_LT_TAGDECL([], [export_symbols_cmds], [2], 5620 [The commands to list exported symbols]) 5621_LT_TAGDECL([], [exclude_expsyms], [1], 5622 [Symbols that should not be listed in the preloaded symbols]) 5623_LT_TAGDECL([], [include_expsyms], [1], 5624 [Symbols that must always be exported]) 5625_LT_TAGDECL([], [prelink_cmds], [2], 5626 [Commands necessary for linking programs (against libraries) with templates]) 5627_LT_TAGDECL([], [file_list_spec], [1], 5628 [Specify filename containing input files]) 5629dnl FIXME: Not yet implemented 5630dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 5631dnl [Compiler flag to generate thread safe objects]) 5632])# _LT_LINKER_SHLIBS 5633 5634 5635# _LT_LANG_C_CONFIG([TAG]) 5636# ------------------------ 5637# Ensure that the configuration variables for a C compiler are suitably 5638# defined. These variables are subsequently used by _LT_CONFIG to write 5639# the compiler configuration to `libtool'. 5640m4_defun([_LT_LANG_C_CONFIG], 5641[m4_require([_LT_DECL_EGREP])dnl 5642lt_save_CC="$CC" 5643AC_LANG_PUSH(C) 5644 5645# Source file extension for C test sources. 5646ac_ext=c 5647 5648# Object file extension for compiled C test sources. 5649objext=o 5650_LT_TAGVAR(objext, $1)=$objext 5651 5652# Code to be used in simple compile tests 5653lt_simple_compile_test_code="int some_variable = 0;" 5654 5655# Code to be used in simple link tests 5656lt_simple_link_test_code='int main(){return(0);}' 5657 5658_LT_TAG_COMPILER 5659# Save the default compiler, since it gets overwritten when the other 5660# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 5661compiler_DEFAULT=$CC 5662 5663# save warnings/boilerplate of simple test code 5664_LT_COMPILER_BOILERPLATE 5665_LT_LINKER_BOILERPLATE 5666 5667if test -n "$compiler"; then 5668 _LT_COMPILER_NO_RTTI($1) 5669 _LT_COMPILER_PIC($1) 5670 _LT_COMPILER_C_O($1) 5671 _LT_COMPILER_FILE_LOCKS($1) 5672 _LT_LINKER_SHLIBS($1) 5673 _LT_SYS_DYNAMIC_LINKER($1) 5674 _LT_LINKER_HARDCODE_LIBPATH($1) 5675 LT_SYS_DLOPEN_SELF 5676 _LT_CMD_STRIPLIB 5677 5678 # Report which library types will actually be built 5679 AC_MSG_CHECKING([if libtool supports shared libraries]) 5680 AC_MSG_RESULT([$can_build_shared]) 5681 5682 AC_MSG_CHECKING([whether to build shared libraries]) 5683 test "$can_build_shared" = "no" && enable_shared=no 5684 5685 # On AIX, shared libraries and static libraries use the same namespace, and 5686 # are all built from PIC. 5687 case $host_os in 5688 aix3*) 5689 test "$enable_shared" = yes && enable_static=no 5690 if test -n "$RANLIB"; then 5691 archive_cmds="$archive_cmds~\$RANLIB \$lib" 5692 postinstall_cmds='$RANLIB $lib' 5693 fi 5694 ;; 5695 5696 aix[[4-9]]*) 5697 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 5698 test "$enable_shared" = yes && enable_static=no 5699 fi 5700 ;; 5701 esac 5702 AC_MSG_RESULT([$enable_shared]) 5703 5704 AC_MSG_CHECKING([whether to build static libraries]) 5705 # Make sure either enable_shared or enable_static is yes. 5706 test "$enable_shared" = yes || enable_static=yes 5707 AC_MSG_RESULT([$enable_static]) 5708 5709 _LT_CONFIG($1) 5710fi 5711AC_LANG_POP 5712CC="$lt_save_CC" 5713])# _LT_LANG_C_CONFIG 5714 5715 5716# _LT_PROG_CXX 5717# ------------ 5718# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ 5719# compiler, we have our own version here. 5720m4_defun([_LT_PROG_CXX], 5721[ 5722pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) 5723AC_PROG_CXX 5724if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5725 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5726 (test "X$CXX" != "Xg++"))) ; then 5727 AC_PROG_CXXCPP 5728else 5729 _lt_caught_CXX_error=yes 5730fi 5731popdef([AC_MSG_ERROR]) 5732])# _LT_PROG_CXX 5733 5734dnl aclocal-1.4 backwards compatibility: 5735dnl AC_DEFUN([_LT_PROG_CXX], []) 5736 5737 5738# _LT_LANG_CXX_CONFIG([TAG]) 5739# -------------------------- 5740# Ensure that the configuration variables for a C++ compiler are suitably 5741# defined. These variables are subsequently used by _LT_CONFIG to write 5742# the compiler configuration to `libtool'. 5743m4_defun([_LT_LANG_CXX_CONFIG], 5744[AC_REQUIRE([_LT_PROG_CXX])dnl 5745m4_require([_LT_FILEUTILS_DEFAULTS])dnl 5746m4_require([_LT_DECL_EGREP])dnl 5747 5748AC_LANG_PUSH(C++) 5749_LT_TAGVAR(archive_cmds_need_lc, $1)=no 5750_LT_TAGVAR(allow_undefined_flag, $1)= 5751_LT_TAGVAR(always_export_symbols, $1)=no 5752_LT_TAGVAR(archive_expsym_cmds, $1)= 5753_LT_TAGVAR(compiler_needs_object, $1)=no 5754_LT_TAGVAR(export_dynamic_flag_spec, $1)= 5755_LT_TAGVAR(hardcode_direct, $1)=no 5756_LT_TAGVAR(hardcode_direct_absolute, $1)=no 5757_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 5758_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 5759_LT_TAGVAR(hardcode_libdir_separator, $1)= 5760_LT_TAGVAR(hardcode_minus_L, $1)=no 5761_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5762_LT_TAGVAR(hardcode_automatic, $1)=no 5763_LT_TAGVAR(inherit_rpath, $1)=no 5764_LT_TAGVAR(module_cmds, $1)= 5765_LT_TAGVAR(module_expsym_cmds, $1)= 5766_LT_TAGVAR(link_all_deplibs, $1)=unknown 5767_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 5768_LT_TAGVAR(no_undefined_flag, $1)= 5769_LT_TAGVAR(whole_archive_flag_spec, $1)= 5770_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 5771 5772# Source file extension for C++ test sources. 5773ac_ext=cpp 5774 5775# Object file extension for compiled C++ test sources. 5776objext=o 5777_LT_TAGVAR(objext, $1)=$objext 5778 5779# No sense in running all these tests if we already determined that 5780# the CXX compiler isn't working. Some variables (like enable_shared) 5781# are currently assumed to apply to all compilers on this platform, 5782# and will be corrupted by setting them based on a non-working compiler. 5783if test "$_lt_caught_CXX_error" != yes; then 5784 # Code to be used in simple compile tests 5785 lt_simple_compile_test_code="int some_variable = 0;" 5786 5787 # Code to be used in simple link tests 5788 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 5789 5790 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 5791 _LT_TAG_COMPILER 5792 5793 # save warnings/boilerplate of simple test code 5794 _LT_COMPILER_BOILERPLATE 5795 _LT_LINKER_BOILERPLATE 5796 5797 # Allow CC to be a program name with arguments. 5798 lt_save_CC=$CC 5799 lt_save_LD=$LD 5800 lt_save_GCC=$GCC 5801 GCC=$GXX 5802 lt_save_with_gnu_ld=$with_gnu_ld 5803 lt_save_path_LD=$lt_cv_path_LD 5804 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 5805 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 5806 else 5807 $as_unset lt_cv_prog_gnu_ld 5808 fi 5809 if test -n "${lt_cv_path_LDCXX+set}"; then 5810 lt_cv_path_LD=$lt_cv_path_LDCXX 5811 else 5812 $as_unset lt_cv_path_LD 5813 fi 5814 test -z "${LDCXX+set}" || LD=$LDCXX 5815 CC=${CXX-"c++"} 5816 compiler=$CC 5817 _LT_TAGVAR(compiler, $1)=$CC 5818 _LT_CC_BASENAME([$compiler]) 5819 5820 if test -n "$compiler"; then 5821 # We don't want -fno-exception when compiling C++ code, so set the 5822 # no_builtin_flag separately 5823 if test "$GXX" = yes; then 5824 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 5825 else 5826 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 5827 fi 5828 5829 if test "$GXX" = yes; then 5830 # Set up default GNU C++ configuration 5831 5832 LT_PATH_LD 5833 5834 # Check if GNU C++ uses GNU ld as the underlying linker, since the 5835 # archiving commands below assume that GNU ld is being used. 5836 if test "$with_gnu_ld" = yes; then 5837 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 5838 _LT_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' 5839 5840 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5841 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5842 5843 # If archive_cmds runs LD, not CC, wlarc should be empty 5844 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 5845 # investigate it a little bit more. (MM) 5846 wlarc='${wl}' 5847 5848 # ancient GNU ld didn't support --whole-archive et. al. 5849 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 5850 $GREP 'no-whole-archive' > /dev/null; then 5851 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 5852 else 5853 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5854 fi 5855 else 5856 with_gnu_ld=no 5857 wlarc= 5858 5859 # A generic and very simple default shared library creation 5860 # command for GNU C++ for the case where it uses the native 5861 # linker, instead of GNU ld. If possible, this setting should 5862 # overridden to take advantage of the native linker features on 5863 # the platform it is being used on. 5864 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 5865 fi 5866 5867 # Commands to make compiler produce verbose output that lists 5868 # what "hidden" libraries, object files and flags are used when 5869 # linking a shared library. 5870 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 5871 5872 else 5873 GXX=no 5874 with_gnu_ld=no 5875 wlarc= 5876 fi 5877 5878 # PORTME: fill in a description of your system's C++ link characteristics 5879 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 5880 _LT_TAGVAR(ld_shlibs, $1)=yes 5881 case $host_os in 5882 aix3*) 5883 # FIXME: insert proper C++ library support 5884 _LT_TAGVAR(ld_shlibs, $1)=no 5885 ;; 5886 aix[[4-9]]*) 5887 if test "$host_cpu" = ia64; then 5888 # On IA64, the linker does run time linking by default, so we don't 5889 # have to do anything special. 5890 aix_use_runtimelinking=no 5891 exp_sym_flag='-Bexport' 5892 no_entry_flag="" 5893 else 5894 aix_use_runtimelinking=no 5895 5896 # Test if we are trying to use run time linking or normal 5897 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 5898 # need to do runtime linking. 5899 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 5900 for ld_flag in $LDFLAGS; do 5901 case $ld_flag in 5902 *-brtl*) 5903 aix_use_runtimelinking=yes 5904 break 5905 ;; 5906 esac 5907 done 5908 ;; 5909 esac 5910 5911 exp_sym_flag='-bexport' 5912 no_entry_flag='-bnoentry' 5913 fi 5914 5915 # When large executables or shared objects are built, AIX ld can 5916 # have problems creating the table of contents. If linking a library 5917 # or program results in "error TOC overflow" add -mminimal-toc to 5918 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 5919 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5920 5921 _LT_TAGVAR(archive_cmds, $1)='' 5922 _LT_TAGVAR(hardcode_direct, $1)=yes 5923 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5924 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5925 _LT_TAGVAR(link_all_deplibs, $1)=yes 5926 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 5927 5928 if test "$GXX" = yes; then 5929 case $host_os in aix4.[[012]]|aix4.[[012]].*) 5930 # We only want to do this on AIX 4.2 and lower, the check 5931 # below for broken collect2 doesn't work under 4.3+ 5932 collect2name=`${CC} -print-prog-name=collect2` 5933 if test -f "$collect2name" && 5934 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 5935 then 5936 # We have reworked collect2 5937 : 5938 else 5939 # We have old collect2 5940 _LT_TAGVAR(hardcode_direct, $1)=unsupported 5941 # It fails to find uninstalled libraries when the uninstalled 5942 # path is not listed in the libpath. Setting hardcode_minus_L 5943 # to unsupported forces relinking 5944 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5945 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5946 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5947 fi 5948 esac 5949 shared_flag='-shared' 5950 if test "$aix_use_runtimelinking" = yes; then 5951 shared_flag="$shared_flag "'${wl}-G' 5952 fi 5953 else 5954 # not using gcc 5955 if test "$host_cpu" = ia64; then 5956 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 5957 # chokes on -Wl,-G. The following line is correct: 5958 shared_flag='-G' 5959 else 5960 if test "$aix_use_runtimelinking" = yes; then 5961 shared_flag='${wl}-G' 5962 else 5963 shared_flag='${wl}-bM:SRE' 5964 fi 5965 fi 5966 fi 5967 5968 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 5969 # It seems that -bexpall does not export symbols beginning with 5970 # underscore (_), so it is better to generate a list of symbols to 5971 # export. 5972 _LT_TAGVAR(always_export_symbols, $1)=yes 5973 if test "$aix_use_runtimelinking" = yes; then 5974 # Warning - without using the other runtime loading flags (-brtl), 5975 # -berok will link without error, but may produce a broken library. 5976 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 5977 # Determine the default libpath from the value encoded in an empty 5978 # executable. 5979 _LT_SYS_MODULE_PATH_AIX 5980 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5981 5982 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 5983 else 5984 if test "$host_cpu" = ia64; then 5985 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 5986 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 5987 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 5988 else 5989 # Determine the default libpath from the value encoded in an 5990 # empty executable. 5991 _LT_SYS_MODULE_PATH_AIX 5992 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5993 # Warning - without using the other run time loading flags, 5994 # -berok will link without error, but may produce a broken library. 5995 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 5996 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 5997 # Exported symbols can be pulled into shared objects from archives 5998 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 5999 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6000 # This is similar to how AIX traditionally builds its shared 6001 # libraries. 6002 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 6003 fi 6004 fi 6005 ;; 6006 6007 beos*) 6008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6009 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6010 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6011 # support --undefined. This deserves some investigation. FIXME 6012 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6013 else 6014 _LT_TAGVAR(ld_shlibs, $1)=no 6015 fi 6016 ;; 6017 6018 chorus*) 6019 case $cc_basename in 6020 *) 6021 # FIXME: insert proper C++ library support 6022 _LT_TAGVAR(ld_shlibs, $1)=no 6023 ;; 6024 esac 6025 ;; 6026 6027 cygwin* | mingw* | pw32* | cegcc*) 6028 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 6029 # as there is no search path for DLLs. 6030 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6031 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6032 _LT_TAGVAR(always_export_symbols, $1)=no 6033 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6034 6035 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 6036 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6037 # If the export-symbols file already is a .def file (1st line 6038 # is EXPORTS), use it as is; otherwise, prepend... 6039 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6040 cp $export_symbols $output_objdir/$soname.def; 6041 else 6042 echo EXPORTS > $output_objdir/$soname.def; 6043 cat $export_symbols >> $output_objdir/$soname.def; 6044 fi~ 6045 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6046 else 6047 _LT_TAGVAR(ld_shlibs, $1)=no 6048 fi 6049 ;; 6050 darwin* | rhapsody*) 6051 _LT_DARWIN_LINKER_FEATURES($1) 6052 ;; 6053 6054 dgux*) 6055 case $cc_basename in 6056 ec++*) 6057 # FIXME: insert proper C++ library support 6058 _LT_TAGVAR(ld_shlibs, $1)=no 6059 ;; 6060 ghcx*) 6061 # Green Hills C++ Compiler 6062 # FIXME: insert proper C++ library support 6063 _LT_TAGVAR(ld_shlibs, $1)=no 6064 ;; 6065 *) 6066 # FIXME: insert proper C++ library support 6067 _LT_TAGVAR(ld_shlibs, $1)=no 6068 ;; 6069 esac 6070 ;; 6071 6072 freebsd[[12]]*) 6073 # C++ shared libraries reported to be fairly broken before 6074 # switch to ELF 6075 _LT_TAGVAR(ld_shlibs, $1)=no 6076 ;; 6077 6078 freebsd-elf*) 6079 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6080 ;; 6081 6082 freebsd* | dragonfly*) 6083 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 6084 # conventions 6085 _LT_TAGVAR(ld_shlibs, $1)=yes 6086 ;; 6087 6088 gnu*) 6089 ;; 6090 6091 hpux9*) 6092 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6093 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6094 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6095 _LT_TAGVAR(hardcode_direct, $1)=yes 6096 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 6097 # but as the default 6098 # location of the library. 6099 6100 case $cc_basename in 6101 CC*) 6102 # FIXME: insert proper C++ library support 6103 _LT_TAGVAR(ld_shlibs, $1)=no 6104 ;; 6105 aCC*) 6106 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 6107 # Commands to make compiler produce verbose output that lists 6108 # what "hidden" libraries, object files and flags are used when 6109 # linking a shared library. 6110 # 6111 # There doesn't appear to be a way to prevent this compiler from 6112 # explicitly linking system object files so we need to strip them 6113 # from the output so that they don't get included in the library 6114 # dependencies. 6115 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 6116 ;; 6117 *) 6118 if test "$GXX" = yes; then 6119 _LT_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' 6120 else 6121 # FIXME: insert proper C++ library support 6122 _LT_TAGVAR(ld_shlibs, $1)=no 6123 fi 6124 ;; 6125 esac 6126 ;; 6127 6128 hpux10*|hpux11*) 6129 if test $with_gnu_ld = no; then 6130 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6131 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6132 6133 case $host_cpu in 6134 hppa*64*|ia64*) 6135 ;; 6136 *) 6137 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6138 ;; 6139 esac 6140 fi 6141 case $host_cpu in 6142 hppa*64*|ia64*) 6143 _LT_TAGVAR(hardcode_direct, $1)=no 6144 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6145 ;; 6146 *) 6147 _LT_TAGVAR(hardcode_direct, $1)=yes 6148 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6149 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 6150 # but as the default 6151 # location of the library. 6152 ;; 6153 esac 6154 6155 case $cc_basename in 6156 CC*) 6157 # FIXME: insert proper C++ library support 6158 _LT_TAGVAR(ld_shlibs, $1)=no 6159 ;; 6160 aCC*) 6161 case $host_cpu in 6162 hppa*64*) 6163 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6164 ;; 6165 ia64*) 6166 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6167 ;; 6168 *) 6169 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6170 ;; 6171 esac 6172 # Commands to make compiler produce verbose output that lists 6173 # what "hidden" libraries, object files and flags are used when 6174 # linking a shared library. 6175 # 6176 # There doesn't appear to be a way to prevent this compiler from 6177 # explicitly linking system object files so we need to strip them 6178 # from the output so that they don't get included in the library 6179 # dependencies. 6180 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 "X$list" | $Xsed' 6181 ;; 6182 *) 6183 if test "$GXX" = yes; then 6184 if test $with_gnu_ld = no; then 6185 case $host_cpu in 6186 hppa*64*) 6187 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6188 ;; 6189 ia64*) 6190 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6191 ;; 6192 *) 6193 _LT_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' 6194 ;; 6195 esac 6196 fi 6197 else 6198 # FIXME: insert proper C++ library support 6199 _LT_TAGVAR(ld_shlibs, $1)=no 6200 fi 6201 ;; 6202 esac 6203 ;; 6204 6205 interix[[3-9]]*) 6206 _LT_TAGVAR(hardcode_direct, $1)=no 6207 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6208 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6209 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6210 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6211 # Instead, shared libraries are loaded at an image base (0x10000000 by 6212 # default) and relocated if they conflict, which is a slow very memory 6213 # consuming and fragmenting process. To avoid this, we pick a random, 6214 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6215 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6216 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6217 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6218 ;; 6219 irix5* | irix6*) 6220 case $cc_basename in 6221 CC*) 6222 # SGI C++ 6223 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 6224 6225 # Archives containing C++ object files must be created using 6226 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 6227 # necessary to make sure instantiated templates are included 6228 # in the archive. 6229 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 6230 ;; 6231 *) 6232 if test "$GXX" = yes; then 6233 if test "$with_gnu_ld" = no; then 6234 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6235 else 6236 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' 6237 fi 6238 fi 6239 _LT_TAGVAR(link_all_deplibs, $1)=yes 6240 ;; 6241 esac 6242 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6243 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6244 _LT_TAGVAR(inherit_rpath, $1)=yes 6245 ;; 6246 6247 linux* | k*bsd*-gnu) 6248 case $cc_basename in 6249 KCC*) 6250 # Kuck and Associates, Inc. (KAI) C++ Compiler 6251 6252 # KCC will only create a shared library if the output file 6253 # ends with ".so" (or ".sl" for HP-UX), so rename the library 6254 # to its proper name (with version) after linking. 6255 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 6256 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 6257 # Commands to make compiler produce verbose output that lists 6258 # what "hidden" libraries, object files and flags are used when 6259 # linking a shared library. 6260 # 6261 # There doesn't appear to be a way to prevent this compiler from 6262 # explicitly linking system object files so we need to strip them 6263 # from the output so that they don't get included in the library 6264 # dependencies. 6265 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 "X$list" | $Xsed' 6266 6267 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6268 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6269 6270 # Archives containing C++ object files must be created using 6271 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 6272 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 6273 ;; 6274 icpc* | ecpc* ) 6275 # Intel C++ 6276 with_gnu_ld=yes 6277 # version 8.0 and above of icpc choke on multiply defined symbols 6278 # if we add $predep_objects and $postdep_objects, however 7.1 and 6279 # earlier do not add the objects themselves. 6280 case `$CC -V 2>&1` in 6281 *"Version 7."*) 6282 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 6283 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6284 ;; 6285 *) # Version 8.0 or newer 6286 tmp_idyn= 6287 case $host_cpu in 6288 ia64*) tmp_idyn=' -i_dynamic';; 6289 esac 6290 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6291 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6292 ;; 6293 esac 6294 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6295 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6296 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6297 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 6298 ;; 6299 pgCC* | pgcpp*) 6300 # Portland Group C++ compiler 6301 case `$CC -V` in 6302 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) 6303 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 6304 rm -rf $tpldir~ 6305 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 6306 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 6307 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 6308 rm -rf $tpldir~ 6309 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 6310 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 6311 $RANLIB $oldlib' 6312 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 6313 rm -rf $tpldir~ 6314 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 6315 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 6316 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 6317 rm -rf $tpldir~ 6318 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 6319 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 6320 ;; 6321 *) # Version 6 will use weak symbols 6322 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 6323 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 6324 ;; 6325 esac 6326 6327 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 6328 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6329 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 6330 ;; 6331 cxx*) 6332 # Compaq C++ 6333 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 6334 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 6335 6336 runpath_var=LD_RUN_PATH 6337 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6338 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6339 6340 # Commands to make compiler produce verbose output that lists 6341 # what "hidden" libraries, object files and flags are used when 6342 # linking a shared library. 6343 # 6344 # There doesn't appear to be a way to prevent this compiler from 6345 # explicitly linking system object files so we need to strip them 6346 # from the output so that they don't get included in the library 6347 # dependencies. 6348 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed' 6349 ;; 6350 xl*) 6351 # IBM XL 8.0 on PPC, with GNU ld 6352 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6353 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6354 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6355 if test "x$supports_anon_versioning" = xyes; then 6356 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 6357 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6358 echo "local: *; };" >> $output_objdir/$libname.ver~ 6359 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6360 fi 6361 ;; 6362 *) 6363 case `$CC -V 2>&1 | sed 5q` in 6364 *Sun\ C*) 6365 # Sun C++ 5.9 6366 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 6367 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6368 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 6369 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6370 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 6371 _LT_TAGVAR(compiler_needs_object, $1)=yes 6372 6373 # Not sure whether something based on 6374 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 6375 # would be better. 6376 output_verbose_link_cmd='echo' 6377 6378 # Archives containing C++ object files must be created using 6379 # "CC -xar", where "CC" is the Sun C++ compiler. This is 6380 # necessary to make sure instantiated templates are included 6381 # in the archive. 6382 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 6383 ;; 6384 esac 6385 ;; 6386 esac 6387 ;; 6388 6389 lynxos*) 6390 # FIXME: insert proper C++ library support 6391 _LT_TAGVAR(ld_shlibs, $1)=no 6392 ;; 6393 6394 m88k*) 6395 # FIXME: insert proper C++ library support 6396 _LT_TAGVAR(ld_shlibs, $1)=no 6397 ;; 6398 6399 mvs*) 6400 case $cc_basename in 6401 cxx*) 6402 # FIXME: insert proper C++ library support 6403 _LT_TAGVAR(ld_shlibs, $1)=no 6404 ;; 6405 *) 6406 # FIXME: insert proper C++ library support 6407 _LT_TAGVAR(ld_shlibs, $1)=no 6408 ;; 6409 esac 6410 ;; 6411 6412 netbsd*) 6413 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6414 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 6415 wlarc= 6416 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6417 _LT_TAGVAR(hardcode_direct, $1)=yes 6418 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6419 fi 6420 # Workaround some broken pre-1.5 toolchains 6421 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 6422 ;; 6423 6424 *nto* | *qnx*) 6425 _LT_TAGVAR(ld_shlibs, $1)=yes 6426 ;; 6427 6428 openbsd2*) 6429 # C++ shared libraries are fairly broken 6430 _LT_TAGVAR(ld_shlibs, $1)=no 6431 ;; 6432 6433 openbsd*) 6434 if test -f /usr/libexec/ld.so; then 6435 _LT_TAGVAR(hardcode_direct, $1)=yes 6436 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6437 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6438 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 6439 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6440 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6441 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 6442 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6443 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6444 fi 6445 output_verbose_link_cmd=echo 6446 else 6447 _LT_TAGVAR(ld_shlibs, $1)=no 6448 fi 6449 ;; 6450 6451 osf3* | osf4* | osf5*) 6452 case $cc_basename in 6453 KCC*) 6454 # Kuck and Associates, Inc. (KAI) C++ Compiler 6455 6456 # KCC will only create a shared library if the output file 6457 # ends with ".so" (or ".sl" for HP-UX), so rename the library 6458 # to its proper name (with version) after linking. 6459 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 6460 6461 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6462 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6463 6464 # Archives containing C++ object files must be created using 6465 # the KAI C++ compiler. 6466 case $host in 6467 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 6468 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 6469 esac 6470 ;; 6471 RCC*) 6472 # Rational C++ 2.4.1 6473 # FIXME: insert proper C++ library support 6474 _LT_TAGVAR(ld_shlibs, $1)=no 6475 ;; 6476 cxx*) 6477 case $host in 6478 osf3*) 6479 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6480 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 6481 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6482 ;; 6483 *) 6484 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6485 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 6486 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 6487 echo "-hidden">> $lib.exp~ 6488 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ 6489 $RM $lib.exp' 6490 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6491 ;; 6492 esac 6493 6494 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6495 6496 # Commands to make compiler produce verbose output that lists 6497 # what "hidden" libraries, object files and flags are used when 6498 # linking a shared library. 6499 # 6500 # There doesn't appear to be a way to prevent this compiler from 6501 # explicitly linking system object files so we need to strip them 6502 # from the output so that they don't get included in the library 6503 # dependencies. 6504 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed' 6505 ;; 6506 *) 6507 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 6508 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6509 case $host in 6510 osf3*) 6511 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6512 ;; 6513 *) 6514 _LT_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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6515 ;; 6516 esac 6517 6518 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6519 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6520 6521 # Commands to make compiler produce verbose output that lists 6522 # what "hidden" libraries, object files and flags are used when 6523 # linking a shared library. 6524 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 6525 6526 else 6527 # FIXME: insert proper C++ library support 6528 _LT_TAGVAR(ld_shlibs, $1)=no 6529 fi 6530 ;; 6531 esac 6532 ;; 6533 6534 psos*) 6535 # FIXME: insert proper C++ library support 6536 _LT_TAGVAR(ld_shlibs, $1)=no 6537 ;; 6538 6539 sunos4*) 6540 case $cc_basename in 6541 CC*) 6542 # Sun C++ 4.x 6543 # FIXME: insert proper C++ library support 6544 _LT_TAGVAR(ld_shlibs, $1)=no 6545 ;; 6546 lcc*) 6547 # Lucid 6548 # FIXME: insert proper C++ library support 6549 _LT_TAGVAR(ld_shlibs, $1)=no 6550 ;; 6551 *) 6552 # FIXME: insert proper C++ library support 6553 _LT_TAGVAR(ld_shlibs, $1)=no 6554 ;; 6555 esac 6556 ;; 6557 6558 solaris*) 6559 case $cc_basename in 6560 CC*) 6561 # Sun C++ 4.2, 5.x and Centerline C++ 6562 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 6563 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 6564 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6565 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6566 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 6567 6568 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6569 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6570 case $host_os in 6571 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6572 *) 6573 # The compiler driver will combine and reorder linker options, 6574 # but understands `-z linker_flag'. 6575 # Supported since Solaris 2.6 (maybe 2.5.1?) 6576 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 6577 ;; 6578 esac 6579 _LT_TAGVAR(link_all_deplibs, $1)=yes 6580 6581 output_verbose_link_cmd='echo' 6582 6583 # Archives containing C++ object files must be created using 6584 # "CC -xar", where "CC" is the Sun C++ compiler. This is 6585 # necessary to make sure instantiated templates are included 6586 # in the archive. 6587 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 6588 ;; 6589 gcx*) 6590 # Green Hills C++ Compiler 6591 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 6592 6593 # The C++ compiler must be used to create the archive. 6594 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 6595 ;; 6596 *) 6597 # GNU C++ compiler with Solaris linker 6598 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 6599 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 6600 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 6601 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 6602 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6603 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 6604 6605 # Commands to make compiler produce verbose output that lists 6606 # what "hidden" libraries, object files and flags are used when 6607 # linking a shared library. 6608 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 6609 else 6610 # g++ 2.7 appears to require `-G' NOT `-shared' on this 6611 # platform. 6612 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 6613 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6614 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 6615 6616 # Commands to make compiler produce verbose output that lists 6617 # what "hidden" libraries, object files and flags are used when 6618 # linking a shared library. 6619 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 6620 fi 6621 6622 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 6623 case $host_os in 6624 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6625 *) 6626 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 6627 ;; 6628 esac 6629 fi 6630 ;; 6631 esac 6632 ;; 6633 6634 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 6635 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6636 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6637 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6638 runpath_var='LD_RUN_PATH' 6639 6640 case $cc_basename in 6641 CC*) 6642 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6643 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6644 ;; 6645 *) 6646 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6647 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6648 ;; 6649 esac 6650 ;; 6651 6652 sysv5* | sco3.2v5* | sco5v6*) 6653 # Note: We can NOT use -z defs as we might desire, because we do not 6654 # link with -lc, and that would cause any symbols used from libc to 6655 # always be unresolved, which means just about no library would 6656 # ever link correctly. If we're not using GNU ld we use -z text 6657 # though, which does catch some bad symbols but isn't as heavy-handed 6658 # as -z defs. 6659 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6660 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 6661 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6662 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6663 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 6664 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6665 _LT_TAGVAR(link_all_deplibs, $1)=yes 6666 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 6667 runpath_var='LD_RUN_PATH' 6668 6669 case $cc_basename in 6670 CC*) 6671 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6672 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6673 ;; 6674 *) 6675 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6676 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6677 ;; 6678 esac 6679 ;; 6680 6681 tandem*) 6682 case $cc_basename in 6683 NCC*) 6684 # NonStop-UX NCC 3.20 6685 # FIXME: insert proper C++ library support 6686 _LT_TAGVAR(ld_shlibs, $1)=no 6687 ;; 6688 *) 6689 # FIXME: insert proper C++ library support 6690 _LT_TAGVAR(ld_shlibs, $1)=no 6691 ;; 6692 esac 6693 ;; 6694 6695 vxworks*) 6696 # FIXME: insert proper C++ library support 6697 _LT_TAGVAR(ld_shlibs, $1)=no 6698 ;; 6699 6700 *) 6701 # FIXME: insert proper C++ library support 6702 _LT_TAGVAR(ld_shlibs, $1)=no 6703 ;; 6704 esac 6705 6706 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 6707 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 6708 6709 _LT_TAGVAR(GCC, $1)="$GXX" 6710 _LT_TAGVAR(LD, $1)="$LD" 6711 6712 ## CAVEAT EMPTOR: 6713 ## There is no encapsulation within the following macros, do not change 6714 ## the running order or otherwise move them around unless you know exactly 6715 ## what you are doing... 6716 _LT_SYS_HIDDEN_LIBDEPS($1) 6717 _LT_COMPILER_PIC($1) 6718 _LT_COMPILER_C_O($1) 6719 _LT_COMPILER_FILE_LOCKS($1) 6720 _LT_LINKER_SHLIBS($1) 6721 _LT_SYS_DYNAMIC_LINKER($1) 6722 _LT_LINKER_HARDCODE_LIBPATH($1) 6723 6724 _LT_CONFIG($1) 6725 fi # test -n "$compiler" 6726 6727 CC=$lt_save_CC 6728 LDCXX=$LD 6729 LD=$lt_save_LD 6730 GCC=$lt_save_GCC 6731 with_gnu_ld=$lt_save_with_gnu_ld 6732 lt_cv_path_LDCXX=$lt_cv_path_LD 6733 lt_cv_path_LD=$lt_save_path_LD 6734 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 6735 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 6736fi # test "$_lt_caught_CXX_error" != yes 6737 6738AC_LANG_POP 6739])# _LT_LANG_CXX_CONFIG 6740 6741 6742# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 6743# --------------------------------- 6744# Figure out "hidden" library dependencies from verbose 6745# compiler output when linking a shared library. 6746# Parse the compiler output and extract the necessary 6747# objects, libraries and library flags. 6748m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 6749[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 6750# Dependencies to place before and after the object being linked: 6751_LT_TAGVAR(predep_objects, $1)= 6752_LT_TAGVAR(postdep_objects, $1)= 6753_LT_TAGVAR(predeps, $1)= 6754_LT_TAGVAR(postdeps, $1)= 6755_LT_TAGVAR(compiler_lib_search_path, $1)= 6756 6757dnl we can't use the lt_simple_compile_test_code here, 6758dnl because it contains code intended for an executable, 6759dnl not a library. It's possible we should let each 6760dnl tag define a new lt_????_link_test_code variable, 6761dnl but it's only used here... 6762m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 6763int a; 6764void foo (void) { a = 0; } 6765_LT_EOF 6766], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 6767class Foo 6768{ 6769public: 6770 Foo (void) { a = 0; } 6771private: 6772 int a; 6773}; 6774_LT_EOF 6775], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 6776 subroutine foo 6777 implicit none 6778 integer*4 a 6779 a=0 6780 return 6781 end 6782_LT_EOF 6783], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 6784 subroutine foo 6785 implicit none 6786 integer a 6787 a=0 6788 return 6789 end 6790_LT_EOF 6791], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 6792public class foo { 6793 private int a; 6794 public void bar (void) { 6795 a = 0; 6796 } 6797}; 6798_LT_EOF 6799]) 6800dnl Parse the compiler output and extract the necessary 6801dnl objects, libraries and library flags. 6802if AC_TRY_EVAL(ac_compile); then 6803 # Parse the compiler output and extract the necessary 6804 # objects, libraries and library flags. 6805 6806 # Sentinel used to keep track of whether or not we are before 6807 # the conftest object file. 6808 pre_test_object_deps_done=no 6809 6810 for p in `eval "$output_verbose_link_cmd"`; do 6811 case $p in 6812 6813 -L* | -R* | -l*) 6814 # Some compilers place space between "-{L,R}" and the path. 6815 # Remove the space. 6816 if test $p = "-L" || 6817 test $p = "-R"; then 6818 prev=$p 6819 continue 6820 else 6821 prev= 6822 fi 6823 6824 if test "$pre_test_object_deps_done" = no; then 6825 case $p in 6826 -L* | -R*) 6827 # Internal compiler library paths should come after those 6828 # provided the user. The postdeps already come after the 6829 # user supplied libs so there is no need to process them. 6830 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 6831 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 6832 else 6833 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 6834 fi 6835 ;; 6836 # The "-l" case would never come before the object being 6837 # linked, so don't bother handling this case. 6838 esac 6839 else 6840 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 6841 _LT_TAGVAR(postdeps, $1)="${prev}${p}" 6842 else 6843 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" 6844 fi 6845 fi 6846 ;; 6847 6848 *.$objext) 6849 # This assumes that the test object file only shows up 6850 # once in the compiler output. 6851 if test "$p" = "conftest.$objext"; then 6852 pre_test_object_deps_done=yes 6853 continue 6854 fi 6855 6856 if test "$pre_test_object_deps_done" = no; then 6857 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 6858 _LT_TAGVAR(predep_objects, $1)="$p" 6859 else 6860 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 6861 fi 6862 else 6863 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 6864 _LT_TAGVAR(postdep_objects, $1)="$p" 6865 else 6866 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 6867 fi 6868 fi 6869 ;; 6870 6871 *) ;; # Ignore the rest. 6872 6873 esac 6874 done 6875 6876 # Clean up. 6877 rm -f a.out a.exe 6878else 6879 echo "libtool.m4: error: problem compiling $1 test program" 6880fi 6881 6882$RM -f confest.$objext 6883 6884# PORTME: override above test on systems where it is broken 6885m4_if([$1], [CXX], 6886[case $host_os in 6887interix[[3-9]]*) 6888 # Interix 3.5 installs completely hosed .la files for C++, so rather than 6889 # hack all around it, let's just trust "g++" to DTRT. 6890 _LT_TAGVAR(predep_objects,$1)= 6891 _LT_TAGVAR(postdep_objects,$1)= 6892 _LT_TAGVAR(postdeps,$1)= 6893 ;; 6894 6895linux*) 6896 case `$CC -V 2>&1 | sed 5q` in 6897 *Sun\ C*) 6898 # Sun C++ 5.9 6899 6900 # The more standards-conforming stlport4 library is 6901 # incompatible with the Cstd library. Avoid specifying 6902 # it if it's in CXXFLAGS. Ignore libCrun as 6903 # -library=stlport4 depends on it. 6904 case " $CXX $CXXFLAGS " in 6905 *" -library=stlport4 "*) 6906 solaris_use_stlport4=yes 6907 ;; 6908 esac 6909 6910 if test "$solaris_use_stlport4" != yes; then 6911 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 6912 fi 6913 ;; 6914 esac 6915 ;; 6916 6917solaris*) 6918 case $cc_basename in 6919 CC*) 6920 # The more standards-conforming stlport4 library is 6921 # incompatible with the Cstd library. Avoid specifying 6922 # it if it's in CXXFLAGS. Ignore libCrun as 6923 # -library=stlport4 depends on it. 6924 case " $CXX $CXXFLAGS " in 6925 *" -library=stlport4 "*) 6926 solaris_use_stlport4=yes 6927 ;; 6928 esac 6929 6930 # Adding this requires a known-good setup of shared libraries for 6931 # Sun compiler versions before 5.6, else PIC objects from an old 6932 # archive will be linked into the output, leading to subtle bugs. 6933 if test "$solaris_use_stlport4" != yes; then 6934 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 6935 fi 6936 ;; 6937 esac 6938 ;; 6939esac 6940]) 6941 6942case " $_LT_TAGVAR(postdeps, $1) " in 6943*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 6944esac 6945 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 6946if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 6947 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 6948fi 6949_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 6950 [The directories searched by this compiler when creating a shared library]) 6951_LT_TAGDECL([], [predep_objects], [1], 6952 [Dependencies to place before and after the objects being linked to 6953 create a shared library]) 6954_LT_TAGDECL([], [postdep_objects], [1]) 6955_LT_TAGDECL([], [predeps], [1]) 6956_LT_TAGDECL([], [postdeps], [1]) 6957_LT_TAGDECL([], [compiler_lib_search_path], [1], 6958 [The library search path used internally by the compiler when linking 6959 a shared library]) 6960])# _LT_SYS_HIDDEN_LIBDEPS 6961 6962 6963# _LT_PROG_F77 6964# ------------ 6965# Since AC_PROG_F77 is broken, in that it returns the empty string 6966# if there is no fortran compiler, we have our own version here. 6967m4_defun([_LT_PROG_F77], 6968[ 6969pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) 6970AC_PROG_F77 6971if test -z "$F77" || test "X$F77" = "Xno"; then 6972 _lt_disable_F77=yes 6973fi 6974popdef([AC_MSG_ERROR]) 6975])# _LT_PROG_F77 6976 6977dnl aclocal-1.4 backwards compatibility: 6978dnl AC_DEFUN([_LT_PROG_F77], []) 6979 6980 6981# _LT_LANG_F77_CONFIG([TAG]) 6982# -------------------------- 6983# Ensure that the configuration variables for a Fortran 77 compiler are 6984# suitably defined. These variables are subsequently used by _LT_CONFIG 6985# to write the compiler configuration to `libtool'. 6986m4_defun([_LT_LANG_F77_CONFIG], 6987[AC_REQUIRE([_LT_PROG_F77])dnl 6988AC_LANG_PUSH(Fortran 77) 6989 6990_LT_TAGVAR(archive_cmds_need_lc, $1)=no 6991_LT_TAGVAR(allow_undefined_flag, $1)= 6992_LT_TAGVAR(always_export_symbols, $1)=no 6993_LT_TAGVAR(archive_expsym_cmds, $1)= 6994_LT_TAGVAR(export_dynamic_flag_spec, $1)= 6995_LT_TAGVAR(hardcode_direct, $1)=no 6996_LT_TAGVAR(hardcode_direct_absolute, $1)=no 6997_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6998_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 6999_LT_TAGVAR(hardcode_libdir_separator, $1)= 7000_LT_TAGVAR(hardcode_minus_L, $1)=no 7001_LT_TAGVAR(hardcode_automatic, $1)=no 7002_LT_TAGVAR(inherit_rpath, $1)=no 7003_LT_TAGVAR(module_cmds, $1)= 7004_LT_TAGVAR(module_expsym_cmds, $1)= 7005_LT_TAGVAR(link_all_deplibs, $1)=unknown 7006_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7007_LT_TAGVAR(no_undefined_flag, $1)= 7008_LT_TAGVAR(whole_archive_flag_spec, $1)= 7009_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7010 7011# Source file extension for f77 test sources. 7012ac_ext=f 7013 7014# Object file extension for compiled f77 test sources. 7015objext=o 7016_LT_TAGVAR(objext, $1)=$objext 7017 7018# No sense in running all these tests if we already determined that 7019# the F77 compiler isn't working. Some variables (like enable_shared) 7020# are currently assumed to apply to all compilers on this platform, 7021# and will be corrupted by setting them based on a non-working compiler. 7022if test "$_lt_disable_F77" != yes; then 7023 # Code to be used in simple compile tests 7024 lt_simple_compile_test_code="\ 7025 subroutine t 7026 return 7027 end 7028" 7029 7030 # Code to be used in simple link tests 7031 lt_simple_link_test_code="\ 7032 program t 7033 end 7034" 7035 7036 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7037 _LT_TAG_COMPILER 7038 7039 # save warnings/boilerplate of simple test code 7040 _LT_COMPILER_BOILERPLATE 7041 _LT_LINKER_BOILERPLATE 7042 7043 # Allow CC to be a program name with arguments. 7044 lt_save_CC="$CC" 7045 lt_save_GCC=$GCC 7046 CC=${F77-"f77"} 7047 compiler=$CC 7048 _LT_TAGVAR(compiler, $1)=$CC 7049 _LT_CC_BASENAME([$compiler]) 7050 GCC=$G77 7051 if test -n "$compiler"; then 7052 AC_MSG_CHECKING([if libtool supports shared libraries]) 7053 AC_MSG_RESULT([$can_build_shared]) 7054 7055 AC_MSG_CHECKING([whether to build shared libraries]) 7056 test "$can_build_shared" = "no" && enable_shared=no 7057 7058 # On AIX, shared libraries and static libraries use the same namespace, and 7059 # are all built from PIC. 7060 case $host_os in 7061 aix3*) 7062 test "$enable_shared" = yes && enable_static=no 7063 if test -n "$RANLIB"; then 7064 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7065 postinstall_cmds='$RANLIB $lib' 7066 fi 7067 ;; 7068 aix[[4-9]]*) 7069 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7070 test "$enable_shared" = yes && enable_static=no 7071 fi 7072 ;; 7073 esac 7074 AC_MSG_RESULT([$enable_shared]) 7075 7076 AC_MSG_CHECKING([whether to build static libraries]) 7077 # Make sure either enable_shared or enable_static is yes. 7078 test "$enable_shared" = yes || enable_static=yes 7079 AC_MSG_RESULT([$enable_static]) 7080 7081 _LT_TAGVAR(GCC, $1)="$G77" 7082 _LT_TAGVAR(LD, $1)="$LD" 7083 7084 ## CAVEAT EMPTOR: 7085 ## There is no encapsulation within the following macros, do not change 7086 ## the running order or otherwise move them around unless you know exactly 7087 ## what you are doing... 7088 _LT_COMPILER_PIC($1) 7089 _LT_COMPILER_C_O($1) 7090 _LT_COMPILER_FILE_LOCKS($1) 7091 _LT_LINKER_SHLIBS($1) 7092 _LT_SYS_DYNAMIC_LINKER($1) 7093 _LT_LINKER_HARDCODE_LIBPATH($1) 7094 7095 _LT_CONFIG($1) 7096 fi # test -n "$compiler" 7097 7098 GCC=$lt_save_GCC 7099 CC="$lt_save_CC" 7100fi # test "$_lt_disable_F77" != yes 7101 7102AC_LANG_POP 7103])# _LT_LANG_F77_CONFIG 7104 7105 7106# _LT_PROG_FC 7107# ----------- 7108# Since AC_PROG_FC is broken, in that it returns the empty string 7109# if there is no fortran compiler, we have our own version here. 7110m4_defun([_LT_PROG_FC], 7111[ 7112pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) 7113AC_PROG_FC 7114if test -z "$FC" || test "X$FC" = "Xno"; then 7115 _lt_disable_FC=yes 7116fi 7117popdef([AC_MSG_ERROR]) 7118])# _LT_PROG_FC 7119 7120dnl aclocal-1.4 backwards compatibility: 7121dnl AC_DEFUN([_LT_PROG_FC], []) 7122 7123 7124# _LT_LANG_FC_CONFIG([TAG]) 7125# ------------------------- 7126# Ensure that the configuration variables for a Fortran compiler are 7127# suitably defined. These variables are subsequently used by _LT_CONFIG 7128# to write the compiler configuration to `libtool'. 7129m4_defun([_LT_LANG_FC_CONFIG], 7130[AC_REQUIRE([_LT_PROG_FC])dnl 7131AC_LANG_PUSH(Fortran) 7132 7133_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7134_LT_TAGVAR(allow_undefined_flag, $1)= 7135_LT_TAGVAR(always_export_symbols, $1)=no 7136_LT_TAGVAR(archive_expsym_cmds, $1)= 7137_LT_TAGVAR(export_dynamic_flag_spec, $1)= 7138_LT_TAGVAR(hardcode_direct, $1)=no 7139_LT_TAGVAR(hardcode_direct_absolute, $1)=no 7140_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7141_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 7142_LT_TAGVAR(hardcode_libdir_separator, $1)= 7143_LT_TAGVAR(hardcode_minus_L, $1)=no 7144_LT_TAGVAR(hardcode_automatic, $1)=no 7145_LT_TAGVAR(inherit_rpath, $1)=no 7146_LT_TAGVAR(module_cmds, $1)= 7147_LT_TAGVAR(module_expsym_cmds, $1)= 7148_LT_TAGVAR(link_all_deplibs, $1)=unknown 7149_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7150_LT_TAGVAR(no_undefined_flag, $1)= 7151_LT_TAGVAR(whole_archive_flag_spec, $1)= 7152_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7153 7154# Source file extension for fc test sources. 7155ac_ext=${ac_fc_srcext-f} 7156 7157# Object file extension for compiled fc test sources. 7158objext=o 7159_LT_TAGVAR(objext, $1)=$objext 7160 7161# No sense in running all these tests if we already determined that 7162# the FC compiler isn't working. Some variables (like enable_shared) 7163# are currently assumed to apply to all compilers on this platform, 7164# and will be corrupted by setting them based on a non-working compiler. 7165if test "$_lt_disable_FC" != yes; then 7166 # Code to be used in simple compile tests 7167 lt_simple_compile_test_code="\ 7168 subroutine t 7169 return 7170 end 7171" 7172 7173 # Code to be used in simple link tests 7174 lt_simple_link_test_code="\ 7175 program t 7176 end 7177" 7178 7179 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7180 _LT_TAG_COMPILER 7181 7182 # save warnings/boilerplate of simple test code 7183 _LT_COMPILER_BOILERPLATE 7184 _LT_LINKER_BOILERPLATE 7185 7186 # Allow CC to be a program name with arguments. 7187 lt_save_CC="$CC" 7188 lt_save_GCC=$GCC 7189 CC=${FC-"f95"} 7190 compiler=$CC 7191 GCC=$ac_cv_fc_compiler_gnu 7192 7193 _LT_TAGVAR(compiler, $1)=$CC 7194 _LT_CC_BASENAME([$compiler]) 7195 7196 if test -n "$compiler"; then 7197 AC_MSG_CHECKING([if libtool supports shared libraries]) 7198 AC_MSG_RESULT([$can_build_shared]) 7199 7200 AC_MSG_CHECKING([whether to build shared libraries]) 7201 test "$can_build_shared" = "no" && enable_shared=no 7202 7203 # On AIX, shared libraries and static libraries use the same namespace, and 7204 # are all built from PIC. 7205 case $host_os in 7206 aix3*) 7207 test "$enable_shared" = yes && enable_static=no 7208 if test -n "$RANLIB"; then 7209 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7210 postinstall_cmds='$RANLIB $lib' 7211 fi 7212 ;; 7213 aix[[4-9]]*) 7214 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7215 test "$enable_shared" = yes && enable_static=no 7216 fi 7217 ;; 7218 esac 7219 AC_MSG_RESULT([$enable_shared]) 7220 7221 AC_MSG_CHECKING([whether to build static libraries]) 7222 # Make sure either enable_shared or enable_static is yes. 7223 test "$enable_shared" = yes || enable_static=yes 7224 AC_MSG_RESULT([$enable_static]) 7225 7226 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" 7227 _LT_TAGVAR(LD, $1)="$LD" 7228 7229 ## CAVEAT EMPTOR: 7230 ## There is no encapsulation within the following macros, do not change 7231 ## the running order or otherwise move them around unless you know exactly 7232 ## what you are doing... 7233 _LT_SYS_HIDDEN_LIBDEPS($1) 7234 _LT_COMPILER_PIC($1) 7235 _LT_COMPILER_C_O($1) 7236 _LT_COMPILER_FILE_LOCKS($1) 7237 _LT_LINKER_SHLIBS($1) 7238 _LT_SYS_DYNAMIC_LINKER($1) 7239 _LT_LINKER_HARDCODE_LIBPATH($1) 7240 7241 _LT_CONFIG($1) 7242 fi # test -n "$compiler" 7243 7244 GCC=$lt_save_GCC 7245 CC="$lt_save_CC" 7246fi # test "$_lt_disable_FC" != yes 7247 7248AC_LANG_POP 7249])# _LT_LANG_FC_CONFIG 7250 7251 7252# _LT_LANG_GCJ_CONFIG([TAG]) 7253# -------------------------- 7254# Ensure that the configuration variables for the GNU Java Compiler compiler 7255# are suitably defined. These variables are subsequently used by _LT_CONFIG 7256# to write the compiler configuration to `libtool'. 7257m4_defun([_LT_LANG_GCJ_CONFIG], 7258[AC_REQUIRE([LT_PROG_GCJ])dnl 7259AC_LANG_SAVE 7260 7261# Source file extension for Java test sources. 7262ac_ext=java 7263 7264# Object file extension for compiled Java test sources. 7265objext=o 7266_LT_TAGVAR(objext, $1)=$objext 7267 7268# Code to be used in simple compile tests 7269lt_simple_compile_test_code="class foo {}" 7270 7271# Code to be used in simple link tests 7272lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 7273 7274# ltmain only uses $CC for tagged configurations so make sure $CC is set. 7275_LT_TAG_COMPILER 7276 7277# save warnings/boilerplate of simple test code 7278_LT_COMPILER_BOILERPLATE 7279_LT_LINKER_BOILERPLATE 7280 7281# Allow CC to be a program name with arguments. 7282lt_save_CC="$CC" 7283lt_save_GCC=$GCC 7284GCC=yes 7285CC=${GCJ-"gcj"} 7286compiler=$CC 7287_LT_TAGVAR(compiler, $1)=$CC 7288_LT_TAGVAR(LD, $1)="$LD" 7289_LT_CC_BASENAME([$compiler]) 7290 7291# GCJ did not exist at the time GCC didn't implicitly link libc in. 7292_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7293 7294_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7295 7296if test -n "$compiler"; then 7297 _LT_COMPILER_NO_RTTI($1) 7298 _LT_COMPILER_PIC($1) 7299 _LT_COMPILER_C_O($1) 7300 _LT_COMPILER_FILE_LOCKS($1) 7301 _LT_LINKER_SHLIBS($1) 7302 _LT_LINKER_HARDCODE_LIBPATH($1) 7303 7304 _LT_CONFIG($1) 7305fi 7306 7307AC_LANG_RESTORE 7308 7309GCC=$lt_save_GCC 7310CC="$lt_save_CC" 7311])# _LT_LANG_GCJ_CONFIG 7312 7313 7314# _LT_LANG_RC_CONFIG([TAG]) 7315# ------------------------- 7316# Ensure that the configuration variables for the Windows resource compiler 7317# are suitably defined. These variables are subsequently used by _LT_CONFIG 7318# to write the compiler configuration to `libtool'. 7319m4_defun([_LT_LANG_RC_CONFIG], 7320[AC_REQUIRE([LT_PROG_RC])dnl 7321AC_LANG_SAVE 7322 7323# Source file extension for RC test sources. 7324ac_ext=rc 7325 7326# Object file extension for compiled RC test sources. 7327objext=o 7328_LT_TAGVAR(objext, $1)=$objext 7329 7330# Code to be used in simple compile tests 7331lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 7332 7333# Code to be used in simple link tests 7334lt_simple_link_test_code="$lt_simple_compile_test_code" 7335 7336# ltmain only uses $CC for tagged configurations so make sure $CC is set. 7337_LT_TAG_COMPILER 7338 7339# save warnings/boilerplate of simple test code 7340_LT_COMPILER_BOILERPLATE 7341_LT_LINKER_BOILERPLATE 7342 7343# Allow CC to be a program name with arguments. 7344lt_save_CC="$CC" 7345lt_save_GCC=$GCC 7346GCC= 7347CC=${RC-"windres"} 7348compiler=$CC 7349_LT_TAGVAR(compiler, $1)=$CC 7350_LT_CC_BASENAME([$compiler]) 7351_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 7352 7353if test -n "$compiler"; then 7354 : 7355 _LT_CONFIG($1) 7356fi 7357 7358GCC=$lt_save_GCC 7359AC_LANG_RESTORE 7360CC="$lt_save_CC" 7361])# _LT_LANG_RC_CONFIG 7362 7363 7364# LT_PROG_GCJ 7365# ----------- 7366AC_DEFUN([LT_PROG_GCJ], 7367[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 7368 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 7369 [AC_CHECK_TOOL(GCJ, gcj,) 7370 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 7371 AC_SUBST(GCJFLAGS)])])[]dnl 7372]) 7373 7374# Old name: 7375AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 7376dnl aclocal-1.4 backwards compatibility: 7377dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 7378 7379 7380# LT_PROG_RC 7381# ---------- 7382AC_DEFUN([LT_PROG_RC], 7383[AC_CHECK_TOOL(RC, windres,) 7384]) 7385 7386# Old name: 7387AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 7388dnl aclocal-1.4 backwards compatibility: 7389dnl AC_DEFUN([LT_AC_PROG_RC], []) 7390 7391 7392# _LT_DECL_EGREP 7393# -------------- 7394# If we don't have a new enough Autoconf to choose the best grep 7395# available, choose the one first in the user's PATH. 7396m4_defun([_LT_DECL_EGREP], 7397[AC_REQUIRE([AC_PROG_EGREP])dnl 7398AC_REQUIRE([AC_PROG_FGREP])dnl 7399test -z "$GREP" && GREP=grep 7400_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 7401_LT_DECL([], [EGREP], [1], [An ERE matcher]) 7402_LT_DECL([], [FGREP], [1], [A literal string matcher]) 7403dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 7404AC_SUBST([GREP]) 7405]) 7406 7407 7408# _LT_DECL_OBJDUMP 7409# -------------- 7410# If we don't have a new enough Autoconf to choose the best objdump 7411# available, choose the one first in the user's PATH. 7412m4_defun([_LT_DECL_OBJDUMP], 7413[AC_CHECK_TOOL(OBJDUMP, objdump, false) 7414test -z "$OBJDUMP" && OBJDUMP=objdump 7415_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 7416AC_SUBST([OBJDUMP]) 7417]) 7418 7419 7420# _LT_DECL_SED 7421# ------------ 7422# Check for a fully-functional sed program, that truncates 7423# as few characters as possible. Prefer GNU sed if found. 7424m4_defun([_LT_DECL_SED], 7425[AC_PROG_SED 7426test -z "$SED" && SED=sed 7427Xsed="$SED -e 1s/^X//" 7428_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 7429_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 7430 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 7431])# _LT_DECL_SED 7432 7433m4_ifndef([AC_PROG_SED], [ 7434# NOTE: This macro has been submitted for inclusion into # 7435# GNU Autoconf as AC_PROG_SED. When it is available in # 7436# a released version of Autoconf we should remove this # 7437# macro and use it instead. # 7438 7439m4_defun([AC_PROG_SED], 7440[AC_MSG_CHECKING([for a sed that does not truncate output]) 7441AC_CACHE_VAL(lt_cv_path_SED, 7442[# Loop through the user's path and test for sed and gsed. 7443# Then use that list of sed's as ones to test for truncation. 7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7445for as_dir in $PATH 7446do 7447 IFS=$as_save_IFS 7448 test -z "$as_dir" && as_dir=. 7449 for lt_ac_prog in sed gsed; do 7450 for ac_exec_ext in '' $ac_executable_extensions; do 7451 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 7452 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 7453 fi 7454 done 7455 done 7456done 7457IFS=$as_save_IFS 7458lt_ac_max=0 7459lt_ac_count=0 7460# Add /usr/xpg4/bin/sed as it is typically found on Solaris 7461# along with /bin/sed that truncates output. 7462for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 7463 test ! -f $lt_ac_sed && continue 7464 cat /dev/null > conftest.in 7465 lt_ac_count=0 7466 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 7467 # Check for GNU sed and select it if it is found. 7468 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 7469 lt_cv_path_SED=$lt_ac_sed 7470 break 7471 fi 7472 while true; do 7473 cat conftest.in conftest.in >conftest.tmp 7474 mv conftest.tmp conftest.in 7475 cp conftest.in conftest.nl 7476 echo >>conftest.nl 7477 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 7478 cmp -s conftest.out conftest.nl || break 7479 # 10000 chars as input seems more than enough 7480 test $lt_ac_count -gt 10 && break 7481 lt_ac_count=`expr $lt_ac_count + 1` 7482 if test $lt_ac_count -gt $lt_ac_max; then 7483 lt_ac_max=$lt_ac_count 7484 lt_cv_path_SED=$lt_ac_sed 7485 fi 7486 done 7487done 7488]) 7489SED=$lt_cv_path_SED 7490AC_SUBST([SED]) 7491AC_MSG_RESULT([$SED]) 7492])#AC_PROG_SED 7493])#m4_ifndef 7494 7495# Old name: 7496AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 7497dnl aclocal-1.4 backwards compatibility: 7498dnl AC_DEFUN([LT_AC_PROG_SED], []) 7499 7500 7501# _LT_CHECK_SHELL_FEATURES 7502# ------------------------ 7503# Find out whether the shell is Bourne or XSI compatible, 7504# or has some other useful features. 7505m4_defun([_LT_CHECK_SHELL_FEATURES], 7506[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 7507# Try some XSI features 7508xsi_shell=no 7509( _lt_dummy="a/b/c" 7510 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 7511 = c,a/b,, \ 7512 && eval 'test $(( 1 + 1 )) -eq 2 \ 7513 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7514 && xsi_shell=yes 7515AC_MSG_RESULT([$xsi_shell]) 7516_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 7517 7518AC_MSG_CHECKING([whether the shell understands "+="]) 7519lt_shell_append=no 7520( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 7521 >/dev/null 2>&1 \ 7522 && lt_shell_append=yes 7523AC_MSG_RESULT([$lt_shell_append]) 7524_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 7525 7526if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7527 lt_unset=unset 7528else 7529 lt_unset=false 7530fi 7531_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 7532 7533# test EBCDIC or ASCII 7534case `echo X|tr X '\101'` in 7535 A) # ASCII based system 7536 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7537 lt_SP2NL='tr \040 \012' 7538 lt_NL2SP='tr \015\012 \040\040' 7539 ;; 7540 *) # EBCDIC based system 7541 lt_SP2NL='tr \100 \n' 7542 lt_NL2SP='tr \r\n \100\100' 7543 ;; 7544esac 7545_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 7546_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 7547])# _LT_CHECK_SHELL_FEATURES 7548 7549 7550# _LT_PROG_XSI_SHELLFNS 7551# --------------------- 7552# Bourne and XSI compatible variants of some useful shell functions. 7553m4_defun([_LT_PROG_XSI_SHELLFNS], 7554[case $xsi_shell in 7555 yes) 7556 cat << \_LT_EOF >> "$cfgfile" 7557 7558# func_dirname file append nondir_replacement 7559# Compute the dirname of FILE. If nonempty, add APPEND to the result, 7560# otherwise set result to NONDIR_REPLACEMENT. 7561func_dirname () 7562{ 7563 case ${1} in 7564 */*) func_dirname_result="${1%/*}${2}" ;; 7565 * ) func_dirname_result="${3}" ;; 7566 esac 7567} 7568 7569# func_basename file 7570func_basename () 7571{ 7572 func_basename_result="${1##*/}" 7573} 7574 7575# func_dirname_and_basename file append nondir_replacement 7576# perform func_basename and func_dirname in a single function 7577# call: 7578# dirname: Compute the dirname of FILE. If nonempty, 7579# add APPEND to the result, otherwise set result 7580# to NONDIR_REPLACEMENT. 7581# value returned in "$func_dirname_result" 7582# basename: Compute filename of FILE. 7583# value retuned in "$func_basename_result" 7584# Implementation must be kept synchronized with func_dirname 7585# and func_basename. For efficiency, we do not delegate to 7586# those functions but instead duplicate the functionality here. 7587func_dirname_and_basename () 7588{ 7589 case ${1} in 7590 */*) func_dirname_result="${1%/*}${2}" ;; 7591 * ) func_dirname_result="${3}" ;; 7592 esac 7593 func_basename_result="${1##*/}" 7594} 7595 7596# func_stripname prefix suffix name 7597# strip PREFIX and SUFFIX off of NAME. 7598# PREFIX and SUFFIX must not contain globbing or regex special 7599# characters, hashes, percent signs, but SUFFIX may contain a leading 7600# dot (in which case that matches only a dot). 7601func_stripname () 7602{ 7603 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 7604 # positional parameters, so assign one to ordinary parameter first. 7605 func_stripname_result=${3} 7606 func_stripname_result=${func_stripname_result#"${1}"} 7607 func_stripname_result=${func_stripname_result%"${2}"} 7608} 7609 7610# func_opt_split 7611func_opt_split () 7612{ 7613 func_opt_split_opt=${1%%=*} 7614 func_opt_split_arg=${1#*=} 7615} 7616 7617# func_lo2o object 7618func_lo2o () 7619{ 7620 case ${1} in 7621 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 7622 *) func_lo2o_result=${1} ;; 7623 esac 7624} 7625 7626# func_xform libobj-or-source 7627func_xform () 7628{ 7629 func_xform_result=${1%.*}.lo 7630} 7631 7632# func_arith arithmetic-term... 7633func_arith () 7634{ 7635 func_arith_result=$(( $[*] )) 7636} 7637 7638# func_len string 7639# STRING may not start with a hyphen. 7640func_len () 7641{ 7642 func_len_result=${#1} 7643} 7644 7645_LT_EOF 7646 ;; 7647 *) # Bourne compatible functions. 7648 cat << \_LT_EOF >> "$cfgfile" 7649 7650# func_dirname file append nondir_replacement 7651# Compute the dirname of FILE. If nonempty, add APPEND to the result, 7652# otherwise set result to NONDIR_REPLACEMENT. 7653func_dirname () 7654{ 7655 # Extract subdirectory from the argument. 7656 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 7657 if test "X$func_dirname_result" = "X${1}"; then 7658 func_dirname_result="${3}" 7659 else 7660 func_dirname_result="$func_dirname_result${2}" 7661 fi 7662} 7663 7664# func_basename file 7665func_basename () 7666{ 7667 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 7668} 7669 7670dnl func_dirname_and_basename 7671dnl A portable version of this function is already defined in general.m4sh 7672dnl so there is no need for it here. 7673 7674# func_stripname prefix suffix name 7675# strip PREFIX and SUFFIX off of NAME. 7676# PREFIX and SUFFIX must not contain globbing or regex special 7677# characters, hashes, percent signs, but SUFFIX may contain a leading 7678# dot (in which case that matches only a dot). 7679# func_strip_suffix prefix name 7680func_stripname () 7681{ 7682 case ${2} in 7683 .*) func_stripname_result=`$ECHO "X${3}" \ 7684 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 7685 *) func_stripname_result=`$ECHO "X${3}" \ 7686 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 7687 esac 7688} 7689 7690# sed scripts: 7691my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' 7692my_sed_long_arg='1s/^-[[^=]]*=//' 7693 7694# func_opt_split 7695func_opt_split () 7696{ 7697 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 7698 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 7699} 7700 7701# func_lo2o object 7702func_lo2o () 7703{ 7704 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 7705} 7706 7707# func_xform libobj-or-source 7708func_xform () 7709{ 7710 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` 7711} 7712 7713# func_arith arithmetic-term... 7714func_arith () 7715{ 7716 func_arith_result=`expr "$[@]"` 7717} 7718 7719# func_len string 7720# STRING may not start with a hyphen. 7721func_len () 7722{ 7723 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` 7724} 7725 7726_LT_EOF 7727esac 7728 7729case $lt_shell_append in 7730 yes) 7731 cat << \_LT_EOF >> "$cfgfile" 7732 7733# func_append var value 7734# Append VALUE to the end of shell variable VAR. 7735func_append () 7736{ 7737 eval "$[1]+=\$[2]" 7738} 7739_LT_EOF 7740 ;; 7741 *) 7742 cat << \_LT_EOF >> "$cfgfile" 7743 7744# func_append var value 7745# Append VALUE to the end of shell variable VAR. 7746func_append () 7747{ 7748 eval "$[1]=\$$[1]\$[2]" 7749} 7750 7751_LT_EOF 7752 ;; 7753 esac 7754]) 7755 7756# Helper functions for option handling. -*- Autoconf -*- 7757# 7758# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 7759# Written by Gary V. Vaughan, 2004 7760# 7761# This file is free software; the Free Software Foundation gives 7762# unlimited permission to copy and/or distribute it, with or without 7763# modifications, as long as this notice is preserved. 7764 7765# serial 6 ltoptions.m4 7766 7767# This is to help aclocal find these macros, as it can't see m4_define. 7768AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 7769 7770 7771# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 7772# ------------------------------------------ 7773m4_define([_LT_MANGLE_OPTION], 7774[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 7775 7776 7777# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 7778# --------------------------------------- 7779# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 7780# matching handler defined, dispatch to it. Other OPTION-NAMEs are 7781# saved as a flag. 7782m4_define([_LT_SET_OPTION], 7783[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 7784m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 7785 _LT_MANGLE_DEFUN([$1], [$2]), 7786 [m4_warning([Unknown $1 option `$2'])])[]dnl 7787]) 7788 7789 7790# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 7791# ------------------------------------------------------------ 7792# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 7793m4_define([_LT_IF_OPTION], 7794[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 7795 7796 7797# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 7798# ------------------------------------------------------- 7799# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 7800# are set. 7801m4_define([_LT_UNLESS_OPTIONS], 7802[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 7803 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 7804 [m4_define([$0_found])])])[]dnl 7805m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 7806])[]dnl 7807]) 7808 7809 7810# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 7811# ---------------------------------------- 7812# OPTION-LIST is a space-separated list of Libtool options associated 7813# with MACRO-NAME. If any OPTION has a matching handler declared with 7814# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 7815# the unknown option and exit. 7816m4_defun([_LT_SET_OPTIONS], 7817[# Set options 7818m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 7819 [_LT_SET_OPTION([$1], _LT_Option)]) 7820 7821m4_if([$1],[LT_INIT],[ 7822 dnl 7823 dnl Simply set some default values (i.e off) if boolean options were not 7824 dnl specified: 7825 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 7826 ]) 7827 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 7828 ]) 7829 dnl 7830 dnl If no reference was made to various pairs of opposing options, then 7831 dnl we run the default mode handler for the pair. For example, if neither 7832 dnl `shared' nor `disable-shared' was passed, we enable building of shared 7833 dnl archives by default: 7834 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 7835 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 7836 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 7837 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 7838 [_LT_ENABLE_FAST_INSTALL]) 7839 ]) 7840])# _LT_SET_OPTIONS 7841 7842 7843 7844# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 7845# ----------------------------------------- 7846m4_define([_LT_MANGLE_DEFUN], 7847[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 7848 7849 7850# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 7851# ----------------------------------------------- 7852m4_define([LT_OPTION_DEFINE], 7853[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 7854])# LT_OPTION_DEFINE 7855 7856 7857# dlopen 7858# ------ 7859LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 7860]) 7861 7862AU_DEFUN([AC_LIBTOOL_DLOPEN], 7863[_LT_SET_OPTION([LT_INIT], [dlopen]) 7864AC_DIAGNOSE([obsolete], 7865[$0: Remove this warning and the call to _LT_SET_OPTION when you 7866put the `dlopen' option into LT_INIT's first parameter.]) 7867]) 7868 7869dnl aclocal-1.4 backwards compatibility: 7870dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 7871 7872 7873# win32-dll 7874# --------- 7875# Declare package support for building win32 dll's. 7876LT_OPTION_DEFINE([LT_INIT], [win32-dll], 7877[enable_win32_dll=yes 7878 7879case $host in 7880*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 7881 AC_CHECK_TOOL(AS, as, false) 7882 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 7883 AC_CHECK_TOOL(OBJDUMP, objdump, false) 7884 ;; 7885esac 7886 7887test -z "$AS" && AS=as 7888_LT_DECL([], [AS], [0], [Assembler program])dnl 7889 7890test -z "$DLLTOOL" && DLLTOOL=dlltool 7891_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl 7892 7893test -z "$OBJDUMP" && OBJDUMP=objdump 7894_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl 7895])# win32-dll 7896 7897AU_DEFUN([AC_LIBTOOL_WIN32_DLL], 7898[AC_REQUIRE([AC_CANONICAL_HOST])dnl 7899_LT_SET_OPTION([LT_INIT], [win32-dll]) 7900AC_DIAGNOSE([obsolete], 7901[$0: Remove this warning and the call to _LT_SET_OPTION when you 7902put the `win32-dll' option into LT_INIT's first parameter.]) 7903]) 7904 7905dnl aclocal-1.4 backwards compatibility: 7906dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 7907 7908 7909# _LT_ENABLE_SHARED([DEFAULT]) 7910# ---------------------------- 7911# implement the --enable-shared flag, and supports the `shared' and 7912# `disable-shared' LT_INIT options. 7913# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 7914m4_define([_LT_ENABLE_SHARED], 7915[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 7916AC_ARG_ENABLE([shared], 7917 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 7918 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 7919 [p=${PACKAGE-default} 7920 case $enableval in 7921 yes) enable_shared=yes ;; 7922 no) enable_shared=no ;; 7923 *) 7924 enable_shared=no 7925 # Look at the argument we got. We use all the common list separators. 7926 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7927 for pkg in $enableval; do 7928 IFS="$lt_save_ifs" 7929 if test "X$pkg" = "X$p"; then 7930 enable_shared=yes 7931 fi 7932 done 7933 IFS="$lt_save_ifs" 7934 ;; 7935 esac], 7936 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 7937 7938 _LT_DECL([build_libtool_libs], [enable_shared], [0], 7939 [Whether or not to build shared libraries]) 7940])# _LT_ENABLE_SHARED 7941 7942LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 7943LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 7944 7945# Old names: 7946AC_DEFUN([AC_ENABLE_SHARED], 7947[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 7948]) 7949 7950AC_DEFUN([AC_DISABLE_SHARED], 7951[_LT_SET_OPTION([LT_INIT], [disable-shared]) 7952]) 7953 7954AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 7955AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 7956 7957dnl aclocal-1.4 backwards compatibility: 7958dnl AC_DEFUN([AM_ENABLE_SHARED], []) 7959dnl AC_DEFUN([AM_DISABLE_SHARED], []) 7960 7961 7962 7963# _LT_ENABLE_STATIC([DEFAULT]) 7964# ---------------------------- 7965# implement the --enable-static flag, and support the `static' and 7966# `disable-static' LT_INIT options. 7967# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 7968m4_define([_LT_ENABLE_STATIC], 7969[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 7970AC_ARG_ENABLE([static], 7971 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 7972 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 7973 [p=${PACKAGE-default} 7974 case $enableval in 7975 yes) enable_static=yes ;; 7976 no) enable_static=no ;; 7977 *) 7978 enable_static=no 7979 # Look at the argument we got. We use all the common list separators. 7980 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7981 for pkg in $enableval; do 7982 IFS="$lt_save_ifs" 7983 if test "X$pkg" = "X$p"; then 7984 enable_static=yes 7985 fi 7986 done 7987 IFS="$lt_save_ifs" 7988 ;; 7989 esac], 7990 [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 7991 7992 _LT_DECL([build_old_libs], [enable_static], [0], 7993 [Whether or not to build static libraries]) 7994])# _LT_ENABLE_STATIC 7995 7996LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 7997LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 7998 7999# Old names: 8000AC_DEFUN([AC_ENABLE_STATIC], 8001[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 8002]) 8003 8004AC_DEFUN([AC_DISABLE_STATIC], 8005[_LT_SET_OPTION([LT_INIT], [disable-static]) 8006]) 8007 8008AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 8009AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 8010 8011dnl aclocal-1.4 backwards compatibility: 8012dnl AC_DEFUN([AM_ENABLE_STATIC], []) 8013dnl AC_DEFUN([AM_DISABLE_STATIC], []) 8014 8015 8016 8017# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 8018# ---------------------------------- 8019# implement the --enable-fast-install flag, and support the `fast-install' 8020# and `disable-fast-install' LT_INIT options. 8021# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 8022m4_define([_LT_ENABLE_FAST_INSTALL], 8023[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 8024AC_ARG_ENABLE([fast-install], 8025 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 8026 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 8027 [p=${PACKAGE-default} 8028 case $enableval in 8029 yes) enable_fast_install=yes ;; 8030 no) enable_fast_install=no ;; 8031 *) 8032 enable_fast_install=no 8033 # Look at the argument we got. We use all the common list separators. 8034 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8035 for pkg in $enableval; do 8036 IFS="$lt_save_ifs" 8037 if test "X$pkg" = "X$p"; then 8038 enable_fast_install=yes 8039 fi 8040 done 8041 IFS="$lt_save_ifs" 8042 ;; 8043 esac], 8044 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 8045 8046_LT_DECL([fast_install], [enable_fast_install], [0], 8047 [Whether or not to optimize for fast installation])dnl 8048])# _LT_ENABLE_FAST_INSTALL 8049 8050LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 8051LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 8052 8053# Old names: 8054AU_DEFUN([AC_ENABLE_FAST_INSTALL], 8055[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 8056AC_DIAGNOSE([obsolete], 8057[$0: Remove this warning and the call to _LT_SET_OPTION when you put 8058the `fast-install' option into LT_INIT's first parameter.]) 8059]) 8060 8061AU_DEFUN([AC_DISABLE_FAST_INSTALL], 8062[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 8063AC_DIAGNOSE([obsolete], 8064[$0: Remove this warning and the call to _LT_SET_OPTION when you put 8065the `disable-fast-install' option into LT_INIT's first parameter.]) 8066]) 8067 8068dnl aclocal-1.4 backwards compatibility: 8069dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 8070dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 8071 8072 8073# _LT_WITH_PIC([MODE]) 8074# -------------------- 8075# implement the --with-pic flag, and support the `pic-only' and `no-pic' 8076# LT_INIT options. 8077# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 8078m4_define([_LT_WITH_PIC], 8079[AC_ARG_WITH([pic], 8080 [AS_HELP_STRING([--with-pic], 8081 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 8082 [pic_mode="$withval"], 8083 [pic_mode=default]) 8084 8085test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 8086 8087_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 8088])# _LT_WITH_PIC 8089 8090LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 8091LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 8092 8093# Old name: 8094AU_DEFUN([AC_LIBTOOL_PICMODE], 8095[_LT_SET_OPTION([LT_INIT], [pic-only]) 8096AC_DIAGNOSE([obsolete], 8097[$0: Remove this warning and the call to _LT_SET_OPTION when you 8098put the `pic-only' option into LT_INIT's first parameter.]) 8099]) 8100 8101dnl aclocal-1.4 backwards compatibility: 8102dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 8103 8104 8105m4_define([_LTDL_MODE], []) 8106LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 8107 [m4_define([_LTDL_MODE], [nonrecursive])]) 8108LT_OPTION_DEFINE([LTDL_INIT], [recursive], 8109 [m4_define([_LTDL_MODE], [recursive])]) 8110LT_OPTION_DEFINE([LTDL_INIT], [subproject], 8111 [m4_define([_LTDL_MODE], [subproject])]) 8112 8113m4_define([_LTDL_TYPE], []) 8114LT_OPTION_DEFINE([LTDL_INIT], [installable], 8115 [m4_define([_LTDL_TYPE], [installable])]) 8116LT_OPTION_DEFINE([LTDL_INIT], [convenience], 8117 [m4_define([_LTDL_TYPE], [convenience])]) 8118 8119# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 8120# 8121# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 8122# Written by Gary V. Vaughan, 2004 8123# 8124# This file is free software; the Free Software Foundation gives 8125# unlimited permission to copy and/or distribute it, with or without 8126# modifications, as long as this notice is preserved. 8127 8128# serial 6 ltsugar.m4 8129 8130# This is to help aclocal find these macros, as it can't see m4_define. 8131AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 8132 8133 8134# lt_join(SEP, ARG1, [ARG2...]) 8135# ----------------------------- 8136# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 8137# associated separator. 8138# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 8139# versions in m4sugar had bugs. 8140m4_define([lt_join], 8141[m4_if([$#], [1], [], 8142 [$#], [2], [[$2]], 8143 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 8144m4_define([_lt_join], 8145[m4_if([$#$2], [2], [], 8146 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 8147 8148 8149# lt_car(LIST) 8150# lt_cdr(LIST) 8151# ------------ 8152# Manipulate m4 lists. 8153# These macros are necessary as long as will still need to support 8154# Autoconf-2.59 which quotes differently. 8155m4_define([lt_car], [[$1]]) 8156m4_define([lt_cdr], 8157[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 8158 [$#], 1, [], 8159 [m4_dquote(m4_shift($@))])]) 8160m4_define([lt_unquote], $1) 8161 8162 8163# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 8164# ------------------------------------------ 8165# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. 8166# Note that neither SEPARATOR nor STRING are expanded; they are appended 8167# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 8168# No SEPARATOR is output if MACRO-NAME was previously undefined (different 8169# than defined and empty). 8170# 8171# This macro is needed until we can rely on Autoconf 2.62, since earlier 8172# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 8173m4_define([lt_append], 8174[m4_define([$1], 8175 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 8176 8177 8178 8179# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 8180# ---------------------------------------------------------- 8181# Produce a SEP delimited list of all paired combinations of elements of 8182# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 8183# has the form PREFIXmINFIXSUFFIXn. 8184# Needed until we can rely on m4_combine added in Autoconf 2.62. 8185m4_define([lt_combine], 8186[m4_if(m4_eval([$# > 3]), [1], 8187 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 8188[[m4_foreach([_Lt_prefix], [$2], 8189 [m4_foreach([_Lt_suffix], 8190 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 8191 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 8192 8193 8194# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 8195# ----------------------------------------------------------------------- 8196# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 8197# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 8198m4_define([lt_if_append_uniq], 8199[m4_ifdef([$1], 8200 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 8201 [lt_append([$1], [$2], [$3])$4], 8202 [$5])], 8203 [lt_append([$1], [$2], [$3])$4])]) 8204 8205 8206# lt_dict_add(DICT, KEY, VALUE) 8207# ----------------------------- 8208m4_define([lt_dict_add], 8209[m4_define([$1($2)], [$3])]) 8210 8211 8212# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 8213# -------------------------------------------- 8214m4_define([lt_dict_add_subkey], 8215[m4_define([$1($2:$3)], [$4])]) 8216 8217 8218# lt_dict_fetch(DICT, KEY, [SUBKEY]) 8219# ---------------------------------- 8220m4_define([lt_dict_fetch], 8221[m4_ifval([$3], 8222 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 8223 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 8224 8225 8226# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 8227# ----------------------------------------------------------------- 8228m4_define([lt_if_dict_fetch], 8229[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 8230 [$5], 8231 [$6])]) 8232 8233 8234# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 8235# -------------------------------------------------------------- 8236m4_define([lt_dict_filter], 8237[m4_if([$5], [], [], 8238 [lt_join(m4_quote(m4_default([$4], [[, ]])), 8239 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 8240 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 8241]) 8242 8243# ltversion.m4 -- version numbers -*- Autoconf -*- 8244# 8245# Copyright (C) 2004 Free Software Foundation, Inc. 8246# Written by Scott James Remnant, 2004 8247# 8248# This file is free software; the Free Software Foundation gives 8249# unlimited permission to copy and/or distribute it, with or without 8250# modifications, as long as this notice is preserved. 8251 8252# Generated from ltversion.in. 8253 8254# serial 3012 ltversion.m4 8255# This file is part of GNU Libtool 8256 8257m4_define([LT_PACKAGE_VERSION], [2.2.6]) 8258m4_define([LT_PACKAGE_REVISION], [1.3012]) 8259 8260AC_DEFUN([LTVERSION_VERSION], 8261[macro_version='2.2.6' 8262macro_revision='1.3012' 8263_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 8264_LT_DECL(, macro_revision, 0) 8265]) 8266 8267# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 8268# 8269# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. 8270# Written by Scott James Remnant, 2004. 8271# 8272# This file is free software; the Free Software Foundation gives 8273# unlimited permission to copy and/or distribute it, with or without 8274# modifications, as long as this notice is preserved. 8275 8276# serial 4 lt~obsolete.m4 8277 8278# These exist entirely to fool aclocal when bootstrapping libtool. 8279# 8280# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) 8281# which have later been changed to m4_define as they aren't part of the 8282# exported API, or moved to Autoconf or Automake where they belong. 8283# 8284# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 8285# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 8286# using a macro with the same name in our local m4/libtool.m4 it'll 8287# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 8288# and doesn't know about Autoconf macros at all.) 8289# 8290# So we provide this file, which has a silly filename so it's always 8291# included after everything else. This provides aclocal with the 8292# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 8293# because those macros already exist, or will be overwritten later. 8294# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 8295# 8296# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 8297# Yes, that means every name once taken will need to remain here until 8298# we give up compatibility with versions before 1.7, at which point 8299# we need to keep only those names which we still refer to. 8300 8301# This is to help aclocal find these macros, as it can't see m4_define. 8302AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 8303 8304m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 8305m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 8306m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 8307m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 8308m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 8309m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 8310m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 8311m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 8312m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 8313m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 8314m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 8315m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 8316m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 8317m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 8318m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 8319m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 8320m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 8321m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 8322m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 8323m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 8324m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 8325m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 8326m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 8327m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 8328m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 8329m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 8330m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 8331m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 8332m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 8333m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 8334m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 8335m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 8336m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 8337m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 8338m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 8339m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 8340m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 8341m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 8342m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 8343m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 8344m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 8345m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 8346m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) 8347m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 8348m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 8349m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 8350m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 8351m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 8352m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 8353m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 8354m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 8355m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 8356m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 8357m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 8358m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 8359 8360# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 8361# 8362# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 8363# 8364# This program is free software; you can redistribute it and/or modify 8365# it under the terms of the GNU General Public License as published by 8366# the Free Software Foundation; either version 2 of the License, or 8367# (at your option) any later version. 8368# 8369# This program is distributed in the hope that it will be useful, but 8370# WITHOUT ANY WARRANTY; without even the implied warranty of 8371# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 8372# General Public License for more details. 8373# 8374# You should have received a copy of the GNU General Public License 8375# along with this program; if not, write to the Free Software 8376# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 8377# 8378# As a special exception to the GNU General Public License, if you 8379# distribute this file as part of a program that contains a 8380# configuration script generated by Autoconf, you may include it under 8381# the same distribution terms that you use for the rest of that program. 8382 8383# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 8384# ---------------------------------- 8385AC_DEFUN([PKG_PROG_PKG_CONFIG], 8386[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 8387m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 8388AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 8389if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 8390 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 8391fi 8392if test -n "$PKG_CONFIG"; then 8393 _pkg_min_version=m4_default([$1], [0.9.0]) 8394 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 8395 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 8396 AC_MSG_RESULT([yes]) 8397 else 8398 AC_MSG_RESULT([no]) 8399 PKG_CONFIG="" 8400 fi 8401 8402fi[]dnl 8403])# PKG_PROG_PKG_CONFIG 8404 8405# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 8406# 8407# Check to see whether a particular set of modules exists. Similar 8408# to PKG_CHECK_MODULES(), but does not set variables or print errors. 8409# 8410# 8411# Similar to PKG_CHECK_MODULES, make sure that the first instance of 8412# this or PKG_CHECK_MODULES is called, or make sure to call 8413# PKG_CHECK_EXISTS manually 8414# -------------------------------------------------------------- 8415AC_DEFUN([PKG_CHECK_EXISTS], 8416[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 8417if test -n "$PKG_CONFIG" && \ 8418 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 8419 m4_ifval([$2], [$2], [:]) 8420m4_ifvaln([$3], [else 8421 $3])dnl 8422fi]) 8423 8424 8425# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 8426# --------------------------------------------- 8427m4_define([_PKG_CONFIG], 8428[if test -n "$$1"; then 8429 pkg_cv_[]$1="$$1" 8430 elif test -n "$PKG_CONFIG"; then 8431 PKG_CHECK_EXISTS([$3], 8432 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 8433 [pkg_failed=yes]) 8434 else 8435 pkg_failed=untried 8436fi[]dnl 8437])# _PKG_CONFIG 8438 8439# _PKG_SHORT_ERRORS_SUPPORTED 8440# ----------------------------- 8441AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 8442[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 8443if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 8444 _pkg_short_errors_supported=yes 8445else 8446 _pkg_short_errors_supported=no 8447fi[]dnl 8448])# _PKG_SHORT_ERRORS_SUPPORTED 8449 8450 8451# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 8452# [ACTION-IF-NOT-FOUND]) 8453# 8454# 8455# Note that if there is a possibility the first call to 8456# PKG_CHECK_MODULES might not happen, you should be sure to include an 8457# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 8458# 8459# 8460# -------------------------------------------------------------- 8461AC_DEFUN([PKG_CHECK_MODULES], 8462[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 8463AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 8464AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 8465 8466pkg_failed=no 8467AC_MSG_CHECKING([for $1]) 8468 8469_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 8470_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 8471 8472m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 8473and $1[]_LIBS to avoid the need to call pkg-config. 8474See the pkg-config man page for more details.]) 8475 8476if test $pkg_failed = yes; then 8477 _PKG_SHORT_ERRORS_SUPPORTED 8478 if test $_pkg_short_errors_supported = yes; then 8479 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` 8480 else 8481 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` 8482 fi 8483 # Put the nasty error message in config.log where it belongs 8484 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 8485 8486 ifelse([$4], , [AC_MSG_ERROR(dnl 8487[Package requirements ($2) were not met: 8488 8489$$1_PKG_ERRORS 8490 8491Consider adjusting the PKG_CONFIG_PATH environment variable if you 8492installed software in a non-standard prefix. 8493 8494_PKG_TEXT 8495])], 8496 [AC_MSG_RESULT([no]) 8497 $4]) 8498elif test $pkg_failed = untried; then 8499 ifelse([$4], , [AC_MSG_FAILURE(dnl 8500[The pkg-config script could not be found or is too old. Make sure it 8501is in your PATH or set the PKG_CONFIG environment variable to the full 8502path to pkg-config. 8503 8504_PKG_TEXT 8505 8506To get pkg-config, see <http://pkg-config.freedesktop.org/>.])], 8507 [$4]) 8508else 8509 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 8510 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 8511 AC_MSG_RESULT([yes]) 8512 ifelse([$3], , :, [$3]) 8513fi[]dnl 8514])# PKG_CHECK_MODULES 8515 8516# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. 8517# 8518# This file is free software; the Free Software Foundation 8519# gives unlimited permission to copy and/or distribute it, 8520# with or without modifications, as long as this notice is preserved. 8521 8522# AM_AUTOMAKE_VERSION(VERSION) 8523# ---------------------------- 8524# Automake X.Y traces this macro to ensure aclocal.m4 has been 8525# generated from the m4 files accompanying Automake X.Y. 8526# (This private macro should not be called outside this file.) 8527AC_DEFUN([AM_AUTOMAKE_VERSION], 8528[am__api_version='1.10' 8529dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 8530dnl require some minimum version. Point them to the right macro. 8531m4_if([$1], [1.10.1], [], 8532 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 8533]) 8534 8535# _AM_AUTOCONF_VERSION(VERSION) 8536# ----------------------------- 8537# aclocal traces this macro to find the Autoconf version. 8538# This is a private macro too. Using m4_define simplifies 8539# the logic in aclocal, which can simply ignore this definition. 8540m4_define([_AM_AUTOCONF_VERSION], []) 8541 8542# AM_SET_CURRENT_AUTOMAKE_VERSION 8543# ------------------------------- 8544# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 8545# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 8546AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 8547[AM_AUTOMAKE_VERSION([1.10.1])dnl 8548m4_ifndef([AC_AUTOCONF_VERSION], 8549 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 8550_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)]) 8551 8552# AM_AUX_DIR_EXPAND -*- Autoconf -*- 8553 8554# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 8555# 8556# This file is free software; the Free Software Foundation 8557# gives unlimited permission to copy and/or distribute it, 8558# with or without modifications, as long as this notice is preserved. 8559 8560# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 8561# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 8562# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 8563# 8564# Of course, Automake must honor this variable whenever it calls a 8565# tool from the auxiliary directory. The problem is that $srcdir (and 8566# therefore $ac_aux_dir as well) can be either absolute or relative, 8567# depending on how configure is run. This is pretty annoying, since 8568# it makes $ac_aux_dir quite unusable in subdirectories: in the top 8569# source directory, any form will work fine, but in subdirectories a 8570# relative path needs to be adjusted first. 8571# 8572# $ac_aux_dir/missing 8573# fails when called from a subdirectory if $ac_aux_dir is relative 8574# $top_srcdir/$ac_aux_dir/missing 8575# fails if $ac_aux_dir is absolute, 8576# fails when called from a subdirectory in a VPATH build with 8577# a relative $ac_aux_dir 8578# 8579# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 8580# are both prefixed by $srcdir. In an in-source build this is usually 8581# harmless because $srcdir is `.', but things will broke when you 8582# start a VPATH build or use an absolute $srcdir. 8583# 8584# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 8585# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 8586# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 8587# and then we would define $MISSING as 8588# MISSING="\${SHELL} $am_aux_dir/missing" 8589# This will work as long as MISSING is not called from configure, because 8590# unfortunately $(top_srcdir) has no meaning in configure. 8591# However there are other variables, like CC, which are often used in 8592# configure, and could therefore not use this "fixed" $ac_aux_dir. 8593# 8594# Another solution, used here, is to always expand $ac_aux_dir to an 8595# absolute PATH. The drawback is that using absolute paths prevent a 8596# configured tree to be moved without reconfiguration. 8597 8598AC_DEFUN([AM_AUX_DIR_EXPAND], 8599[dnl Rely on autoconf to set up CDPATH properly. 8600AC_PREREQ([2.50])dnl 8601# expand $ac_aux_dir to an absolute path 8602am_aux_dir=`cd $ac_aux_dir && pwd` 8603]) 8604 8605# AM_CONDITIONAL -*- Autoconf -*- 8606 8607# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 8608# Free Software Foundation, Inc. 8609# 8610# This file is free software; the Free Software Foundation 8611# gives unlimited permission to copy and/or distribute it, 8612# with or without modifications, as long as this notice is preserved. 8613 8614# serial 8 8615 8616# AM_CONDITIONAL(NAME, SHELL-CONDITION) 8617# ------------------------------------- 8618# Define a conditional. 8619AC_DEFUN([AM_CONDITIONAL], 8620[AC_PREREQ(2.52)dnl 8621 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 8622 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 8623AC_SUBST([$1_TRUE])dnl 8624AC_SUBST([$1_FALSE])dnl 8625_AM_SUBST_NOTMAKE([$1_TRUE])dnl 8626_AM_SUBST_NOTMAKE([$1_FALSE])dnl 8627if $2; then 8628 $1_TRUE= 8629 $1_FALSE='#' 8630else 8631 $1_TRUE='#' 8632 $1_FALSE= 8633fi 8634AC_CONFIG_COMMANDS_PRE( 8635[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 8636 AC_MSG_ERROR([[conditional "$1" was never defined. 8637Usually this means the macro was only invoked conditionally.]]) 8638fi])]) 8639 8640# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 8641# Free Software Foundation, Inc. 8642# 8643# This file is free software; the Free Software Foundation 8644# gives unlimited permission to copy and/or distribute it, 8645# with or without modifications, as long as this notice is preserved. 8646 8647# serial 9 8648 8649# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 8650# written in clear, in which case automake, when reading aclocal.m4, 8651# will think it sees a *use*, and therefore will trigger all it's 8652# C support machinery. Also note that it means that autoscan, seeing 8653# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 8654 8655 8656# _AM_DEPENDENCIES(NAME) 8657# ---------------------- 8658# See how the compiler implements dependency checking. 8659# NAME is "CC", "CXX", "GCJ", or "OBJC". 8660# We try a few techniques and use that to set a single cache variable. 8661# 8662# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 8663# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 8664# dependency, and given that the user is not expected to run this macro, 8665# just rely on AC_PROG_CC. 8666AC_DEFUN([_AM_DEPENDENCIES], 8667[AC_REQUIRE([AM_SET_DEPDIR])dnl 8668AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 8669AC_REQUIRE([AM_MAKE_INCLUDE])dnl 8670AC_REQUIRE([AM_DEP_TRACK])dnl 8671 8672ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 8673 [$1], CXX, [depcc="$CXX" am_compiler_list=], 8674 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 8675 [$1], UPC, [depcc="$UPC" am_compiler_list=], 8676 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 8677 [depcc="$$1" am_compiler_list=]) 8678 8679AC_CACHE_CHECK([dependency style of $depcc], 8680 [am_cv_$1_dependencies_compiler_type], 8681[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 8682 # We make a subdir and do the tests there. Otherwise we can end up 8683 # making bogus files that we don't know about and never remove. For 8684 # instance it was reported that on HP-UX the gcc test will end up 8685 # making a dummy file named `D' -- because `-MD' means `put the output 8686 # in D'. 8687 mkdir conftest.dir 8688 # Copy depcomp to subdir because otherwise we won't find it if we're 8689 # using a relative directory. 8690 cp "$am_depcomp" conftest.dir 8691 cd conftest.dir 8692 # We will build objects and dependencies in a subdirectory because 8693 # it helps to detect inapplicable dependency modes. For instance 8694 # both Tru64's cc and ICC support -MD to output dependencies as a 8695 # side effect of compilation, but ICC will put the dependencies in 8696 # the current directory while Tru64 will put them in the object 8697 # directory. 8698 mkdir sub 8699 8700 am_cv_$1_dependencies_compiler_type=none 8701 if test "$am_compiler_list" = ""; then 8702 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 8703 fi 8704 for depmode in $am_compiler_list; do 8705 # Setup a source with many dependencies, because some compilers 8706 # like to wrap large dependency lists on column 80 (with \), and 8707 # we should not choose a depcomp mode which is confused by this. 8708 # 8709 # We need to recreate these files for each test, as the compiler may 8710 # overwrite some of them when testing with obscure command lines. 8711 # This happens at least with the AIX C compiler. 8712 : > sub/conftest.c 8713 for i in 1 2 3 4 5 6; do 8714 echo '#include "conftst'$i'.h"' >> sub/conftest.c 8715 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 8716 # Solaris 8's {/usr,}/bin/sh. 8717 touch sub/conftst$i.h 8718 done 8719 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 8720 8721 case $depmode in 8722 nosideeffect) 8723 # after this tag, mechanisms are not by side-effect, so they'll 8724 # only be used when explicitly requested 8725 if test "x$enable_dependency_tracking" = xyes; then 8726 continue 8727 else 8728 break 8729 fi 8730 ;; 8731 none) break ;; 8732 esac 8733 # We check with `-c' and `-o' for the sake of the "dashmstdout" 8734 # mode. It turns out that the SunPro C++ compiler does not properly 8735 # handle `-M -o', and we need to detect this. 8736 if depmode=$depmode \ 8737 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 8738 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 8739 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 8740 >/dev/null 2>conftest.err && 8741 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 8742 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 8743 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 8744 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 8745 # icc doesn't choke on unknown options, it will just issue warnings 8746 # or remarks (even with -Werror). So we grep stderr for any message 8747 # that says an option was ignored or not supported. 8748 # When given -MP, icc 7.0 and 7.1 complain thusly: 8749 # icc: Command line warning: ignoring option '-M'; no argument required 8750 # The diagnosis changed in icc 8.0: 8751 # icc: Command line remark: option '-MP' not supported 8752 if (grep 'ignoring option' conftest.err || 8753 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 8754 am_cv_$1_dependencies_compiler_type=$depmode 8755 break 8756 fi 8757 fi 8758 done 8759 8760 cd .. 8761 rm -rf conftest.dir 8762else 8763 am_cv_$1_dependencies_compiler_type=none 8764fi 8765]) 8766AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 8767AM_CONDITIONAL([am__fastdep$1], [ 8768 test "x$enable_dependency_tracking" != xno \ 8769 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 8770]) 8771 8772 8773# AM_SET_DEPDIR 8774# ------------- 8775# Choose a directory name for dependency files. 8776# This macro is AC_REQUIREd in _AM_DEPENDENCIES 8777AC_DEFUN([AM_SET_DEPDIR], 8778[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 8779AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 8780]) 8781 8782 8783# AM_DEP_TRACK 8784# ------------ 8785AC_DEFUN([AM_DEP_TRACK], 8786[AC_ARG_ENABLE(dependency-tracking, 8787[ --disable-dependency-tracking speeds up one-time build 8788 --enable-dependency-tracking do not reject slow dependency extractors]) 8789if test "x$enable_dependency_tracking" != xno; then 8790 am_depcomp="$ac_aux_dir/depcomp" 8791 AMDEPBACKSLASH='\' 8792fi 8793AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 8794AC_SUBST([AMDEPBACKSLASH])dnl 8795_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 8796]) 8797 8798# Generate code to set up dependency tracking. -*- Autoconf -*- 8799 8800# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 8801# Free Software Foundation, Inc. 8802# 8803# This file is free software; the Free Software Foundation 8804# gives unlimited permission to copy and/or distribute it, 8805# with or without modifications, as long as this notice is preserved. 8806 8807#serial 3 8808 8809# _AM_OUTPUT_DEPENDENCY_COMMANDS 8810# ------------------------------ 8811AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 8812[for mf in $CONFIG_FILES; do 8813 # Strip MF so we end up with the name of the file. 8814 mf=`echo "$mf" | sed -e 's/:.*$//'` 8815 # Check whether this is an Automake generated Makefile or not. 8816 # We used to match only the files named `Makefile.in', but 8817 # some people rename them; so instead we look at the file content. 8818 # Grep'ing the first line is not enough: some people post-process 8819 # each Makefile.in and add a new line on top of each file to say so. 8820 # Grep'ing the whole file is not good either: AIX grep has a line 8821 # limit of 2048, but all sed's we know have understand at least 4000. 8822 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 8823 dirpart=`AS_DIRNAME("$mf")` 8824 else 8825 continue 8826 fi 8827 # Extract the definition of DEPDIR, am__include, and am__quote 8828 # from the Makefile without running `make'. 8829 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 8830 test -z "$DEPDIR" && continue 8831 am__include=`sed -n 's/^am__include = //p' < "$mf"` 8832 test -z "am__include" && continue 8833 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 8834 # When using ansi2knr, U may be empty or an underscore; expand it 8835 U=`sed -n 's/^U = //p' < "$mf"` 8836 # Find all dependency output files, they are included files with 8837 # $(DEPDIR) in their names. We invoke sed twice because it is the 8838 # simplest approach to changing $(DEPDIR) to its actual value in the 8839 # expansion. 8840 for file in `sed -n " 8841 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 8842 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 8843 # Make sure the directory exists. 8844 test -f "$dirpart/$file" && continue 8845 fdir=`AS_DIRNAME(["$file"])` 8846 AS_MKDIR_P([$dirpart/$fdir]) 8847 # echo "creating $dirpart/$file" 8848 echo '# dummy' > "$dirpart/$file" 8849 done 8850done 8851])# _AM_OUTPUT_DEPENDENCY_COMMANDS 8852 8853 8854# AM_OUTPUT_DEPENDENCY_COMMANDS 8855# ----------------------------- 8856# This macro should only be invoked once -- use via AC_REQUIRE. 8857# 8858# This code is only required when automatic dependency tracking 8859# is enabled. FIXME. This creates each `.P' file that we will 8860# need in order to bootstrap the dependency handling code. 8861AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 8862[AC_CONFIG_COMMANDS([depfiles], 8863 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 8864 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 8865]) 8866 8867# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 8868# Free Software Foundation, Inc. 8869# 8870# This file is free software; the Free Software Foundation 8871# gives unlimited permission to copy and/or distribute it, 8872# with or without modifications, as long as this notice is preserved. 8873 8874# serial 8 8875 8876# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. 8877AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) 8878 8879# Do all the work for Automake. -*- Autoconf -*- 8880 8881# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 8882# 2005, 2006, 2008 Free Software Foundation, Inc. 8883# 8884# This file is free software; the Free Software Foundation 8885# gives unlimited permission to copy and/or distribute it, 8886# with or without modifications, as long as this notice is preserved. 8887 8888# serial 13 8889 8890# This macro actually does too much. Some checks are only needed if 8891# your package does certain things. But this isn't really a big deal. 8892 8893# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 8894# AM_INIT_AUTOMAKE([OPTIONS]) 8895# ----------------------------------------------- 8896# The call with PACKAGE and VERSION arguments is the old style 8897# call (pre autoconf-2.50), which is being phased out. PACKAGE 8898# and VERSION should now be passed to AC_INIT and removed from 8899# the call to AM_INIT_AUTOMAKE. 8900# We support both call styles for the transition. After 8901# the next Automake release, Autoconf can make the AC_INIT 8902# arguments mandatory, and then we can depend on a new Autoconf 8903# release and drop the old call support. 8904AC_DEFUN([AM_INIT_AUTOMAKE], 8905[AC_PREREQ([2.60])dnl 8906dnl Autoconf wants to disallow AM_ names. We explicitly allow 8907dnl the ones we care about. 8908m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 8909AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 8910AC_REQUIRE([AC_PROG_INSTALL])dnl 8911if test "`cd $srcdir && pwd`" != "`pwd`"; then 8912 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 8913 # is not polluted with repeated "-I." 8914 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 8915 # test to see if srcdir already configured 8916 if test -f $srcdir/config.status; then 8917 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 8918 fi 8919fi 8920 8921# test whether we have cygpath 8922if test -z "$CYGPATH_W"; then 8923 if (cygpath --version) >/dev/null 2>/dev/null; then 8924 CYGPATH_W='cygpath -w' 8925 else 8926 CYGPATH_W=echo 8927 fi 8928fi 8929AC_SUBST([CYGPATH_W]) 8930 8931# Define the identity of the package. 8932dnl Distinguish between old-style and new-style calls. 8933m4_ifval([$2], 8934[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 8935 AC_SUBST([PACKAGE], [$1])dnl 8936 AC_SUBST([VERSION], [$2])], 8937[_AM_SET_OPTIONS([$1])dnl 8938dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 8939m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 8940 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 8941 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 8942 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 8943 8944_AM_IF_OPTION([no-define],, 8945[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 8946 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 8947 8948# Some tools Automake needs. 8949AC_REQUIRE([AM_SANITY_CHECK])dnl 8950AC_REQUIRE([AC_ARG_PROGRAM])dnl 8951AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 8952AM_MISSING_PROG(AUTOCONF, autoconf) 8953AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 8954AM_MISSING_PROG(AUTOHEADER, autoheader) 8955AM_MISSING_PROG(MAKEINFO, makeinfo) 8956AM_PROG_INSTALL_SH 8957AM_PROG_INSTALL_STRIP 8958AC_REQUIRE([AM_PROG_MKDIR_P])dnl 8959# We need awk for the "check" target. The system "awk" is bad on 8960# some platforms. 8961AC_REQUIRE([AC_PROG_AWK])dnl 8962AC_REQUIRE([AC_PROG_MAKE_SET])dnl 8963AC_REQUIRE([AM_SET_LEADING_DOT])dnl 8964_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 8965 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 8966 [_AM_PROG_TAR([v7])])]) 8967_AM_IF_OPTION([no-dependencies],, 8968[AC_PROVIDE_IFELSE([AC_PROG_CC], 8969 [_AM_DEPENDENCIES(CC)], 8970 [define([AC_PROG_CC], 8971 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 8972AC_PROVIDE_IFELSE([AC_PROG_CXX], 8973 [_AM_DEPENDENCIES(CXX)], 8974 [define([AC_PROG_CXX], 8975 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 8976AC_PROVIDE_IFELSE([AC_PROG_OBJC], 8977 [_AM_DEPENDENCIES(OBJC)], 8978 [define([AC_PROG_OBJC], 8979 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 8980]) 8981]) 8982 8983 8984# When config.status generates a header, we must update the stamp-h file. 8985# This file resides in the same directory as the config header 8986# that is generated. The stamp files are numbered to have different names. 8987 8988# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 8989# loop where config.status creates the headers, so we can generate 8990# our stamp files there. 8991AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 8992[# Compute $1's index in $config_headers. 8993_am_arg=$1 8994_am_stamp_count=1 8995for _am_header in $config_headers :; do 8996 case $_am_header in 8997 $_am_arg | $_am_arg:* ) 8998 break ;; 8999 * ) 9000 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 9001 esac 9002done 9003echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 9004 9005# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 9006# 9007# This file is free software; the Free Software Foundation 9008# gives unlimited permission to copy and/or distribute it, 9009# with or without modifications, as long as this notice is preserved. 9010 9011# AM_PROG_INSTALL_SH 9012# ------------------ 9013# Define $install_sh. 9014AC_DEFUN([AM_PROG_INSTALL_SH], 9015[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 9016install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 9017AC_SUBST(install_sh)]) 9018 9019# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 9020# 9021# This file is free software; the Free Software Foundation 9022# gives unlimited permission to copy and/or distribute it, 9023# with or without modifications, as long as this notice is preserved. 9024 9025# serial 2 9026 9027# Check whether the underlying file-system supports filenames 9028# with a leading dot. For instance MS-DOS doesn't. 9029AC_DEFUN([AM_SET_LEADING_DOT], 9030[rm -rf .tst 2>/dev/null 9031mkdir .tst 2>/dev/null 9032if test -d .tst; then 9033 am__leading_dot=. 9034else 9035 am__leading_dot=_ 9036fi 9037rmdir .tst 2>/dev/null 9038AC_SUBST([am__leading_dot])]) 9039 9040# Check to see how 'make' treats includes. -*- Autoconf -*- 9041 9042# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 9043# 9044# This file is free software; the Free Software Foundation 9045# gives unlimited permission to copy and/or distribute it, 9046# with or without modifications, as long as this notice is preserved. 9047 9048# serial 3 9049 9050# AM_MAKE_INCLUDE() 9051# ----------------- 9052# Check to see how make treats includes. 9053AC_DEFUN([AM_MAKE_INCLUDE], 9054[am_make=${MAKE-make} 9055cat > confinc << 'END' 9056am__doit: 9057 @echo done 9058.PHONY: am__doit 9059END 9060# If we don't find an include directive, just comment out the code. 9061AC_MSG_CHECKING([for style of include used by $am_make]) 9062am__include="#" 9063am__quote= 9064_am_result=none 9065# First try GNU make style include. 9066echo "include confinc" > confmf 9067# We grep out `Entering directory' and `Leaving directory' 9068# messages which can occur if `w' ends up in MAKEFLAGS. 9069# In particular we don't look at `^make:' because GNU make might 9070# be invoked under some other name (usually "gmake"), in which 9071# case it prints its new name instead of `make'. 9072if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 9073 am__include=include 9074 am__quote= 9075 _am_result=GNU 9076fi 9077# Now try BSD make style include. 9078if test "$am__include" = "#"; then 9079 echo '.include "confinc"' > confmf 9080 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 9081 am__include=.include 9082 am__quote="\"" 9083 _am_result=BSD 9084 fi 9085fi 9086AC_SUBST([am__include]) 9087AC_SUBST([am__quote]) 9088AC_MSG_RESULT([$_am_result]) 9089rm -f confinc confmf 9090]) 9091 9092# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 9093 9094# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 9095# Free Software Foundation, Inc. 9096# 9097# This file is free software; the Free Software Foundation 9098# gives unlimited permission to copy and/or distribute it, 9099# with or without modifications, as long as this notice is preserved. 9100 9101# serial 5 9102 9103# AM_MISSING_PROG(NAME, PROGRAM) 9104# ------------------------------ 9105AC_DEFUN([AM_MISSING_PROG], 9106[AC_REQUIRE([AM_MISSING_HAS_RUN]) 9107$1=${$1-"${am_missing_run}$2"} 9108AC_SUBST($1)]) 9109 9110 9111# AM_MISSING_HAS_RUN 9112# ------------------ 9113# Define MISSING if not defined so far and test if it supports --run. 9114# If it does, set am_missing_run to use it, otherwise, to nothing. 9115AC_DEFUN([AM_MISSING_HAS_RUN], 9116[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 9117AC_REQUIRE_AUX_FILE([missing])dnl 9118test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 9119# Use eval to expand $SHELL 9120if eval "$MISSING --run true"; then 9121 am_missing_run="$MISSING --run " 9122else 9123 am_missing_run= 9124 AC_MSG_WARN([`missing' script is too old or missing]) 9125fi 9126]) 9127 9128# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9129# 9130# This file is free software; the Free Software Foundation 9131# gives unlimited permission to copy and/or distribute it, 9132# with or without modifications, as long as this notice is preserved. 9133 9134# AM_PROG_MKDIR_P 9135# --------------- 9136# Check for `mkdir -p'. 9137AC_DEFUN([AM_PROG_MKDIR_P], 9138[AC_PREREQ([2.60])dnl 9139AC_REQUIRE([AC_PROG_MKDIR_P])dnl 9140dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 9141dnl while keeping a definition of mkdir_p for backward compatibility. 9142dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 9143dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 9144dnl Makefile.ins that do not define MKDIR_P, so we do our own 9145dnl adjustment using top_builddir (which is defined more often than 9146dnl MKDIR_P). 9147AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 9148case $mkdir_p in 9149 [[\\/$]]* | ?:[[\\/]]*) ;; 9150 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 9151esac 9152]) 9153 9154# Helper functions for option handling. -*- Autoconf -*- 9155 9156# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 9157# 9158# This file is free software; the Free Software Foundation 9159# gives unlimited permission to copy and/or distribute it, 9160# with or without modifications, as long as this notice is preserved. 9161 9162# serial 3 9163 9164# _AM_MANGLE_OPTION(NAME) 9165# ----------------------- 9166AC_DEFUN([_AM_MANGLE_OPTION], 9167[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 9168 9169# _AM_SET_OPTION(NAME) 9170# ------------------------------ 9171# Set option NAME. Presently that only means defining a flag for this option. 9172AC_DEFUN([_AM_SET_OPTION], 9173[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 9174 9175# _AM_SET_OPTIONS(OPTIONS) 9176# ---------------------------------- 9177# OPTIONS is a space-separated list of Automake options. 9178AC_DEFUN([_AM_SET_OPTIONS], 9179[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 9180 9181# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 9182# ------------------------------------------- 9183# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 9184AC_DEFUN([_AM_IF_OPTION], 9185[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 9186 9187# Check to make sure that the build environment is sane. -*- Autoconf -*- 9188 9189# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 9190# Free Software Foundation, Inc. 9191# 9192# This file is free software; the Free Software Foundation 9193# gives unlimited permission to copy and/or distribute it, 9194# with or without modifications, as long as this notice is preserved. 9195 9196# serial 4 9197 9198# AM_SANITY_CHECK 9199# --------------- 9200AC_DEFUN([AM_SANITY_CHECK], 9201[AC_MSG_CHECKING([whether build environment is sane]) 9202# Just in case 9203sleep 1 9204echo timestamp > conftest.file 9205# Do `set' in a subshell so we don't clobber the current shell's 9206# arguments. Must try -L first in case configure is actually a 9207# symlink; some systems play weird games with the mod time of symlinks 9208# (eg FreeBSD returns the mod time of the symlink's containing 9209# directory). 9210if ( 9211 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 9212 if test "$[*]" = "X"; then 9213 # -L didn't work. 9214 set X `ls -t $srcdir/configure conftest.file` 9215 fi 9216 rm -f conftest.file 9217 if test "$[*]" != "X $srcdir/configure conftest.file" \ 9218 && test "$[*]" != "X conftest.file $srcdir/configure"; then 9219 9220 # If neither matched, then we have a broken ls. This can happen 9221 # if, for instance, CONFIG_SHELL is bash and it inherits a 9222 # broken ls alias from the environment. This has actually 9223 # happened. Such a system could not be considered "sane". 9224 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 9225alias in your environment]) 9226 fi 9227 9228 test "$[2]" = conftest.file 9229 ) 9230then 9231 # Ok. 9232 : 9233else 9234 AC_MSG_ERROR([newly created file is older than distributed files! 9235Check your system clock]) 9236fi 9237AC_MSG_RESULT(yes)]) 9238 9239# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 9240# 9241# This file is free software; the Free Software Foundation 9242# gives unlimited permission to copy and/or distribute it, 9243# with or without modifications, as long as this notice is preserved. 9244 9245# AM_PROG_INSTALL_STRIP 9246# --------------------- 9247# One issue with vendor `install' (even GNU) is that you can't 9248# specify the program used to strip binaries. This is especially 9249# annoying in cross-compiling environments, where the build's strip 9250# is unlikely to handle the host's binaries. 9251# Fortunately install-sh will honor a STRIPPROG variable, so we 9252# always use install-sh in `make install-strip', and initialize 9253# STRIPPROG with the value of the STRIP variable (set by the user). 9254AC_DEFUN([AM_PROG_INSTALL_STRIP], 9255[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 9256# Installed binaries are usually stripped using `strip' when the user 9257# run `make install-strip'. However `strip' might not be the right 9258# tool to use in cross-compilation environments, therefore Automake 9259# will honor the `STRIP' environment variable to overrule this program. 9260dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 9261if test "$cross_compiling" != no; then 9262 AC_CHECK_TOOL([STRIP], [strip], :) 9263fi 9264INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 9265AC_SUBST([INSTALL_STRIP_PROGRAM])]) 9266 9267# Copyright (C) 2006 Free Software Foundation, Inc. 9268# 9269# This file is free software; the Free Software Foundation 9270# gives unlimited permission to copy and/or distribute it, 9271# with or without modifications, as long as this notice is preserved. 9272 9273# _AM_SUBST_NOTMAKE(VARIABLE) 9274# --------------------------- 9275# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 9276# This macro is traced by Automake. 9277AC_DEFUN([_AM_SUBST_NOTMAKE]) 9278 9279# Check how to create a tarball. -*- Autoconf -*- 9280 9281# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 9282# 9283# This file is free software; the Free Software Foundation 9284# gives unlimited permission to copy and/or distribute it, 9285# with or without modifications, as long as this notice is preserved. 9286 9287# serial 2 9288 9289# _AM_PROG_TAR(FORMAT) 9290# -------------------- 9291# Check how to create a tarball in format FORMAT. 9292# FORMAT should be one of `v7', `ustar', or `pax'. 9293# 9294# Substitute a variable $(am__tar) that is a command 9295# writing to stdout a FORMAT-tarball containing the directory 9296# $tardir. 9297# tardir=directory && $(am__tar) > result.tar 9298# 9299# Substitute a variable $(am__untar) that extract such 9300# a tarball read from stdin. 9301# $(am__untar) < result.tar 9302AC_DEFUN([_AM_PROG_TAR], 9303[# Always define AMTAR for backward compatibility. 9304AM_MISSING_PROG([AMTAR], [tar]) 9305m4_if([$1], [v7], 9306 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 9307 [m4_case([$1], [ustar],, [pax],, 9308 [m4_fatal([Unknown tar format])]) 9309AC_MSG_CHECKING([how to create a $1 tar archive]) 9310# Loop over all known methods to create a tar archive until one works. 9311_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 9312_am_tools=${am_cv_prog_tar_$1-$_am_tools} 9313# Do not fold the above two line into one, because Tru64 sh and 9314# Solaris sh will not grok spaces in the rhs of `-'. 9315for _am_tool in $_am_tools 9316do 9317 case $_am_tool in 9318 gnutar) 9319 for _am_tar in tar gnutar gtar; 9320 do 9321 AM_RUN_LOG([$_am_tar --version]) && break 9322 done 9323 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 9324 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 9325 am__untar="$_am_tar -xf -" 9326 ;; 9327 plaintar) 9328 # Must skip GNU tar: if it does not support --format= it doesn't create 9329 # ustar tarball either. 9330 (tar --version) >/dev/null 2>&1 && continue 9331 am__tar='tar chf - "$$tardir"' 9332 am__tar_='tar chf - "$tardir"' 9333 am__untar='tar xf -' 9334 ;; 9335 pax) 9336 am__tar='pax -L -x $1 -w "$$tardir"' 9337 am__tar_='pax -L -x $1 -w "$tardir"' 9338 am__untar='pax -r' 9339 ;; 9340 cpio) 9341 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 9342 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 9343 am__untar='cpio -i -H $1 -d' 9344 ;; 9345 none) 9346 am__tar=false 9347 am__tar_=false 9348 am__untar=false 9349 ;; 9350 esac 9351 9352 # If the value was cached, stop now. We just wanted to have am__tar 9353 # and am__untar set. 9354 test -n "${am_cv_prog_tar_$1}" && break 9355 9356 # tar/untar a dummy directory, and stop if the command works 9357 rm -rf conftest.dir 9358 mkdir conftest.dir 9359 echo GrepMe > conftest.dir/file 9360 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 9361 rm -rf conftest.dir 9362 if test -s conftest.tar; then 9363 AM_RUN_LOG([$am__untar <conftest.tar]) 9364 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 9365 fi 9366done 9367rm -rf conftest.dir 9368 9369AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 9370AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 9371AC_SUBST([am__tar]) 9372AC_SUBST([am__untar]) 9373]) # _AM_PROG_TAR 9374 9375