annotate src/libmad-0.15.1b/aclocal.m4 @ 79:91c729825bca pa_catalina

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