| 1 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
 | 
|---|
| 2 | ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
 | 
|---|
| 3 | ## Free Software Foundation, Inc.
 | 
|---|
| 4 | ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 | 
|---|
| 5 | ##
 | 
|---|
| 6 | ## This file is free software; the Free Software Foundation gives
 | 
|---|
| 7 | ## unlimited permission to copy and/or distribute it, with or without
 | 
|---|
| 8 | ## modifications, as long as this notice is preserved.
 | 
|---|
| 9 | 
 | 
|---|
| 10 | # serial 48 AC_PROG_LIBTOOL
 | 
|---|
| 11 | 
 | 
|---|
| 12 | 
 | 
|---|
| 13 | # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
 | 
|---|
| 14 | # -----------------------------------------------------------
 | 
|---|
| 15 | # If this macro is not defined by Autoconf, define it here.
 | 
|---|
| 16 | m4_ifdef([AC_PROVIDE_IFELSE],
 | 
|---|
| 17 |          [],
 | 
|---|
| 18 |          [m4_define([AC_PROVIDE_IFELSE],
 | 
|---|
| 19 |                  [m4_ifdef([AC_PROVIDE_$1],
 | 
|---|
| 20 |                            [$2], [$3])])])
 | 
|---|
| 21 | 
 | 
|---|
| 22 | 
 | 
|---|
| 23 | # AC_PROG_LIBTOOL
 | 
|---|
| 24 | # ---------------
 | 
|---|
| 25 | AC_DEFUN([AC_PROG_LIBTOOL],
 | 
|---|
| 26 | [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
 | 
|---|
| 27 | dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
 | 
|---|
| 28 | dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
 | 
|---|
| 29 |   AC_PROVIDE_IFELSE([AC_PROG_CXX],
 | 
|---|
| 30 |     [AC_LIBTOOL_CXX],
 | 
|---|
| 31 |     [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
 | 
|---|
| 32 |   ])])
 | 
|---|
| 33 | dnl And a similar setup for Fortran 77 support
 | 
|---|
| 34 |   AC_PROVIDE_IFELSE([AC_PROG_F77],
 | 
|---|
| 35 |     [AC_LIBTOOL_F77],
 | 
|---|
| 36 |     [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
 | 
|---|
| 37 | ])])
 | 
|---|
| 38 | 
 | 
|---|
| 39 | dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
 | 
|---|
| 40 | dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
 | 
|---|
| 41 | dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
 | 
|---|
| 42 |   AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 | 
|---|
| 43 |     [AC_LIBTOOL_GCJ],
 | 
|---|
| 44 |     [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 | 
|---|
| 45 |       [AC_LIBTOOL_GCJ],
 | 
|---|
| 46 |       [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
 | 
|---|
| 47 |         [AC_LIBTOOL_GCJ],
 | 
|---|
| 48 |       [ifdef([AC_PROG_GCJ],
 | 
|---|
| 49 |              [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
 | 
|---|
| 50 |        ifdef([A][M_PROG_GCJ],
 | 
|---|
| 51 |              [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
 | 
|---|
| 52 |        ifdef([LT_AC_PROG_GCJ],
 | 
|---|
| 53 |              [define([LT_AC_PROG_GCJ],
 | 
|---|
| 54 |                 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
 | 
|---|
| 55 | ])])# AC_PROG_LIBTOOL
 | 
|---|
| 56 | 
 | 
|---|
| 57 | 
 | 
|---|
| 58 | # _AC_PROG_LIBTOOL
 | 
|---|
| 59 | # ----------------
 | 
|---|
| 60 | AC_DEFUN([_AC_PROG_LIBTOOL],
 | 
|---|
| 61 | [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
 | 
|---|
| 62 | AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
 | 
|---|
| 63 | AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
 | 
|---|
| 64 | AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
 | 
|---|
| 65 | 
 | 
|---|
| 66 | # This can be used to rebuild libtool when needed
 | 
|---|
| 67 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 | 
|---|
| 68 | 
 | 
|---|
| 69 | # Always use our own libtool.
 | 
|---|
| 70 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 | 
|---|
| 71 | AC_SUBST(LIBTOOL)dnl
 | 
|---|
| 72 | 
 | 
|---|
| 73 | # Prevent multiple expansion
 | 
|---|
| 74 | define([AC_PROG_LIBTOOL], [])
 | 
|---|
| 75 | ])# _AC_PROG_LIBTOOL
 | 
|---|
| 76 | 
 | 
|---|
| 77 | 
 | 
|---|
| 78 | # AC_LIBTOOL_SETUP
 | 
|---|
| 79 | # ----------------
 | 
|---|
| 80 | AC_DEFUN([AC_LIBTOOL_SETUP],
 | 
|---|
| 81 | [AC_PREREQ(2.50)dnl
 | 
|---|
| 82 | AC_REQUIRE([AC_ENABLE_SHARED])dnl
 | 
|---|
| 83 | AC_REQUIRE([AC_ENABLE_STATIC])dnl
 | 
|---|
| 84 | AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
 | 
|---|
| 85 | AC_REQUIRE([AC_CANONICAL_HOST])dnl
 | 
|---|
| 86 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 | 
|---|
| 87 | AC_REQUIRE([AC_PROG_CC])dnl
 | 
|---|
| 88 | AC_REQUIRE([AC_PROG_LD])dnl
 | 
|---|
| 89 | AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
 | 
|---|
| 90 | AC_REQUIRE([AC_PROG_NM])dnl
 | 
|---|
| 91 | 
 | 
|---|
| 92 | AC_REQUIRE([AC_PROG_LN_S])dnl
 | 
|---|
| 93 | AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
 | 
|---|
| 94 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 | 
|---|
| 95 | AC_REQUIRE([AC_OBJEXT])dnl
 | 
|---|
| 96 | AC_REQUIRE([AC_EXEEXT])dnl
 | 
|---|
| 97 | dnl
 | 
|---|
| 98 | 
 | 
|---|
| 99 | AC_LIBTOOL_SYS_MAX_CMD_LEN
 | 
|---|
| 100 | AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 | 
|---|
| 101 | AC_LIBTOOL_OBJDIR
 | 
|---|
| 102 | 
 | 
|---|
| 103 | AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 | 
|---|
| 104 | _LT_AC_PROG_ECHO_BACKSLASH
 | 
|---|
| 105 | 
 | 
|---|
| 106 | case $host_os in
 | 
|---|
| 107 | aix3*)
 | 
|---|
| 108 |   # AIX sometimes has problems with the GCC collect2 program.  For some
 | 
|---|
| 109 |   # reason, if we set the COLLECT_NAMES environment variable, the problems
 | 
|---|
| 110 |   # vanish in a puff of smoke.
 | 
|---|
| 111 |   if test "X${COLLECT_NAMES+set}" != Xset; then
 | 
|---|
| 112 |     COLLECT_NAMES=
 | 
|---|
| 113 |     export COLLECT_NAMES
 | 
|---|
| 114 |   fi
 | 
|---|
| 115 |   ;;
 | 
|---|
| 116 | esac
 | 
|---|
| 117 | 
 | 
|---|
| 118 | # Sed substitution that helps us do robust quoting.  It backslashifies
 | 
|---|
| 119 | # metacharacters that are still active within double-quoted strings.
 | 
|---|
| 120 | Xsed='sed -e 1s/^X//'
 | 
|---|
| 121 | [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
 | 
|---|
| 122 | 
 | 
|---|
| 123 | # Same as above, but do not quote variable references.
 | 
|---|
| 124 | [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 | 
|---|
| 125 | 
 | 
|---|
| 126 | # Sed substitution to delay expansion of an escaped shell variable in a
 | 
|---|
| 127 | # double_quote_subst'ed string.
 | 
|---|
| 128 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 | 
|---|
| 129 | 
 | 
|---|
| 130 | # Sed substitution to avoid accidental globbing in evaled expressions
 | 
|---|
| 131 | no_glob_subst='s/\*/\\\*/g'
 | 
|---|
| 132 | 
 | 
|---|
| 133 | # Constants:
 | 
|---|
| 134 | rm="rm -f"
 | 
|---|
| 135 | 
 | 
|---|
| 136 | # Global variables:
 | 
|---|
| 137 | default_ofile=libtool
 | 
|---|
| 138 | can_build_shared=yes
 | 
|---|
| 139 | 
 | 
|---|
| 140 | # All known linkers require a `.a' archive for static linking (except MSVC,
 | 
|---|
| 141 | # which needs '.lib').
 | 
|---|
| 142 | libext=a
 | 
|---|
| 143 | ltmain="$ac_aux_dir/ltmain.sh"
 | 
|---|
| 144 | ofile="$default_ofile"
 | 
|---|
| 145 | with_gnu_ld="$lt_cv_prog_gnu_ld"
 | 
|---|
| 146 | 
 | 
|---|
| 147 | AC_CHECK_TOOL(AR, ar, false)
 | 
|---|
| 148 | AC_CHECK_TOOL(RANLIB, ranlib, :)
 | 
|---|
| 149 | AC_CHECK_TOOL(STRIP, strip, :)
 | 
|---|
| 150 | 
 | 
|---|
| 151 | old_CC="$CC"
 | 
|---|
| 152 | old_CFLAGS="$CFLAGS"
 | 
|---|
| 153 | 
 | 
|---|
| 154 | # Set sane defaults for various variables
 | 
|---|
| 155 | test -z "$AR" && AR=ar
 | 
|---|
| 156 | test -z "$AR_FLAGS" && AR_FLAGS=cru
 | 
|---|
| 157 | test -z "$AS" && AS=as
 | 
|---|
| 158 | test -z "$CC" && CC=cc
 | 
|---|
| 159 | test -z "$LTCC" && LTCC=$CC
 | 
|---|
| 160 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 | 
|---|
| 161 | test -z "$DLLTOOL" && DLLTOOL=dlltool
 | 
|---|
| 162 | test -z "$LD" && LD=ld
 | 
|---|
| 163 | test -z "$LN_S" && LN_S="ln -s"
 | 
|---|
| 164 | test -z "$MAGIC_CMD" && MAGIC_CMD=file
 | 
|---|
| 165 | test -z "$NM" && NM=nm
 | 
|---|
| 166 | test -z "$SED" && SED=sed
 | 
|---|
| 167 | test -z "$OBJDUMP" && OBJDUMP=objdump
 | 
|---|
| 168 | test -z "$RANLIB" && RANLIB=:
 | 
|---|
| 169 | test -z "$STRIP" && STRIP=:
 | 
|---|
| 170 | test -z "$ac_objext" && ac_objext=o
 | 
|---|
| 171 | 
 | 
|---|
| 172 | # Determine commands to create old-style static archives.
 | 
|---|
| 173 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 | 
|---|
| 174 | old_postinstall_cmds='chmod 644 $oldlib'
 | 
|---|
| 175 | old_postuninstall_cmds=
 | 
|---|
| 176 | 
 | 
|---|
| 177 | if test -n "$RANLIB"; then
 | 
|---|
| 178 |   case $host_os in
 | 
|---|
| 179 |   openbsd*)
 | 
|---|
| 180 |     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 | 
|---|
| 181 |     ;;
 | 
|---|
| 182 |   *)
 | 
|---|
| 183 |     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 | 
|---|
| 184 |     ;;
 | 
|---|
| 185 |   esac
 | 
|---|
| 186 |   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 | 
|---|
| 187 | fi
 | 
|---|
| 188 | 
 | 
|---|
| 189 | _LT_CC_BASENAME([$compiler])
 | 
|---|
| 190 | 
 | 
|---|
| 191 | # Only perform the check for file, if the check method requires it
 | 
|---|
| 192 | case $deplibs_check_method in
 | 
|---|
| 193 | file_magic*)
 | 
|---|
| 194 |   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 | 
|---|
| 195 |     AC_PATH_MAGIC
 | 
|---|
| 196 |   fi
 | 
|---|
| 197 |   ;;
 | 
|---|
| 198 | esac
 | 
|---|
| 199 | 
 | 
|---|
| 200 | AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
 | 
|---|
| 201 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 | 
|---|
| 202 | enable_win32_dll=yes, enable_win32_dll=no)
 | 
|---|
| 203 | 
 | 
|---|
| 204 | AC_ARG_ENABLE([libtool-lock],
 | 
|---|
| 205 |     [AC_HELP_STRING([--disable-libtool-lock],
 | 
|---|
| 206 |         [avoid locking (might break parallel builds)])])
 | 
|---|
| 207 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 | 
|---|
| 208 | 
 | 
|---|
| 209 | AC_ARG_WITH([pic],
 | 
|---|
| 210 |     [AC_HELP_STRING([--with-pic],
 | 
|---|
| 211 |         [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 | 
|---|
| 212 |     [pic_mode="$withval"],
 | 
|---|
| 213 |     [pic_mode=default])
 | 
|---|
| 214 | test -z "$pic_mode" && pic_mode=default
 | 
|---|
| 215 | 
 | 
|---|
| 216 | # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
 | 
|---|
| 217 | #
 | 
|---|
| 218 | # Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
 | 
|---|
| 219 | #        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
 | 
|---|
| 220 | #        calls AC_LIBTOOL_CONFIG and creates libtool.
 | 
|---|
| 221 | #
 | 
|---|
| 222 | _LT_VERSION_CHECK
 | 
|---|
| 223 | 
 | 
|---|
| 224 | # Use C for the default configuration in the libtool script
 | 
|---|
| 225 | tagname=
 | 
|---|
| 226 | AC_LIBTOOL_LANG_C_CONFIG
 | 
|---|
| 227 | _LT_AC_TAGCONFIG
 | 
|---|
| 228 | ])# AC_LIBTOOL_SETUP
 | 
|---|
| 229 | 
 | 
|---|
| 230 | 
 | 
|---|
| 231 | # _LT_VERSION_CHECK
 | 
|---|
| 232 | # -----------------
 | 
|---|
| 233 | AC_DEFUN([_LT_VERSION_CHECK],
 | 
|---|
| 234 | [AC_MSG_CHECKING([for correct ltmain.sh version])
 | 
|---|
| 235 | if test "x$ltmain" = "x" ; then
 | 
|---|
| 236 |   AC_MSG_RESULT(no)
 | 
|---|
| 237 |   AC_MSG_ERROR([
 | 
|---|
| 238 | 
 | 
|---|
| 239 | *** @<:@Gentoo@:>@ sanity check failed! ***
 | 
|---|
| 240 | *** \$ltmain is not defined, please check the patch for consistency! ***
 | 
|---|
| 241 | ])
 | 
|---|
| 242 | fi
 | 
|---|
| 243 | gentoo_lt_version="1.5.22"
 | 
|---|
| 244 | gentoo_ltmain_version=`sed -n '/^[[     ]]*VERSION=/{s/^[[      ]]*VERSION=//;p;q;}' "$ltmain"`
 | 
|---|
| 245 | if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
 | 
|---|
| 246 |   AC_MSG_RESULT(no)
 | 
|---|
| 247 |   AC_MSG_ERROR([
 | 
|---|
| 248 | 
 | 
|---|
| 249 | *** @<:@Gentoo@:>@ sanity check failed! ***
 | 
|---|
| 250 | *** libtool.m4 and ltmain.sh have a version mismatch! ***
 | 
|---|
| 251 | *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
 | 
|---|
| 252 | 
 | 
|---|
| 253 | Please run:
 | 
|---|
| 254 | 
 | 
|---|
| 255 |   libtoolize --copy --force
 | 
|---|
| 256 | 
 | 
|---|
| 257 | if appropriate, please contact the maintainer of this
 | 
|---|
| 258 | package (or your distribution) for help.
 | 
|---|
| 259 | ])
 | 
|---|
| 260 | else
 | 
|---|
| 261 |   AC_MSG_RESULT(yes)
 | 
|---|
| 262 | fi
 | 
|---|
| 263 | ])# _LT_VERSION_CHECK
 | 
|---|
| 264 | 
 | 
|---|
| 265 | 
 | 
|---|
| 266 | # _LT_AC_SYS_COMPILER
 | 
|---|
| 267 | # -------------------
 | 
|---|
| 268 | AC_DEFUN([_LT_AC_SYS_COMPILER],
 | 
|---|
| 269 | [AC_REQUIRE([AC_PROG_CC])dnl
 | 
|---|
| 270 | 
 | 
|---|
| 271 | # If no C compiler was specified, use CC.
 | 
|---|
| 272 | LTCC=${LTCC-"$CC"}
 | 
|---|
| 273 | 
 | 
|---|
| 274 | # If no C compiler flags were specified, use CFLAGS.
 | 
|---|
| 275 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 | 
|---|
| 276 | 
 | 
|---|
| 277 | # Allow CC to be a program name with arguments.
 | 
|---|
| 278 | compiler=$CC
 | 
|---|
| 279 | ])# _LT_AC_SYS_COMPILER
 | 
|---|
| 280 | 
 | 
|---|
| 281 | 
 | 
|---|
| 282 | # _LT_CC_BASENAME(CC)
 | 
|---|
| 283 | # -------------------
 | 
|---|
| 284 | # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 | 
|---|
| 285 | AC_DEFUN([_LT_CC_BASENAME],
 | 
|---|
| 286 | [for cc_temp in $1""; do
 | 
|---|
| 287 |   case $cc_temp in
 | 
|---|
| 288 |     compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 | 
|---|
| 289 |     distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 | 
|---|
| 290 |     \-*) ;;
 | 
|---|
| 291 |     *) break;;
 | 
|---|
| 292 |   esac
 | 
|---|
| 293 | done
 | 
|---|
| 294 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 | 
|---|
| 295 | ])
 | 
|---|
| 296 | 
 | 
|---|
| 297 | 
 | 
|---|
| 298 | # _LT_COMPILER_BOILERPLATE
 | 
|---|
| 299 | # ------------------------
 | 
|---|
| 300 | # Check for compiler boilerplate output or warnings with
 | 
|---|
| 301 | # the simple compiler test code.
 | 
|---|
| 302 | AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 | 
|---|
| 303 | [ac_outfile=conftest.$ac_objext
 | 
|---|
| 304 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 | 
|---|
| 305 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 | 
|---|
| 306 | _lt_compiler_boilerplate=`cat conftest.err`
 | 
|---|
| 307 | $rm conftest*
 | 
|---|
| 308 | ])# _LT_COMPILER_BOILERPLATE
 | 
|---|
| 309 | 
 | 
|---|
| 310 | 
 | 
|---|
| 311 | # _LT_LINKER_BOILERPLATE
 | 
|---|
| 312 | # ----------------------
 | 
|---|
| 313 | # Check for linker boilerplate output or warnings with
 | 
|---|
| 314 | # the simple link test code.
 | 
|---|
| 315 | AC_DEFUN([_LT_LINKER_BOILERPLATE],
 | 
|---|
| 316 | [ac_outfile=conftest.$ac_objext
 | 
|---|
| 317 | printf "$lt_simple_link_test_code" >conftest.$ac_ext
 | 
|---|
| 318 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 | 
|---|
| 319 | _lt_linker_boilerplate=`cat conftest.err`
 | 
|---|
| 320 | $rm conftest*
 | 
|---|
| 321 | ])# _LT_LINKER_BOILERPLATE
 | 
|---|
| 322 | 
 | 
|---|
| 323 | 
 | 
|---|
| 324 | # _LT_AC_SYS_LIBPATH_AIX
 | 
|---|
| 325 | # ----------------------
 | 
|---|
| 326 | # Links a minimal program and checks the executable
 | 
|---|
| 327 | # for the system default hardcoded library path. In most cases,
 | 
|---|
| 328 | # this is /usr/lib:/lib, but when the MPI compilers are used
 | 
|---|
| 329 | # the location of the communication and MPI libs are included too.
 | 
|---|
| 330 | # If we don't find anything, use the default library path according
 | 
|---|
| 331 | # to the aix ld manual.
 | 
|---|
| 332 | AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
 | 
|---|
| 333 | [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 | 
|---|
| 334 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 | 
|---|
| 335 | }'`
 | 
|---|
| 336 | # Check for a 64-bit object if we didn't find anything.
 | 
|---|
| 337 | 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; }
 | 
|---|
| 338 | }'`; fi],[])
 | 
|---|
| 339 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 | 
|---|
| 340 | ])# _LT_AC_SYS_LIBPATH_AIX
 | 
|---|
| 341 | 
 | 
|---|
| 342 | 
 | 
|---|
| 343 | # _LT_AC_SHELL_INIT(ARG)
 | 
|---|
| 344 | # ----------------------
 | 
|---|
| 345 | AC_DEFUN([_LT_AC_SHELL_INIT],
 | 
|---|
| 346 | [ifdef([AC_DIVERSION_NOTICE],
 | 
|---|
| 347 |              [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
 | 
|---|
| 348 |          [AC_DIVERT_PUSH(NOTICE)])
 | 
|---|
| 349 | $1
 | 
|---|
| 350 | AC_DIVERT_POP
 | 
|---|
| 351 | ])# _LT_AC_SHELL_INIT
 | 
|---|
| 352 | 
 | 
|---|
| 353 | 
 | 
|---|
| 354 | # _LT_AC_PROG_ECHO_BACKSLASH
 | 
|---|
| 355 | # --------------------------
 | 
|---|
| 356 | # Add some code to the start of the generated configure script which
 | 
|---|
| 357 | # will find an echo command which doesn't interpret backslashes.
 | 
|---|
| 358 | AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
 | 
|---|
| 359 | [_LT_AC_SHELL_INIT([
 | 
|---|
| 360 | # Check that we are running under the correct shell.
 | 
|---|
| 361 | SHELL=${CONFIG_SHELL-/bin/sh}
 | 
|---|
| 362 | 
 | 
|---|
| 363 | case X$ECHO in
 | 
|---|
| 364 | X*--fallback-echo)
 | 
|---|
| 365 |   # Remove one level of quotation (which was required for Make).
 | 
|---|
| 366 |   ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 | 
|---|
| 367 |   ;;
 | 
|---|
| 368 | esac
 | 
|---|
| 369 | 
 | 
|---|
| 370 | echo=${ECHO-echo}
 | 
|---|
| 371 | if test "X[$]1" = X--no-reexec; then
 | 
|---|
| 372 |   # Discard the --no-reexec flag, and continue.
 | 
|---|
| 373 |   shift
 | 
|---|
| 374 | elif test "X[$]1" = X--fallback-echo; then
 | 
|---|
| 375 |   # Avoid inline document here, it may be left over
 | 
|---|
| 376 |   :
 | 
|---|
| 377 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 | 
|---|
| 378 |   # Yippee, $echo works!
 | 
|---|
| 379 |   :
 | 
|---|
| 380 | else
 | 
|---|
| 381 |   # Restart under the correct shell.
 | 
|---|
| 382 |   exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
 | 
|---|
| 383 | fi
 | 
|---|
| 384 | 
 | 
|---|
| 385 | if test "X[$]1" = X--fallback-echo; then
 | 
|---|
| 386 |   # used as fallback echo
 | 
|---|
| 387 |   shift
 | 
|---|
| 388 |   cat <<EOF
 | 
|---|
| 389 | [$]*
 | 
|---|
| 390 | EOF
 | 
|---|
| 391 |   exit 0
 | 
|---|
| 392 | fi
 | 
|---|
| 393 | 
 | 
|---|
| 394 | # The HP-UX ksh and POSIX shell print the target directory to stdout
 | 
|---|
| 395 | # if CDPATH is set.
 | 
|---|
| 396 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 | 
|---|
| 397 | 
 | 
|---|
| 398 | if test -z "$ECHO"; then
 | 
|---|
| 399 | if test "X${echo_test_string+set}" != Xset; then
 | 
|---|
| 400 | # find a string as large as possible, as long as the shell can cope with it
 | 
|---|
| 401 |   for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 | 
|---|
| 402 |     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 | 
|---|
| 403 |     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 | 
|---|
| 404 |        echo_test_string=`eval $cmd` &&
 | 
|---|
| 405 |        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 | 
|---|
| 406 |     then
 | 
|---|
| 407 |       break
 | 
|---|
| 408 |     fi
 | 
|---|
| 409 |   done
 | 
|---|
| 410 | fi
 | 
|---|
| 411 | 
 | 
|---|
| 412 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 | 
|---|
| 413 |    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 | 
|---|
| 414 |    test "X$echo_testing_string" = "X$echo_test_string"; then
 | 
|---|
| 415 |   :
 | 
|---|
| 416 | else
 | 
|---|
| 417 |   # The Solaris, AIX, and Digital Unix default echo programs unquote
 | 
|---|
| 418 |   # backslashes.  This makes it impossible to quote backslashes using
 | 
|---|
| 419 |   #   echo "$something" | sed 's/\\/\\\\/g'
 | 
|---|
| 420 |   #
 | 
|---|
| 421 |   # So, first we look for a working echo in the user's PATH.
 | 
|---|
| 422 | 
 | 
|---|
| 423 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 | 
|---|
| 424 |   for dir in $PATH /usr/ucb; do
 | 
|---|
| 425 |     IFS="$lt_save_ifs"
 | 
|---|
| 426 |     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 | 
|---|
| 427 |        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 | 
|---|
| 428 |        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 | 
|---|
| 429 |        test "X$echo_testing_string" = "X$echo_test_string"; then
 | 
|---|
| 430 |       echo="$dir/echo"
 | 
|---|
| 431 |       break
 | 
|---|
| 432 |     fi
 | 
|---|
| 433 |   done
 | 
|---|
| 434 |   IFS="$lt_save_ifs"
 | 
|---|
| 435 | 
 | 
|---|
| 436 |   if test "X$echo" = Xecho; then
 | 
|---|
| 437 |     # We didn't find a better echo, so look for alternatives.
 | 
|---|
| 438 |     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 | 
|---|
| 439 |        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 | 
|---|
| 440 |        test "X$echo_testing_string" = "X$echo_test_string"; then
 | 
|---|
| 441 |       # This shell has a builtin print -r that does the trick.
 | 
|---|
| 442 |       echo='print -r'
 | 
|---|
| 443 |     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 | 
|---|
| 444 |          test "X$CONFIG_SHELL" != X/bin/ksh; then
 | 
|---|
| 445 |       # If we have ksh, try running configure again with it.
 | 
|---|
| 446 |       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 | 
|---|
| 447 |       export ORIGINAL_CONFIG_SHELL
 | 
|---|
| 448 |       CONFIG_SHELL=/bin/ksh
 | 
|---|
| 449 |       export CONFIG_SHELL
 | 
|---|
| 450 |       exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
 | 
|---|
| 451 |     else
 | 
|---|
| 452 |       # Try using printf.
 | 
|---|
| 453 |       echo='printf %s\n'
 | 
|---|
| 454 |       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 | 
|---|
| 455 |          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 | 
|---|
| 456 |          test "X$echo_testing_string" = "X$echo_test_string"; then
 | 
|---|
| 457 |         # Cool, printf works
 | 
|---|
| 458 |         :
 | 
|---|
| 459 |       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 | 
|---|
| 460 |            test "X$echo_testing_string" = 'X\t' &&
 | 
|---|
| 461 |            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 | 
|---|
| 462 |            test "X$echo_testing_string" = "X$echo_test_string"; then
 | 
|---|
| 463 |         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 | 
|---|
| 464 |         export CONFIG_SHELL
 | 
|---|
| 465 |         SHELL="$CONFIG_SHELL"
 | 
|---|
| 466 |         export SHELL
 | 
|---|
| 467 |         echo="$CONFIG_SHELL [$]0 --fallback-echo"
 | 
|---|
| 468 |       elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 | 
|---|
| 469 |            test "X$echo_testing_string" = 'X\t' &&
 | 
|---|
| 470 |            echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 | 
|---|
| 471 |            test "X$echo_testing_string" = "X$echo_test_string"; then
 | 
|---|
| 472 |         echo="$CONFIG_SHELL [$]0 --fallback-echo"
 | 
|---|
| 473 |       else
 | 
|---|
| 474 |         # maybe with a smaller string...
 | 
|---|
| 475 |         prev=:
 | 
|---|
| 476 | 
 | 
|---|
| 477 |         for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 | 
|---|
| 478 |           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 | 
|---|
| 479 |           then
 | 
|---|
| 480 |             break
 | 
|---|
| 481 |           fi
 | 
|---|
| 482 |           prev="$cmd"
 | 
|---|
| 483 |         done
 | 
|---|
| 484 | 
 | 
|---|
| 485 |         if test "$prev" != 'sed 50q "[$]0"'; then
 | 
|---|
| 486 |           echo_test_string=`eval $prev`
 | 
|---|
| 487 |           export echo_test_string
 | 
|---|
| 488 |           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 | 
|---|
| 489 |         else
 | 
|---|
| 490 |           # Oops.  We lost completely, so just stick with echo.
 | 
|---|
| 491 |           echo=echo
 | 
|---|
| 492 |         fi
 | 
|---|
| 493 |       fi
 | 
|---|
| 494 |     fi
 | 
|---|
| 495 |   fi
 | 
|---|
| 496 | fi
 | 
|---|
| 497 | fi
 | 
|---|
| 498 | 
 | 
|---|
| 499 | # Copy echo and quote the copy suitably for passing to libtool from
 | 
|---|
| 500 | # the Makefile, instead of quoting the original, which is used later.
 | 
|---|
| 501 | ECHO=$echo
 | 
|---|
| 502 | if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 | 
|---|
| 503 |    ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 | 
|---|
| 504 | fi
 | 
|---|
| 505 | 
 | 
|---|
| 506 | AC_SUBST(ECHO)
 | 
|---|
| 507 | ])])# _LT_AC_PROG_ECHO_BACKSLASH
 | 
|---|
| 508 | 
 | 
|---|
| 509 | 
 | 
|---|
| 510 | # _LT_AC_LOCK
 | 
|---|
| 511 | # -----------
 | 
|---|
| 512 | AC_DEFUN([_LT_AC_LOCK],
 | 
|---|
| 513 | [AC_ARG_ENABLE([libtool-lock],
 | 
|---|
| 514 |     [AC_HELP_STRING([--disable-libtool-lock],
 | 
|---|
| 515 |         [avoid locking (might break parallel builds)])])
 | 
|---|
| 516 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 | 
|---|
| 517 | 
 | 
|---|
| 518 | # Some flags need to be propagated to the compiler or linker for good
 | 
|---|
| 519 | # libtool support.
 | 
|---|
| 520 | case $host in
 | 
|---|
| 521 | ia64-*-hpux*)
 | 
|---|
| 522 |   # Find out which ABI we are using.
 | 
|---|
| 523 |   echo 'int i;' > conftest.$ac_ext
 | 
|---|
| 524 |   if AC_TRY_EVAL(ac_compile); then
 | 
|---|
| 525 |     case `/usr/bin/file conftest.$ac_objext` in
 | 
|---|
| 526 |     *ELF-32*)
 | 
|---|
| 527 |       HPUX_IA64_MODE="32"
 | 
|---|
| 528 |       ;;
 | 
|---|
| 529 |     *ELF-64*)
 | 
|---|
| 530 |       HPUX_IA64_MODE="64"
 | 
|---|
| 531 |       ;;
 | 
|---|
| 532 |     esac
 | 
|---|
| 533 |   fi
 | 
|---|
| 534 |   rm -rf conftest*
 | 
|---|
| 535 |   ;;
 | 
|---|
| 536 | *-*-irix6*)
 | 
|---|
| 537 |   # Find out which ABI we are using.
 | 
|---|
| 538 |   echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 | 
|---|
| 539 |   if AC_TRY_EVAL(ac_compile); then
 | 
|---|
| 540 |    if test "$lt_cv_prog_gnu_ld" = yes; then
 | 
|---|
| 541 |     case `/usr/bin/file conftest.$ac_objext` in
 | 
|---|
| 542 |     *32-bit*)
 | 
|---|
| 543 |       LD="${LD-ld} -melf32bsmip"
 | 
|---|
| 544 |       ;;
 | 
|---|
| 545 |     *N32*)
 | 
|---|
| 546 |       LD="${LD-ld} -melf32bmipn32"
 | 
|---|
| 547 |       ;;
 | 
|---|
| 548 |     *64-bit*)
 | 
|---|
| 549 |       LD="${LD-ld} -melf64bmip"
 | 
|---|
| 550 |       ;;
 | 
|---|
| 551 |     esac
 | 
|---|
| 552 |    else
 | 
|---|
| 553 |     case `/usr/bin/file conftest.$ac_objext` in
 | 
|---|
| 554 |     *32-bit*)
 | 
|---|
| 555 |       LD="${LD-ld} -32"
 | 
|---|
| 556 |       ;;
 | 
|---|
| 557 |     *N32*)
 | 
|---|
| 558 |       LD="${LD-ld} -n32"
 | 
|---|
| 559 |       ;;
 | 
|---|
| 560 |     *64-bit*)
 | 
|---|
| 561 |       LD="${LD-ld} -64"
 | 
|---|
| 562 |       ;;
 | 
|---|
| 563 |     esac
 | 
|---|
| 564 |    fi
 | 
|---|
| 565 |   fi
 | 
|---|
| 566 |   rm -rf conftest*
 | 
|---|
| 567 |   ;;
 | 
|---|
| 568 | 
 | 
|---|
| 569 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 | 
|---|
| 570 |   # Find out which ABI we are using.
 | 
|---|
| 571 |   echo 'int i;' > conftest.$ac_ext
 | 
|---|
| 572 |   if AC_TRY_EVAL(ac_compile); then
 | 
|---|
| 573 |     case `/usr/bin/file conftest.o` in
 | 
|---|
| 574 |     *32-bit*)
 | 
|---|
| 575 |       case $host in
 | 
|---|
| 576 |         x86_64-*linux*)
 | 
|---|
| 577 |           LD="${LD-ld} -m elf_i386"
 | 
|---|
| 578 |           ;;
 | 
|---|
| 579 |         ppc64-*linux*|powerpc64-*linux*)
 | 
|---|
| 580 |           LD="${LD-ld} -m elf32ppclinux"
 | 
|---|
| 581 |           ;;
 | 
|---|
| 582 |         s390x-*linux*)
 | 
|---|
| 583 |           LD="${LD-ld} -m elf_s390"
 | 
|---|
| 584 |           ;;
 | 
|---|
| 585 |         sparc64-*linux*)
 | 
|---|
| 586 |           LD="${LD-ld} -m elf32_sparc"
 | 
|---|
| 587 |           ;;
 | 
|---|
| 588 |       esac
 | 
|---|
| 589 |       ;;
 | 
|---|
| 590 |     *64-bit*)
 | 
|---|
| 591 |       case $host in
 | 
|---|
| 592 |         x86_64-*linux*)
 | 
|---|
| 593 |           LD="${LD-ld} -m elf_x86_64"
 | 
|---|
| 594 |           ;;
 | 
|---|
| 595 |         ppc*-*linux*|powerpc*-*linux*)
 | 
|---|
| 596 |           LD="${LD-ld} -m elf64ppc"
 | 
|---|
| 597 |           ;;
 | 
|---|
| 598 |         s390*-*linux*)
 | 
|---|
| 599 |           LD="${LD-ld} -m elf64_s390"
 | 
|---|
| 600 |           ;;
 | 
|---|
| 601 |         sparc*-*linux*)
 | 
|---|
| 602 |           LD="${LD-ld} -m elf64_sparc"
 | 
|---|
| 603 |           ;;
 | 
|---|
| 604 |       esac
 | 
|---|
| 605 |       ;;
 | 
|---|
| 606 |     esac
 | 
|---|
| 607 |   fi
 | 
|---|
| 608 |   rm -rf conftest*
 | 
|---|
| 609 |   ;;
 | 
|---|
| 610 | 
 | 
|---|
| 611 | *-*-sco3.2v5*)
 | 
|---|
| 612 |   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 | 
|---|
| 613 |   SAVE_CFLAGS="$CFLAGS"
 | 
|---|
| 614 |   CFLAGS="$CFLAGS -belf"
 | 
|---|
| 615 |   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
 | 
|---|
| 616 |     [AC_LANG_PUSH(C)
 | 
|---|
| 617 |      AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 | 
|---|
| 618 |      AC_LANG_POP])
 | 
|---|
| 619 |   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 | 
|---|
| 620 |     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 | 
|---|
| 621 |     CFLAGS="$SAVE_CFLAGS"
 | 
|---|
| 622 |   fi
 | 
|---|
| 623 |   ;;
 | 
|---|
| 624 | sparc*-*solaris*)
 | 
|---|
| 625 |   # Find out which ABI we are using.
 | 
|---|
| 626 |   echo 'int i;' > conftest.$ac_ext
 | 
|---|
| 627 |   if AC_TRY_EVAL(ac_compile); then
 | 
|---|
| 628 |     case `/usr/bin/file conftest.o` in
 | 
|---|
| 629 |     *64-bit*)
 | 
|---|
| 630 |       case $lt_cv_prog_gnu_ld in
 | 
|---|
| 631 |       yes*) LD="${LD-ld} -m elf64_sparc" ;;
 | 
|---|
| 632 |       *)    LD="${LD-ld} -64" ;;
 | 
|---|
| 633 |       esac
 | 
|---|
| 634 |       ;;
 | 
|---|
| 635 |     esac
 | 
|---|
| 636 |   fi
 | 
|---|
| 637 |   rm -rf conftest*
 | 
|---|
| 638 |   ;;
 | 
|---|
| 639 | 
 | 
|---|
| 640 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 | 
|---|
| 641 | [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 | 
|---|
| 642 |   AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 | 
|---|
| 643 |   AC_CHECK_TOOL(AS, as, false)
 | 
|---|
| 644 |   AC_CHECK_TOOL(OBJDUMP, objdump, false)
 | 
|---|
| 645 |   ;;
 | 
|---|
| 646 |   ])
 | 
|---|
| 647 | esac
 | 
|---|
| 648 | 
 | 
|---|
| 649 | need_locks="$enable_libtool_lock"
 | 
|---|
| 650 | 
 | 
|---|
| 651 | ])# _LT_AC_LOCK
 | 
|---|
| 652 | 
 | 
|---|
| 653 | 
 | 
|---|
| 654 | # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 | 
|---|
| 655 | #               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
 | 
|---|
| 656 | # ----------------------------------------------------------------
 | 
|---|
| 657 | # Check whether the given compiler option works
 | 
|---|
| 658 | AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
 | 
|---|
| 659 | [AC_REQUIRE([LT_AC_PROG_SED])
 | 
|---|
| 660 | AC_CACHE_CHECK([$1], [$2],
 | 
|---|
| 661 |   [$2=no
 | 
|---|
| 662 |   ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 | 
|---|
| 663 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 | 
|---|
| 664 |    lt_compiler_flag="$3"
 | 
|---|
| 665 |    # Insert the option either (1) after the last *FLAGS variable, or
 | 
|---|
| 666 |    # (2) before a word containing "conftest.", or (3) at the end.
 | 
|---|
| 667 |    # Note that $ac_compile itself does not contain backslashes and begins
 | 
|---|
| 668 |    # with a dollar sign (not a hyphen), so the echo should work correctly.
 | 
|---|
| 669 |    # The option is referenced via a variable to avoid confusing sed.
 | 
|---|
| 670 |    lt_compile=`echo "$ac_compile" | $SED \
 | 
|---|
| 671 |    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 | 
|---|
| 672 |    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 | 
|---|
| 673 |    -e 's:$: $lt_compiler_flag:'`
 | 
|---|
| 674 |    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 | 
|---|
| 675 |    (eval "$lt_compile" 2>conftest.err)
 | 
|---|
| 676 |    ac_status=$?
 | 
|---|
| 677 |    cat conftest.err >&AS_MESSAGE_LOG_FD
 | 
|---|
| 678 |    echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 | 
|---|
| 679 |    if (exit $ac_status) && test -s "$ac_outfile"; then
 | 
|---|
| 680 |      # The compiler can only warn and ignore the option if not recognized
 | 
|---|
| 681 |      # So say no if there are warnings other than the usual output.
 | 
|---|
| 682 |      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 | 
|---|
| 683 |      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 | 
|---|
| 684 |      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 | 
|---|
| 685 |        $2=yes
 | 
|---|
| 686 |      fi
 | 
|---|
| 687 |    fi
 | 
|---|
| 688 |    $rm conftest*
 | 
|---|
| 689 | ])
 | 
|---|
| 690 | 
 | 
|---|
| 691 | if test x"[$]$2" = xyes; then
 | 
|---|
| 692 |     ifelse([$5], , :, [$5])
 | 
|---|
| 693 | else
 | 
|---|
| 694 |     ifelse([$6], , :, [$6])
 | 
|---|
| 695 | fi
 | 
|---|
| 696 | ])# AC_LIBTOOL_COMPILER_OPTION
 | 
|---|
| 697 | 
 | 
|---|
| 698 | 
 | 
|---|
| 699 | # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 | 
|---|
| 700 | #                          [ACTION-SUCCESS], [ACTION-FAILURE])
 | 
|---|
| 701 | # ------------------------------------------------------------
 | 
|---|
| 702 | # Check whether the given compiler option works
 | 
|---|
| 703 | AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
 | 
|---|
| 704 | [AC_CACHE_CHECK([$1], [$2],
 | 
|---|
| 705 |   [$2=no
 | 
|---|
| 706 |    save_LDFLAGS="$LDFLAGS"
 | 
|---|
| 707 |    LDFLAGS="$LDFLAGS $3"
 | 
|---|
| 708 |    printf "$lt_simple_link_test_code" > conftest.$ac_ext
 | 
|---|
| 709 |    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 | 
|---|
| 710 |      # The linker can only warn and ignore the option if not recognized
 | 
|---|
| 711 |      # So say no if there are warnings
 | 
|---|
| 712 |      if test -s conftest.err; then
 | 
|---|
| 713 |        # Append any errors to the config.log.
 | 
|---|
| 714 |        cat conftest.err 1>&AS_MESSAGE_LOG_FD
 | 
|---|
| 715 |        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 | 
|---|
| 716 |        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 | 
|---|
| 717 |        if diff conftest.exp conftest.er2 >/dev/null; then
 | 
|---|
| 718 |          $2=yes
 | 
|---|
| 719 |        fi
 | 
|---|
| 720 |      else
 | 
|---|
| 721 |        $2=yes
 | 
|---|
| 722 |      fi
 | 
|---|
| 723 |    fi
 | 
|---|
| 724 |    $rm conftest*
 | 
|---|
| 725 |    LDFLAGS="$save_LDFLAGS"
 | 
|---|
| 726 | ])
 | 
|---|
| 727 | 
 | 
|---|
| 728 | if test x"[$]$2" = xyes; then
 | 
|---|
| 729 |     ifelse([$4], , :, [$4])
 | 
|---|
| 730 | else
 | 
|---|
| 731 |     ifelse([$5], , :, [$5])
 | 
|---|
| 732 | fi
 | 
|---|
| 733 | ])# AC_LIBTOOL_LINKER_OPTION
 | 
|---|
| 734 | 
 | 
|---|
| 735 | 
 | 
|---|
| 736 | # AC_LIBTOOL_SYS_MAX_CMD_LEN
 | 
|---|
| 737 | # --------------------------
 | 
|---|
| 738 | AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
 | 
|---|
| 739 | [# find the maximum length of command line arguments
 | 
|---|
| 740 | AC_MSG_CHECKING([the maximum length of command line arguments])
 | 
|---|
| 741 | AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
 | 
|---|
| 742 |   i=0
 | 
|---|
| 743 |   teststring="ABCD"
 | 
|---|
| 744 | 
 | 
|---|
| 745 |   case $build_os in
 | 
|---|
| 746 |   msdosdjgpp*)
 | 
|---|
| 747 |     # On DJGPP, this test can blow up pretty badly due to problems in libc
 | 
|---|
| 748 |     # (any single argument exceeding 2000 bytes causes a buffer overrun
 | 
|---|
| 749 |     # during glob expansion).  Even if it were fixed, the result of this
 | 
|---|
| 750 |     # check would be larger than it should be.
 | 
|---|
| 751 |     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 | 
|---|
| 752 |     ;;
 | 
|---|
| 753 | 
 | 
|---|
| 754 |   gnu*)
 | 
|---|
| 755 |     # Under GNU Hurd, this test is not required because there is
 | 
|---|
| 756 |     # no limit to the length of command line arguments.
 | 
|---|
| 757 |     # Libtool will interpret -1 as no limit whatsoever
 | 
|---|
| 758 |     lt_cv_sys_max_cmd_len=-1;
 | 
|---|
| 759 |     ;;
 | 
|---|
| 760 | 
 | 
|---|
| 761 |   cygwin* | mingw*)
 | 
|---|
| 762 |     # On Win9x/ME, this test blows up -- it succeeds, but takes
 | 
|---|
| 763 |     # about 5 minutes as the teststring grows exponentially.
 | 
|---|
| 764 |     # Worse, since 9x/ME are not pre-emptively multitasking,
 | 
|---|
| 765 |     # you end up with a "frozen" computer, even though with patience
 | 
|---|
| 766 |     # the test eventually succeeds (with a max line length of 256k).
 | 
|---|
| 767 |     # Instead, let's just punt: use the minimum linelength reported by
 | 
|---|
| 768 |     # all of the supported platforms: 8192 (on NT/2K/XP).
 | 
|---|
| 769 |     lt_cv_sys_max_cmd_len=8192;
 | 
|---|
| 770 |     ;;
 | 
|---|
| 771 | 
 | 
|---|
| 772 |   amigaos*)
 | 
|---|
| 773 |     # On AmigaOS with pdksh, this test takes hours, literally.
 | 
|---|
| 774 |     # So we just punt and use a minimum line length of 8192.
 | 
|---|
| 775 |     lt_cv_sys_max_cmd_len=8192;
 | 
|---|
| 776 |     ;;
 | 
|---|
| 777 | 
 | 
|---|
| 778 |   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 | 
|---|
| 779 |     # This has been around since 386BSD, at least.  Likely further.
 | 
|---|
| 780 |     if test -x /sbin/sysctl; then
 | 
|---|
| 781 |       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 | 
|---|
| 782 |     elif test -x /usr/sbin/sysctl; then
 | 
|---|
| 783 |       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 | 
|---|
| 784 |     else
 | 
|---|
| 785 |       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 | 
|---|
| 786 |     fi
 | 
|---|
| 787 |     # And add a safety zone
 | 
|---|
| 788 |     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 | 
|---|
| 789 |     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 | 
|---|
| 790 |     ;;
 | 
|---|
| 791 | 
 | 
|---|
| 792 |   interix*)
 | 
|---|
| 793 |     # We know the value 262144 and hardcode it with a safety zone (like BSD)
 | 
|---|
| 794 |     lt_cv_sys_max_cmd_len=196608
 | 
|---|
| 795 |     ;;
 | 
|---|
| 796 | 
 | 
|---|
| 797 |   osf*)
 | 
|---|
| 798 |     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 | 
|---|
| 799 |     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 | 
|---|
| 800 |     # nice to cause kernel panics so lets avoid the loop below.
 | 
|---|
| 801 |     # First set a reasonable default.
 | 
|---|
| 802 |     lt_cv_sys_max_cmd_len=16384
 | 
|---|
| 803 |     #
 | 
|---|
| 804 |     if test -x /sbin/sysconfig; then
 | 
|---|
| 805 |       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 | 
|---|
| 806 |         *1*) lt_cv_sys_max_cmd_len=-1 ;;
 | 
|---|
| 807 |       esac
 | 
|---|
| 808 |     fi
 | 
|---|
| 809 |     ;;
 | 
|---|
| 810 |   sco3.2v5*)
 | 
|---|
| 811 |     lt_cv_sys_max_cmd_len=102400
 | 
|---|
| 812 |     ;;
 | 
|---|
| 813 |   sysv5* | sco5v6* | sysv4.2uw2*)
 | 
|---|
| 814 |     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 | 
|---|
| 815 |     if test -n "$kargmax"; then
 | 
|---|
| 816 |       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 | 
|---|
| 817 |     else
 | 
|---|
| 818 |       lt_cv_sys_max_cmd_len=32768
 | 
|---|
| 819 |     fi
 | 
|---|
| 820 |     ;;
 | 
|---|
| 821 |   *)
 | 
|---|
| 822 |     # If test is not a shell built-in, we'll probably end up computing a
 | 
|---|
| 823 |     # maximum length that is only half of the actual maximum length, but
 | 
|---|
| 824 |     # we can't tell.
 | 
|---|
| 825 |     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 | 
|---|
| 826 |     while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 | 
|---|
| 827 |                = "XX$teststring") >/dev/null 2>&1 &&
 | 
|---|
| 828 |             new_result=`expr "X$teststring" : ".*" 2>&1` &&
 | 
|---|
| 829 |             lt_cv_sys_max_cmd_len=$new_result &&
 | 
|---|
| 830 |             test $i != 17 # 1/2 MB should be enough
 | 
|---|
| 831 |     do
 | 
|---|
| 832 |       i=`expr $i + 1`
 | 
|---|
| 833 |       teststring=$teststring$teststring
 | 
|---|
| 834 |     done
 | 
|---|
| 835 |     teststring=
 | 
|---|
| 836 |     # Add a significant safety factor because C++ compilers can tack on massive
 | 
|---|
| 837 |     # amounts of additional arguments before passing them to the linker.
 | 
|---|
| 838 |     # It appears as though 1/2 is a usable value.
 | 
|---|
| 839 |     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 | 
|---|
| 840 |     ;;
 | 
|---|
| 841 |   esac
 | 
|---|
| 842 | ])
 | 
|---|
| 843 | if test -n $lt_cv_sys_max_cmd_len ; then
 | 
|---|
| 844 |   AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
 | 
|---|
| 845 | else
 | 
|---|
| 846 |   AC_MSG_RESULT(none)
 | 
|---|
| 847 | fi
 | 
|---|
| 848 | ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
 | 
|---|
| 849 | 
 | 
|---|
| 850 | 
 | 
|---|
| 851 | # _LT_AC_CHECK_DLFCN
 | 
|---|
| 852 | # ------------------
 | 
|---|
| 853 | AC_DEFUN([_LT_AC_CHECK_DLFCN],
 | 
|---|
| 854 | [AC_CHECK_HEADERS(dlfcn.h)dnl
 | 
|---|
| 855 | ])# _LT_AC_CHECK_DLFCN
 | 
|---|
| 856 | 
 | 
|---|
| 857 | 
 | 
|---|
| 858 | # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 | 
|---|
| 859 | #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 | 
|---|
| 860 | # ---------------------------------------------------------------------
 | 
|---|
| 861 | AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
 | 
|---|
| 862 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 | 
|---|
| 863 | if test "$cross_compiling" = yes; then :
 | 
|---|
| 864 |   [$4]
 | 
|---|
| 865 | else
 | 
|---|
| 866 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 | 
|---|
| 867 |   lt_status=$lt_dlunknown
 | 
|---|
| 868 |   cat > conftest.$ac_ext <<EOF
 | 
|---|
| 869 | [#line __oline__ "configure"
 | 
|---|
| 870 | #include "confdefs.h"
 | 
|---|
| 871 | 
 | 
|---|
| 872 | #if HAVE_DLFCN_H
 | 
|---|
| 873 | #include <dlfcn.h>
 | 
|---|
| 874 | #endif
 | 
|---|
| 875 | 
 | 
|---|
| 876 | #include <stdio.h>
 | 
|---|
| 877 | 
 | 
|---|
| 878 | #ifdef RTLD_GLOBAL
 | 
|---|
| 879 | #  define LT_DLGLOBAL           RTLD_GLOBAL
 | 
|---|
| 880 | #else
 | 
|---|
| 881 | #  ifdef DL_GLOBAL
 | 
|---|
| 882 | #    define LT_DLGLOBAL         DL_GLOBAL
 | 
|---|
| 883 | #  else
 | 
|---|
| 884 | #    define LT_DLGLOBAL         0
 | 
|---|
| 885 | #  endif
 | 
|---|
| 886 | #endif
 | 
|---|
| 887 | 
 | 
|---|
| 888 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 | 
|---|
| 889 |    find out it does not work in some platform. */
 | 
|---|
| 890 | #ifndef LT_DLLAZY_OR_NOW
 | 
|---|
| 891 | #  ifdef RTLD_LAZY
 | 
|---|
| 892 | #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 | 
|---|
| 893 | #  else
 | 
|---|
| 894 | #    ifdef DL_LAZY
 | 
|---|
| 895 | #      define LT_DLLAZY_OR_NOW          DL_LAZY
 | 
|---|
| 896 | #    else
 | 
|---|
| 897 | #      ifdef RTLD_NOW
 | 
|---|
| 898 | #        define LT_DLLAZY_OR_NOW        RTLD_NOW
 | 
|---|
| 899 | #      else
 | 
|---|
| 900 | #        ifdef DL_NOW
 | 
|---|
| 901 | #          define LT_DLLAZY_OR_NOW      DL_NOW
 | 
|---|
| 902 | #        else
 | 
|---|
| 903 | #          define LT_DLLAZY_OR_NOW      0
 | 
|---|
| 904 | #        endif
 | 
|---|
| 905 | #      endif
 | 
|---|
| 906 | #    endif
 | 
|---|
| 907 | #  endif
 | 
|---|
| 908 | #endif
 | 
|---|
| 909 | 
 | 
|---|
| 910 | #ifdef __cplusplus
 | 
|---|
| 911 | extern "C" void exit (int);
 | 
|---|
| 912 | #endif
 | 
|---|
| 913 | 
 | 
|---|
| 914 | void fnord() { int i=42;}
 | 
|---|
| 915 | int main ()
 | 
|---|
| 916 | {
 | 
|---|
| 917 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 | 
|---|
| 918 |   int status = $lt_dlunknown;
 | 
|---|
| 919 | 
 | 
|---|
| 920 |   if (self)
 | 
|---|
| 921 |     {
 | 
|---|
| 922 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 | 
|---|
| 923 |       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 | 
|---|
| 924 |       /* dlclose (self); */
 | 
|---|
| 925 |     }
 | 
|---|
| 926 |   else
 | 
|---|
| 927 |     puts (dlerror ());
 | 
|---|
| 928 | 
 | 
|---|
| 929 |     exit (status);
 | 
|---|
| 930 | }]
 | 
|---|
| 931 | EOF
 | 
|---|
| 932 |   if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
 | 
|---|
| 933 |     (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
 | 
|---|
| 934 |     lt_status=$?
 | 
|---|
| 935 |     case x$lt_status in
 | 
|---|
| 936 |       x$lt_dlno_uscore) $1 ;;
 | 
|---|
| 937 |       x$lt_dlneed_uscore) $2 ;;
 | 
|---|
| 938 |       x$lt_dlunknown|x*) $3 ;;
 | 
|---|
| 939 |     esac
 | 
|---|
| 940 |   else :
 | 
|---|
| 941 |     # compilation failed
 | 
|---|
| 942 |     $3
 | 
|---|
| 943 |   fi
 | 
|---|
| 944 | fi
 | 
|---|
| 945 | rm -fr conftest*
 | 
|---|
| 946 | ])# _LT_AC_TRY_DLOPEN_SELF
 | 
|---|
| 947 | 
 | 
|---|
| 948 | 
 | 
|---|
| 949 | # AC_LIBTOOL_DLOPEN_SELF
 | 
|---|
| 950 | # ----------------------
 | 
|---|
| 951 | AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
 | 
|---|
| 952 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 | 
|---|
| 953 | if test "x$enable_dlopen" != xyes; then
 | 
|---|
| 954 |   enable_dlopen=unknown
 | 
|---|
| 955 |   enable_dlopen_self=unknown
 | 
|---|
| 956 |   enable_dlopen_self_static=unknown
 | 
|---|
| 957 | else
 | 
|---|
| 958 |   lt_cv_dlopen=no
 | 
|---|
| 959 |   lt_cv_dlopen_libs=
 | 
|---|
| 960 | 
 | 
|---|
| 961 |   case $host_os in
 | 
|---|
| 962 |   beos*)
 | 
|---|
| 963 |     lt_cv_dlopen="load_add_on"
 | 
|---|
| 964 |     lt_cv_dlopen_libs=
 | 
|---|
| 965 |     lt_cv_dlopen_self=yes
 | 
|---|
| 966 |     ;;
 | 
|---|
| 967 | 
 | 
|---|
| 968 |   mingw* | pw32*)
 | 
|---|
| 969 |     lt_cv_dlopen="LoadLibrary"
 | 
|---|
| 970 |     lt_cv_dlopen_libs=
 | 
|---|
| 971 |    ;;
 | 
|---|
| 972 | 
 | 
|---|
| 973 |   cygwin*)
 | 
|---|
| 974 |     lt_cv_dlopen="dlopen"
 | 
|---|
| 975 |     lt_cv_dlopen_libs=
 | 
|---|
| 976 |    ;;
 | 
|---|
| 977 | 
 | 
|---|
| 978 |   darwin*)
 | 
|---|
| 979 |   # if libdl is installed we need to link against it
 | 
|---|
| 980 |     AC_CHECK_LIB([dl], [dlopen],
 | 
|---|
| 981 |                 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
 | 
|---|
| 982 |     lt_cv_dlopen="dyld"
 | 
|---|
| 983 |     lt_cv_dlopen_libs=
 | 
|---|
| 984 |     lt_cv_dlopen_self=yes
 | 
|---|
| 985 |     ])
 | 
|---|
| 986 |    ;;
 | 
|---|
| 987 | 
 | 
|---|
| 988 |   *)
 | 
|---|
| 989 |     AC_CHECK_FUNC([shl_load],
 | 
|---|
| 990 |           [lt_cv_dlopen="shl_load"],
 | 
|---|
| 991 |       [AC_CHECK_LIB([dld], [shl_load],
 | 
|---|
| 992 |             [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 | 
|---|
| 993 |         [AC_CHECK_FUNC([dlopen],
 | 
|---|
| 994 |               [lt_cv_dlopen="dlopen"],
 | 
|---|
| 995 |           [AC_CHECK_LIB([dl], [dlopen],
 | 
|---|
| 996 |                 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
 | 
|---|
| 997 |             [AC_CHECK_LIB([svld], [dlopen],
 | 
|---|
| 998 |                   [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
 | 
|---|
| 999 |               [AC_CHECK_LIB([dld], [dld_link],
 | 
|---|
| 1000 |                     [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 | 
|---|
| 1001 |               ])
 | 
|---|
| 1002 |             ])
 | 
|---|
| 1003 |           ])
 | 
|---|
| 1004 |         ])
 | 
|---|
| 1005 |       ])
 | 
|---|
| 1006 |     ;;
 | 
|---|
| 1007 |   esac
 | 
|---|
| 1008 | 
 | 
|---|
| 1009 |   if test "x$lt_cv_dlopen" != xno; then
 | 
|---|
| 1010 |     enable_dlopen=yes
 | 
|---|
| 1011 |   else
 | 
|---|
| 1012 |     enable_dlopen=no
 | 
|---|
| 1013 |   fi
 | 
|---|
| 1014 | 
 | 
|---|
| 1015 |   case $lt_cv_dlopen in
 | 
|---|
| 1016 |   dlopen)
 | 
|---|
| 1017 |     save_CPPFLAGS="$CPPFLAGS"
 | 
|---|
| 1018 |     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 | 
|---|
| 1019 | 
 | 
|---|
| 1020 |     save_LDFLAGS="$LDFLAGS"
 | 
|---|
| 1021 |     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 | 
|---|
| 1022 | 
 | 
|---|
| 1023 |     save_LIBS="$LIBS"
 | 
|---|
| 1024 |     LIBS="$lt_cv_dlopen_libs $LIBS"
 | 
|---|
| 1025 | 
 | 
|---|
| 1026 |     AC_CACHE_CHECK([whether a program can dlopen itself],
 | 
|---|
| 1027 |           lt_cv_dlopen_self, [dnl
 | 
|---|
| 1028 |           _LT_AC_TRY_DLOPEN_SELF(
 | 
|---|
| 1029 |             lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
 | 
|---|
| 1030 |             lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
 | 
|---|
| 1031 |     ])
 | 
|---|
| 1032 | 
 | 
|---|
| 1033 |     if test "x$lt_cv_dlopen_self" = xyes; then
 | 
|---|
| 1034 |       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 | 
|---|
| 1035 |       AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
 | 
|---|
| 1036 |           lt_cv_dlopen_self_static, [dnl
 | 
|---|
| 1037 |           _LT_AC_TRY_DLOPEN_SELF(
 | 
|---|
| 1038 |             lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
 | 
|---|
| 1039 |             lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
 | 
|---|
| 1040 |       ])
 | 
|---|
| 1041 |     fi
 | 
|---|
| 1042 | 
 | 
|---|
| 1043 |     CPPFLAGS="$save_CPPFLAGS"
 | 
|---|
| 1044 |     LDFLAGS="$save_LDFLAGS"
 | 
|---|
| 1045 |     LIBS="$save_LIBS"
 | 
|---|
| 1046 |     ;;
 | 
|---|
| 1047 |   esac
 | 
|---|
| 1048 | 
 | 
|---|
| 1049 |   case $lt_cv_dlopen_self in
 | 
|---|
| 1050 |   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 | 
|---|
| 1051 |   *) enable_dlopen_self=unknown ;;
 | 
|---|
| 1052 |   esac
 | 
|---|
| 1053 | 
 | 
|---|
| 1054 |   case $lt_cv_dlopen_self_static in
 | 
|---|
| 1055 |   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 | 
|---|
| 1056 |   *) enable_dlopen_self_static=unknown ;;
 | 
|---|
| 1057 |   esac
 | 
|---|
| 1058 | fi
 | 
|---|
| 1059 | ])# AC_LIBTOOL_DLOPEN_SELF
 | 
|---|
| 1060 | 
 | 
|---|
| 1061 | 
 | 
|---|
| 1062 | # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
 | 
|---|
| 1063 | # ---------------------------------
 | 
|---|
| 1064 | # Check to see if options -c and -o are simultaneously supported by compiler
 | 
|---|
| 1065 | AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
 | 
|---|
| 1066 | [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 | 
|---|
| 1067 | AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
 | 
|---|
| 1068 |   [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 | 
|---|
| 1069 |   [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 | 
|---|
| 1070 |    $rm -r conftest 2>/dev/null
 | 
|---|
| 1071 |    mkdir conftest
 | 
|---|
| 1072 |    cd conftest
 | 
|---|
| 1073 |    mkdir out
 | 
|---|
| 1074 |    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 | 
|---|
| 1075 | 
 | 
|---|
| 1076 |    lt_compiler_flag="-o out/conftest2.$ac_objext"
 | 
|---|
| 1077 |    # Insert the option either (1) after the last *FLAGS variable, or
 | 
|---|
| 1078 |    # (2) before a word containing "conftest.", or (3) at the end.
 | 
|---|
| 1079 |    # Note that $ac_compile itself does not contain backslashes and begins
 | 
|---|
| 1080 |    # with a dollar sign (not a hyphen), so the echo should work correctly.
 | 
|---|
| 1081 |    lt_compile=`echo "$ac_compile" | $SED \
 | 
|---|
| 1082 |    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 | 
|---|
| 1083 |    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 | 
|---|
| 1084 |    -e 's:$: $lt_compiler_flag:'`
 | 
|---|
| 1085 |    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 | 
|---|
| 1086 |    (eval "$lt_compile" 2>out/conftest.err)
 | 
|---|
| 1087 |    ac_status=$?
 | 
|---|
| 1088 |    cat out/conftest.err >&AS_MESSAGE_LOG_FD
 | 
|---|
| 1089 |    echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 | 
|---|
| 1090 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 | 
|---|
| 1091 |    then
 | 
|---|
| 1092 |      # The compiler can only warn and ignore the option if not recognized
 | 
|---|
| 1093 |      # So say no if there are warnings
 | 
|---|
| 1094 |      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 | 
|---|
| 1095 |      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 | 
|---|
| 1096 |      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 | 
|---|
| 1097 |        _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 | 
|---|
| 1098 |      fi
 | 
|---|
| 1099 |    fi
 | 
|---|
| 1100 |    chmod u+w . 2>&AS_MESSAGE_LOG_FD
 | 
|---|
| 1101 |    $rm conftest*
 | 
|---|
| 1102 |    # SGI C++ compiler will create directory out/ii_files/ for
 | 
|---|
| 1103 |    # template instantiation
 | 
|---|
| 1104 |    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 | 
|---|
| 1105 |    $rm out/* && rmdir out
 | 
|---|
| 1106 |    cd ..
 | 
|---|
| 1107 |    rmdir conftest
 | 
|---|
| 1108 |    $rm conftest*
 | 
|---|
| 1109 | ])
 | 
|---|
| 1110 | ])# AC_LIBTOOL_PROG_CC_C_O
 | 
|---|
| 1111 | 
 | 
|---|
| 1112 | 
 | 
|---|
| 1113 | # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
 | 
|---|
| 1114 | # -----------------------------------------
 | 
|---|
| 1115 | # Check to see if we can do hard links to lock some files if needed
 | 
|---|
| 1116 | AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
 | 
|---|
| 1117 | [AC_REQUIRE([_LT_AC_LOCK])dnl
 | 
|---|
| 1118 | 
 | 
|---|
| 1119 | hard_links="nottested"
 | 
|---|
| 1120 | if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 | 
|---|
| 1121 |   # do not overwrite the value of need_locks provided by the user
 | 
|---|
| 1122 |   AC_MSG_CHECKING([if we can lock with hard links])
 | 
|---|
| 1123 |   hard_links=yes
 | 
|---|
| 1124 |   $rm conftest*
 | 
|---|
| 1125 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no
 | 
|---|
| 1126 |   touch conftest.a
 | 
|---|
| 1127 |   ln conftest.a conftest.b 2>&5 || hard_links=no
 | 
|---|
| 1128 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no
 | 
|---|
| 1129 |   AC_MSG_RESULT([$hard_links])
 | 
|---|
| 1130 |   if test "$hard_links" = no; then
 | 
|---|
| 1131 |     AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
 | 
|---|
| 1132 |     need_locks=warn
 | 
|---|
| 1133 |   fi
 | 
|---|
| 1134 | else
 | 
|---|
| 1135 |   need_locks=no
 | 
|---|
| 1136 | fi
 | 
|---|
| 1137 | ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
 | 
|---|
| 1138 | 
 | 
|---|
| 1139 | 
 | 
|---|
| 1140 | # AC_LIBTOOL_OBJDIR
 | 
|---|
| 1141 | # -----------------
 | 
|---|
| 1142 | AC_DEFUN([AC_LIBTOOL_OBJDIR],
 | 
|---|
| 1143 | [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
 | 
|---|
| 1144 | [rm -f .libs 2>/dev/null
 | 
|---|
| 1145 | mkdir .libs 2>/dev/null
 | 
|---|
| 1146 | if test -d .libs; then
 | 
|---|
| 1147 |   lt_cv_objdir=.libs
 | 
|---|
| 1148 | else
 | 
|---|
| 1149 |   # MS-DOS does not allow filenames that begin with a dot.
 | 
|---|
| 1150 |   lt_cv_objdir=_libs
 | 
|---|
| 1151 | fi
 | 
|---|
| 1152 | rmdir .libs 2>/dev/null])
 | 
|---|
| 1153 | objdir=$lt_cv_objdir
 | 
|---|
| 1154 | ])# AC_LIBTOOL_OBJDIR
 | 
|---|
| 1155 | 
 | 
|---|
| 1156 | 
 | 
|---|
| 1157 | # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
 | 
|---|
| 1158 | # ----------------------------------------------
 | 
|---|
| 1159 | # Check hardcoding attributes.
 | 
|---|
| 1160 | AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
 | 
|---|
| 1161 | [AC_MSG_CHECKING([how to hardcode library paths into programs])
 | 
|---|
| 1162 | _LT_AC_TAGVAR(hardcode_action, $1)=
 | 
|---|
| 1163 | if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
 | 
|---|
| 1164 |    test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
 | 
|---|
| 1165 |    test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 | 
|---|
| 1166 | 
 | 
|---|
| 1167 |   # We can hardcode non-existant directories.
 | 
|---|
| 1168 |   if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
 | 
|---|
| 1169 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we
 | 
|---|
| 1170 |      # have to relink, otherwise we might link with an installed library
 | 
|---|
| 1171 |      # when we should be linking with a yet-to-be-installed one
 | 
|---|
| 1172 |      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 | 
|---|
| 1173 |      test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
 | 
|---|
| 1174 |     # Linking always hardcodes the temporary library directory.
 | 
|---|
| 1175 |     _LT_AC_TAGVAR(hardcode_action, $1)=relink
 | 
|---|
| 1176 |   else
 | 
|---|
| 1177 |     # We can link without hardcoding, and we can hardcode nonexisting dirs.
 | 
|---|
| 1178 |     _LT_AC_TAGVAR(hardcode_action, $1)=immediate
 | 
|---|
| 1179 |   fi
 | 
|---|
| 1180 | else
 | 
|---|
| 1181 |   # We cannot hardcode anything, or else we can only hardcode existing
 | 
|---|
| 1182 |   # directories.
 | 
|---|
| 1183 |   _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
 | 
|---|
| 1184 | fi
 | 
|---|
| 1185 | AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 | 
|---|
| 1186 | 
 | 
|---|
| 1187 | if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
 | 
|---|
| 1188 |   # Fast installation is not supported
 | 
|---|
| 1189 |   enable_fast_install=no
 | 
|---|
| 1190 | elif test "$shlibpath_overrides_runpath" = yes ||
 | 
|---|
| 1191 |      test "$enable_shared" = no; then
 | 
|---|
| 1192 |   # Fast installation is not necessary
 | 
|---|
| 1193 |   enable_fast_install=needless
 | 
|---|
| 1194 | fi
 | 
|---|
| 1195 | ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
 | 
|---|
| 1196 | 
 | 
|---|
| 1197 | 
 | 
|---|
| 1198 | # AC_LIBTOOL_SYS_LIB_STRIP
 | 
|---|
| 1199 | # ------------------------
 | 
|---|
| 1200 | AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
 | 
|---|
| 1201 | [striplib=
 | 
|---|
| 1202 | old_striplib=
 | 
|---|
| 1203 | AC_MSG_CHECKING([whether stripping libraries is possible])
 | 
|---|
| 1204 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 | 
|---|
| 1205 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 | 
|---|
| 1206 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 | 
|---|
| 1207 |   AC_MSG_RESULT([yes])
 | 
|---|
| 1208 | else
 | 
|---|
| 1209 | # FIXME - insert some real tests, host_os isn't really good enough
 | 
|---|
| 1210 |   case $host_os in
 | 
|---|
| 1211 |    darwin*)
 | 
|---|
| 1212 |        if test -n "$STRIP" ; then
 | 
|---|
| 1213 |          striplib="$STRIP -x"
 | 
|---|
| 1214 |          AC_MSG_RESULT([yes])
 | 
|---|
| 1215 |        else
 | 
|---|
| 1216 |   AC_MSG_RESULT([no])
 | 
|---|
| 1217 | fi
 | 
|---|
| 1218 |        ;;
 | 
|---|
| 1219 |    *)
 | 
|---|
| 1220 |   AC_MSG_RESULT([no])
 | 
|---|
| 1221 |     ;;
 | 
|---|
| 1222 |   esac
 | 
|---|
| 1223 | fi
 | 
|---|
| 1224 | ])# AC_LIBTOOL_SYS_LIB_STRIP
 | 
|---|
| 1225 | 
 | 
|---|
| 1226 | 
 | 
|---|
| 1227 | # AC_LIBTOOL_SYS_DYNAMIC_LINKER
 | 
|---|
| 1228 | # -----------------------------
 | 
|---|
| 1229 | # PORTME Fill in your ld.so characteristics
 | 
|---|
| 1230 | AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
 | 
|---|
| 1231 | [AC_MSG_CHECKING([dynamic linker characteristics])
 | 
|---|
| 1232 | library_names_spec=
 | 
|---|
| 1233 | libname_spec='lib$name'
 | 
|---|
| 1234 | soname_spec=
 | 
|---|
| 1235 | shrext_cmds=".so"
 | 
|---|
| 1236 | postinstall_cmds=
 | 
|---|
| 1237 | postuninstall_cmds=
 | 
|---|
| 1238 | finish_cmds=
 | 
|---|
| 1239 | finish_eval=
 | 
|---|
| 1240 | shlibpath_var=
 | 
|---|
| 1241 | shlibpath_overrides_runpath=unknown
 | 
|---|
| 1242 | version_type=none
 | 
|---|
| 1243 | dynamic_linker="$host_os ld.so"
 | 
|---|
| 1244 | sys_lib_dlsearch_path_spec="/lib /usr/lib"
 | 
|---|
| 1245 | if test "$GCC" = yes; then
 | 
|---|
| 1246 |   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 | 
|---|
| 1247 |   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 | 
|---|
| 1248 |     # if the path contains ";" then we assume it to be the separator
 | 
|---|
| 1249 |     # otherwise default to the standard path separator (i.e. ":") - it is
 | 
|---|
| 1250 |     # assumed that no part of a normal pathname contains ";" but that should
 | 
|---|
| 1251 |     # okay in the real world where ";" in dirpaths is itself problematic.
 | 
|---|
| 1252 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 | 
|---|
| 1253 |   else
 | 
|---|
| 1254 |     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 | 
|---|
| 1255 |   fi
 | 
|---|
| 1256 | else
 | 
|---|
| 1257 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 | 
|---|
| 1258 | fi
 | 
|---|
| 1259 | need_lib_prefix=unknown
 | 
|---|
| 1260 | hardcode_into_libs=no
 | 
|---|
| 1261 | 
 | 
|---|
| 1262 | # when you set need_version to no, make sure it does not cause -set_version
 | 
|---|
| 1263 | # flags to be left without arguments
 | 
|---|
| 1264 | need_version=unknown
 | 
|---|
| 1265 | 
 | 
|---|
| 1266 | case $host_os in
 | 
|---|
| 1267 | aix3*)
 | 
|---|
| 1268 |   version_type=linux
 | 
|---|
| 1269 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 | 
|---|
| 1270 |   shlibpath_var=LIBPATH
 | 
|---|
| 1271 | 
 | 
|---|
| 1272 |   # AIX 3 has no versioning support, so we append a major version to the name.
 | 
|---|
| 1273 |   soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1274 |   ;;
 | 
|---|
| 1275 | 
 | 
|---|
| 1276 | aix4* | aix5*)
 | 
|---|
| 1277 |   version_type=linux
 | 
|---|
| 1278 |   need_lib_prefix=no
 | 
|---|
| 1279 |   need_version=no
 | 
|---|
| 1280 |   hardcode_into_libs=yes
 | 
|---|
| 1281 |   if test "$host_cpu" = ia64; then
 | 
|---|
| 1282 |     # AIX 5 supports IA64
 | 
|---|
| 1283 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 | 
|---|
| 1284 |     shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1285 |   else
 | 
|---|
| 1286 |     # With GCC up to 2.95.x, collect2 would create an import file
 | 
|---|
| 1287 |     # for dependence libraries.  The import file would start with
 | 
|---|
| 1288 |     # the line `#! .'.  This would cause the generated library to
 | 
|---|
| 1289 |     # depend on `.', always an invalid library.  This was fixed in
 | 
|---|
| 1290 |     # development snapshots of GCC prior to 3.0.
 | 
|---|
| 1291 |     case $host_os in
 | 
|---|
| 1292 |       aix4 | aix4.[[01]] | aix4.[[01]].*)
 | 
|---|
| 1293 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 | 
|---|
| 1294 |            echo ' yes '
 | 
|---|
| 1295 |            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 | 
|---|
| 1296 |         :
 | 
|---|
| 1297 |       else
 | 
|---|
| 1298 |         can_build_shared=no
 | 
|---|
| 1299 |       fi
 | 
|---|
| 1300 |       ;;
 | 
|---|
| 1301 |     esac
 | 
|---|
| 1302 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 | 
|---|
| 1303 |     # soname into executable. Probably we can add versioning support to
 | 
|---|
| 1304 |     # collect2, so additional links can be useful in future.
 | 
|---|
| 1305 |     if test "$aix_use_runtimelinking" = yes; then
 | 
|---|
| 1306 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 | 
|---|
| 1307 |       # instead of lib<name>.a to let people know that these are not
 | 
|---|
| 1308 |       # typical AIX shared libraries.
 | 
|---|
| 1309 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 | 
|---|
| 1310 |     else
 | 
|---|
| 1311 |       # We preserve .a as extension for shared libraries through AIX4.2
 | 
|---|
| 1312 |       # and later when we are not doing run time linking.
 | 
|---|
| 1313 |       library_names_spec='${libname}${release}.a $libname.a'
 | 
|---|
| 1314 |       soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1315 |     fi
 | 
|---|
| 1316 |     shlibpath_var=LIBPATH
 | 
|---|
| 1317 |   fi
 | 
|---|
| 1318 |   ;;
 | 
|---|
| 1319 | 
 | 
|---|
| 1320 | amigaos*)
 | 
|---|
| 1321 |   library_names_spec='$libname.ixlibrary $libname.a'
 | 
|---|
| 1322 |   # Create ${libname}_ixlibrary.a entries in /sys/libs.
 | 
|---|
| 1323 |   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'
 | 
|---|
| 1324 |   ;;
 | 
|---|
| 1325 | 
 | 
|---|
| 1326 | beos*)
 | 
|---|
| 1327 |   library_names_spec='${libname}${shared_ext}'
 | 
|---|
| 1328 |   dynamic_linker="$host_os ld.so"
 | 
|---|
| 1329 |   shlibpath_var=LIBRARY_PATH
 | 
|---|
| 1330 |   ;;
 | 
|---|
| 1331 | 
 | 
|---|
| 1332 | bsdi[[45]]*)
 | 
|---|
| 1333 |   version_type=linux
 | 
|---|
| 1334 |   need_version=no
 | 
|---|
| 1335 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 | 
|---|
| 1336 |   soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1337 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 | 
|---|
| 1338 |   shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1339 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 | 
|---|
| 1340 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 | 
|---|
| 1341 |   # the default ld.so.conf also contains /usr/contrib/lib and
 | 
|---|
| 1342 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 | 
|---|
| 1343 |   # libtool to hard-code these into programs
 | 
|---|
| 1344 |   ;;
 | 
|---|
| 1345 | 
 | 
|---|
| 1346 | cygwin* | mingw* | pw32*)
 | 
|---|
| 1347 |   version_type=windows
 | 
|---|
| 1348 |   shrext_cmds=".dll"
 | 
|---|
| 1349 |   need_version=no
 | 
|---|
| 1350 |   need_lib_prefix=no
 | 
|---|
| 1351 | 
 | 
|---|
| 1352 |   case $GCC,$host_os in
 | 
|---|
| 1353 |   yes,cygwin* | yes,mingw* | yes,pw32*)
 | 
|---|
| 1354 |     library_names_spec='$libname.dll.a'
 | 
|---|
| 1355 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds
 | 
|---|
| 1356 |     postinstall_cmds='base_file=`basename \${file}`~
 | 
|---|
| 1357 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 | 
|---|
| 1358 |       dldir=$destdir/`dirname \$dlpath`~
 | 
|---|
| 1359 |       test -d \$dldir || mkdir -p \$dldir~
 | 
|---|
| 1360 |       $install_prog $dir/$dlname \$dldir/$dlname~
 | 
|---|
| 1361 |       chmod a+x \$dldir/$dlname'
 | 
|---|
| 1362 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 | 
|---|
| 1363 |       dlpath=$dir/\$dldll~
 | 
|---|
| 1364 |        $rm \$dlpath'
 | 
|---|
| 1365 |     shlibpath_overrides_runpath=yes
 | 
|---|
| 1366 | 
 | 
|---|
| 1367 |     case $host_os in
 | 
|---|
| 1368 |     cygwin*)
 | 
|---|
| 1369 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 | 
|---|
| 1370 |       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 | 
|---|
| 1371 |       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 | 
|---|
| 1372 |       ;;
 | 
|---|
| 1373 |     mingw*)
 | 
|---|
| 1374 |       # MinGW DLLs use traditional 'lib' prefix
 | 
|---|
| 1375 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 | 
|---|
| 1376 |       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 | 
|---|
| 1377 |       if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
 | 
|---|
| 1378 |         # It is most probably a Windows format PATH printed by
 | 
|---|
| 1379 |         # mingw gcc, but we are running on Cygwin. Gcc prints its search
 | 
|---|
| 1380 |         # path with ; separators, and with drive letters. We can handle the
 | 
|---|
| 1381 |         # drive letters (cygwin fileutils understands them), so leave them,
 | 
|---|
| 1382 |         # especially as we might pass files found there to a mingw objdump,
 | 
|---|
| 1383 |         # which wouldn't understand a cygwinified path. Ahh.
 | 
|---|
| 1384 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 | 
|---|
| 1385 |       else
 | 
|---|
| 1386 |         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 | 
|---|
| 1387 |       fi
 | 
|---|
| 1388 |       ;;
 | 
|---|
| 1389 |     pw32*)
 | 
|---|
| 1390 |       # pw32 DLLs use 'pw' prefix rather than 'lib'
 | 
|---|
| 1391 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 | 
|---|
| 1392 |       ;;
 | 
|---|
| 1393 |     esac
 | 
|---|
| 1394 |     ;;
 | 
|---|
| 1395 | 
 | 
|---|
| 1396 |   linux*)
 | 
|---|
| 1397 |     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 | 
|---|
| 1398 |       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 | 
|---|
| 1399 |       supports_anon_versioning=no
 | 
|---|
| 1400 |       case `$LD -v 2>/dev/null` in
 | 
|---|
| 1401 |         *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 | 
|---|
| 1402 |         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 | 
|---|
| 1403 |         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 | 
|---|
| 1404 |         *\ 2.11.*) ;; # other 2.11 versions
 | 
|---|
| 1405 |         *) supports_anon_versioning=yes ;;
 | 
|---|
| 1406 |       esac
 | 
|---|
| 1407 |       if test $supports_anon_versioning = yes; then
 | 
|---|
| 1408 |         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 | 
|---|
| 1409 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 | 
|---|
| 1410 | $echo "local: *; };" >> $output_objdir/$libname.ver~
 | 
|---|
| 1411 |         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 | 
|---|
| 1412 |       else
 | 
|---|
| 1413 |         $archive_expsym_cmds="$archive_cmds"
 | 
|---|
| 1414 |       fi
 | 
|---|
| 1415 |     else
 | 
|---|
| 1416 |       ld_shlibs=no
 | 
|---|
| 1417 |     fi
 | 
|---|
| 1418 |     ;;
 | 
|---|
| 1419 | 
 | 
|---|
| 1420 |   *)
 | 
|---|
| 1421 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 | 
|---|
| 1422 |     ;;
 | 
|---|
| 1423 |   esac
 | 
|---|
| 1424 |   dynamic_linker='Win32 ld.exe'
 | 
|---|
| 1425 |   # FIXME: first we should search . and the directory the executable is in
 | 
|---|
| 1426 |   shlibpath_var=PATH
 | 
|---|
| 1427 |   ;;
 | 
|---|
| 1428 | 
 | 
|---|
| 1429 | darwin* | rhapsody*)
 | 
|---|
| 1430 |   dynamic_linker="$host_os dyld"
 | 
|---|
| 1431 |   version_type=darwin
 | 
|---|
| 1432 |   need_lib_prefix=no
 | 
|---|
| 1433 |   need_version=no
 | 
|---|
| 1434 |   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 | 
|---|
| 1435 |   soname_spec='${libname}${release}${major}$shared_ext'
 | 
|---|
| 1436 |   shlibpath_overrides_runpath=yes
 | 
|---|
| 1437 |   shlibpath_var=DYLD_LIBRARY_PATH
 | 
|---|
| 1438 |   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 | 
|---|
| 1439 |   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 | 
|---|
| 1440 |   if test "$GCC" = yes; then
 | 
|---|
| 1441 |     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"`
 | 
|---|
| 1442 |   else
 | 
|---|
| 1443 |     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 | 
|---|
| 1444 |   fi
 | 
|---|
| 1445 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 | 
|---|
| 1446 |   ;;
 | 
|---|
| 1447 | 
 | 
|---|
| 1448 | dgux*)
 | 
|---|
| 1449 |   version_type=linux
 | 
|---|
| 1450 |   need_lib_prefix=no
 | 
|---|
| 1451 |   need_version=no
 | 
|---|
| 1452 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 | 
|---|
| 1453 |   soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1454 |   shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1455 |   ;;
 | 
|---|
| 1456 | 
 | 
|---|
| 1457 | freebsd1*)
 | 
|---|
| 1458 |   dynamic_linker=no
 | 
|---|
| 1459 |   ;;
 | 
|---|
| 1460 | 
 | 
|---|
| 1461 | kfreebsd*-gnu)
 | 
|---|
| 1462 |   version_type=linux
 | 
|---|
| 1463 |   need_lib_prefix=no
 | 
|---|
| 1464 |   need_version=no
 | 
|---|
| 1465 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 | 
|---|
| 1466 |   soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1467 |   shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1468 |   shlibpath_overrides_runpath=no
 | 
|---|
| 1469 |   hardcode_into_libs=yes
 | 
|---|
| 1470 |   dynamic_linker='GNU ld.so'
 | 
|---|
| 1471 |   ;;
 | 
|---|
| 1472 | 
 | 
|---|
| 1473 | freebsd* | dragonfly*)
 | 
|---|
| 1474 |   # DragonFly does not have aout.  When/if they implement a new
 | 
|---|
| 1475 |   # versioning mechanism, adjust this.
 | 
|---|
| 1476 |   if test -x /usr/bin/objformat; then
 | 
|---|
| 1477 |     objformat=`/usr/bin/objformat`
 | 
|---|
| 1478 |   else
 | 
|---|
| 1479 |     case $host_os in
 | 
|---|
| 1480 |     freebsd[[123]]*) objformat=aout ;;
 | 
|---|
| 1481 |     *) objformat=elf ;;
 | 
|---|
| 1482 |     esac
 | 
|---|
| 1483 |   fi
 | 
|---|
| 1484 |   # Handle Gentoo/FreeBSD as it was Linux
 | 
|---|
| 1485 |   case $host_vendor in
 | 
|---|
| 1486 |     gentoo)
 | 
|---|
| 1487 |       version_type=linux ;;
 | 
|---|
| 1488 |     *)
 | 
|---|
| 1489 |       version_type=freebsd-$objformat ;;
 | 
|---|
| 1490 |   esac
 | 
|---|
| 1491 | 
 | 
|---|
| 1492 |   case $version_type in
 | 
|---|
| 1493 |     freebsd-elf*)
 | 
|---|
| 1494 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 | 
|---|
| 1495 |       need_version=no
 | 
|---|
| 1496 |       need_lib_prefix=no
 | 
|---|
| 1497 |       ;;
 | 
|---|
| 1498 |     freebsd-*)
 | 
|---|
| 1499 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 | 
|---|
| 1500 |       need_version=yes
 | 
|---|
| 1501 |       ;;
 | 
|---|
| 1502 |     linux)
 | 
|---|
| 1503 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 | 
|---|
| 1504 |       soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1505 |       need_lib_prefix=no
 | 
|---|
| 1506 |       need_version=no
 | 
|---|
| 1507 |       ;;
 | 
|---|
| 1508 |   esac
 | 
|---|
| 1509 |   shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1510 |   case $host_os in
 | 
|---|
| 1511 |   freebsd2*)
 | 
|---|
| 1512 |     shlibpath_overrides_runpath=yes
 | 
|---|
| 1513 |     ;;
 | 
|---|
| 1514 |   freebsd3.[[01]]* | freebsdelf3.[[01]]*)
 | 
|---|
| 1515 |     shlibpath_overrides_runpath=yes
 | 
|---|
| 1516 |     hardcode_into_libs=yes
 | 
|---|
| 1517 |     ;;
 | 
|---|
| 1518 |   freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 | 
|---|
| 1519 |   freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
 | 
|---|
| 1520 |     shlibpath_overrides_runpath=no
 | 
|---|
| 1521 |     hardcode_into_libs=yes
 | 
|---|
| 1522 |     ;;
 | 
|---|
| 1523 |   freebsd*) # from 4.6 on
 | 
|---|
| 1524 |     shlibpath_overrides_runpath=yes
 | 
|---|
| 1525 |     hardcode_into_libs=yes
 | 
|---|
| 1526 |     ;;
 | 
|---|
| 1527 |   esac
 | 
|---|
| 1528 |   ;;
 | 
|---|
| 1529 | 
 | 
|---|
| 1530 | gnu*)
 | 
|---|
| 1531 |   version_type=linux
 | 
|---|
| 1532 |   need_lib_prefix=no
 | 
|---|
| 1533 |   need_version=no
 | 
|---|
| 1534 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 | 
|---|
| 1535 |   soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1536 |   shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1537 |   hardcode_into_libs=yes
 | 
|---|
| 1538 |   ;;
 | 
|---|
| 1539 | 
 | 
|---|
| 1540 | hpux9* | hpux10* | hpux11*)
 | 
|---|
| 1541 |   # Give a soname corresponding to the major version so that dld.sl refuses to
 | 
|---|
| 1542 |   # link against other versions.
 | 
|---|
| 1543 |   version_type=sunos
 | 
|---|
| 1544 |   need_lib_prefix=no
 | 
|---|
| 1545 |   need_version=no
 | 
|---|
| 1546 |   case $host_cpu in
 | 
|---|
| 1547 |   ia64*)
 | 
|---|
| 1548 |     shrext_cmds='.so'
 | 
|---|
| 1549 |     hardcode_into_libs=yes
 | 
|---|
| 1550 |     dynamic_linker="$host_os dld.so"
 | 
|---|
| 1551 |     shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1552 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 | 
|---|
| 1553 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 | 
|---|
| 1554 |     soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1555 |     if test "X$HPUX_IA64_MODE" = X32; then
 | 
|---|
| 1556 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 | 
|---|
| 1557 |     else
 | 
|---|
| 1558 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 | 
|---|
| 1559 |     fi
 | 
|---|
| 1560 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 | 
|---|
| 1561 |     ;;
 | 
|---|
| 1562 |    hppa*64*)
 | 
|---|
| 1563 |      shrext_cmds='.sl'
 | 
|---|
| 1564 |      hardcode_into_libs=yes
 | 
|---|
| 1565 |      dynamic_linker="$host_os dld.sl"
 | 
|---|
| 1566 |      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 | 
|---|
| 1567 |      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 | 
|---|
| 1568 |      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 | 
|---|
| 1569 |      soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1570 |      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 | 
|---|
| 1571 |      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 | 
|---|
| 1572 |      ;;
 | 
|---|
| 1573 |    *)
 | 
|---|
| 1574 |     shrext_cmds='.sl'
 | 
|---|
| 1575 |     dynamic_linker="$host_os dld.sl"
 | 
|---|
| 1576 |     shlibpath_var=SHLIB_PATH
 | 
|---|
| 1577 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 | 
|---|
| 1578 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 | 
|---|
| 1579 |     soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1580 |     ;;
 | 
|---|
| 1581 |   esac
 | 
|---|
| 1582 |   # HP-UX runs *really* slowly unless shared libraries are mode 555.
 | 
|---|
| 1583 |   postinstall_cmds='chmod 555 $lib'
 | 
|---|
| 1584 |   ;;
 | 
|---|
| 1585 | 
 | 
|---|
| 1586 | interix3*)
 | 
|---|
| 1587 |   version_type=linux
 | 
|---|
| 1588 |   need_lib_prefix=no
 | 
|---|
| 1589 |   need_version=no
 | 
|---|
| 1590 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 | 
|---|
| 1591 |   soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1592 |   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 | 
|---|
| 1593 |   shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1594 |   shlibpath_overrides_runpath=no
 | 
|---|
| 1595 |   hardcode_into_libs=yes
 | 
|---|
| 1596 |   ;;
 | 
|---|
| 1597 | 
 | 
|---|
| 1598 | irix5* | irix6* | nonstopux*)
 | 
|---|
| 1599 |   case $host_os in
 | 
|---|
| 1600 |     nonstopux*) version_type=nonstopux ;;
 | 
|---|
| 1601 |     *)
 | 
|---|
| 1602 |         if test "$lt_cv_prog_gnu_ld" = yes; then
 | 
|---|
| 1603 |                 version_type=linux
 | 
|---|
| 1604 |         else
 | 
|---|
| 1605 |                 version_type=irix
 | 
|---|
| 1606 |         fi ;;
 | 
|---|
| 1607 |   esac
 | 
|---|
| 1608 |   need_lib_prefix=no
 | 
|---|
| 1609 |   need_version=no
 | 
|---|
| 1610 |   soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1611 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 | 
|---|
| 1612 |   case $host_os in
 | 
|---|
| 1613 |   irix5* | nonstopux*)
 | 
|---|
| 1614 |     libsuff= shlibsuff=
 | 
|---|
| 1615 |     ;;
 | 
|---|
| 1616 |   *)
 | 
|---|
| 1617 |     case $LD in # libtool.m4 will add one of these switches to LD
 | 
|---|
| 1618 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 | 
|---|
| 1619 |       libsuff= shlibsuff= libmagic=32-bit;;
 | 
|---|
| 1620 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 | 
|---|
| 1621 |       libsuff=32 shlibsuff=N32 libmagic=N32;;
 | 
|---|
| 1622 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 | 
|---|
| 1623 |       libsuff=64 shlibsuff=64 libmagic=64-bit;;
 | 
|---|
| 1624 |     *) libsuff= shlibsuff= libmagic=never-match;;
 | 
|---|
| 1625 |     esac
 | 
|---|
| 1626 |     ;;
 | 
|---|
| 1627 |   esac
 | 
|---|
| 1628 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 | 
|---|
| 1629 |   shlibpath_overrides_runpath=no
 | 
|---|
| 1630 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 | 
|---|
| 1631 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 | 
|---|
| 1632 |   hardcode_into_libs=yes
 | 
|---|
| 1633 |   ;;
 | 
|---|
| 1634 | 
 | 
|---|
| 1635 | # No shared lib support for Linux oldld, aout, or coff.
 | 
|---|
| 1636 | linux*oldld* | linux*aout* | linux*coff*)
 | 
|---|
| 1637 |   dynamic_linker=no
 | 
|---|
| 1638 |   ;;
 | 
|---|
| 1639 | 
 | 
|---|
| 1640 | # This must be Linux ELF.
 | 
|---|
| 1641 | linux*)
 | 
|---|
| 1642 |   version_type=linux
 | 
|---|
| 1643 |   need_lib_prefix=no
 | 
|---|
| 1644 |   need_version=no
 | 
|---|
| 1645 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 | 
|---|
| 1646 |   soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1647 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 | 
|---|
| 1648 |   shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1649 |   shlibpath_overrides_runpath=no
 | 
|---|
| 1650 |   # This implies no fast_install, which is unacceptable.
 | 
|---|
| 1651 |   # Some rework will be needed to allow for fast_install
 | 
|---|
| 1652 |   # before this can be enabled.
 | 
|---|
| 1653 |   hardcode_into_libs=yes
 | 
|---|
| 1654 | 
 | 
|---|
| 1655 |   # Append ld.so.conf contents to the search path
 | 
|---|
| 1656 |   if test -f /etc/ld.so.conf; then
 | 
|---|
| 1657 |     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 | 
|---|
| 1658 |     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 | 
|---|
| 1659 |   fi
 | 
|---|
| 1660 | 
 | 
|---|
| 1661 |   # We used to test for /lib/ld.so.1 and disable shared libraries on
 | 
|---|
| 1662 |   # powerpc, because MkLinux only supported shared libraries with the
 | 
|---|
| 1663 |   # GNU dynamic linker.  Since this was broken with cross compilers,
 | 
|---|
| 1664 |   # most powerpc-linux boxes support dynamic linking these days and
 | 
|---|
| 1665 |   # people can always --disable-shared, the test was removed, and we
 | 
|---|
| 1666 |   # assume the GNU/Linux dynamic linker is in use.
 | 
|---|
| 1667 |   dynamic_linker='GNU/Linux ld.so'
 | 
|---|
| 1668 |   ;;
 | 
|---|
| 1669 | 
 | 
|---|
| 1670 | knetbsd*-gnu)
 | 
|---|
| 1671 |   version_type=linux
 | 
|---|
| 1672 |   need_lib_prefix=no
 | 
|---|
| 1673 |   need_version=no
 | 
|---|
| 1674 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 | 
|---|
| 1675 |   soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1676 |   shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1677 |   shlibpath_overrides_runpath=no
 | 
|---|
| 1678 |   hardcode_into_libs=yes
 | 
|---|
| 1679 |   dynamic_linker='GNU ld.so'
 | 
|---|
| 1680 |   ;;
 | 
|---|
| 1681 | 
 | 
|---|
| 1682 | netbsd*)
 | 
|---|
| 1683 |   version_type=sunos
 | 
|---|
| 1684 |   need_lib_prefix=no
 | 
|---|
| 1685 |   need_version=no
 | 
|---|
| 1686 |   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 | 
|---|
| 1687 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 | 
|---|
| 1688 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 | 
|---|
| 1689 |     dynamic_linker='NetBSD (a.out) ld.so'
 | 
|---|
| 1690 |   else
 | 
|---|
| 1691 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 | 
|---|
| 1692 |     soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1693 |     dynamic_linker='NetBSD ld.elf_so'
 | 
|---|
| 1694 |   fi
 | 
|---|
| 1695 |   shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1696 |   shlibpath_overrides_runpath=yes
 | 
|---|
| 1697 |   hardcode_into_libs=yes
 | 
|---|
| 1698 |   ;;
 | 
|---|
| 1699 | 
 | 
|---|
| 1700 | newsos6)
 | 
|---|
| 1701 |   version_type=linux
 | 
|---|
| 1702 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 | 
|---|
| 1703 |   shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1704 |   shlibpath_overrides_runpath=yes
 | 
|---|
| 1705 |   ;;
 | 
|---|
| 1706 | 
 | 
|---|
| 1707 | nto-qnx*)
 | 
|---|
| 1708 |   version_type=linux
 | 
|---|
| 1709 |   need_lib_prefix=no
 | 
|---|
| 1710 |   need_version=no
 | 
|---|
| 1711 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 | 
|---|
| 1712 |   soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1713 |   shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1714 |   shlibpath_overrides_runpath=yes
 | 
|---|
| 1715 |   ;;
 | 
|---|
| 1716 | 
 | 
|---|
| 1717 | openbsd*)
 | 
|---|
| 1718 |   version_type=sunos
 | 
|---|
| 1719 |   sys_lib_dlsearch_path_spec="/usr/lib"
 | 
|---|
| 1720 |   need_lib_prefix=no
 | 
|---|
| 1721 |   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 | 
|---|
| 1722 |   case $host_os in
 | 
|---|
| 1723 |     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 | 
|---|
| 1724 |     *)                         need_version=no  ;;
 | 
|---|
| 1725 |   esac
 | 
|---|
| 1726 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 | 
|---|
| 1727 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 | 
|---|
| 1728 |   shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1729 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 | 
|---|
| 1730 |     case $host_os in
 | 
|---|
| 1731 |       openbsd2.[[89]] | openbsd2.[[89]].*)
 | 
|---|
| 1732 |         shlibpath_overrides_runpath=no
 | 
|---|
| 1733 |         ;;
 | 
|---|
| 1734 |       *)
 | 
|---|
| 1735 |         shlibpath_overrides_runpath=yes
 | 
|---|
| 1736 |         ;;
 | 
|---|
| 1737 |       esac
 | 
|---|
| 1738 |   else
 | 
|---|
| 1739 |     shlibpath_overrides_runpath=yes
 | 
|---|
| 1740 |   fi
 | 
|---|
| 1741 |   ;;
 | 
|---|
| 1742 | 
 | 
|---|
| 1743 | os2*)
 | 
|---|
| 1744 |   libname_spec='$name'
 | 
|---|
| 1745 |   shrext_cmds=".dll"
 | 
|---|
| 1746 |   need_lib_prefix=no
 | 
|---|
| 1747 |   library_names_spec='$libname${shared_ext} $libname.a'
 | 
|---|
| 1748 |   dynamic_linker='OS/2 ld.exe'
 | 
|---|
| 1749 |   shlibpath_var=LIBPATH
 | 
|---|
| 1750 |   ;;
 | 
|---|
| 1751 | 
 | 
|---|
| 1752 | osf3* | osf4* | osf5*)
 | 
|---|
| 1753 |   version_type=osf
 | 
|---|
| 1754 |   need_lib_prefix=no
 | 
|---|
| 1755 |   need_version=no
 | 
|---|
| 1756 |   soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1757 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 | 
|---|
| 1758 |   shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1759 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 | 
|---|
| 1760 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 | 
|---|
| 1761 |   ;;
 | 
|---|
| 1762 | 
 | 
|---|
| 1763 | solaris*)
 | 
|---|
| 1764 |   version_type=linux
 | 
|---|
| 1765 |   need_lib_prefix=no
 | 
|---|
| 1766 |   need_version=no
 | 
|---|
| 1767 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 | 
|---|
| 1768 |   soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1769 |   shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1770 |   shlibpath_overrides_runpath=yes
 | 
|---|
| 1771 |   hardcode_into_libs=yes
 | 
|---|
| 1772 |   # ldd complains unless libraries are executable
 | 
|---|
| 1773 |   postinstall_cmds='chmod +x $lib'
 | 
|---|
| 1774 |   ;;
 | 
|---|
| 1775 | 
 | 
|---|
| 1776 | sunos4*)
 | 
|---|
| 1777 |   version_type=sunos
 | 
|---|
| 1778 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 | 
|---|
| 1779 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 | 
|---|
| 1780 |   shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1781 |   shlibpath_overrides_runpath=yes
 | 
|---|
| 1782 |   if test "$with_gnu_ld" = yes; then
 | 
|---|
| 1783 |     need_lib_prefix=no
 | 
|---|
| 1784 |   fi
 | 
|---|
| 1785 |   need_version=yes
 | 
|---|
| 1786 |   ;;
 | 
|---|
| 1787 | 
 | 
|---|
| 1788 | sysv4 | sysv4.3*)
 | 
|---|
| 1789 |   version_type=linux
 | 
|---|
| 1790 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 | 
|---|
| 1791 |   soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1792 |   shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1793 |   case $host_vendor in
 | 
|---|
| 1794 |     sni)
 | 
|---|
| 1795 |       shlibpath_overrides_runpath=no
 | 
|---|
| 1796 |       need_lib_prefix=no
 | 
|---|
| 1797 |       export_dynamic_flag_spec='${wl}-Blargedynsym'
 | 
|---|
| 1798 |       runpath_var=LD_RUN_PATH
 | 
|---|
| 1799 |       ;;
 | 
|---|
| 1800 |     siemens)
 | 
|---|
| 1801 |       need_lib_prefix=no
 | 
|---|
| 1802 |       ;;
 | 
|---|
| 1803 |     motorola)
 | 
|---|
| 1804 |       need_lib_prefix=no
 | 
|---|
| 1805 |       need_version=no
 | 
|---|
| 1806 |       shlibpath_overrides_runpath=no
 | 
|---|
| 1807 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 | 
|---|
| 1808 |       ;;
 | 
|---|
| 1809 |   esac
 | 
|---|
| 1810 |   ;;
 | 
|---|
| 1811 | 
 | 
|---|
| 1812 | sysv4*MP*)
 | 
|---|
| 1813 |   if test -d /usr/nec ;then
 | 
|---|
| 1814 |     version_type=linux
 | 
|---|
| 1815 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 | 
|---|
| 1816 |     soname_spec='$libname${shared_ext}.$major'
 | 
|---|
| 1817 |     shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1818 |   fi
 | 
|---|
| 1819 |   ;;
 | 
|---|
| 1820 | 
 | 
|---|
| 1821 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 | 
|---|
| 1822 |   version_type=freebsd-elf
 | 
|---|
| 1823 |   need_lib_prefix=no
 | 
|---|
| 1824 |   need_version=no
 | 
|---|
| 1825 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 | 
|---|
| 1826 |   soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1827 |   shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1828 |   hardcode_into_libs=yes
 | 
|---|
| 1829 |   if test "$with_gnu_ld" = yes; then
 | 
|---|
| 1830 |     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 | 
|---|
| 1831 |     shlibpath_overrides_runpath=no
 | 
|---|
| 1832 |   else
 | 
|---|
| 1833 |     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 | 
|---|
| 1834 |     shlibpath_overrides_runpath=yes
 | 
|---|
| 1835 |     case $host_os in
 | 
|---|
| 1836 |       sco3.2v5*)
 | 
|---|
| 1837 |         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 | 
|---|
| 1838 |         ;;
 | 
|---|
| 1839 |     esac
 | 
|---|
| 1840 |   fi
 | 
|---|
| 1841 |   sys_lib_dlsearch_path_spec='/usr/lib'
 | 
|---|
| 1842 |   ;;
 | 
|---|
| 1843 | 
 | 
|---|
| 1844 | uts4*)
 | 
|---|
| 1845 |   version_type=linux
 | 
|---|
| 1846 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 | 
|---|
| 1847 |   soname_spec='${libname}${release}${shared_ext}$major'
 | 
|---|
| 1848 |   shlibpath_var=LD_LIBRARY_PATH
 | 
|---|
| 1849 |   ;;
 | 
|---|
| 1850 | 
 | 
|---|
| 1851 | *)
 | 
|---|
| 1852 |   dynamic_linker=no
 | 
|---|
| 1853 |   ;;
 | 
|---|
| 1854 | esac
 | 
|---|
| 1855 | AC_MSG_RESULT([$dynamic_linker])
 | 
|---|
| 1856 | test "$dynamic_linker" = no && can_build_shared=no
 | 
|---|
| 1857 | 
 | 
|---|
| 1858 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 | 
|---|
| 1859 | if test "$GCC" = yes; then
 | 
|---|
| 1860 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 | 
|---|
| 1861 | fi
 | 
|---|
| 1862 | ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 | 
|---|
| 1863 | 
 | 
|---|
| 1864 | 
 | 
|---|
| 1865 | # _LT_AC_TAGCONFIG
 | 
|---|
| 1866 | # ----------------
 | 
|---|
| 1867 | AC_DEFUN([_LT_AC_TAGCONFIG],
 | 
|---|
| 1868 | [AC_ARG_WITH([tags],
 | 
|---|
| 1869 |     [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
 | 
|---|
| 1870 |         [include additional configurations @<:@automatic@:>@])],
 | 
|---|
| 1871 |     [tagnames="$withval"])
 | 
|---|
| 1872 | 
 | 
|---|
| 1873 | if test -f "$ltmain" && test -n "$tagnames"; then
 | 
|---|
| 1874 |   if test ! -f "${ofile}"; then
 | 
|---|
| 1875 |     AC_MSG_WARN([output file `$ofile' does not exist])
 | 
|---|
| 1876 |   fi
 | 
|---|
| 1877 | 
 | 
|---|
| 1878 |   if test -z "$LTCC"; then
 | 
|---|
| 1879 |     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 | 
|---|
| 1880 |     if test -z "$LTCC"; then
 | 
|---|
| 1881 |       AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
 | 
|---|
| 1882 |     else
 | 
|---|
| 1883 |       AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
 | 
|---|
| 1884 |     fi
 | 
|---|
| 1885 |   fi
 | 
|---|
| 1886 |   if test -z "$LTCFLAGS"; then
 | 
|---|
| 1887 |     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 | 
|---|
| 1888 |   fi
 | 
|---|
| 1889 | 
 | 
|---|
| 1890 |   # Extract list of available tagged configurations in $ofile.
 | 
|---|
| 1891 |   # Note that this assumes the entire list is on one line.
 | 
|---|
| 1892 |   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 | 
|---|
| 1893 | 
 | 
|---|
| 1894 |   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 | 
|---|
| 1895 |   for tagname in $tagnames; do
 | 
|---|
| 1896 |     IFS="$lt_save_ifs"
 | 
|---|
| 1897 |     # Check whether tagname contains only valid characters
 | 
|---|
| 1898 |     case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
 | 
|---|
| 1899 |     "") ;;
 | 
|---|
| 1900 |     *)  AC_MSG_ERROR([invalid tag name: $tagname])
 | 
|---|
| 1901 |         ;;
 | 
|---|
| 1902 |     esac
 | 
|---|
| 1903 | 
 | 
|---|
| 1904 |     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 | 
|---|
| 1905 |     then
 | 
|---|
| 1906 |       AC_MSG_ERROR([tag name \"$tagname\" already exists])
 | 
|---|
| 1907 |     fi
 | 
|---|
| 1908 | 
 | 
|---|
| 1909 |     # Update the list of available tags.
 | 
|---|
| 1910 |     if test -n "$tagname"; then
 | 
|---|
| 1911 |       echo appending configuration tag \"$tagname\" to $ofile
 | 
|---|
| 1912 | 
 | 
|---|
| 1913 |       case $tagname in
 | 
|---|
| 1914 |       CXX)
 | 
|---|
| 1915 |         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 | 
|---|
| 1916 |             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 | 
|---|
| 1917 |             (test "X$CXX" != "Xg++"))) ; then
 | 
|---|
| 1918 |           AC_LIBTOOL_LANG_CXX_CONFIG
 | 
|---|
| 1919 |         else
 | 
|---|
| 1920 |           tagname=""
 | 
|---|
| 1921 |         fi
 | 
|---|
| 1922 |         ;;
 | 
|---|
| 1923 | 
 | 
|---|
| 1924 |       F77)
 | 
|---|
| 1925 |         if test -n "$F77" && test "X$F77" != "Xno"; then
 | 
|---|
| 1926 |           AC_LIBTOOL_LANG_F77_CONFIG
 | 
|---|
| 1927 |         else
 | 
|---|
| 1928 |           tagname=""
 | 
|---|
| 1929 |         fi
 | 
|---|
| 1930 |         ;;
 | 
|---|
| 1931 | 
 | 
|---|
| 1932 |       GCJ)
 | 
|---|
| 1933 |         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 | 
|---|
| 1934 |           AC_LIBTOOL_LANG_GCJ_CONFIG
 | 
|---|
| 1935 |         else
 | 
|---|
| 1936 |           tagname=""
 | 
|---|
| 1937 |         fi
 | 
|---|
| 1938 |         ;;
 | 
|---|
| 1939 | 
 | 
|---|
| 1940 |       RC)
 | 
|---|
| 1941 |         AC_LIBTOOL_LANG_RC_CONFIG
 | 
|---|
| 1942 |         ;;
 | 
|---|
| 1943 | 
 | 
|---|
| 1944 |       *)
 | 
|---|
| 1945 |         AC_MSG_ERROR([Unsupported tag name: $tagname])
 | 
|---|
| 1946 |         ;;
 | 
|---|
| 1947 |       esac
 | 
|---|
| 1948 | 
 | 
|---|
| 1949 |       # Append the new tag name to the list of available tags.
 | 
|---|
| 1950 |       if test -n "$tagname" ; then
 | 
|---|
| 1951 |       available_tags="$available_tags $tagname"
 | 
|---|
| 1952 |     fi
 | 
|---|
| 1953 |     fi
 | 
|---|
| 1954 |   done
 | 
|---|
| 1955 |   IFS="$lt_save_ifs"
 | 
|---|
| 1956 | 
 | 
|---|
| 1957 |   # Now substitute the updated list of available tags.
 | 
|---|
| 1958 |   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 | 
|---|
| 1959 |     mv "${ofile}T" "$ofile"
 | 
|---|
| 1960 |     chmod +x "$ofile"
 | 
|---|
| 1961 |   else
 | 
|---|
| 1962 |     rm -f "${ofile}T"
 | 
|---|
| 1963 |     AC_MSG_ERROR([unable to update list of available tagged configurations.])
 | 
|---|
| 1964 |   fi
 | 
|---|
| 1965 | fi
 | 
|---|
| 1966 | ])# _LT_AC_TAGCONFIG
 | 
|---|
| 1967 | 
 | 
|---|
| 1968 | 
 | 
|---|
| 1969 | # AC_LIBTOOL_DLOPEN
 | 
|---|
| 1970 | # -----------------
 | 
|---|
| 1971 | # enable checks for dlopen support
 | 
|---|
| 1972 | AC_DEFUN([AC_LIBTOOL_DLOPEN],
 | 
|---|
| 1973 |  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
 | 
|---|
| 1974 | ])# AC_LIBTOOL_DLOPEN
 | 
|---|
| 1975 | 
 | 
|---|
| 1976 | 
 | 
|---|
| 1977 | # AC_LIBTOOL_WIN32_DLL
 | 
|---|
| 1978 | # --------------------
 | 
|---|
| 1979 | # declare package support for building win32 DLLs
 | 
|---|
| 1980 | AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
 | 
|---|
| 1981 | [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
 | 
|---|
| 1982 | ])# AC_LIBTOOL_WIN32_DLL
 | 
|---|
| 1983 | 
 | 
|---|
| 1984 | 
 | 
|---|
| 1985 | # AC_ENABLE_SHARED([DEFAULT])
 | 
|---|
| 1986 | # ---------------------------
 | 
|---|
| 1987 | # implement the --enable-shared flag
 | 
|---|
| 1988 | # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 | 
|---|
| 1989 | AC_DEFUN([AC_ENABLE_SHARED],
 | 
|---|
| 1990 | [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
 | 
|---|
| 1991 | AC_ARG_ENABLE([shared],
 | 
|---|
| 1992 |     [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 | 
|---|
| 1993 |         [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
 | 
|---|
| 1994 |     [p=${PACKAGE-default}
 | 
|---|
| 1995 |     case $enableval in
 | 
|---|
| 1996 |     yes) enable_shared=yes ;;
 | 
|---|
| 1997 |     no) enable_shared=no ;;
 | 
|---|
| 1998 |     *)
 | 
|---|
| 1999 |       enable_shared=no
 | 
|---|
| 2000 |       # Look at the argument we got.  We use all the common list separators.
 | 
|---|
| 2001 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 | 
|---|
| 2002 |       for pkg in $enableval; do
 | 
|---|
| 2003 |         IFS="$lt_save_ifs"
 | 
|---|
| 2004 |         if test "X$pkg" = "X$p"; then
 | 
|---|
| 2005 |           enable_shared=yes
 | 
|---|
| 2006 |         fi
 | 
|---|
| 2007 |       done
 | 
|---|
| 2008 |       IFS="$lt_save_ifs"
 | 
|---|
| 2009 |       ;;
 | 
|---|
| 2010 |     esac],
 | 
|---|
| 2011 |     [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
 | 
|---|
| 2012 | ])# AC_ENABLE_SHARED
 | 
|---|
| 2013 | 
 | 
|---|
| 2014 | 
 | 
|---|
| 2015 | # AC_DISABLE_SHARED
 | 
|---|
| 2016 | # -----------------
 | 
|---|
| 2017 | # set the default shared flag to --disable-shared
 | 
|---|
| 2018 | AC_DEFUN([AC_DISABLE_SHARED],
 | 
|---|
| 2019 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 | 
|---|
| 2020 | AC_ENABLE_SHARED(no)
 | 
|---|
| 2021 | ])# AC_DISABLE_SHARED
 | 
|---|
| 2022 | 
 | 
|---|
| 2023 | 
 | 
|---|
| 2024 | # AC_ENABLE_STATIC([DEFAULT])
 | 
|---|
| 2025 | # ---------------------------
 | 
|---|
| 2026 | # implement the --enable-static flag
 | 
|---|
| 2027 | # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 | 
|---|
| 2028 | AC_DEFUN([AC_ENABLE_STATIC],
 | 
|---|
| 2029 | [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
 | 
|---|
| 2030 | AC_ARG_ENABLE([static],
 | 
|---|
| 2031 |     [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 | 
|---|
| 2032 |         [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
 | 
|---|
| 2033 |     [p=${PACKAGE-default}
 | 
|---|
| 2034 |     case $enableval in
 | 
|---|
| 2035 |     yes) enable_static=yes ;;
 | 
|---|
| 2036 |     no) enable_static=no ;;
 | 
|---|
| 2037 |     *)
 | 
|---|
| 2038 |      enable_static=no
 | 
|---|
| 2039 |       # Look at the argument we got.  We use all the common list separators.
 | 
|---|
| 2040 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 | 
|---|
| 2041 |       for pkg in $enableval; do
 | 
|---|
| 2042 |         IFS="$lt_save_ifs"
 | 
|---|
| 2043 |         if test "X$pkg" = "X$p"; then
 | 
|---|
| 2044 |           enable_static=yes
 | 
|---|
| 2045 |         fi
 | 
|---|
| 2046 |       done
 | 
|---|
| 2047 |       IFS="$lt_save_ifs"
 | 
|---|
| 2048 |       ;;
 | 
|---|
| 2049 |     esac],
 | 
|---|
| 2050 |     [enable_static=]AC_ENABLE_STATIC_DEFAULT)
 | 
|---|
| 2051 | ])# AC_ENABLE_STATIC
 | 
|---|
| 2052 | 
 | 
|---|
| 2053 | 
 | 
|---|
| 2054 | # AC_DISABLE_STATIC
 | 
|---|
| 2055 | # -----------------
 | 
|---|
| 2056 | # set the default static flag to --disable-static
 | 
|---|
| 2057 | AC_DEFUN([AC_DISABLE_STATIC],
 | 
|---|
| 2058 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 | 
|---|
| 2059 | AC_ENABLE_STATIC(no)
 | 
|---|
| 2060 | ])# AC_DISABLE_STATIC
 | 
|---|
| 2061 | 
 | 
|---|
| 2062 | 
 | 
|---|
| 2063 | # AC_ENABLE_FAST_INSTALL([DEFAULT])
 | 
|---|
| 2064 | # ---------------------------------
 | 
|---|
| 2065 | # implement the --enable-fast-install flag
 | 
|---|
| 2066 | # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 | 
|---|
| 2067 | AC_DEFUN([AC_ENABLE_FAST_INSTALL],
 | 
|---|
| 2068 | [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
 | 
|---|
| 2069 | AC_ARG_ENABLE([fast-install],
 | 
|---|
| 2070 |     [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 | 
|---|
| 2071 |     [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 | 
|---|
| 2072 |     [p=${PACKAGE-default}
 | 
|---|
| 2073 |     case $enableval in
 | 
|---|
| 2074 |     yes) enable_fast_install=yes ;;
 | 
|---|
| 2075 |     no) enable_fast_install=no ;;
 | 
|---|
| 2076 |     *)
 | 
|---|
| 2077 |       enable_fast_install=no
 | 
|---|
| 2078 |       # Look at the argument we got.  We use all the common list separators.
 | 
|---|
| 2079 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 | 
|---|
| 2080 |       for pkg in $enableval; do
 | 
|---|
| 2081 |         IFS="$lt_save_ifs"
 | 
|---|
| 2082 |         if test "X$pkg" = "X$p"; then
 | 
|---|
| 2083 |           enable_fast_install=yes
 | 
|---|
| 2084 |         fi
 | 
|---|
| 2085 |       done
 | 
|---|
| 2086 |       IFS="$lt_save_ifs"
 | 
|---|
| 2087 |       ;;
 | 
|---|
| 2088 |     esac],
 | 
|---|
| 2089 |     [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
 | 
|---|
| 2090 | ])# AC_ENABLE_FAST_INSTALL
 | 
|---|
| 2091 | 
 | 
|---|
| 2092 | 
 | 
|---|
| 2093 | # AC_DISABLE_FAST_INSTALL
 | 
|---|
| 2094 | # -----------------------
 | 
|---|
| 2095 | # set the default to --disable-fast-install
 | 
|---|
| 2096 | AC_DEFUN([AC_DISABLE_FAST_INSTALL],
 | 
|---|
| 2097 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 | 
|---|
| 2098 | AC_ENABLE_FAST_INSTALL(no)
 | 
|---|
| 2099 | ])# AC_DISABLE_FAST_INSTALL
 | 
|---|
| 2100 | 
 | 
|---|
| 2101 | 
 | 
|---|
| 2102 | # AC_LIBTOOL_PICMODE([MODE])
 | 
|---|
| 2103 | # --------------------------
 | 
|---|
| 2104 | # implement the --with-pic flag
 | 
|---|
| 2105 | # MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 | 
|---|
| 2106 | AC_DEFUN([AC_LIBTOOL_PICMODE],
 | 
|---|
| 2107 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 | 
|---|
| 2108 | pic_mode=ifelse($#,1,$1,default)
 | 
|---|
| 2109 | ])# AC_LIBTOOL_PICMODE
 | 
|---|
| 2110 | 
 | 
|---|
| 2111 | 
 | 
|---|
| 2112 | # AC_PROG_EGREP
 | 
|---|
| 2113 | # -------------
 | 
|---|
| 2114 | # This is predefined starting with Autoconf 2.54, so this conditional
 | 
|---|
| 2115 | # definition can be removed once we require Autoconf 2.54 or later.
 | 
|---|
| 2116 | m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
 | 
|---|
| 2117 | [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
 | 
|---|
| 2118 |    [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 | 
|---|
| 2119 |     then ac_cv_prog_egrep='grep -E'
 | 
|---|
| 2120 |     else ac_cv_prog_egrep='egrep'
 | 
|---|
| 2121 |     fi])
 | 
|---|
| 2122 |  EGREP=$ac_cv_prog_egrep
 | 
|---|
| 2123 |  AC_SUBST([EGREP])
 | 
|---|
| 2124 | ])])
 | 
|---|
| 2125 | 
 | 
|---|
| 2126 | 
 | 
|---|
| 2127 | # AC_PATH_TOOL_PREFIX
 | 
|---|
| 2128 | # -------------------
 | 
|---|
| 2129 | # find a file program which can recognise shared library
 | 
|---|
| 2130 | AC_DEFUN([AC_PATH_TOOL_PREFIX],
 | 
|---|
| 2131 | [AC_REQUIRE([AC_PROG_EGREP])dnl
 | 
|---|
| 2132 | AC_MSG_CHECKING([for $1])
 | 
|---|
| 2133 | AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
 | 
|---|
| 2134 | [case $MAGIC_CMD in
 | 
|---|
| 2135 | [[\\/*] |  ?:[\\/]*])
 | 
|---|
| 2136 |   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 | 
|---|
| 2137 |   ;;
 | 
|---|
| 2138 | *)
 | 
|---|
| 2139 |   lt_save_MAGIC_CMD="$MAGIC_CMD"
 | 
|---|
| 2140 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 | 
|---|
| 2141 | dnl $ac_dummy forces splitting on constant user-supplied paths.
 | 
|---|
| 2142 | dnl POSIX.2 word splitting is done only on the output of word expansions,
 | 
|---|
| 2143 | dnl not every word.  This closes a longstanding sh security hole.
 | 
|---|
| 2144 |   ac_dummy="ifelse([$2], , $PATH, [$2])"
 | 
|---|
| 2145 |   for ac_dir in $ac_dummy; do
 | 
|---|
| 2146 |     IFS="$lt_save_ifs"
 | 
|---|
| 2147 |     test -z "$ac_dir" && ac_dir=.
 | 
|---|
| 2148 |     if test -f $ac_dir/$1; then
 | 
|---|
| 2149 |       lt_cv_path_MAGIC_CMD="$ac_dir/$1"
 | 
|---|
| 2150 |       if test -n "$file_magic_test_file"; then
 | 
|---|
| 2151 |         case $deplibs_check_method in
 | 
|---|
| 2152 |         "file_magic "*)
 | 
|---|
| 2153 |           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 | 
|---|
| 2154 |           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 | 
|---|
| 2155 |           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 | 
|---|
| 2156 |             $EGREP "$file_magic_regex" > /dev/null; then
 | 
|---|
| 2157 |             :
 | 
|---|
| 2158 |           else
 | 
|---|
| 2159 |             cat <<EOF 1>&2
 | 
|---|
| 2160 | 
 | 
|---|
| 2161 | *** Warning: the command libtool uses to detect shared libraries,
 | 
|---|
| 2162 | *** $file_magic_cmd, produces output that libtool cannot recognize.
 | 
|---|
| 2163 | *** The result is that libtool may fail to recognize shared libraries
 | 
|---|
| 2164 | *** as such.  This will affect the creation of libtool libraries that
 | 
|---|
| 2165 | *** depend on shared libraries, but programs linked with such libtool
 | 
|---|
| 2166 | *** libraries will work regardless of this problem.  Nevertheless, you
 | 
|---|
| 2167 | *** may want to report the problem to your system manager and/or to
 | 
|---|
| 2168 | *** bug-libtool@gnu.org
 | 
|---|
| 2169 | 
 | 
|---|
| 2170 | EOF
 | 
|---|
| 2171 |           fi ;;
 | 
|---|
| 2172 |         esac
 | 
|---|
| 2173 |       fi
 | 
|---|
| 2174 |       break
 | 
|---|
| 2175 |     fi
 | 
|---|
| 2176 |   done
 | 
|---|
| 2177 |   IFS="$lt_save_ifs"
 | 
|---|
| 2178 |   MAGIC_CMD="$lt_save_MAGIC_CMD"
 | 
|---|
| 2179 |   ;;
 | 
|---|
| 2180 | esac])
 | 
|---|
| 2181 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 | 
|---|
| 2182 | if test -n "$MAGIC_CMD"; then
 | 
|---|
| 2183 |   AC_MSG_RESULT($MAGIC_CMD)
 | 
|---|
| 2184 | else
 | 
|---|
| 2185 |   AC_MSG_RESULT(no)
 | 
|---|
| 2186 | fi
 | 
|---|
| 2187 | ])# AC_PATH_TOOL_PREFIX
 | 
|---|
| 2188 | 
 | 
|---|
| 2189 | 
 | 
|---|
| 2190 | # AC_PATH_MAGIC
 | 
|---|
| 2191 | # -------------
 | 
|---|
| 2192 | # find a file program which can recognise a shared library
 | 
|---|
| 2193 | AC_DEFUN([AC_PATH_MAGIC],
 | 
|---|
| 2194 | [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 | 
|---|
| 2195 | if test -z "$lt_cv_path_MAGIC_CMD"; then
 | 
|---|
| 2196 |   if test -n "$ac_tool_prefix"; then
 | 
|---|
| 2197 |     AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 | 
|---|
| 2198 |   else
 | 
|---|
| 2199 |     MAGIC_CMD=:
 | 
|---|
| 2200 |   fi
 | 
|---|
| 2201 | fi
 | 
|---|
| 2202 | ])# AC_PATH_MAGIC
 | 
|---|
| 2203 | 
 | 
|---|
| 2204 | 
 | 
|---|
| 2205 | # AC_PROG_LD
 | 
|---|
| 2206 | # ----------
 | 
|---|
| 2207 | # find the pathname to the GNU or non-GNU linker
 | 
|---|
| 2208 | AC_DEFUN([AC_PROG_LD],
 | 
|---|
| 2209 | [AC_ARG_WITH([gnu-ld],
 | 
|---|
| 2210 |     [AC_HELP_STRING([--with-gnu-ld],
 | 
|---|
| 2211 |         [assume the C compiler uses GNU ld @<:@default=no@:>@])],
 | 
|---|
| 2212 |     [test "$withval" = no || with_gnu_ld=yes],
 | 
|---|
| 2213 |     [with_gnu_ld=no])
 | 
|---|
| 2214 | AC_REQUIRE([LT_AC_PROG_SED])dnl
 | 
|---|
| 2215 | AC_REQUIRE([AC_PROG_CC])dnl
 | 
|---|
| 2216 | AC_REQUIRE([AC_CANONICAL_HOST])dnl
 | 
|---|
| 2217 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 | 
|---|
| 2218 | ac_prog=ld
 | 
|---|
| 2219 | if test "$GCC" = yes; then
 | 
|---|
| 2220 |   # Check if gcc -print-prog-name=ld gives a path.
 | 
|---|
| 2221 |   AC_MSG_CHECKING([for ld used by $CC])
 | 
|---|
| 2222 |   case $host in
 | 
|---|
| 2223 |   *-*-mingw*)
 | 
|---|
| 2224 |     # gcc leaves a trailing carriage return which upsets mingw
 | 
|---|
| 2225 |     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 | 
|---|
| 2226 |   *)
 | 
|---|
| 2227 |     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 | 
|---|
| 2228 |   esac
 | 
|---|
| 2229 |   case $ac_prog in
 | 
|---|
| 2230 |     # Accept absolute paths.
 | 
|---|
| 2231 |     [[\\/]]* | ?:[[\\/]]*)
 | 
|---|
| 2232 |       re_direlt='/[[^/]][[^/]]*/\.\./'
 | 
|---|
| 2233 |       # Canonicalize the pathname of ld
 | 
|---|
| 2234 |       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 | 
|---|
| 2235 |       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 | 
|---|
| 2236 |         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 | 
|---|
| 2237 |       done
 | 
|---|
| 2238 |       test -z "$LD" && LD="$ac_prog"
 | 
|---|
| 2239 |       ;;
 | 
|---|
| 2240 |   "")
 | 
|---|
| 2241 |     # If it fails, then pretend we aren't using GCC.
 | 
|---|
| 2242 |     ac_prog=ld
 | 
|---|
| 2243 |     ;;
 | 
|---|
| 2244 |   *)
 | 
|---|
| 2245 |     # If it is relative, then search for the first ld in PATH.
 | 
|---|
| 2246 |     with_gnu_ld=unknown
 | 
|---|
| 2247 |     ;;
 | 
|---|
| 2248 |   esac
 | 
|---|
| 2249 | elif test "$with_gnu_ld" = yes; then
 | 
|---|
| 2250 |   AC_MSG_CHECKING([for GNU ld])
 | 
|---|
| 2251 | else
 | 
|---|
| 2252 |   AC_MSG_CHECKING([for non-GNU ld])
 | 
|---|
| 2253 | fi
 | 
|---|
| 2254 | AC_CACHE_VAL(lt_cv_path_LD,
 | 
|---|
| 2255 | [if test -z "$LD"; then
 | 
|---|
| 2256 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 | 
|---|
| 2257 |   for ac_dir in $PATH; do
 | 
|---|
| 2258 |     IFS="$lt_save_ifs"
 | 
|---|
| 2259 |     test -z "$ac_dir" && ac_dir=.
 | 
|---|
| 2260 |     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 | 
|---|
| 2261 |       lt_cv_path_LD="$ac_dir/$ac_prog"
 | 
|---|
| 2262 |       # Check to see if the program is GNU ld.  I'd rather use --version,
 | 
|---|
| 2263 |       # but apparently some variants of GNU ld only accept -v.
 | 
|---|
| 2264 |       # Break only if it was the GNU/non-GNU ld that we prefer.
 | 
|---|
| 2265 |       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 | 
|---|
| 2266 |       *GNU* | *'with BFD'*)
 | 
|---|
| 2267 |         test "$with_gnu_ld" != no && break
 | 
|---|
| 2268 |         ;;
 | 
|---|
| 2269 |       *)
 | 
|---|
| 2270 |         test "$with_gnu_ld" != yes && break
 | 
|---|
| 2271 |         ;;
 | 
|---|
| 2272 |       esac
 | 
|---|
| 2273 |     fi
 | 
|---|
| 2274 |   done
 | 
|---|
| 2275 |   IFS="$lt_save_ifs"
 | 
|---|
| 2276 | else
 | 
|---|
| 2277 |   lt_cv_path_LD="$LD" # Let the user override the test with a path.
 | 
|---|
| 2278 | fi])
 | 
|---|
| 2279 | LD="$lt_cv_path_LD"
 | 
|---|
| 2280 | if test -n "$LD"; then
 | 
|---|
| 2281 |   AC_MSG_RESULT($LD)
 | 
|---|
| 2282 | else
 | 
|---|
| 2283 |   AC_MSG_RESULT(no)
 | 
|---|
| 2284 | fi
 | 
|---|
| 2285 | test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
 | 
|---|
| 2286 | AC_PROG_LD_GNU
 | 
|---|
| 2287 | ])# AC_PROG_LD
 | 
|---|
| 2288 | 
 | 
|---|
| 2289 | 
 | 
|---|
| 2290 | # AC_PROG_LD_GNU
 | 
|---|
| 2291 | # --------------
 | 
|---|
| 2292 | AC_DEFUN([AC_PROG_LD_GNU],
 | 
|---|
| 2293 | [AC_REQUIRE([AC_PROG_EGREP])dnl
 | 
|---|
| 2294 | AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 | 
|---|
| 2295 | [# I'd rather use --version here, but apparently some GNU lds only accept -v.
 | 
|---|
| 2296 | case `$LD -v 2>&1 </dev/null` in
 | 
|---|
| 2297 | *GNU* | *'with BFD'*)
 | 
|---|
| 2298 |   lt_cv_prog_gnu_ld=yes
 | 
|---|
| 2299 |   ;;
 | 
|---|
| 2300 | *)
 | 
|---|
| 2301 |   lt_cv_prog_gnu_ld=no
 | 
|---|
| 2302 |   ;;
 | 
|---|
| 2303 | esac])
 | 
|---|
| 2304 | with_gnu_ld=$lt_cv_prog_gnu_ld
 | 
|---|
| 2305 | ])# AC_PROG_LD_GNU
 | 
|---|
| 2306 | 
 | 
|---|
| 2307 | 
 | 
|---|
| 2308 | # AC_PROG_LD_RELOAD_FLAG
 | 
|---|
| 2309 | # ----------------------
 | 
|---|
| 2310 | # find reload flag for linker
 | 
|---|
| 2311 | #   -- PORTME Some linkers may need a different reload flag.
 | 
|---|
| 2312 | AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
 | 
|---|
| 2313 | [AC_CACHE_CHECK([for $LD option to reload object files],
 | 
|---|
| 2314 |   lt_cv_ld_reload_flag,
 | 
|---|
| 2315 |   [lt_cv_ld_reload_flag='-r'])
 | 
|---|
| 2316 | reload_flag=$lt_cv_ld_reload_flag
 | 
|---|
| 2317 | case $reload_flag in
 | 
|---|
| 2318 | "" | " "*) ;;
 | 
|---|
| 2319 | *) reload_flag=" $reload_flag" ;;
 | 
|---|
| 2320 | esac
 | 
|---|
| 2321 | reload_cmds='$LD$reload_flag -o $output$reload_objs'
 | 
|---|
| 2322 | case $host_os in
 | 
|---|
| 2323 |   darwin*)
 | 
|---|
| 2324 |     if test "$GCC" = yes; then
 | 
|---|
| 2325 |       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 | 
|---|
| 2326 |     else
 | 
|---|
| 2327 |       reload_cmds='$LD$reload_flag -o $output$reload_objs'
 | 
|---|
| 2328 |     fi
 | 
|---|
| 2329 |     ;;
 | 
|---|
| 2330 | esac
 | 
|---|
| 2331 | ])# AC_PROG_LD_RELOAD_FLAG
 | 
|---|
| 2332 | 
 | 
|---|
| 2333 | 
 | 
|---|
| 2334 | # AC_DEPLIBS_CHECK_METHOD
 | 
|---|
| 2335 | # -----------------------
 | 
|---|
| 2336 | # how to check for library dependencies
 | 
|---|
| 2337 | #  -- PORTME fill in with the dynamic library characteristics
 | 
|---|
| 2338 | AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
 | 
|---|
| 2339 | [AC_CACHE_CHECK([how to recognise dependent libraries],
 | 
|---|
| 2340 | lt_cv_deplibs_check_method,
 | 
|---|
| 2341 | [lt_cv_file_magic_cmd='$MAGIC_CMD'
 | 
|---|
| 2342 | lt_cv_file_magic_test_file=
 | 
|---|
| 2343 | lt_cv_deplibs_check_method='unknown'
 | 
|---|
| 2344 | # Need to set the preceding variable on all platforms that support
 | 
|---|
| 2345 | # interlibrary dependencies.
 | 
|---|
| 2346 | # 'none' -- dependencies not supported.
 | 
|---|
| 2347 | # `unknown' -- same as none, but documents that we really don't know.
 | 
|---|
| 2348 | # 'pass_all' -- all dependencies passed with no checks.
 | 
|---|
| 2349 | # 'test_compile' -- check by making test program.
 | 
|---|
| 2350 | # 'file_magic [[regex]]' -- check by looking for files in library path
 | 
|---|
| 2351 | # which responds to the $file_magic_cmd with a given extended regex.
 | 
|---|
| 2352 | # If you have `file' or equivalent on your system and you're not sure
 | 
|---|
| 2353 | # whether `pass_all' will *always* work, you probably want this one.
 | 
|---|
| 2354 | 
 | 
|---|
| 2355 | case $host_os in
 | 
|---|
| 2356 | aix4* | aix5*)
 | 
|---|
| 2357 |   lt_cv_deplibs_check_method=pass_all
 | 
|---|
| 2358 |   ;;
 | 
|---|
| 2359 | 
 | 
|---|
| 2360 | beos*)
 | 
|---|
| 2361 |   lt_cv_deplibs_check_method=pass_all
 | 
|---|
| 2362 |   ;;
 | 
|---|
| 2363 | 
 | 
|---|
| 2364 | bsdi[[45]]*)
 | 
|---|
| 2365 |   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
 | 
|---|
| 2366 |   lt_cv_file_magic_cmd='/usr/bin/file -L'
 | 
|---|
| 2367 |   lt_cv_file_magic_test_file=/shlib/libc.so
 | 
|---|
| 2368 |   ;;
 | 
|---|
| 2369 | 
 | 
|---|
| 2370 | cygwin*)
 | 
|---|
| 2371 |   # func_win32_libid is a shell function defined in ltmain.sh
 | 
|---|
| 2372 |   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 | 
|---|
| 2373 |   lt_cv_file_magic_cmd='func_win32_libid'
 | 
|---|
| 2374 |   ;;
 | 
|---|
| 2375 | 
 | 
|---|
| 2376 | mingw* | pw32*)
 | 
|---|
| 2377 |   # Base MSYS/MinGW do not provide the 'file' command needed by
 | 
|---|
| 2378 |   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 | 
|---|
| 2379 |   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 | 
|---|
| 2380 |   lt_cv_file_magic_cmd='$OBJDUMP -f'
 | 
|---|
| 2381 |   ;;
 | 
|---|
| 2382 | 
 | 
|---|
| 2383 | darwin* | rhapsody*)
 | 
|---|
| 2384 |   lt_cv_deplibs_check_method=pass_all
 | 
|---|
| 2385 |   ;;
 | 
|---|
| 2386 | 
 | 
|---|
| 2387 | freebsd* | kfreebsd*-gnu | dragonfly*)
 | 
|---|
| 2388 |   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 | 
|---|
| 2389 |     case $host_cpu in
 | 
|---|
| 2390 |     i*86 )
 | 
|---|
| 2391 |       # Not sure whether the presence of OpenBSD here was a mistake.
 | 
|---|
| 2392 |       # Let's accept both of them until this is cleared up.
 | 
|---|
| 2393 |       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
 | 
|---|
| 2394 |       lt_cv_file_magic_cmd=/usr/bin/file
 | 
|---|
| 2395 |       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 | 
|---|
| 2396 |       ;;
 | 
|---|
| 2397 |     esac
 | 
|---|
| 2398 |   else
 | 
|---|
| 2399 |     lt_cv_deplibs_check_method=pass_all
 | 
|---|
| 2400 |   fi
 | 
|---|
| 2401 |   ;;
 | 
|---|
| 2402 | 
 | 
|---|
| 2403 | gnu*)
 | 
|---|
| 2404 |   lt_cv_deplibs_check_method=pass_all
 | 
|---|
| 2405 |   ;;
 | 
|---|
| 2406 | 
 | 
|---|
| 2407 | hpux10.20* | hpux11*)
 | 
|---|
| 2408 |   lt_cv_file_magic_cmd=/usr/bin/file
 | 
|---|
| 2409 |   case $host_cpu in
 | 
|---|
| 2410 |   ia64*)
 | 
|---|
| 2411 |     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
 | 
|---|
| 2412 |     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 | 
|---|
| 2413 |     ;;
 | 
|---|
| 2414 |   hppa*64*)
 | 
|---|
| 2415 |     [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]']
 | 
|---|
| 2416 |     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 | 
|---|
| 2417 |     ;;
 | 
|---|
| 2418 |   *)
 | 
|---|
| 2419 |     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 | 
|---|
| 2420 |     lt_cv_file_magic_test_file=/usr/lib/libc.sl
 | 
|---|
| 2421 |     ;;
 | 
|---|
| 2422 |   esac
 | 
|---|
| 2423 |   ;;
 | 
|---|
| 2424 | 
 | 
|---|
| 2425 | interix3*)
 | 
|---|
| 2426 |   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 | 
|---|
| 2427 |   lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 | 
|---|
| 2428 |   ;;
 | 
|---|
| 2429 | 
 | 
|---|
| 2430 | irix5* | irix6* | nonstopux*)
 | 
|---|
| 2431 |   case $LD in
 | 
|---|
| 2432 |   *-32|*"-32 ") libmagic=32-bit;;
 | 
|---|
| 2433 |   *-n32|*"-n32 ") libmagic=N32;;
 | 
|---|
| 2434 |   *-64|*"-64 ") libmagic=64-bit;;
 | 
|---|
| 2435 |   *) libmagic=never-match;;
 | 
|---|
| 2436 |   esac
 | 
|---|
| 2437 |   lt_cv_deplibs_check_method=pass_all
 | 
|---|
| 2438 |   ;;
 | 
|---|
| 2439 | 
 | 
|---|
| 2440 | # This must be Linux ELF.
 | 
|---|
| 2441 | linux*)
 | 
|---|
| 2442 |   lt_cv_deplibs_check_method=pass_all
 | 
|---|
| 2443 |   ;;
 | 
|---|
| 2444 | 
 | 
|---|
| 2445 | netbsd*)
 | 
|---|
| 2446 |   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 | 
|---|
| 2447 |     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 | 
|---|
| 2448 |   else
 | 
|---|
| 2449 |     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
 | 
|---|
| 2450 |   fi
 | 
|---|
| 2451 |   ;;
 | 
|---|
| 2452 | 
 | 
|---|
| 2453 | newos6*)
 | 
|---|
| 2454 |   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
 | 
|---|
| 2455 |   lt_cv_file_magic_cmd=/usr/bin/file
 | 
|---|
| 2456 |   lt_cv_file_magic_test_file=/usr/lib/libnls.so
 | 
|---|
| 2457 |   ;;
 | 
|---|
| 2458 | 
 | 
|---|
| 2459 | nto-qnx*)
 | 
|---|
| 2460 |   lt_cv_deplibs_check_method=unknown
 | 
|---|
| 2461 |   ;;
 | 
|---|
| 2462 | 
 | 
|---|
| 2463 | openbsd*)
 | 
|---|
| 2464 |   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 | 
|---|
| 2465 |     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
 | 
|---|
| 2466 |   else
 | 
|---|
| 2467 |     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 | 
|---|
| 2468 |   fi
 | 
|---|
| 2469 |   ;;
 | 
|---|
| 2470 | 
 | 
|---|
| 2471 | osf3* | osf4* | osf5*)
 | 
|---|
| 2472 |   lt_cv_deplibs_check_method=pass_all
 | 
|---|
| 2473 |   ;;
 | 
|---|
| 2474 | 
 | 
|---|
| 2475 | solaris*)
 | 
|---|
| 2476 |   lt_cv_deplibs_check_method=pass_all
 | 
|---|
| 2477 |   ;;
 | 
|---|
| 2478 | 
 | 
|---|
| 2479 | sysv4 | sysv4.3*)
 | 
|---|
| 2480 |   case $host_vendor in
 | 
|---|
| 2481 |   motorola)
 | 
|---|
| 2482 |     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]]'
 | 
|---|
| 2483 |     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 | 
|---|
| 2484 |     ;;
 | 
|---|
| 2485 |   ncr)
 | 
|---|
| 2486 |     lt_cv_deplibs_check_method=pass_all
 | 
|---|
| 2487 |     ;;
 | 
|---|
| 2488 |   sequent)
 | 
|---|
| 2489 |     lt_cv_file_magic_cmd='/bin/file'
 | 
|---|
| 2490 |     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
 | 
|---|
| 2491 |     ;;
 | 
|---|
| 2492 |   sni)
 | 
|---|
| 2493 |     lt_cv_file_magic_cmd='/bin/file'
 | 
|---|
| 2494 |     lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
 | 
|---|
| 2495 |     lt_cv_file_magic_test_file=/lib/libc.so
 | 
|---|
| 2496 |     ;;
 | 
|---|
| 2497 |   siemens)
 | 
|---|
| 2498 |     lt_cv_deplibs_check_method=pass_all
 | 
|---|
| 2499 |     ;;
 | 
|---|
| 2500 |   pc)
 | 
|---|
| 2501 |     lt_cv_deplibs_check_method=pass_all
 | 
|---|
| 2502 |     ;;
 | 
|---|
| 2503 |   esac
 | 
|---|
| 2504 |   ;;
 | 
|---|
| 2505 | 
 | 
|---|
| 2506 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 | 
|---|
| 2507 |   lt_cv_deplibs_check_method=pass_all
 | 
|---|
| 2508 |   ;;
 | 
|---|
| 2509 | esac
 | 
|---|
| 2510 | ])
 | 
|---|
| 2511 | file_magic_cmd=$lt_cv_file_magic_cmd
 | 
|---|
| 2512 | deplibs_check_method=$lt_cv_deplibs_check_method
 | 
|---|
| 2513 | test -z "$deplibs_check_method" && deplibs_check_method=unknown
 | 
|---|
| 2514 | ])# AC_DEPLIBS_CHECK_METHOD
 | 
|---|
| 2515 | 
 | 
|---|
| 2516 | 
 | 
|---|
| 2517 | # AC_PROG_NM
 | 
|---|
| 2518 | # ----------
 | 
|---|
| 2519 | # find the pathname to a BSD-compatible name lister
 | 
|---|
| 2520 | AC_DEFUN([AC_PROG_NM],
 | 
|---|
| 2521 | [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 | 
|---|
| 2522 | [if test -n "$NM"; then
 | 
|---|
| 2523 |   # Let the user override the test.
 | 
|---|
| 2524 |   lt_cv_path_NM="$NM"
 | 
|---|
| 2525 | else
 | 
|---|
| 2526 |   lt_nm_to_check="${ac_tool_prefix}nm"
 | 
|---|
| 2527 |   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 | 
|---|
| 2528 |     lt_nm_to_check="$lt_nm_to_check nm"
 | 
|---|
| 2529 |   fi
 | 
|---|
| 2530 |   for lt_tmp_nm in $lt_nm_to_check; do
 | 
|---|
| 2531 |     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 | 
|---|
| 2532 |     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 | 
|---|
| 2533 |       IFS="$lt_save_ifs"
 | 
|---|
| 2534 |       test -z "$ac_dir" && ac_dir=.
 | 
|---|
| 2535 |       tmp_nm="$ac_dir/$lt_tmp_nm"
 | 
|---|
| 2536 |       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 | 
|---|
| 2537 |         # Check to see if the nm accepts a BSD-compat flag.
 | 
|---|
| 2538 |         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 | 
|---|
| 2539 |         #   nm: unknown option "B" ignored
 | 
|---|
| 2540 |         # Tru64's nm complains that /dev/null is an invalid object file
 | 
|---|
| 2541 |         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 | 
|---|
| 2542 |         */dev/null* | *'Invalid file or object type'*)
 | 
|---|
| 2543 |           lt_cv_path_NM="$tmp_nm -B"
 | 
|---|
| 2544 |           break
 | 
|---|
| 2545 |           ;;
 | 
|---|
| 2546 |         *)
 | 
|---|
| 2547 |           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 | 
|---|
| 2548 |           */dev/null*)
 | 
|---|
| 2549 |             lt_cv_path_NM="$tmp_nm -p"
 | 
|---|
| 2550 |             break
 | 
|---|
| 2551 |             ;;
 | 
|---|
| 2552 |           *)
 | 
|---|
| 2553 |             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 | 
|---|
| 2554 |             continue # so that we can try to find one that supports BSD flags
 | 
|---|
| 2555 |             ;;
 | 
|---|
| 2556 |           esac
 | 
|---|
| 2557 |           ;;
 | 
|---|
| 2558 |         esac
 | 
|---|
| 2559 |       fi
 | 
|---|
| 2560 |     done
 | 
|---|
| 2561 |     IFS="$lt_save_ifs"
 | 
|---|
| 2562 |   done
 | 
|---|
| 2563 |   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 | 
|---|
| 2564 | fi])
 | 
|---|
| 2565 | NM="$lt_cv_path_NM"
 | 
|---|
| 2566 | ])# AC_PROG_NM
 | 
|---|
| 2567 | 
 | 
|---|
| 2568 | 
 | 
|---|
| 2569 | # AC_CHECK_LIBM
 | 
|---|
| 2570 | # -------------
 | 
|---|
| 2571 | # check for math library
 | 
|---|
| 2572 | AC_DEFUN([AC_CHECK_LIBM],
 | 
|---|
| 2573 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 | 
|---|
| 2574 | LIBM=
 | 
|---|
| 2575 | case $host in
 | 
|---|
| 2576 | *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 | 
|---|
| 2577 |   # These system don't have libm, or don't need it
 | 
|---|
| 2578 |   ;;
 | 
|---|
| 2579 | *-ncr-sysv4.3*)
 | 
|---|
| 2580 |   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
 | 
|---|
| 2581 |   AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
 | 
|---|
| 2582 |   ;;
 | 
|---|
| 2583 | *)
 | 
|---|
| 2584 |   AC_CHECK_LIB(m, cos, LIBM="-lm")
 | 
|---|
| 2585 |   ;;
 | 
|---|
| 2586 | esac
 | 
|---|
| 2587 | ])# AC_CHECK_LIBM
 | 
|---|
| 2588 | 
 | 
|---|
| 2589 | 
 | 
|---|
| 2590 | # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
 | 
|---|
| 2591 | # -----------------------------------
 | 
|---|
| 2592 | # sets LIBLTDL to the link flags for the libltdl convenience library and
 | 
|---|
| 2593 | # LTDLINCL to the include flags for the libltdl header and adds
 | 
|---|
| 2594 | # --enable-ltdl-convenience to the configure arguments.  Note that
 | 
|---|
| 2595 | # AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 | 
|---|
| 2596 | # it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 | 
|---|
| 2597 | # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 | 
|---|
| 2598 | # (note the single quotes!).  If your package is not flat and you're not
 | 
|---|
| 2599 | # using automake, define top_builddir and top_srcdir appropriately in
 | 
|---|
| 2600 | # the Makefiles.
 | 
|---|
| 2601 | AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
 | 
|---|
| 2602 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 | 
|---|
| 2603 |   case $enable_ltdl_convenience in
 | 
|---|
| 2604 |   no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
 | 
|---|
| 2605 |   "") enable_ltdl_convenience=yes
 | 
|---|
| 2606 |       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
 | 
|---|
| 2607 |   esac
 | 
|---|
| 2608 |   LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
 | 
|---|
| 2609 |   LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 | 
|---|
| 2610 |   # For backwards non-gettext consistent compatibility...
 | 
|---|
| 2611 |   INCLTDL="$LTDLINCL"
 | 
|---|
| 2612 | ])# AC_LIBLTDL_CONVENIENCE
 | 
|---|
| 2613 | 
 | 
|---|
| 2614 | 
 | 
|---|
| 2615 | # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
 | 
|---|
| 2616 | # -----------------------------------
 | 
|---|
| 2617 | # sets LIBLTDL to the link flags for the libltdl installable library and
 | 
|---|
| 2618 | # LTDLINCL to the include flags for the libltdl header and adds
 | 
|---|
| 2619 | # --enable-ltdl-install to the configure arguments.  Note that
 | 
|---|
| 2620 | # AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 | 
|---|
| 2621 | # and an installed libltdl is not found, it is assumed to be `libltdl'.
 | 
|---|
| 2622 | # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 | 
|---|
| 2623 | # '${top_srcdir}/' (note the single quotes!).  If your package is not
 | 
|---|
| 2624 | # flat and you're not using automake, define top_builddir and top_srcdir
 | 
|---|
| 2625 | # appropriately in the Makefiles.
 | 
|---|
| 2626 | # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
 | 
|---|
| 2627 | AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
 | 
|---|
| 2628 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 | 
|---|
| 2629 |   AC_CHECK_LIB(ltdl, lt_dlinit,
 | 
|---|
| 2630 |   [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
 | 
|---|
| 2631 |   [if test x"$enable_ltdl_install" = xno; then
 | 
|---|
| 2632 |      AC_MSG_WARN([libltdl not installed, but installation disabled])
 | 
|---|
| 2633 |    else
 | 
|---|
| 2634 |      enable_ltdl_install=yes
 | 
|---|
| 2635 |    fi
 | 
|---|
| 2636 |   ])
 | 
|---|
| 2637 |   if test x"$enable_ltdl_install" = x"yes"; then
 | 
|---|
| 2638 |     ac_configure_args="$ac_configure_args --enable-ltdl-install"
 | 
|---|
| 2639 |     LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
 | 
|---|
| 2640 |     LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 | 
|---|
| 2641 |   else
 | 
|---|
| 2642 |     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
 | 
|---|
| 2643 |     LIBLTDL="-lltdl"
 | 
|---|
| 2644 |     LTDLINCL=
 | 
|---|
| 2645 |   fi
 | 
|---|
| 2646 |   # For backwards non-gettext consistent compatibility...
 | 
|---|
| 2647 |   INCLTDL="$LTDLINCL"
 | 
|---|
| 2648 | ])# AC_LIBLTDL_INSTALLABLE
 | 
|---|
| 2649 | 
 | 
|---|
| 2650 | 
 | 
|---|
| 2651 | # AC_LIBTOOL_CXX
 | 
|---|
| 2652 | # --------------
 | 
|---|
| 2653 | # enable support for C++ libraries
 | 
|---|
| 2654 | AC_DEFUN([AC_LIBTOOL_CXX],
 | 
|---|
| 2655 | [AC_REQUIRE([_LT_AC_LANG_CXX])
 | 
|---|
| 2656 | ])# AC_LIBTOOL_CXX
 | 
|---|
| 2657 | 
 | 
|---|
| 2658 | 
 | 
|---|
| 2659 | # _LT_AC_LANG_CXX
 | 
|---|
| 2660 | # ---------------
 | 
|---|
| 2661 | AC_DEFUN([_LT_AC_LANG_CXX],
 | 
|---|
| 2662 | [AC_REQUIRE([AC_PROG_CXX])
 | 
|---|
| 2663 | AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 | 
|---|
| 2664 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
 | 
|---|
| 2665 | ])# _LT_AC_LANG_CXX
 | 
|---|
| 2666 | 
 | 
|---|
| 2667 | # _LT_AC_PROG_CXXCPP
 | 
|---|
| 2668 | # ------------------
 | 
|---|
| 2669 | AC_DEFUN([_LT_AC_PROG_CXXCPP],
 | 
|---|
| 2670 | [
 | 
|---|
| 2671 | AC_REQUIRE([AC_PROG_CXX])
 | 
|---|
| 2672 | if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 | 
|---|
| 2673 |     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 | 
|---|
| 2674 |     (test "X$CXX" != "Xg++"))) ; then
 | 
|---|
| 2675 |   AC_PROG_CXXCPP
 | 
|---|
| 2676 | fi
 | 
|---|
| 2677 | ])# _LT_AC_PROG_CXXCPP
 | 
|---|
| 2678 | 
 | 
|---|
| 2679 | # AC_LIBTOOL_F77
 | 
|---|
| 2680 | # --------------
 | 
|---|
| 2681 | # enable support for Fortran 77 libraries
 | 
|---|
| 2682 | AC_DEFUN([AC_LIBTOOL_F77],
 | 
|---|
| 2683 | [AC_REQUIRE([_LT_AC_LANG_F77])
 | 
|---|
| 2684 | ])# AC_LIBTOOL_F77
 | 
|---|
| 2685 | 
 | 
|---|
| 2686 | 
 | 
|---|
| 2687 | # _LT_AC_LANG_F77
 | 
|---|
| 2688 | # ---------------
 | 
|---|
| 2689 | AC_DEFUN([_LT_AC_LANG_F77],
 | 
|---|
| 2690 | [AC_REQUIRE([AC_PROG_F77])
 | 
|---|
| 2691 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
 | 
|---|
| 2692 | ])# _LT_AC_LANG_F77
 | 
|---|
| 2693 | 
 | 
|---|
| 2694 | 
 | 
|---|
| 2695 | # AC_LIBTOOL_GCJ
 | 
|---|
| 2696 | # --------------
 | 
|---|
| 2697 | # enable support for GCJ libraries
 | 
|---|
| 2698 | AC_DEFUN([AC_LIBTOOL_GCJ],
 | 
|---|
| 2699 | [AC_REQUIRE([_LT_AC_LANG_GCJ])
 | 
|---|
| 2700 | ])# AC_LIBTOOL_GCJ
 | 
|---|
| 2701 | 
 | 
|---|
| 2702 | 
 | 
|---|
| 2703 | # _LT_AC_LANG_GCJ
 | 
|---|
| 2704 | # ---------------
 | 
|---|
| 2705 | AC_DEFUN([_LT_AC_LANG_GCJ],
 | 
|---|
| 2706 | [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
 | 
|---|
| 2707 |   [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
 | 
|---|
| 2708 |     [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
 | 
|---|
| 2709 |       [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
 | 
|---|
| 2710 |          [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
 | 
|---|
| 2711 |            [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
 | 
|---|
| 2712 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
 | 
|---|
| 2713 | ])# _LT_AC_LANG_GCJ
 | 
|---|
| 2714 | 
 | 
|---|
| 2715 | 
 | 
|---|
| 2716 | # AC_LIBTOOL_RC
 | 
|---|
| 2717 | # -------------
 | 
|---|
| 2718 | # enable support for Windows resource files
 | 
|---|
| 2719 | AC_DEFUN([AC_LIBTOOL_RC],
 | 
|---|
| 2720 | [AC_REQUIRE([LT_AC_PROG_RC])
 | 
|---|
| 2721 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
 | 
|---|
| 2722 | ])# AC_LIBTOOL_RC
 | 
|---|
| 2723 | 
 | 
|---|
| 2724 | 
 | 
|---|
| 2725 | # AC_LIBTOOL_LANG_C_CONFIG
 | 
|---|
| 2726 | # ------------------------
 | 
|---|
| 2727 | # Ensure that the configuration vars for the C compiler are
 | 
|---|
| 2728 | # suitably defined.  Those variables are subsequently used by
 | 
|---|
| 2729 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 | 
|---|
| 2730 | AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
 | 
|---|
| 2731 | AC_DEFUN([_LT_AC_LANG_C_CONFIG],
 | 
|---|
| 2732 | [lt_save_CC="$CC"
 | 
|---|
| 2733 | AC_LANG_PUSH(C)
 | 
|---|
| 2734 | 
 | 
|---|
| 2735 | # Source file extension for C test sources.
 | 
|---|
| 2736 | ac_ext=c
 | 
|---|
| 2737 | 
 | 
|---|
| 2738 | # Object file extension for compiled C test sources.
 | 
|---|
| 2739 | objext=o
 | 
|---|
| 2740 | _LT_AC_TAGVAR(objext, $1)=$objext
 | 
|---|
| 2741 | 
 | 
|---|
| 2742 | # Code to be used in simple compile tests
 | 
|---|
| 2743 | lt_simple_compile_test_code="int some_variable = 0;\n"
 | 
|---|
| 2744 | 
 | 
|---|
| 2745 | # Code to be used in simple link tests
 | 
|---|
| 2746 | lt_simple_link_test_code='int main(){return(0);}\n'
 | 
|---|
| 2747 | 
 | 
|---|
| 2748 | _LT_AC_SYS_COMPILER
 | 
|---|
| 2749 | 
 | 
|---|
| 2750 | # save warnings/boilerplate of simple test code
 | 
|---|
| 2751 | _LT_COMPILER_BOILERPLATE
 | 
|---|
| 2752 | _LT_LINKER_BOILERPLATE
 | 
|---|
| 2753 | 
 | 
|---|
| 2754 | ## CAVEAT EMPTOR:
 | 
|---|
| 2755 | ## There is no encapsulation within the following macros, do not change
 | 
|---|
| 2756 | ## the running order or otherwise move them around unless you know exactly
 | 
|---|
| 2757 | ## what you are doing...
 | 
|---|
| 2758 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 | 
|---|
| 2759 | AC_LIBTOOL_PROG_COMPILER_PIC($1)
 | 
|---|
| 2760 | AC_LIBTOOL_PROG_CC_C_O($1)
 | 
|---|
| 2761 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 | 
|---|
| 2762 | AC_LIBTOOL_PROG_LD_SHLIBS($1)
 | 
|---|
| 2763 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 | 
|---|
| 2764 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 | 
|---|
| 2765 | AC_LIBTOOL_SYS_LIB_STRIP
 | 
|---|
| 2766 | AC_LIBTOOL_DLOPEN_SELF
 | 
|---|
| 2767 | 
 | 
|---|
| 2768 | # Report which library types will actually be built
 | 
|---|
| 2769 | AC_MSG_CHECKING([if libtool supports shared libraries])
 | 
|---|
| 2770 | AC_MSG_RESULT([$can_build_shared])
 | 
|---|
| 2771 | 
 | 
|---|
| 2772 | AC_MSG_CHECKING([whether to build shared libraries])
 | 
|---|
| 2773 | test "$can_build_shared" = "no" && enable_shared=no
 | 
|---|
| 2774 | 
 | 
|---|
| 2775 | # On AIX, shared libraries and static libraries use the same namespace, and
 | 
|---|
| 2776 | # are all built from PIC.
 | 
|---|
| 2777 | case $host_os in
 | 
|---|
| 2778 | aix3*)
 | 
|---|
| 2779 |   test "$enable_shared" = yes && enable_static=no
 | 
|---|
| 2780 |   if test -n "$RANLIB"; then
 | 
|---|
| 2781 |     archive_cmds="$archive_cmds~\$RANLIB \$lib"
 | 
|---|
| 2782 |     postinstall_cmds='$RANLIB $lib'
 | 
|---|
| 2783 |   fi
 | 
|---|
| 2784 |   ;;
 | 
|---|
| 2785 | 
 | 
|---|
| 2786 | aix4* | aix5*)
 | 
|---|
| 2787 |   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 | 
|---|
| 2788 |     test "$enable_shared" = yes && enable_static=no
 | 
|---|
| 2789 |   fi
 | 
|---|
| 2790 |     ;;
 | 
|---|
| 2791 | esac
 | 
|---|
| 2792 | AC_MSG_RESULT([$enable_shared])
 | 
|---|
| 2793 | 
 | 
|---|
| 2794 | AC_MSG_CHECKING([whether to build static libraries])
 | 
|---|
| 2795 | # Make sure either enable_shared or enable_static is yes.
 | 
|---|
| 2796 | test "$enable_shared" = yes || enable_static=yes
 | 
|---|
| 2797 | AC_MSG_RESULT([$enable_static])
 | 
|---|
| 2798 | 
 | 
|---|
| 2799 | AC_LIBTOOL_CONFIG($1)
 | 
|---|
| 2800 | 
 | 
|---|
| 2801 | AC_LANG_POP
 | 
|---|
| 2802 | CC="$lt_save_CC"
 | 
|---|
| 2803 | ])# AC_LIBTOOL_LANG_C_CONFIG
 | 
|---|
| 2804 | 
 | 
|---|
| 2805 | 
 | 
|---|
| 2806 | # AC_LIBTOOL_LANG_CXX_CONFIG
 | 
|---|
| 2807 | # --------------------------
 | 
|---|
| 2808 | # Ensure that the configuration vars for the C compiler are
 | 
|---|
| 2809 | # suitably defined.  Those variables are subsequently used by
 | 
|---|
| 2810 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 | 
|---|
| 2811 | AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
 | 
|---|
| 2812 | AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
 | 
|---|
| 2813 | [AC_LANG_PUSH(C++)
 | 
|---|
| 2814 | AC_REQUIRE([AC_PROG_CXX])
 | 
|---|
| 2815 | AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 | 
|---|
| 2816 | 
 | 
|---|
| 2817 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 | 
|---|
| 2818 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 | 
|---|
| 2819 | _LT_AC_TAGVAR(always_export_symbols, $1)=no
 | 
|---|
| 2820 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 | 
|---|
| 2821 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 | 
|---|
| 2822 | _LT_AC_TAGVAR(hardcode_direct, $1)=no
 | 
|---|
| 2823 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 | 
|---|
| 2824 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 | 
|---|
| 2825 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 | 
|---|
| 2826 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 | 
|---|
| 2827 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 | 
|---|
| 2828 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no
 | 
|---|
| 2829 | _LT_AC_TAGVAR(module_cmds, $1)=
 | 
|---|
| 2830 | _LT_AC_TAGVAR(module_expsym_cmds, $1)=
 | 
|---|
| 2831 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 | 
|---|
| 2832 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 | 
|---|
| 2833 | _LT_AC_TAGVAR(no_undefined_flag, $1)=
 | 
|---|
| 2834 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 | 
|---|
| 2835 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 | 
|---|
| 2836 | 
 | 
|---|
| 2837 | # Dependencies to place before and after the object being linked:
 | 
|---|
| 2838 | _LT_AC_TAGVAR(predep_objects, $1)=
 | 
|---|
| 2839 | _LT_AC_TAGVAR(postdep_objects, $1)=
 | 
|---|
| 2840 | _LT_AC_TAGVAR(predeps, $1)=
 | 
|---|
| 2841 | _LT_AC_TAGVAR(postdeps, $1)=
 | 
|---|
| 2842 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 | 
|---|
| 2843 | 
 | 
|---|
| 2844 | # Source file extension for C++ test sources.
 | 
|---|
| 2845 | ac_ext=cpp
 | 
|---|
| 2846 | 
 | 
|---|
| 2847 | # Object file extension for compiled C++ test sources.
 | 
|---|
| 2848 | objext=o
 | 
|---|
| 2849 | _LT_AC_TAGVAR(objext, $1)=$objext
 | 
|---|
| 2850 | 
 | 
|---|
| 2851 | # Code to be used in simple compile tests
 | 
|---|
| 2852 | lt_simple_compile_test_code="int some_variable = 0;\n"
 | 
|---|
| 2853 | 
 | 
|---|
| 2854 | # Code to be used in simple link tests
 | 
|---|
| 2855 | lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
 | 
|---|
| 2856 | 
 | 
|---|
| 2857 | # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 | 
|---|
| 2858 | _LT_AC_SYS_COMPILER
 | 
|---|
| 2859 | 
 | 
|---|
| 2860 | # save warnings/boilerplate of simple test code
 | 
|---|
| 2861 | _LT_COMPILER_BOILERPLATE
 | 
|---|
| 2862 | _LT_LINKER_BOILERPLATE
 | 
|---|
| 2863 | 
 | 
|---|
| 2864 | # Allow CC to be a program name with arguments.
 | 
|---|
| 2865 | lt_save_CC=$CC
 | 
|---|
| 2866 | lt_save_LD=$LD
 | 
|---|
| 2867 | lt_save_GCC=$GCC
 | 
|---|
| 2868 | GCC=$GXX
 | 
|---|
| 2869 | lt_save_with_gnu_ld=$with_gnu_ld
 | 
|---|
| 2870 | lt_save_path_LD=$lt_cv_path_LD
 | 
|---|
| 2871 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 | 
|---|
| 2872 |   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 | 
|---|
| 2873 | else
 | 
|---|
| 2874 |   $as_unset lt_cv_prog_gnu_ld
 | 
|---|
| 2875 | fi
 | 
|---|
| 2876 | if test -n "${lt_cv_path_LDCXX+set}"; then
 | 
|---|
| 2877 |   lt_cv_path_LD=$lt_cv_path_LDCXX
 | 
|---|
| 2878 | else
 | 
|---|
| 2879 |   $as_unset lt_cv_path_LD
 | 
|---|
| 2880 | fi
 | 
|---|
| 2881 | test -z "${LDCXX+set}" || LD=$LDCXX
 | 
|---|
| 2882 | CC=${CXX-"c++"}
 | 
|---|
| 2883 | compiler=$CC
 | 
|---|
| 2884 | _LT_AC_TAGVAR(compiler, $1)=$CC
 | 
|---|
| 2885 | _LT_CC_BASENAME([$compiler])
 | 
|---|
| 2886 | 
 | 
|---|
| 2887 | # We don't want -fno-exception wen compiling C++ code, so set the
 | 
|---|
| 2888 | # no_builtin_flag separately
 | 
|---|
| 2889 | if test "$GXX" = yes; then
 | 
|---|
| 2890 |   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 | 
|---|
| 2891 | else
 | 
|---|
| 2892 |   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 | 
|---|
| 2893 | fi
 | 
|---|
| 2894 | 
 | 
|---|
| 2895 | if test "$GXX" = yes; then
 | 
|---|
| 2896 |   # Set up default GNU C++ configuration
 | 
|---|
| 2897 | 
 | 
|---|
| 2898 |   AC_PROG_LD
 | 
|---|
| 2899 | 
 | 
|---|
| 2900 |   # Check if GNU C++ uses GNU ld as the underlying linker, since the
 | 
|---|
| 2901 |   # archiving commands below assume that GNU ld is being used.
 | 
|---|
| 2902 |   if test "$with_gnu_ld" = yes; then
 | 
|---|
| 2903 |     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 | 
|---|
| 2904 |     _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'
 | 
|---|
| 2905 | 
 | 
|---|
| 2906 |     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 | 
|---|
| 2907 |     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 | 
|---|
| 2908 | 
 | 
|---|
| 2909 |     # If archive_cmds runs LD, not CC, wlarc should be empty
 | 
|---|
| 2910 |     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 | 
|---|
| 2911 |     #     investigate it a little bit more. (MM)
 | 
|---|
| 2912 |     wlarc='${wl}'
 | 
|---|
| 2913 | 
 | 
|---|
| 2914 |     # ancient GNU ld didn't support --whole-archive et. al.
 | 
|---|
| 2915 |     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 | 
|---|
| 2916 |         grep 'no-whole-archive' > /dev/null; then
 | 
|---|
| 2917 |       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 | 
|---|
| 2918 |     else
 | 
|---|
| 2919 |       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 | 
|---|
| 2920 |     fi
 | 
|---|
| 2921 |   else
 | 
|---|
| 2922 |     with_gnu_ld=no
 | 
|---|
| 2923 |     wlarc=
 | 
|---|
| 2924 | 
 | 
|---|
| 2925 |     # A generic and very simple default shared library creation
 | 
|---|
| 2926 |     # command for GNU C++ for the case where it uses the native
 | 
|---|
| 2927 |     # linker, instead of GNU ld.  If possible, this setting should
 | 
|---|
| 2928 |     # overridden to take advantage of the native linker features on
 | 
|---|
| 2929 |     # the platform it is being used on.
 | 
|---|
| 2930 |     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 | 
|---|
| 2931 |   fi
 | 
|---|
| 2932 | 
 | 
|---|
| 2933 |   # Commands to make compiler produce verbose output that lists
 | 
|---|
| 2934 |   # what "hidden" libraries, object files and flags are used when
 | 
|---|
| 2935 |   # linking a shared library.
 | 
|---|
| 2936 |   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 | 
|---|
| 2937 | 
 | 
|---|
| 2938 | else
 | 
|---|
| 2939 |   GXX=no
 | 
|---|
| 2940 |   with_gnu_ld=no
 | 
|---|
| 2941 |   wlarc=
 | 
|---|
| 2942 | fi
 | 
|---|
| 2943 | 
 | 
|---|
| 2944 | # PORTME: fill in a description of your system's C++ link characteristics
 | 
|---|
| 2945 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 | 
|---|
| 2946 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 | 
|---|
| 2947 | case $host_os in
 | 
|---|
| 2948 |   aix3*)
 | 
|---|
| 2949 |     # FIXME: insert proper C++ library support
 | 
|---|
| 2950 |     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 2951 |     ;;
 | 
|---|
| 2952 |   aix4* | aix5*)
 | 
|---|
| 2953 |     if test "$host_cpu" = ia64; then
 | 
|---|
| 2954 |       # On IA64, the linker does run time linking by default, so we don't
 | 
|---|
| 2955 |       # have to do anything special.
 | 
|---|
| 2956 |       aix_use_runtimelinking=no
 | 
|---|
| 2957 |       exp_sym_flag='-Bexport'
 | 
|---|
| 2958 |       no_entry_flag=""
 | 
|---|
| 2959 |     else
 | 
|---|
| 2960 |       aix_use_runtimelinking=no
 | 
|---|
| 2961 | 
 | 
|---|
| 2962 |       # Test if we are trying to use run time linking or normal
 | 
|---|
| 2963 |       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 | 
|---|
| 2964 |       # need to do runtime linking.
 | 
|---|
| 2965 |       case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 | 
|---|
| 2966 |         for ld_flag in $LDFLAGS; do
 | 
|---|
| 2967 |           case $ld_flag in
 | 
|---|
| 2968 |           *-brtl*)
 | 
|---|
| 2969 |             aix_use_runtimelinking=yes
 | 
|---|
| 2970 |             break
 | 
|---|
| 2971 |             ;;
 | 
|---|
| 2972 |           esac
 | 
|---|
| 2973 |         done
 | 
|---|
| 2974 |         ;;
 | 
|---|
| 2975 |       esac
 | 
|---|
| 2976 | 
 | 
|---|
| 2977 |       exp_sym_flag='-bexport'
 | 
|---|
| 2978 |       no_entry_flag='-bnoentry'
 | 
|---|
| 2979 |     fi
 | 
|---|
| 2980 | 
 | 
|---|
| 2981 |     # When large executables or shared objects are built, AIX ld can
 | 
|---|
| 2982 |     # have problems creating the table of contents.  If linking a library
 | 
|---|
| 2983 |     # or program results in "error TOC overflow" add -mminimal-toc to
 | 
|---|
| 2984 |     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 | 
|---|
| 2985 |     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 | 
|---|
| 2986 | 
 | 
|---|
| 2987 |     _LT_AC_TAGVAR(archive_cmds, $1)=''
 | 
|---|
| 2988 |     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 | 
|---|
| 2989 |     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 | 
|---|
| 2990 |     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 | 
|---|
| 2991 | 
 | 
|---|
| 2992 |     if test "$GXX" = yes; then
 | 
|---|
| 2993 |       case $host_os in aix4.[[012]]|aix4.[[012]].*)
 | 
|---|
| 2994 |       # We only want to do this on AIX 4.2 and lower, the check
 | 
|---|
| 2995 |       # below for broken collect2 doesn't work under 4.3+
 | 
|---|
| 2996 |         collect2name=`${CC} -print-prog-name=collect2`
 | 
|---|
| 2997 |         if test -f "$collect2name" && \
 | 
|---|
| 2998 |            strings "$collect2name" | grep resolve_lib_name >/dev/null
 | 
|---|
| 2999 |         then
 | 
|---|
| 3000 |           # We have reworked collect2
 | 
|---|
| 3001 |           _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 | 
|---|
| 3002 |         else
 | 
|---|
| 3003 |           # We have old collect2
 | 
|---|
| 3004 |           _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 | 
|---|
| 3005 |           # It fails to find uninstalled libraries when the uninstalled
 | 
|---|
| 3006 |           # path is not listed in the libpath.  Setting hardcode_minus_L
 | 
|---|
| 3007 |           # to unsupported forces relinking
 | 
|---|
| 3008 |           _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 | 
|---|
| 3009 |           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 | 
|---|
| 3010 |           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 | 
|---|
| 3011 |         fi
 | 
|---|
| 3012 |         ;;
 | 
|---|
| 3013 |       esac
 | 
|---|
| 3014 |       shared_flag='-shared'
 | 
|---|
| 3015 |       if test "$aix_use_runtimelinking" = yes; then
 | 
|---|
| 3016 |         shared_flag="$shared_flag "'${wl}-G'
 | 
|---|
| 3017 |       fi
 | 
|---|
| 3018 |     else
 | 
|---|
| 3019 |       # not using gcc
 | 
|---|
| 3020 |       if test "$host_cpu" = ia64; then
 | 
|---|
| 3021 |         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 | 
|---|
| 3022 |         # chokes on -Wl,-G. The following line is correct:
 | 
|---|
| 3023 |         shared_flag='-G'
 | 
|---|
| 3024 |       else
 | 
|---|
| 3025 |         if test "$aix_use_runtimelinking" = yes; then
 | 
|---|
| 3026 |           shared_flag='${wl}-G'
 | 
|---|
| 3027 |         else
 | 
|---|
| 3028 |           shared_flag='${wl}-bM:SRE'
 | 
|---|
| 3029 |         fi
 | 
|---|
| 3030 |       fi
 | 
|---|
| 3031 |     fi
 | 
|---|
| 3032 | 
 | 
|---|
| 3033 |     # It seems that -bexpall does not export symbols beginning with
 | 
|---|
| 3034 |     # underscore (_), so it is better to generate a list of symbols to export.
 | 
|---|
| 3035 |     _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 | 
|---|
| 3036 |     if test "$aix_use_runtimelinking" = yes; then
 | 
|---|
| 3037 |       # Warning - without using the other runtime loading flags (-brtl),
 | 
|---|
| 3038 |       # -berok will link without error, but may produce a broken library.
 | 
|---|
| 3039 |       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 | 
|---|
| 3040 |       # Determine the default libpath from the value encoded in an empty executable.
 | 
|---|
| 3041 |       _LT_AC_SYS_LIBPATH_AIX
 | 
|---|
| 3042 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 | 
|---|
| 3043 | 
 | 
|---|
| 3044 |       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 | 
|---|
| 3045 |      else
 | 
|---|
| 3046 |       if test "$host_cpu" = ia64; then
 | 
|---|
| 3047 |         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 | 
|---|
| 3048 |         _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 | 
|---|
| 3049 |         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 | 
|---|
| 3050 |       else
 | 
|---|
| 3051 |         # Determine the default libpath from the value encoded in an empty executable.
 | 
|---|
| 3052 |         _LT_AC_SYS_LIBPATH_AIX
 | 
|---|
| 3053 |         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 | 
|---|
| 3054 |         # Warning - without using the other run time loading flags,
 | 
|---|
| 3055 |         # -berok will link without error, but may produce a broken library.
 | 
|---|
| 3056 |         _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 | 
|---|
| 3057 |         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 | 
|---|
| 3058 |         # Exported symbols can be pulled into shared objects from archives
 | 
|---|
| 3059 |         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 | 
|---|
| 3060 |         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 | 
|---|
| 3061 |         # This is similar to how AIX traditionally builds its shared libraries.
 | 
|---|
| 3062 |         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 | 
|---|
| 3063 |       fi
 | 
|---|
| 3064 |     fi
 | 
|---|
| 3065 |     ;;
 | 
|---|
| 3066 | 
 | 
|---|
| 3067 |   beos*)
 | 
|---|
| 3068 |     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 | 
|---|
| 3069 |       _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 | 
|---|
| 3070 |       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 | 
|---|
| 3071 |       # support --undefined.  This deserves some investigation.  FIXME
 | 
|---|
| 3072 |       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 | 
|---|
| 3073 |     else
 | 
|---|
| 3074 |       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3075 |     fi
 | 
|---|
| 3076 |     ;;
 | 
|---|
| 3077 | 
 | 
|---|
| 3078 |   chorus*)
 | 
|---|
| 3079 |     case $cc_basename in
 | 
|---|
| 3080 |       *)
 | 
|---|
| 3081 |         # FIXME: insert proper C++ library support
 | 
|---|
| 3082 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3083 |         ;;
 | 
|---|
| 3084 |     esac
 | 
|---|
| 3085 |     ;;
 | 
|---|
| 3086 | 
 | 
|---|
| 3087 |   cygwin* | mingw* | pw32*)
 | 
|---|
| 3088 |     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 | 
|---|
| 3089 |     # as there is no search path for DLLs.
 | 
|---|
| 3090 |     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 | 
|---|
| 3091 |     _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 | 
|---|
| 3092 |     _LT_AC_TAGVAR(always_export_symbols, $1)=no
 | 
|---|
| 3093 |     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 | 
|---|
| 3094 | 
 | 
|---|
| 3095 |     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 | 
|---|
| 3096 |       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 | 
|---|
| 3097 |       # If the export-symbols file already is a .def file (1st line
 | 
|---|
| 3098 |       # is EXPORTS), use it as is; otherwise, prepend...
 | 
|---|
| 3099 |       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 | 
|---|
| 3100 |         cp $export_symbols $output_objdir/$soname.def;
 | 
|---|
| 3101 |       else
 | 
|---|
| 3102 |         echo EXPORTS > $output_objdir/$soname.def;
 | 
|---|
| 3103 |         cat $export_symbols >> $output_objdir/$soname.def;
 | 
|---|
| 3104 |       fi~
 | 
|---|
| 3105 |       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 | 
|---|
| 3106 |     else
 | 
|---|
| 3107 |       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3108 |     fi
 | 
|---|
| 3109 |   ;;
 | 
|---|
| 3110 |       darwin* | rhapsody*)
 | 
|---|
| 3111 |         case $host_os in
 | 
|---|
| 3112 |         rhapsody* | darwin1.[[012]])
 | 
|---|
| 3113 |          _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 | 
|---|
| 3114 |          ;;
 | 
|---|
| 3115 |        *) # Darwin 1.3 on
 | 
|---|
| 3116 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 | 
|---|
| 3117 |            _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 | 
|---|
| 3118 |          else
 | 
|---|
| 3119 |            case ${MACOSX_DEPLOYMENT_TARGET} in
 | 
|---|
| 3120 |              10.[[012]])
 | 
|---|
| 3121 |                _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 | 
|---|
| 3122 |                ;;
 | 
|---|
| 3123 |              10.*)
 | 
|---|
| 3124 |                _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 | 
|---|
| 3125 |                ;;
 | 
|---|
| 3126 |            esac
 | 
|---|
| 3127 |          fi
 | 
|---|
| 3128 |          ;;
 | 
|---|
| 3129 |         esac
 | 
|---|
| 3130 |       _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 | 
|---|
| 3131 |       _LT_AC_TAGVAR(hardcode_direct, $1)=no
 | 
|---|
| 3132 |       _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 | 
|---|
| 3133 |       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 | 
|---|
| 3134 |       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 | 
|---|
| 3135 |       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 | 
|---|
| 3136 | 
 | 
|---|
| 3137 |     if test "$GXX" = yes ; then
 | 
|---|
| 3138 |       lt_int_apple_cc_single_mod=no
 | 
|---|
| 3139 |       output_verbose_link_cmd='echo'
 | 
|---|
| 3140 |       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 | 
|---|
| 3141 |        lt_int_apple_cc_single_mod=yes
 | 
|---|
| 3142 |       fi
 | 
|---|
| 3143 |       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 | 
|---|
| 3144 |        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 | 
|---|
| 3145 |       else
 | 
|---|
| 3146 |           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 | 
|---|
| 3147 |         fi
 | 
|---|
| 3148 |         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 | 
|---|
| 3149 |         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 | 
|---|
| 3150 |           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 | 
|---|
| 3151 |             _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}'
 | 
|---|
| 3152 |           else
 | 
|---|
| 3153 |             _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 | 
|---|
| 3154 |           fi
 | 
|---|
| 3155 |             _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}'
 | 
|---|
| 3156 |       else
 | 
|---|
| 3157 |       case $cc_basename in
 | 
|---|
| 3158 |         xlc*)
 | 
|---|
| 3159 |          output_verbose_link_cmd='echo'
 | 
|---|
| 3160 |           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 | 
|---|
| 3161 |           _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 | 
|---|
| 3162 |           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 | 
|---|
| 3163 |           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 | 
|---|
| 3164 |           _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}'
 | 
|---|
| 3165 |           ;;
 | 
|---|
| 3166 |        *)
 | 
|---|
| 3167 |          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3168 |           ;;
 | 
|---|
| 3169 |       esac
 | 
|---|
| 3170 |       fi
 | 
|---|
| 3171 |         ;;
 | 
|---|
| 3172 | 
 | 
|---|
| 3173 |   dgux*)
 | 
|---|
| 3174 |     case $cc_basename in
 | 
|---|
| 3175 |       ec++*)
 | 
|---|
| 3176 |         # FIXME: insert proper C++ library support
 | 
|---|
| 3177 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3178 |         ;;
 | 
|---|
| 3179 |       ghcx*)
 | 
|---|
| 3180 |         # Green Hills C++ Compiler
 | 
|---|
| 3181 |         # FIXME: insert proper C++ library support
 | 
|---|
| 3182 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3183 |         ;;
 | 
|---|
| 3184 |       *)
 | 
|---|
| 3185 |         # FIXME: insert proper C++ library support
 | 
|---|
| 3186 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3187 |         ;;
 | 
|---|
| 3188 |     esac
 | 
|---|
| 3189 |     ;;
 | 
|---|
| 3190 |   freebsd[[12]]*)
 | 
|---|
| 3191 |     # C++ shared libraries reported to be fairly broken before switch to ELF
 | 
|---|
| 3192 |     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3193 |     ;;
 | 
|---|
| 3194 |   freebsd-elf*)
 | 
|---|
| 3195 |     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 | 
|---|
| 3196 |     ;;
 | 
|---|
| 3197 |   freebsd* | kfreebsd*-gnu | dragonfly*)
 | 
|---|
| 3198 |     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 | 
|---|
| 3199 |     # conventions
 | 
|---|
| 3200 |     _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 | 
|---|
| 3201 |     ;;
 | 
|---|
| 3202 |   gnu*)
 | 
|---|
| 3203 |     ;;
 | 
|---|
| 3204 |   hpux9*)
 | 
|---|
| 3205 |     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 | 
|---|
| 3206 |     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 | 
|---|
| 3207 |     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 | 
|---|
| 3208 |     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 | 
|---|
| 3209 |     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 | 
|---|
| 3210 |                                 # but as the default
 | 
|---|
| 3211 |                                 # location of the library.
 | 
|---|
| 3212 | 
 | 
|---|
| 3213 |     case $cc_basename in
 | 
|---|
| 3214 |     CC*)
 | 
|---|
| 3215 |       # FIXME: insert proper C++ library support
 | 
|---|
| 3216 |       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3217 |       ;;
 | 
|---|
| 3218 |     aCC*)
 | 
|---|
| 3219 |       _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'
 | 
|---|
| 3220 |       # Commands to make compiler produce verbose output that lists
 | 
|---|
| 3221 |       # what "hidden" libraries, object files and flags are used when
 | 
|---|
| 3222 |       # linking a shared library.
 | 
|---|
| 3223 |       #
 | 
|---|
| 3224 |       # There doesn't appear to be a way to prevent this compiler from
 | 
|---|
| 3225 |       # explicitly linking system object files so we need to strip them
 | 
|---|
| 3226 |       # from the output so that they don't get included in the library
 | 
|---|
| 3227 |       # dependencies.
 | 
|---|
| 3228 |       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'
 | 
|---|
| 3229 |       ;;
 | 
|---|
| 3230 |     *)
 | 
|---|
| 3231 |       if test "$GXX" = yes; then
 | 
|---|
| 3232 |         _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'
 | 
|---|
| 3233 |       else
 | 
|---|
| 3234 |         # FIXME: insert proper C++ library support
 | 
|---|
| 3235 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3236 |       fi
 | 
|---|
| 3237 |       ;;
 | 
|---|
| 3238 |     esac
 | 
|---|
| 3239 |     ;;
 | 
|---|
| 3240 |   hpux10*|hpux11*)
 | 
|---|
| 3241 |     if test $with_gnu_ld = no; then
 | 
|---|
| 3242 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 | 
|---|
| 3243 |       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 | 
|---|
| 3244 | 
 | 
|---|
| 3245 |       case $host_cpu in
 | 
|---|
| 3246 |       hppa*64*|ia64*)
 | 
|---|
| 3247 |         _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 | 
|---|
| 3248 |         ;;
 | 
|---|
| 3249 |       *)
 | 
|---|
| 3250 |         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 | 
|---|
| 3251 |         ;;
 | 
|---|
| 3252 |       esac
 | 
|---|
| 3253 |     fi
 | 
|---|
| 3254 |     case $host_cpu in
 | 
|---|
| 3255 |     hppa*64*|ia64*)
 | 
|---|
| 3256 |       _LT_AC_TAGVAR(hardcode_direct, $1)=no
 | 
|---|
| 3257 |       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 3258 |       ;;
 | 
|---|
| 3259 |     *)
 | 
|---|
| 3260 |       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 | 
|---|
| 3261 |       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 | 
|---|
| 3262 |                                               # but as the default
 | 
|---|
| 3263 |                                               # location of the library.
 | 
|---|
| 3264 |       ;;
 | 
|---|
| 3265 |     esac
 | 
|---|
| 3266 | 
 | 
|---|
| 3267 |     case $cc_basename in
 | 
|---|
| 3268 |       CC*)
 | 
|---|
| 3269 |         # FIXME: insert proper C++ library support
 | 
|---|
| 3270 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3271 |         ;;
 | 
|---|
| 3272 |       aCC*)
 | 
|---|
| 3273 |         case $host_cpu in
 | 
|---|
| 3274 |         hppa*64*)
 | 
|---|
| 3275 |           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 | 
|---|
| 3276 |           ;;
 | 
|---|
| 3277 |         ia64*)
 | 
|---|
| 3278 |           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 | 
|---|
| 3279 |           ;;
 | 
|---|
| 3280 |         *)
 | 
|---|
| 3281 |           _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'
 | 
|---|
| 3282 |           ;;
 | 
|---|
| 3283 |         esac
 | 
|---|
| 3284 |         # Commands to make compiler produce verbose output that lists
 | 
|---|
| 3285 |         # what "hidden" libraries, object files and flags are used when
 | 
|---|
| 3286 |         # linking a shared library.
 | 
|---|
| 3287 |         #
 | 
|---|
| 3288 |         # There doesn't appear to be a way to prevent this compiler from
 | 
|---|
| 3289 |         # explicitly linking system object files so we need to strip them
 | 
|---|
| 3290 |         # from the output so that they don't get included in the library
 | 
|---|
| 3291 |         # dependencies.
 | 
|---|
| 3292 |         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'
 | 
|---|
| 3293 |         ;;
 | 
|---|
| 3294 |       *)
 | 
|---|
| 3295 |         if test "$GXX" = yes; then
 | 
|---|
| 3296 |           if test $with_gnu_ld = no; then
 | 
|---|
| 3297 |             case $host_cpu in
 | 
|---|
| 3298 |             hppa*64*)
 | 
|---|
| 3299 |               _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 | 
|---|
| 3300 |               ;;
 | 
|---|
| 3301 |             ia64*)
 | 
|---|
| 3302 |               _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 | 
|---|
| 3303 |               ;;
 | 
|---|
| 3304 |             *)
 | 
|---|
| 3305 |               _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'
 | 
|---|
| 3306 |               ;;
 | 
|---|
| 3307 |             esac
 | 
|---|
| 3308 |           fi
 | 
|---|
| 3309 |         else
 | 
|---|
| 3310 |           # FIXME: insert proper C++ library support
 | 
|---|
| 3311 |           _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3312 |         fi
 | 
|---|
| 3313 |         ;;
 | 
|---|
| 3314 |     esac
 | 
|---|
| 3315 |     ;;
 | 
|---|
| 3316 |   interix3*)
 | 
|---|
| 3317 |     _LT_AC_TAGVAR(hardcode_direct, $1)=no
 | 
|---|
| 3318 |     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 3319 |     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 | 
|---|
| 3320 |     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 | 
|---|
| 3321 |     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 | 
|---|
| 3322 |     # Instead, shared libraries are loaded at an image base (0x10000000 by
 | 
|---|
| 3323 |     # default) and relocated if they conflict, which is a slow very memory
 | 
|---|
| 3324 |     # consuming and fragmenting process.  To avoid this, we pick a random,
 | 
|---|
| 3325 |     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 | 
|---|
| 3326 |     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 | 
|---|
| 3327 |     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 | 
|---|
| 3328 |     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 | 
|---|
| 3329 |     ;;
 | 
|---|
| 3330 |   irix5* | irix6*)
 | 
|---|
| 3331 |     case $cc_basename in
 | 
|---|
| 3332 |       CC*)
 | 
|---|
| 3333 |         # SGI C++
 | 
|---|
| 3334 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 | 
|---|
| 3335 | 
 | 
|---|
| 3336 |         # Archives containing C++ object files must be created using
 | 
|---|
| 3337 |         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 | 
|---|
| 3338 |         # necessary to make sure instantiated templates are included
 | 
|---|
| 3339 |         # in the archive.
 | 
|---|
| 3340 |         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 | 
|---|
| 3341 |         ;;
 | 
|---|
| 3342 |       *)
 | 
|---|
| 3343 |         if test "$GXX" = yes; then
 | 
|---|
| 3344 |           if test "$with_gnu_ld" = no; then
 | 
|---|
| 3345 |             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 | 
|---|
| 3346 |           else
 | 
|---|
| 3347 |             _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'
 | 
|---|
| 3348 |           fi
 | 
|---|
| 3349 |         fi
 | 
|---|
| 3350 |         _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 | 
|---|
| 3351 |         ;;
 | 
|---|
| 3352 |     esac
 | 
|---|
| 3353 |     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 | 
|---|
| 3354 |     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 | 
|---|
| 3355 |     ;;
 | 
|---|
| 3356 |   linux*)
 | 
|---|
| 3357 |     case $cc_basename in
 | 
|---|
| 3358 |       KCC*)
 | 
|---|
| 3359 |         # Kuck and Associates, Inc. (KAI) C++ Compiler
 | 
|---|
| 3360 | 
 | 
|---|
| 3361 |         # KCC will only create a shared library if the output file
 | 
|---|
| 3362 |         # ends with ".so" (or ".sl" for HP-UX), so rename the library
 | 
|---|
| 3363 |         # to its proper name (with version) after linking.
 | 
|---|
| 3364 |         _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'
 | 
|---|
| 3365 |         _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'
 | 
|---|
| 3366 |         # Commands to make compiler produce verbose output that lists
 | 
|---|
| 3367 |         # what "hidden" libraries, object files and flags are used when
 | 
|---|
| 3368 |         # linking a shared library.
 | 
|---|
| 3369 |         #
 | 
|---|
| 3370 |         # There doesn't appear to be a way to prevent this compiler from
 | 
|---|
| 3371 |         # explicitly linking system object files so we need to strip them
 | 
|---|
| 3372 |         # from the output so that they don't get included in the library
 | 
|---|
| 3373 |         # dependencies.
 | 
|---|
| 3374 |         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'
 | 
|---|
| 3375 | 
 | 
|---|
| 3376 |         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
 | 
|---|
| 3377 |         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 | 
|---|
| 3378 | 
 | 
|---|
| 3379 |         # Archives containing C++ object files must be created using
 | 
|---|
| 3380 |         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 | 
|---|
| 3381 |         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 | 
|---|
| 3382 |         ;;
 | 
|---|
| 3383 |       icpc*)
 | 
|---|
| 3384 |         # Intel C++
 | 
|---|
| 3385 |         with_gnu_ld=yes
 | 
|---|
| 3386 |         # version 8.0 and above of icpc choke on multiply defined symbols
 | 
|---|
| 3387 |         # if we add $predep_objects and $postdep_objects, however 7.1 and
 | 
|---|
| 3388 |         # earlier do not add the objects themselves.
 | 
|---|
| 3389 |         case `$CC -V 2>&1` in
 | 
|---|
| 3390 |         *"Version 7."*)
 | 
|---|
| 3391 |           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 | 
|---|
| 3392 |           _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'
 | 
|---|
| 3393 |           ;;
 | 
|---|
| 3394 |         *)  # Version 8.0 or newer
 | 
|---|
| 3395 |           tmp_idyn=
 | 
|---|
| 3396 |           case $host_cpu in
 | 
|---|
| 3397 |             ia64*) tmp_idyn=' -i_dynamic';;
 | 
|---|
| 3398 |           esac
 | 
|---|
| 3399 |           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 | 
|---|
| 3400 |           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 | 
|---|
| 3401 |           ;;
 | 
|---|
| 3402 |         esac
 | 
|---|
| 3403 |         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 | 
|---|
| 3404 |         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 | 
|---|
| 3405 |         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 | 
|---|
| 3406 |         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 | 
|---|
| 3407 |         ;;
 | 
|---|
| 3408 |       pgCC*)
 | 
|---|
| 3409 |         # Portland Group C++ compiler
 | 
|---|
| 3410 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 | 
|---|
| 3411 |         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 | 
|---|
| 3412 | 
 | 
|---|
| 3413 |         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 | 
|---|
| 3414 |         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 | 
|---|
| 3415 |         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 | 
|---|
| 3416 |         ;;
 | 
|---|
| 3417 |       cxx*)
 | 
|---|
| 3418 |         # Compaq C++
 | 
|---|
| 3419 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 | 
|---|
| 3420 |         _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'
 | 
|---|
| 3421 | 
 | 
|---|
| 3422 |         runpath_var=LD_RUN_PATH
 | 
|---|
| 3423 |         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 | 
|---|
| 3424 |         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 | 
|---|
| 3425 | 
 | 
|---|
| 3426 |         # Commands to make compiler produce verbose output that lists
 | 
|---|
| 3427 |         # what "hidden" libraries, object files and flags are used when
 | 
|---|
| 3428 |         # linking a shared library.
 | 
|---|
| 3429 |         #
 | 
|---|
| 3430 |         # There doesn't appear to be a way to prevent this compiler from
 | 
|---|
| 3431 |         # explicitly linking system object files so we need to strip them
 | 
|---|
| 3432 |         # from the output so that they don't get included in the library
 | 
|---|
| 3433 |         # dependencies.
 | 
|---|
| 3434 |         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'
 | 
|---|
| 3435 |         ;;
 | 
|---|
| 3436 |     esac
 | 
|---|
| 3437 |     ;;
 | 
|---|
| 3438 |   lynxos*)
 | 
|---|
| 3439 |     # FIXME: insert proper C++ library support
 | 
|---|
| 3440 |     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3441 |     ;;
 | 
|---|
| 3442 |   m88k*)
 | 
|---|
| 3443 |     # FIXME: insert proper C++ library support
 | 
|---|
| 3444 |     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3445 |     ;;
 | 
|---|
| 3446 |   mvs*)
 | 
|---|
| 3447 |     case $cc_basename in
 | 
|---|
| 3448 |       cxx*)
 | 
|---|
| 3449 |         # FIXME: insert proper C++ library support
 | 
|---|
| 3450 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3451 |         ;;
 | 
|---|
| 3452 |       *)
 | 
|---|
| 3453 |         # FIXME: insert proper C++ library support
 | 
|---|
| 3454 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3455 |         ;;
 | 
|---|
| 3456 |     esac
 | 
|---|
| 3457 |     ;;
 | 
|---|
| 3458 |   netbsd*)
 | 
|---|
| 3459 |     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 | 
|---|
| 3460 |       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 | 
|---|
| 3461 |       wlarc=
 | 
|---|
| 3462 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 | 
|---|
| 3463 |       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 | 
|---|
| 3464 |       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 3465 |     fi
 | 
|---|
| 3466 |     # Workaround some broken pre-1.5 toolchains
 | 
|---|
| 3467 |     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 | 
|---|
| 3468 |     ;;
 | 
|---|
| 3469 |   openbsd2*)
 | 
|---|
| 3470 |     # C++ shared libraries are fairly broken
 | 
|---|
| 3471 |     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3472 |     ;;
 | 
|---|
| 3473 |   openbsd*)
 | 
|---|
| 3474 |     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 | 
|---|
| 3475 |     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 3476 |     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 | 
|---|
| 3477 |     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 | 
|---|
| 3478 |     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 | 
|---|
| 3479 |       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 | 
|---|
| 3480 |       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 | 
|---|
| 3481 |       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 | 
|---|
| 3482 |     fi
 | 
|---|
| 3483 |     output_verbose_link_cmd='echo'
 | 
|---|
| 3484 |     ;;
 | 
|---|
| 3485 |   osf3*)
 | 
|---|
| 3486 |     case $cc_basename in
 | 
|---|
| 3487 |       KCC*)
 | 
|---|
| 3488 |         # Kuck and Associates, Inc. (KAI) C++ Compiler
 | 
|---|
| 3489 | 
 | 
|---|
| 3490 |         # KCC will only create a shared library if the output file
 | 
|---|
| 3491 |         # ends with ".so" (or ".sl" for HP-UX), so rename the library
 | 
|---|
| 3492 |         # to its proper name (with version) after linking.
 | 
|---|
| 3493 |         _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'
 | 
|---|
| 3494 | 
 | 
|---|
| 3495 |         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 | 
|---|
| 3496 |         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 | 
|---|
| 3497 | 
 | 
|---|
| 3498 |         # Archives containing C++ object files must be created using
 | 
|---|
| 3499 |         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 | 
|---|
| 3500 |         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 | 
|---|
| 3501 | 
 | 
|---|
| 3502 |         ;;
 | 
|---|
| 3503 |       RCC*)
 | 
|---|
| 3504 |         # Rational C++ 2.4.1
 | 
|---|
| 3505 |         # FIXME: insert proper C++ library support
 | 
|---|
| 3506 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3507 |         ;;
 | 
|---|
| 3508 |       cxx*)
 | 
|---|
| 3509 |         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 | 
|---|
| 3510 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 | 
|---|
| 3511 | 
 | 
|---|
| 3512 |         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 | 
|---|
| 3513 |         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 | 
|---|
| 3514 | 
 | 
|---|
| 3515 |         # Commands to make compiler produce verbose output that lists
 | 
|---|
| 3516 |         # what "hidden" libraries, object files and flags are used when
 | 
|---|
| 3517 |         # linking a shared library.
 | 
|---|
| 3518 |         #
 | 
|---|
| 3519 |         # There doesn't appear to be a way to prevent this compiler from
 | 
|---|
| 3520 |         # explicitly linking system object files so we need to strip them
 | 
|---|
| 3521 |         # from the output so that they don't get included in the library
 | 
|---|
| 3522 |         # dependencies.
 | 
|---|
| 3523 |         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'
 | 
|---|
| 3524 |         ;;
 | 
|---|
| 3525 |       *)
 | 
|---|
| 3526 |         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 | 
|---|
| 3527 |           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 | 
|---|
| 3528 |           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 | 
|---|
| 3529 | 
 | 
|---|
| 3530 |           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 | 
|---|
| 3531 |           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 | 
|---|
| 3532 | 
 | 
|---|
| 3533 |           # Commands to make compiler produce verbose output that lists
 | 
|---|
| 3534 |           # what "hidden" libraries, object files and flags are used when
 | 
|---|
| 3535 |           # linking a shared library.
 | 
|---|
| 3536 |           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 | 
|---|
| 3537 | 
 | 
|---|
| 3538 |         else
 | 
|---|
| 3539 |           # FIXME: insert proper C++ library support
 | 
|---|
| 3540 |           _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3541 |         fi
 | 
|---|
| 3542 |         ;;
 | 
|---|
| 3543 |     esac
 | 
|---|
| 3544 |     ;;
 | 
|---|
| 3545 |   osf4* | osf5*)
 | 
|---|
| 3546 |     case $cc_basename in
 | 
|---|
| 3547 |       KCC*)
 | 
|---|
| 3548 |         # Kuck and Associates, Inc. (KAI) C++ Compiler
 | 
|---|
| 3549 | 
 | 
|---|
| 3550 |         # KCC will only create a shared library if the output file
 | 
|---|
| 3551 |         # ends with ".so" (or ".sl" for HP-UX), so rename the library
 | 
|---|
| 3552 |         # to its proper name (with version) after linking.
 | 
|---|
| 3553 |         _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'
 | 
|---|
| 3554 | 
 | 
|---|
| 3555 |         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 | 
|---|
| 3556 |         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 | 
|---|
| 3557 | 
 | 
|---|
| 3558 |         # Archives containing C++ object files must be created using
 | 
|---|
| 3559 |         # the KAI C++ compiler.
 | 
|---|
| 3560 |         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
 | 
|---|
| 3561 |         ;;
 | 
|---|
| 3562 |       RCC*)
 | 
|---|
| 3563 |         # Rational C++ 2.4.1
 | 
|---|
| 3564 |         # FIXME: insert proper C++ library support
 | 
|---|
| 3565 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3566 |         ;;
 | 
|---|
| 3567 |       cxx*)
 | 
|---|
| 3568 |         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 | 
|---|
| 3569 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 | 
|---|
| 3570 |         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 | 
|---|
| 3571 |           echo "-hidden">> $lib.exp~
 | 
|---|
| 3572 |           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
 | 
|---|
| 3573 |           $rm $lib.exp'
 | 
|---|
| 3574 | 
 | 
|---|
| 3575 |         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 | 
|---|
| 3576 |         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 | 
|---|
| 3577 | 
 | 
|---|
| 3578 |         # Commands to make compiler produce verbose output that lists
 | 
|---|
| 3579 |         # what "hidden" libraries, object files and flags are used when
 | 
|---|
| 3580 |         # linking a shared library.
 | 
|---|
| 3581 |         #
 | 
|---|
| 3582 |         # There doesn't appear to be a way to prevent this compiler from
 | 
|---|
| 3583 |         # explicitly linking system object files so we need to strip them
 | 
|---|
| 3584 |         # from the output so that they don't get included in the library
 | 
|---|
| 3585 |         # dependencies.
 | 
|---|
| 3586 |         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'
 | 
|---|
| 3587 |         ;;
 | 
|---|
| 3588 |       *)
 | 
|---|
| 3589 |         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 | 
|---|
| 3590 |           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 | 
|---|
| 3591 |          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 | 
|---|
| 3592 | 
 | 
|---|
| 3593 |           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 | 
|---|
| 3594 |           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 | 
|---|
| 3595 | 
 | 
|---|
| 3596 |           # Commands to make compiler produce verbose output that lists
 | 
|---|
| 3597 |           # what "hidden" libraries, object files and flags are used when
 | 
|---|
| 3598 |           # linking a shared library.
 | 
|---|
| 3599 |           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 | 
|---|
| 3600 | 
 | 
|---|
| 3601 |         else
 | 
|---|
| 3602 |           # FIXME: insert proper C++ library support
 | 
|---|
| 3603 |           _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3604 |         fi
 | 
|---|
| 3605 |         ;;
 | 
|---|
| 3606 |     esac
 | 
|---|
| 3607 |     ;;
 | 
|---|
| 3608 |   psos*)
 | 
|---|
| 3609 |     # FIXME: insert proper C++ library support
 | 
|---|
| 3610 |     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3611 |     ;;
 | 
|---|
| 3612 |   sunos4*)
 | 
|---|
| 3613 |     case $cc_basename in
 | 
|---|
| 3614 |       CC*)
 | 
|---|
| 3615 |         # Sun C++ 4.x
 | 
|---|
| 3616 |         # FIXME: insert proper C++ library support
 | 
|---|
| 3617 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3618 |         ;;
 | 
|---|
| 3619 |       lcc*)
 | 
|---|
| 3620 |         # Lucid
 | 
|---|
| 3621 |         # FIXME: insert proper C++ library support
 | 
|---|
| 3622 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3623 |         ;;
 | 
|---|
| 3624 |       *)
 | 
|---|
| 3625 |         # FIXME: insert proper C++ library support
 | 
|---|
| 3626 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3627 |         ;;
 | 
|---|
| 3628 |     esac
 | 
|---|
| 3629 |     ;;
 | 
|---|
| 3630 |   solaris*)
 | 
|---|
| 3631 |     case $cc_basename in
 | 
|---|
| 3632 |       CC*)
 | 
|---|
| 3633 |         # Sun C++ 4.2, 5.x and Centerline C++
 | 
|---|
| 3634 |         _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
 | 
|---|
| 3635 |         _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 | 
|---|
| 3636 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 | 
|---|
| 3637 |         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 | 
|---|
| 3638 |         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 | 
|---|
| 3639 | 
 | 
|---|
| 3640 |         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 | 
|---|
| 3641 |         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 3642 |         case $host_os in
 | 
|---|
| 3643 |           solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 | 
|---|
| 3644 |           *)
 | 
|---|
| 3645 |             # The C++ compiler is used as linker so we must use $wl
 | 
|---|
| 3646 |             # flag to pass the commands to the underlying system
 | 
|---|
| 3647 |             # linker. We must also pass each convience library through
 | 
|---|
| 3648 |             # to the system linker between allextract/defaultextract.
 | 
|---|
| 3649 |             # The C++ compiler will combine linker options so we
 | 
|---|
| 3650 |             # cannot just pass the convience library names through
 | 
|---|
| 3651 |             # without $wl.
 | 
|---|
| 3652 |             # Supported since Solaris 2.6 (maybe 2.5.1?)
 | 
|---|
| 3653 |             _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 | 
|---|
| 3654 |             ;;
 | 
|---|
| 3655 |         esac
 | 
|---|
| 3656 |         _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 | 
|---|
| 3657 | 
 | 
|---|
| 3658 |         output_verbose_link_cmd='echo'
 | 
|---|
| 3659 | 
 | 
|---|
| 3660 |         # Archives containing C++ object files must be created using
 | 
|---|
| 3661 |         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 | 
|---|
| 3662 |         # necessary to make sure instantiated templates are included
 | 
|---|
| 3663 |         # in the archive.
 | 
|---|
| 3664 |         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 | 
|---|
| 3665 |         ;;
 | 
|---|
| 3666 |       gcx*)
 | 
|---|
| 3667 |         # Green Hills C++ Compiler
 | 
|---|
| 3668 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 | 
|---|
| 3669 | 
 | 
|---|
| 3670 |         # The C++ compiler must be used to create the archive.
 | 
|---|
| 3671 |         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 | 
|---|
| 3672 |         ;;
 | 
|---|
| 3673 |       *)
 | 
|---|
| 3674 |         # GNU C++ compiler with Solaris linker
 | 
|---|
| 3675 |         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 | 
|---|
| 3676 |           _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 | 
|---|
| 3677 |           if $CC --version | grep -v '^2\.7' > /dev/null; then
 | 
|---|
| 3678 |             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 | 
|---|
| 3679 |             _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 | 
|---|
| 3680 |                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 | 
|---|
| 3681 | 
 | 
|---|
| 3682 |             # Commands to make compiler produce verbose output that lists
 | 
|---|
| 3683 |             # what "hidden" libraries, object files and flags are used when
 | 
|---|
| 3684 |             # linking a shared library.
 | 
|---|
| 3685 |             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 | 
|---|
| 3686 |           else
 | 
|---|
| 3687 |             # g++ 2.7 appears to require `-G' NOT `-shared' on this
 | 
|---|
| 3688 |             # platform.
 | 
|---|
| 3689 |             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 | 
|---|
| 3690 |             _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 | 
|---|
| 3691 |                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 | 
|---|
| 3692 | 
 | 
|---|
| 3693 |             # Commands to make compiler produce verbose output that lists
 | 
|---|
| 3694 |             # what "hidden" libraries, object files and flags are used when
 | 
|---|
| 3695 |             # linking a shared library.
 | 
|---|
| 3696 |             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 | 
|---|
| 3697 |           fi
 | 
|---|
| 3698 | 
 | 
|---|
| 3699 |           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 | 
|---|
| 3700 |         fi
 | 
|---|
| 3701 |         ;;
 | 
|---|
| 3702 |     esac
 | 
|---|
| 3703 |     ;;
 | 
|---|
| 3704 |   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 | 
|---|
| 3705 |     _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 | 
|---|
| 3706 |     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 | 
|---|
| 3707 |     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 3708 |     runpath_var='LD_RUN_PATH'
 | 
|---|
| 3709 | 
 | 
|---|
| 3710 |     case $cc_basename in
 | 
|---|
| 3711 |       CC*)
 | 
|---|
| 3712 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 3713 |         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 3714 |         ;;
 | 
|---|
| 3715 |       *)
 | 
|---|
| 3716 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 3717 |         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 3718 |         ;;
 | 
|---|
| 3719 |     esac
 | 
|---|
| 3720 |     ;;
 | 
|---|
| 3721 |   sysv5* | sco3.2v5* | sco5v6*)
 | 
|---|
| 3722 |     # Note: We can NOT use -z defs as we might desire, because we do not
 | 
|---|
| 3723 |     # link with -lc, and that would cause any symbols used from libc to
 | 
|---|
| 3724 |     # always be unresolved, which means just about no library would
 | 
|---|
| 3725 |     # ever link correctly.  If we're not using GNU ld we use -z text
 | 
|---|
| 3726 |     # though, which does catch some bad symbols but isn't as heavy-handed
 | 
|---|
| 3727 |     # as -z defs.
 | 
|---|
| 3728 |     # For security reasons, it is highly recommended that you always
 | 
|---|
| 3729 |     # use absolute paths for naming shared libraries, and exclude the
 | 
|---|
| 3730 |     # DT_RUNPATH tag from executables and libraries.  But doing so
 | 
|---|
| 3731 |     # requires that you compile everything twice, which is a pain.
 | 
|---|
| 3732 |     # So that behaviour is only enabled if SCOABSPATH is set to a
 | 
|---|
| 3733 |     # non-empty value in the environment.  Most likely only useful for
 | 
|---|
| 3734 |     # creating official distributions of packages.
 | 
|---|
| 3735 |     # This is a hack until libtool officially supports absolute path
 | 
|---|
| 3736 |     # names for shared libraries.
 | 
|---|
| 3737 |     _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 | 
|---|
| 3738 |     _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 | 
|---|
| 3739 |     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 | 
|---|
| 3740 |     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 3741 |     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 | 
|---|
| 3742 |     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 | 
|---|
| 3743 |     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 | 
|---|
| 3744 |     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 | 
|---|
| 3745 |     runpath_var='LD_RUN_PATH'
 | 
|---|
| 3746 | 
 | 
|---|
| 3747 |     case $cc_basename in
 | 
|---|
| 3748 |       CC*)
 | 
|---|
| 3749 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 3750 |         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 3751 |         ;;
 | 
|---|
| 3752 |       *)
 | 
|---|
| 3753 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 3754 |         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 3755 |         ;;
 | 
|---|
| 3756 |     esac
 | 
|---|
| 3757 |     ;;
 | 
|---|
| 3758 |   tandem*)
 | 
|---|
| 3759 |     case $cc_basename in
 | 
|---|
| 3760 |       NCC*)
 | 
|---|
| 3761 |         # NonStop-UX NCC 3.20
 | 
|---|
| 3762 |         # FIXME: insert proper C++ library support
 | 
|---|
| 3763 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3764 |         ;;
 | 
|---|
| 3765 |       *)
 | 
|---|
| 3766 |         # FIXME: insert proper C++ library support
 | 
|---|
| 3767 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3768 |         ;;
 | 
|---|
| 3769 |     esac
 | 
|---|
| 3770 |     ;;
 | 
|---|
| 3771 |   vxworks*)
 | 
|---|
| 3772 |     # FIXME: insert proper C++ library support
 | 
|---|
| 3773 |     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3774 |     ;;
 | 
|---|
| 3775 |   *)
 | 
|---|
| 3776 |     # FIXME: insert proper C++ library support
 | 
|---|
| 3777 |     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 3778 |     ;;
 | 
|---|
| 3779 | esac
 | 
|---|
| 3780 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 | 
|---|
| 3781 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 | 
|---|
| 3782 | 
 | 
|---|
| 3783 | _LT_AC_TAGVAR(GCC, $1)="$GXX"
 | 
|---|
| 3784 | _LT_AC_TAGVAR(LD, $1)="$LD"
 | 
|---|
| 3785 | 
 | 
|---|
| 3786 | ## CAVEAT EMPTOR:
 | 
|---|
| 3787 | ## There is no encapsulation within the following macros, do not change
 | 
|---|
| 3788 | ## the running order or otherwise move them around unless you know exactly
 | 
|---|
| 3789 | ## what you are doing...
 | 
|---|
| 3790 | AC_LIBTOOL_POSTDEP_PREDEP($1)
 | 
|---|
| 3791 | AC_LIBTOOL_PROG_COMPILER_PIC($1)
 | 
|---|
| 3792 | AC_LIBTOOL_PROG_CC_C_O($1)
 | 
|---|
| 3793 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 | 
|---|
| 3794 | AC_LIBTOOL_PROG_LD_SHLIBS($1)
 | 
|---|
| 3795 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 | 
|---|
| 3796 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 | 
|---|
| 3797 | 
 | 
|---|
| 3798 | AC_LIBTOOL_CONFIG($1)
 | 
|---|
| 3799 | 
 | 
|---|
| 3800 | AC_LANG_POP
 | 
|---|
| 3801 | CC=$lt_save_CC
 | 
|---|
| 3802 | LDCXX=$LD
 | 
|---|
| 3803 | LD=$lt_save_LD
 | 
|---|
| 3804 | GCC=$lt_save_GCC
 | 
|---|
| 3805 | with_gnu_ldcxx=$with_gnu_ld
 | 
|---|
| 3806 | with_gnu_ld=$lt_save_with_gnu_ld
 | 
|---|
| 3807 | lt_cv_path_LDCXX=$lt_cv_path_LD
 | 
|---|
| 3808 | lt_cv_path_LD=$lt_save_path_LD
 | 
|---|
| 3809 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 | 
|---|
| 3810 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 | 
|---|
| 3811 | ])# AC_LIBTOOL_LANG_CXX_CONFIG
 | 
|---|
| 3812 | 
 | 
|---|
| 3813 | # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
 | 
|---|
| 3814 | # ------------------------------------
 | 
|---|
| 3815 | # Figure out "hidden" library dependencies from verbose
 | 
|---|
| 3816 | # compiler output when linking a shared library.
 | 
|---|
| 3817 | # Parse the compiler output and extract the necessary
 | 
|---|
| 3818 | # objects, libraries and library flags.
 | 
|---|
| 3819 | AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 | 
|---|
| 3820 | dnl we can't use the lt_simple_compile_test_code here,
 | 
|---|
| 3821 | dnl because it contains code intended for an executable,
 | 
|---|
| 3822 | dnl not a library.  It's possible we should let each
 | 
|---|
| 3823 | dnl tag define a new lt_????_link_test_code variable,
 | 
|---|
| 3824 | dnl but it's only used here...
 | 
|---|
| 3825 | ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
 | 
|---|
| 3826 | int a;
 | 
|---|
| 3827 | void foo (void) { a = 0; }
 | 
|---|
| 3828 | EOF
 | 
|---|
| 3829 | ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
 | 
|---|
| 3830 | class Foo
 | 
|---|
| 3831 | {
 | 
|---|
| 3832 | public:
 | 
|---|
| 3833 |   Foo (void) { a = 0; }
 | 
|---|
| 3834 | private:
 | 
|---|
| 3835 |   int a;
 | 
|---|
| 3836 | };
 | 
|---|
| 3837 | EOF
 | 
|---|
| 3838 | ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
 | 
|---|
| 3839 |       subroutine foo
 | 
|---|
| 3840 |       implicit none
 | 
|---|
| 3841 |       integer*4 a
 | 
|---|
| 3842 |       a=0
 | 
|---|
| 3843 |       return
 | 
|---|
| 3844 |       end
 | 
|---|
| 3845 | EOF
 | 
|---|
| 3846 | ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
 | 
|---|
| 3847 | public class foo {
 | 
|---|
| 3848 |   private int a;
 | 
|---|
| 3849 |   public void bar (void) {
 | 
|---|
| 3850 |     a = 0;
 | 
|---|
| 3851 |   }
 | 
|---|
| 3852 | };
 | 
|---|
| 3853 | EOF
 | 
|---|
| 3854 | ])
 | 
|---|
| 3855 | dnl Parse the compiler output and extract the necessary
 | 
|---|
| 3856 | dnl objects, libraries and library flags.
 | 
|---|
| 3857 | if AC_TRY_EVAL(ac_compile); then
 | 
|---|
| 3858 |   # Parse the compiler output and extract the necessary
 | 
|---|
| 3859 |   # objects, libraries and library flags.
 | 
|---|
| 3860 | 
 | 
|---|
| 3861 |   # Sentinel used to keep track of whether or not we are before
 | 
|---|
| 3862 |   # the conftest object file.
 | 
|---|
| 3863 |   pre_test_object_deps_done=no
 | 
|---|
| 3864 | 
 | 
|---|
| 3865 |   # The `*' in the case matches for architectures that use `case' in
 | 
|---|
| 3866 |   # $output_verbose_cmd can trigger glob expansion during the loop
 | 
|---|
| 3867 |   # eval without this substitution.
 | 
|---|
| 3868 |   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 | 
|---|
| 3869 | 
 | 
|---|
| 3870 |   for p in `eval $output_verbose_link_cmd`; do
 | 
|---|
| 3871 |     case $p in
 | 
|---|
| 3872 | 
 | 
|---|
| 3873 |     -L* | -R* | -l*)
 | 
|---|
| 3874 |        # Some compilers place space between "-{L,R}" and the path.
 | 
|---|
| 3875 |        # Remove the space.
 | 
|---|
| 3876 |        if test $p = "-L" \
 | 
|---|
| 3877 |           || test $p = "-R"; then
 | 
|---|
| 3878 |          prev=$p
 | 
|---|
| 3879 |          continue
 | 
|---|
| 3880 |        else
 | 
|---|
| 3881 |          prev=
 | 
|---|
| 3882 |        fi
 | 
|---|
| 3883 | 
 | 
|---|
| 3884 |        if test "$pre_test_object_deps_done" = no; then
 | 
|---|
| 3885 |          case $p in
 | 
|---|
| 3886 |          -L* | -R*)
 | 
|---|
| 3887 |            # Internal compiler library paths should come after those
 | 
|---|
| 3888 |            # provided the user.  The postdeps already come after the
 | 
|---|
| 3889 |            # user supplied libs so there is no need to process them.
 | 
|---|
| 3890 |            if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 | 
|---|
| 3891 |              _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 | 
|---|
| 3892 |            else
 | 
|---|
| 3893 |              _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 | 
|---|
| 3894 |            fi
 | 
|---|
| 3895 |            ;;
 | 
|---|
| 3896 |          # The "-l" case would never come before the object being
 | 
|---|
| 3897 |          # linked, so don't bother handling this case.
 | 
|---|
| 3898 |          esac
 | 
|---|
| 3899 |        else
 | 
|---|
| 3900 |          if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
 | 
|---|
| 3901 |            _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
 | 
|---|
| 3902 |          else
 | 
|---|
| 3903 |            _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
 | 
|---|
| 3904 |          fi
 | 
|---|
| 3905 |        fi
 | 
|---|
| 3906 |        ;;
 | 
|---|
| 3907 | 
 | 
|---|
| 3908 |     *.$objext)
 | 
|---|
| 3909 |        # This assumes that the test object file only shows up
 | 
|---|
| 3910 |        # once in the compiler output.
 | 
|---|
| 3911 |        if test "$p" = "conftest.$objext"; then
 | 
|---|
| 3912 |          pre_test_object_deps_done=yes
 | 
|---|
| 3913 |          continue
 | 
|---|
| 3914 |        fi
 | 
|---|
| 3915 | 
 | 
|---|
| 3916 |        if test "$pre_test_object_deps_done" = no; then
 | 
|---|
| 3917 |          if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
 | 
|---|
| 3918 |            _LT_AC_TAGVAR(predep_objects, $1)="$p"
 | 
|---|
| 3919 |          else
 | 
|---|
| 3920 |            _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
 | 
|---|
| 3921 |          fi
 | 
|---|
| 3922 |        else
 | 
|---|
| 3923 |          if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
 | 
|---|
| 3924 |            _LT_AC_TAGVAR(postdep_objects, $1)="$p"
 | 
|---|
| 3925 |          else
 | 
|---|
| 3926 |            _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
 | 
|---|
| 3927 |          fi
 | 
|---|
| 3928 |        fi
 | 
|---|
| 3929 |        ;;
 | 
|---|
| 3930 | 
 | 
|---|
| 3931 |     *) ;; # Ignore the rest.
 | 
|---|
| 3932 | 
 | 
|---|
| 3933 |     esac
 | 
|---|
| 3934 |   done
 | 
|---|
| 3935 | 
 | 
|---|
| 3936 |   # Clean up.
 | 
|---|
| 3937 |   rm -f a.out a.exe
 | 
|---|
| 3938 | else
 | 
|---|
| 3939 |   echo "libtool.m4: error: problem compiling $1 test program"
 | 
|---|
| 3940 | fi
 | 
|---|
| 3941 | 
 | 
|---|
| 3942 | $rm -f confest.$objext
 | 
|---|
| 3943 | 
 | 
|---|
| 3944 | # PORTME: override above test on systems where it is broken
 | 
|---|
| 3945 | ifelse([$1],[CXX],
 | 
|---|
| 3946 | [case $host_os in
 | 
|---|
| 3947 | interix3*)
 | 
|---|
| 3948 |   # Interix 3.5 installs completely hosed .la files for C++, so rather than
 | 
|---|
| 3949 |   # hack all around it, let's just trust "g++" to DTRT.
 | 
|---|
| 3950 |   _LT_AC_TAGVAR(predep_objects,$1)=
 | 
|---|
| 3951 |   _LT_AC_TAGVAR(postdep_objects,$1)=
 | 
|---|
| 3952 |   _LT_AC_TAGVAR(postdeps,$1)=
 | 
|---|
| 3953 |   ;;
 | 
|---|
| 3954 | 
 | 
|---|
| 3955 | solaris*)
 | 
|---|
| 3956 |   case $cc_basename in
 | 
|---|
| 3957 |   CC*)
 | 
|---|
| 3958 |     # Adding this requires a known-good setup of shared libraries for
 | 
|---|
| 3959 |     # Sun compiler versions before 5.6, else PIC objects from an old
 | 
|---|
| 3960 |     # archive will be linked into the output, leading to subtle bugs.
 | 
|---|
| 3961 |     _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 | 
|---|
| 3962 |     ;;
 | 
|---|
| 3963 |   esac
 | 
|---|
| 3964 |   ;;
 | 
|---|
| 3965 | esac
 | 
|---|
| 3966 | ])
 | 
|---|
| 3967 | 
 | 
|---|
| 3968 | case " $_LT_AC_TAGVAR(postdeps, $1) " in
 | 
|---|
| 3969 | *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 | 
|---|
| 3970 | esac
 | 
|---|
| 3971 | ])# AC_LIBTOOL_POSTDEP_PREDEP
 | 
|---|
| 3972 | 
 | 
|---|
| 3973 | # AC_LIBTOOL_LANG_F77_CONFIG
 | 
|---|
| 3974 | # --------------------------
 | 
|---|
| 3975 | # Ensure that the configuration vars for the C compiler are
 | 
|---|
| 3976 | # suitably defined.  Those variables are subsequently used by
 | 
|---|
| 3977 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 | 
|---|
| 3978 | AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
 | 
|---|
| 3979 | AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
 | 
|---|
| 3980 | [AC_REQUIRE([AC_PROG_F77])
 | 
|---|
| 3981 | AC_LANG_PUSH(Fortran 77)
 | 
|---|
| 3982 | 
 | 
|---|
| 3983 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 | 
|---|
| 3984 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 | 
|---|
| 3985 | _LT_AC_TAGVAR(always_export_symbols, $1)=no
 | 
|---|
| 3986 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 | 
|---|
| 3987 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 | 
|---|
| 3988 | _LT_AC_TAGVAR(hardcode_direct, $1)=no
 | 
|---|
| 3989 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 | 
|---|
| 3990 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 | 
|---|
| 3991 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 | 
|---|
| 3992 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 | 
|---|
| 3993 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no
 | 
|---|
| 3994 | _LT_AC_TAGVAR(module_cmds, $1)=
 | 
|---|
| 3995 | _LT_AC_TAGVAR(module_expsym_cmds, $1)=
 | 
|---|
| 3996 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 | 
|---|
| 3997 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 | 
|---|
| 3998 | _LT_AC_TAGVAR(no_undefined_flag, $1)=
 | 
|---|
| 3999 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 | 
|---|
| 4000 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 | 
|---|
| 4001 | 
 | 
|---|
| 4002 | # Source file extension for f77 test sources.
 | 
|---|
| 4003 | ac_ext=f
 | 
|---|
| 4004 | 
 | 
|---|
| 4005 | # Object file extension for compiled f77 test sources.
 | 
|---|
| 4006 | objext=o
 | 
|---|
| 4007 | _LT_AC_TAGVAR(objext, $1)=$objext
 | 
|---|
| 4008 | 
 | 
|---|
| 4009 | # Code to be used in simple compile tests
 | 
|---|
| 4010 | lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 | 
|---|
| 4011 | 
 | 
|---|
| 4012 | # Code to be used in simple link tests
 | 
|---|
| 4013 | lt_simple_link_test_code="      program t\n      end\n"
 | 
|---|
| 4014 | 
 | 
|---|
| 4015 | # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 | 
|---|
| 4016 | _LT_AC_SYS_COMPILER
 | 
|---|
| 4017 | 
 | 
|---|
| 4018 | # save warnings/boilerplate of simple test code
 | 
|---|
| 4019 | _LT_COMPILER_BOILERPLATE
 | 
|---|
| 4020 | _LT_LINKER_BOILERPLATE
 | 
|---|
| 4021 | 
 | 
|---|
| 4022 | # Allow CC to be a program name with arguments.
 | 
|---|
| 4023 | lt_save_CC="$CC"
 | 
|---|
| 4024 | CC=${F77-"f77"}
 | 
|---|
| 4025 | compiler=$CC
 | 
|---|
| 4026 | _LT_AC_TAGVAR(compiler, $1)=$CC
 | 
|---|
| 4027 | _LT_CC_BASENAME([$compiler])
 | 
|---|
| 4028 | 
 | 
|---|
| 4029 | AC_MSG_CHECKING([if libtool supports shared libraries])
 | 
|---|
| 4030 | AC_MSG_RESULT([$can_build_shared])
 | 
|---|
| 4031 | 
 | 
|---|
| 4032 | AC_MSG_CHECKING([whether to build shared libraries])
 | 
|---|
| 4033 | test "$can_build_shared" = "no" && enable_shared=no
 | 
|---|
| 4034 | 
 | 
|---|
| 4035 | # On AIX, shared libraries and static libraries use the same namespace, and
 | 
|---|
| 4036 | # are all built from PIC.
 | 
|---|
| 4037 | case $host_os in
 | 
|---|
| 4038 | aix3*)
 | 
|---|
| 4039 |   test "$enable_shared" = yes && enable_static=no
 | 
|---|
| 4040 |   if test -n "$RANLIB"; then
 | 
|---|
| 4041 |     archive_cmds="$archive_cmds~\$RANLIB \$lib"
 | 
|---|
| 4042 |     postinstall_cmds='$RANLIB $lib'
 | 
|---|
| 4043 |   fi
 | 
|---|
| 4044 |   ;;
 | 
|---|
| 4045 | aix4* | aix5*)
 | 
|---|
| 4046 |   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 | 
|---|
| 4047 |     test "$enable_shared" = yes && enable_static=no
 | 
|---|
| 4048 |   fi
 | 
|---|
| 4049 |   ;;
 | 
|---|
| 4050 | esac
 | 
|---|
| 4051 | AC_MSG_RESULT([$enable_shared])
 | 
|---|
| 4052 | 
 | 
|---|
| 4053 | AC_MSG_CHECKING([whether to build static libraries])
 | 
|---|
| 4054 | # Make sure either enable_shared or enable_static is yes.
 | 
|---|
| 4055 | test "$enable_shared" = yes || enable_static=yes
 | 
|---|
| 4056 | AC_MSG_RESULT([$enable_static])
 | 
|---|
| 4057 | 
 | 
|---|
| 4058 | _LT_AC_TAGVAR(GCC, $1)="$G77"
 | 
|---|
| 4059 | _LT_AC_TAGVAR(LD, $1)="$LD"
 | 
|---|
| 4060 | 
 | 
|---|
| 4061 | AC_LIBTOOL_PROG_COMPILER_PIC($1)
 | 
|---|
| 4062 | AC_LIBTOOL_PROG_CC_C_O($1)
 | 
|---|
| 4063 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 | 
|---|
| 4064 | AC_LIBTOOL_PROG_LD_SHLIBS($1)
 | 
|---|
| 4065 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 | 
|---|
| 4066 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 | 
|---|
| 4067 | 
 | 
|---|
| 4068 | AC_LIBTOOL_CONFIG($1)
 | 
|---|
| 4069 | 
 | 
|---|
| 4070 | AC_LANG_POP
 | 
|---|
| 4071 | CC="$lt_save_CC"
 | 
|---|
| 4072 | ])# AC_LIBTOOL_LANG_F77_CONFIG
 | 
|---|
| 4073 | 
 | 
|---|
| 4074 | 
 | 
|---|
| 4075 | # AC_LIBTOOL_LANG_GCJ_CONFIG
 | 
|---|
| 4076 | # --------------------------
 | 
|---|
| 4077 | # Ensure that the configuration vars for the C compiler are
 | 
|---|
| 4078 | # suitably defined.  Those variables are subsequently used by
 | 
|---|
| 4079 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 | 
|---|
| 4080 | AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
 | 
|---|
| 4081 | AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
 | 
|---|
| 4082 | [AC_LANG_SAVE
 | 
|---|
| 4083 | 
 | 
|---|
| 4084 | # Source file extension for Java test sources.
 | 
|---|
| 4085 | ac_ext=java
 | 
|---|
| 4086 | 
 | 
|---|
| 4087 | # Object file extension for compiled Java test sources.
 | 
|---|
| 4088 | objext=o
 | 
|---|
| 4089 | _LT_AC_TAGVAR(objext, $1)=$objext
 | 
|---|
| 4090 | 
 | 
|---|
| 4091 | # Code to be used in simple compile tests
 | 
|---|
| 4092 | lt_simple_compile_test_code="class foo {}\n"
 | 
|---|
| 4093 | 
 | 
|---|
| 4094 | # Code to be used in simple link tests
 | 
|---|
| 4095 | lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 | 
|---|
| 4096 | 
 | 
|---|
| 4097 | # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 | 
|---|
| 4098 | _LT_AC_SYS_COMPILER
 | 
|---|
| 4099 | 
 | 
|---|
| 4100 | # save warnings/boilerplate of simple test code
 | 
|---|
| 4101 | _LT_COMPILER_BOILERPLATE
 | 
|---|
| 4102 | _LT_LINKER_BOILERPLATE
 | 
|---|
| 4103 | 
 | 
|---|
| 4104 | # Allow CC to be a program name with arguments.
 | 
|---|
| 4105 | lt_save_CC="$CC"
 | 
|---|
| 4106 | CC=${GCJ-"gcj"}
 | 
|---|
| 4107 | compiler=$CC
 | 
|---|
| 4108 | _LT_AC_TAGVAR(compiler, $1)=$CC
 | 
|---|
| 4109 | _LT_CC_BASENAME([$compiler])
 | 
|---|
| 4110 | 
 | 
|---|
| 4111 | # GCJ did not exist at the time GCC didn't implicitly link libc in.
 | 
|---|
| 4112 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 | 
|---|
| 4113 | 
 | 
|---|
| 4114 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 | 
|---|
| 4115 | 
 | 
|---|
| 4116 | ## CAVEAT EMPTOR:
 | 
|---|
| 4117 | ## There is no encapsulation within the following macros, do not change
 | 
|---|
| 4118 | ## the running order or otherwise move them around unless you know exactly
 | 
|---|
| 4119 | ## what you are doing...
 | 
|---|
| 4120 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 | 
|---|
| 4121 | AC_LIBTOOL_PROG_COMPILER_PIC($1)
 | 
|---|
| 4122 | AC_LIBTOOL_PROG_CC_C_O($1)
 | 
|---|
| 4123 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 | 
|---|
| 4124 | AC_LIBTOOL_PROG_LD_SHLIBS($1)
 | 
|---|
| 4125 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 | 
|---|
| 4126 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 | 
|---|
| 4127 | 
 | 
|---|
| 4128 | AC_LIBTOOL_CONFIG($1)
 | 
|---|
| 4129 | 
 | 
|---|
| 4130 | AC_LANG_RESTORE
 | 
|---|
| 4131 | CC="$lt_save_CC"
 | 
|---|
| 4132 | ])# AC_LIBTOOL_LANG_GCJ_CONFIG
 | 
|---|
| 4133 | 
 | 
|---|
| 4134 | 
 | 
|---|
| 4135 | # AC_LIBTOOL_LANG_RC_CONFIG
 | 
|---|
| 4136 | # -------------------------
 | 
|---|
| 4137 | # Ensure that the configuration vars for the Windows resource compiler are
 | 
|---|
| 4138 | # suitably defined.  Those variables are subsequently used by
 | 
|---|
| 4139 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 | 
|---|
| 4140 | AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
 | 
|---|
| 4141 | AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
 | 
|---|
| 4142 | [AC_LANG_SAVE
 | 
|---|
| 4143 | 
 | 
|---|
| 4144 | # Source file extension for RC test sources.
 | 
|---|
| 4145 | ac_ext=rc
 | 
|---|
| 4146 | 
 | 
|---|
| 4147 | # Object file extension for compiled RC test sources.
 | 
|---|
| 4148 | objext=o
 | 
|---|
| 4149 | _LT_AC_TAGVAR(objext, $1)=$objext
 | 
|---|
| 4150 | 
 | 
|---|
| 4151 | # Code to be used in simple compile tests
 | 
|---|
| 4152 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 | 
|---|
| 4153 | 
 | 
|---|
| 4154 | # Code to be used in simple link tests
 | 
|---|
| 4155 | lt_simple_link_test_code="$lt_simple_compile_test_code"
 | 
|---|
| 4156 | 
 | 
|---|
| 4157 | # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 | 
|---|
| 4158 | _LT_AC_SYS_COMPILER
 | 
|---|
| 4159 | 
 | 
|---|
| 4160 | # save warnings/boilerplate of simple test code
 | 
|---|
| 4161 | _LT_COMPILER_BOILERPLATE
 | 
|---|
| 4162 | _LT_LINKER_BOILERPLATE
 | 
|---|
| 4163 | 
 | 
|---|
| 4164 | # Allow CC to be a program name with arguments.
 | 
|---|
| 4165 | lt_save_CC="$CC"
 | 
|---|
| 4166 | CC=${RC-"windres"}
 | 
|---|
| 4167 | compiler=$CC
 | 
|---|
| 4168 | _LT_AC_TAGVAR(compiler, $1)=$CC
 | 
|---|
| 4169 | _LT_CC_BASENAME([$compiler])
 | 
|---|
| 4170 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 | 
|---|
| 4171 | 
 | 
|---|
| 4172 | AC_LIBTOOL_CONFIG($1)
 | 
|---|
| 4173 | 
 | 
|---|
| 4174 | AC_LANG_RESTORE
 | 
|---|
| 4175 | CC="$lt_save_CC"
 | 
|---|
| 4176 | ])# AC_LIBTOOL_LANG_RC_CONFIG
 | 
|---|
| 4177 | 
 | 
|---|
| 4178 | 
 | 
|---|
| 4179 | # AC_LIBTOOL_CONFIG([TAGNAME])
 | 
|---|
| 4180 | # ----------------------------
 | 
|---|
| 4181 | # If TAGNAME is not passed, then create an initial libtool script
 | 
|---|
| 4182 | # with a default configuration from the untagged config vars.  Otherwise
 | 
|---|
| 4183 | # add code to config.status for appending the configuration named by
 | 
|---|
| 4184 | # TAGNAME from the matching tagged config vars.
 | 
|---|
| 4185 | AC_DEFUN([AC_LIBTOOL_CONFIG],
 | 
|---|
| 4186 | [# The else clause should only fire when bootstrapping the
 | 
|---|
| 4187 | # libtool distribution, otherwise you forgot to ship ltmain.sh
 | 
|---|
| 4188 | # with your package, and you will get complaints that there are
 | 
|---|
| 4189 | # no rules to generate ltmain.sh.
 | 
|---|
| 4190 | if test -f "$ltmain"; then
 | 
|---|
| 4191 |   # See if we are running on zsh, and set the options which allow our commands through
 | 
|---|
| 4192 |   # without removal of \ escapes.
 | 
|---|
| 4193 |   if test -n "${ZSH_VERSION+set}" ; then
 | 
|---|
| 4194 |     setopt NO_GLOB_SUBST
 | 
|---|
| 4195 |   fi
 | 
|---|
| 4196 |   # Now quote all the things that may contain metacharacters while being
 | 
|---|
| 4197 |   # careful not to overquote the AC_SUBSTed values.  We take copies of the
 | 
|---|
| 4198 |   # variables and quote the copies for generation of the libtool script.
 | 
|---|
| 4199 |   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 | 
|---|
| 4200 |     SED SHELL STRIP \
 | 
|---|
| 4201 |     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 | 
|---|
| 4202 |     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 | 
|---|
| 4203 |     deplibs_check_method reload_flag reload_cmds need_locks \
 | 
|---|
| 4204 |     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 | 
|---|
| 4205 |     lt_cv_sys_global_symbol_to_c_name_address \
 | 
|---|
| 4206 |     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 | 
|---|
| 4207 |     old_postinstall_cmds old_postuninstall_cmds \
 | 
|---|
| 4208 |     _LT_AC_TAGVAR(compiler, $1) \
 | 
|---|
| 4209 |     _LT_AC_TAGVAR(CC, $1) \
 | 
|---|
| 4210 |     _LT_AC_TAGVAR(LD, $1) \
 | 
|---|
| 4211 |     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
 | 
|---|
| 4212 |     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
 | 
|---|
| 4213 |     _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
 | 
|---|
| 4214 |     _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
 | 
|---|
| 4215 |     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
 | 
|---|
| 4216 |     _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
 | 
|---|
| 4217 |     _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
 | 
|---|
| 4218 |     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
 | 
|---|
| 4219 |     _LT_AC_TAGVAR(old_archive_cmds, $1) \
 | 
|---|
| 4220 |     _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
 | 
|---|
| 4221 |     _LT_AC_TAGVAR(predep_objects, $1) \
 | 
|---|
| 4222 |     _LT_AC_TAGVAR(postdep_objects, $1) \
 | 
|---|
| 4223 |     _LT_AC_TAGVAR(predeps, $1) \
 | 
|---|
| 4224 |     _LT_AC_TAGVAR(postdeps, $1) \
 | 
|---|
| 4225 |     _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 | 
|---|
| 4226 |     _LT_AC_TAGVAR(archive_cmds, $1) \
 | 
|---|
| 4227 |     _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
 | 
|---|
| 4228 |     _LT_AC_TAGVAR(postinstall_cmds, $1) \
 | 
|---|
| 4229 |     _LT_AC_TAGVAR(postuninstall_cmds, $1) \
 | 
|---|
| 4230 |     _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
 | 
|---|
| 4231 |     _LT_AC_TAGVAR(allow_undefined_flag, $1) \
 | 
|---|
| 4232 |     _LT_AC_TAGVAR(no_undefined_flag, $1) \
 | 
|---|
| 4233 |     _LT_AC_TAGVAR(export_symbols_cmds, $1) \
 | 
|---|
| 4234 |     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
 | 
|---|
| 4235 |     _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
 | 
|---|
| 4236 |     _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
 | 
|---|
| 4237 |     _LT_AC_TAGVAR(hardcode_automatic, $1) \
 | 
|---|
| 4238 |     _LT_AC_TAGVAR(module_cmds, $1) \
 | 
|---|
| 4239 |     _LT_AC_TAGVAR(module_expsym_cmds, $1) \
 | 
|---|
| 4240 |     _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 | 
|---|
| 4241 |     _LT_AC_TAGVAR(exclude_expsyms, $1) \
 | 
|---|
| 4242 |     _LT_AC_TAGVAR(include_expsyms, $1); do
 | 
|---|
| 4243 | 
 | 
|---|
| 4244 |     case $var in
 | 
|---|
| 4245 |     _LT_AC_TAGVAR(old_archive_cmds, $1) | \
 | 
|---|
| 4246 |     _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
 | 
|---|
| 4247 |     _LT_AC_TAGVAR(archive_cmds, $1) | \
 | 
|---|
| 4248 |     _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
 | 
|---|
| 4249 |     _LT_AC_TAGVAR(module_cmds, $1) | \
 | 
|---|
| 4250 |     _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
 | 
|---|
| 4251 |     _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
 | 
|---|
| 4252 |     _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
 | 
|---|
| 4253 |     extract_expsyms_cmds | reload_cmds | finish_cmds | \
 | 
|---|
| 4254 |     postinstall_cmds | postuninstall_cmds | \
 | 
|---|
| 4255 |     old_postinstall_cmds | old_postuninstall_cmds | \
 | 
|---|
| 4256 |     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 | 
|---|
| 4257 |       # Double-quote double-evaled strings.
 | 
|---|
| 4258 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 | 
|---|
| 4259 |       ;;
 | 
|---|
| 4260 |     *)
 | 
|---|
| 4261 |       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 | 
|---|
| 4262 |       ;;
 | 
|---|
| 4263 |     esac
 | 
|---|
| 4264 |   done
 | 
|---|
| 4265 | 
 | 
|---|
| 4266 |   case $lt_echo in
 | 
|---|
| 4267 |   *'\[$]0 --fallback-echo"')
 | 
|---|
| 4268 |     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
 | 
|---|
| 4269 |     ;;
 | 
|---|
| 4270 |   esac
 | 
|---|
| 4271 | 
 | 
|---|
| 4272 | ifelse([$1], [],
 | 
|---|
| 4273 |   [cfgfile="${ofile}T"
 | 
|---|
| 4274 |   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 | 
|---|
| 4275 |   $rm -f "$cfgfile"
 | 
|---|
| 4276 |   AC_MSG_NOTICE([creating $ofile])],
 | 
|---|
| 4277 |   [cfgfile="$ofile"])
 | 
|---|
| 4278 | 
 | 
|---|
| 4279 |   cat <<__EOF__ >> "$cfgfile"
 | 
|---|
| 4280 | ifelse([$1], [],
 | 
|---|
| 4281 | [#! $SHELL
 | 
|---|
| 4282 | 
 | 
|---|
| 4283 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 | 
|---|
| 4284 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 | 
|---|
| 4285 | # NOTE: Changes made to this file will be lost: look at ltmain.sh.
 | 
|---|
| 4286 | #
 | 
|---|
| 4287 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 | 
|---|
| 4288 | # Free Software Foundation, Inc.
 | 
|---|
| 4289 | #
 | 
|---|
| 4290 | # This file is part of GNU Libtool:
 | 
|---|
| 4291 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 | 
|---|
| 4292 | #
 | 
|---|
| 4293 | # This program is free software; you can redistribute it and/or modify
 | 
|---|
| 4294 | # it under the terms of the GNU General Public License as published by
 | 
|---|
| 4295 | # the Free Software Foundation; either version 2 of the License, or
 | 
|---|
| 4296 | # (at your option) any later version.
 | 
|---|
| 4297 | #
 | 
|---|
| 4298 | # This program is distributed in the hope that it will be useful, but
 | 
|---|
| 4299 | # WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
|---|
| 4300 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 | 
|---|
| 4301 | # General Public License for more details.
 | 
|---|
| 4302 | #
 | 
|---|
| 4303 | # You should have received a copy of the GNU General Public License
 | 
|---|
| 4304 | # along with this program; if not, write to the Free Software
 | 
|---|
| 4305 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 | 
|---|
| 4306 | #
 | 
|---|
| 4307 | # As a special exception to the GNU General Public License, if you
 | 
|---|
| 4308 | # distribute this file as part of a program that contains a
 | 
|---|
| 4309 | # configuration script generated by Autoconf, you may include it under
 | 
|---|
| 4310 | # the same distribution terms that you use for the rest of that program.
 | 
|---|
| 4311 | 
 | 
|---|
| 4312 | # A sed program that does not truncate output.
 | 
|---|
| 4313 | SED=$lt_SED
 | 
|---|
| 4314 | 
 | 
|---|
| 4315 | # Sed that helps us avoid accidentally triggering echo(1) options like -n.
 | 
|---|
| 4316 | Xsed="$SED -e 1s/^X//"
 | 
|---|
| 4317 | 
 | 
|---|
| 4318 | # The HP-UX ksh and POSIX shell print the target directory to stdout
 | 
|---|
| 4319 | # if CDPATH is set.
 | 
|---|
| 4320 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 | 
|---|
| 4321 | 
 | 
|---|
| 4322 | # The names of the tagged configurations supported by this script.
 | 
|---|
| 4323 | available_tags=
 | 
|---|
| 4324 | 
 | 
|---|
| 4325 | # ### BEGIN LIBTOOL CONFIG],
 | 
|---|
| 4326 | [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
 | 
|---|
| 4327 | 
 | 
|---|
| 4328 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 | 
|---|
| 4329 | 
 | 
|---|
| 4330 | # Shell to use when invoking shell scripts.
 | 
|---|
| 4331 | SHELL=$lt_SHELL
 | 
|---|
| 4332 | 
 | 
|---|
| 4333 | # Whether or not to build shared libraries.
 | 
|---|
| 4334 | build_libtool_libs=$enable_shared
 | 
|---|
| 4335 | 
 | 
|---|
| 4336 | # Whether or not to build static libraries.
 | 
|---|
| 4337 | build_old_libs=$enable_static
 | 
|---|
| 4338 | 
 | 
|---|
| 4339 | # Whether or not to add -lc for building shared libraries.
 | 
|---|
| 4340 | build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
 | 
|---|
| 4341 | 
 | 
|---|
| 4342 | # Whether or not to disallow shared libs when runtime libs are static
 | 
|---|
| 4343 | allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
 | 
|---|
| 4344 | 
 | 
|---|
| 4345 | # Whether or not to optimize for fast installation.
 | 
|---|
| 4346 | fast_install=$enable_fast_install
 | 
|---|
| 4347 | 
 | 
|---|
| 4348 | # The host system.
 | 
|---|
| 4349 | host_alias=$host_alias
 | 
|---|
| 4350 | host=$host
 | 
|---|
| 4351 | host_os=$host_os
 | 
|---|
| 4352 | 
 | 
|---|
| 4353 | # The build system.
 | 
|---|
| 4354 | build_alias=$build_alias
 | 
|---|
| 4355 | build=$build
 | 
|---|
| 4356 | build_os=$build_os
 | 
|---|
| 4357 | 
 | 
|---|
| 4358 | # An echo program that does not interpret backslashes.
 | 
|---|
| 4359 | echo=$lt_echo
 | 
|---|
| 4360 | 
 | 
|---|
| 4361 | # The archiver.
 | 
|---|
| 4362 | AR=$lt_AR
 | 
|---|
| 4363 | AR_FLAGS=$lt_AR_FLAGS
 | 
|---|
| 4364 | 
 | 
|---|
| 4365 | # A C compiler.
 | 
|---|
| 4366 | LTCC=$lt_LTCC
 | 
|---|
| 4367 | 
 | 
|---|
| 4368 | # LTCC compiler flags.
 | 
|---|
| 4369 | LTCFLAGS=$lt_LTCFLAGS
 | 
|---|
| 4370 | 
 | 
|---|
| 4371 | # A language-specific compiler.
 | 
|---|
| 4372 | CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
 | 
|---|
| 4373 | 
 | 
|---|
| 4374 | # Is the compiler the GNU C compiler?
 | 
|---|
| 4375 | with_gcc=$_LT_AC_TAGVAR(GCC, $1)
 | 
|---|
| 4376 | 
 | 
|---|
| 4377 | # An ERE matcher.
 | 
|---|
| 4378 | EGREP=$lt_EGREP
 | 
|---|
| 4379 | 
 | 
|---|
| 4380 | # The linker used to build libraries.
 | 
|---|
| 4381 | LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
 | 
|---|
| 4382 | 
 | 
|---|
| 4383 | # Whether we need hard or soft links.
 | 
|---|
| 4384 | LN_S=$lt_LN_S
 | 
|---|
| 4385 | 
 | 
|---|
| 4386 | # A BSD-compatible nm program.
 | 
|---|
| 4387 | NM=$lt_NM
 | 
|---|
| 4388 | 
 | 
|---|
| 4389 | # A symbol stripping program
 | 
|---|
| 4390 | STRIP=$lt_STRIP
 | 
|---|
| 4391 | 
 | 
|---|
| 4392 | # Used to examine libraries when file_magic_cmd begins "file"
 | 
|---|
| 4393 | MAGIC_CMD=$MAGIC_CMD
 | 
|---|
| 4394 | 
 | 
|---|
| 4395 | # Used on cygwin: DLL creation program.
 | 
|---|
| 4396 | DLLTOOL="$DLLTOOL"
 | 
|---|
| 4397 | 
 | 
|---|
| 4398 | # Used on cygwin: object dumper.
 | 
|---|
| 4399 | OBJDUMP="$OBJDUMP"
 | 
|---|
| 4400 | 
 | 
|---|
| 4401 | # Used on cygwin: assembler.
 | 
|---|
| 4402 | AS="$AS"
 | 
|---|
| 4403 | 
 | 
|---|
| 4404 | # The name of the directory that contains temporary libtool files.
 | 
|---|
| 4405 | objdir=$objdir
 | 
|---|
| 4406 | 
 | 
|---|
| 4407 | # How to create reloadable object files.
 | 
|---|
| 4408 | reload_flag=$lt_reload_flag
 | 
|---|
| 4409 | reload_cmds=$lt_reload_cmds
 | 
|---|
| 4410 | 
 | 
|---|
| 4411 | # How to pass a linker flag through the compiler.
 | 
|---|
| 4412 | wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 | 
|---|
| 4413 | 
 | 
|---|
| 4414 | # Object file suffix (normally "o").
 | 
|---|
| 4415 | objext="$ac_objext"
 | 
|---|
| 4416 | 
 | 
|---|
| 4417 | # Old archive suffix (normally "a").
 | 
|---|
| 4418 | libext="$libext"
 | 
|---|
| 4419 | 
 | 
|---|
| 4420 | # Shared library suffix (normally ".so").
 | 
|---|
| 4421 | shrext_cmds='$shrext_cmds'
 | 
|---|
| 4422 | 
 | 
|---|
| 4423 | # Executable file suffix (normally "").
 | 
|---|
| 4424 | exeext="$exeext"
 | 
|---|
| 4425 | 
 | 
|---|
| 4426 | # Additional compiler flags for building library objects.
 | 
|---|
| 4427 | pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 | 
|---|
| 4428 | pic_mode=$pic_mode
 | 
|---|
| 4429 | 
 | 
|---|
| 4430 | # What is the maximum length of a command?
 | 
|---|
| 4431 | max_cmd_len=$lt_cv_sys_max_cmd_len
 | 
|---|
| 4432 | 
 | 
|---|
| 4433 | # Does compiler simultaneously support -c and -o options?
 | 
|---|
| 4434 | compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
 | 
|---|
| 4435 | 
 | 
|---|
| 4436 | # Must we lock files when doing compilation?
 | 
|---|
| 4437 | need_locks=$lt_need_locks
 | 
|---|
| 4438 | 
 | 
|---|
| 4439 | # Do we need the lib prefix for modules?
 | 
|---|
| 4440 | need_lib_prefix=$need_lib_prefix
 | 
|---|
| 4441 | 
 | 
|---|
| 4442 | # Do we need a version for libraries?
 | 
|---|
| 4443 | need_version=$need_version
 | 
|---|
| 4444 | 
 | 
|---|
| 4445 | # Whether dlopen is supported.
 | 
|---|
| 4446 | dlopen_support=$enable_dlopen
 | 
|---|
| 4447 | 
 | 
|---|
| 4448 | # Whether dlopen of programs is supported.
 | 
|---|
| 4449 | dlopen_self=$enable_dlopen_self
 | 
|---|
| 4450 | 
 | 
|---|
| 4451 | # Whether dlopen of statically linked programs is supported.
 | 
|---|
| 4452 | dlopen_self_static=$enable_dlopen_self_static
 | 
|---|
| 4453 | 
 | 
|---|
| 4454 | # Compiler flag to prevent dynamic linking.
 | 
|---|
| 4455 | link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
 | 
|---|
| 4456 | 
 | 
|---|
| 4457 | # Compiler flag to turn off builtin functions.
 | 
|---|
| 4458 | no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
 | 
|---|
| 4459 | 
 | 
|---|
| 4460 | # Compiler flag to allow reflexive dlopens.
 | 
|---|
| 4461 | export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
 | 
|---|
| 4462 | 
 | 
|---|
| 4463 | # Compiler flag to generate shared objects directly from archives.
 | 
|---|
| 4464 | whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
 | 
|---|
| 4465 | 
 | 
|---|
| 4466 | # Compiler flag to generate thread-safe objects.
 | 
|---|
| 4467 | thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
 | 
|---|
| 4468 | 
 | 
|---|
| 4469 | # Library versioning type.
 | 
|---|
| 4470 | version_type=$version_type
 | 
|---|
| 4471 | 
 | 
|---|
| 4472 | # Format of library name prefix.
 | 
|---|
| 4473 | libname_spec=$lt_libname_spec
 | 
|---|
| 4474 | 
 | 
|---|
| 4475 | # List of archive names.  First name is the real one, the rest are links.
 | 
|---|
| 4476 | # The last name is the one that the linker finds with -lNAME.
 | 
|---|
| 4477 | library_names_spec=$lt_library_names_spec
 | 
|---|
| 4478 | 
 | 
|---|
| 4479 | # The coded name of the library, if different from the real name.
 | 
|---|
| 4480 | soname_spec=$lt_soname_spec
 | 
|---|
| 4481 | 
 | 
|---|
| 4482 | # Commands used to build and install an old-style archive.
 | 
|---|
| 4483 | RANLIB=$lt_RANLIB
 | 
|---|
| 4484 | old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
 | 
|---|
| 4485 | old_postinstall_cmds=$lt_old_postinstall_cmds
 | 
|---|
| 4486 | old_postuninstall_cmds=$lt_old_postuninstall_cmds
 | 
|---|
| 4487 | 
 | 
|---|
| 4488 | # Create an old-style archive from a shared archive.
 | 
|---|
| 4489 | old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
 | 
|---|
| 4490 | 
 | 
|---|
| 4491 | # Create a temporary old-style archive to link instead of a shared archive.
 | 
|---|
| 4492 | old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
 | 
|---|
| 4493 | 
 | 
|---|
| 4494 | # Commands used to build and install a shared archive.
 | 
|---|
| 4495 | archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
 | 
|---|
| 4496 | archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
 | 
|---|
| 4497 | postinstall_cmds=$lt_postinstall_cmds
 | 
|---|
| 4498 | postuninstall_cmds=$lt_postuninstall_cmds
 | 
|---|
| 4499 | 
 | 
|---|
| 4500 | # Commands used to build a loadable module (assumed same as above if empty)
 | 
|---|
| 4501 | module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
 | 
|---|
| 4502 | module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
 | 
|---|
| 4503 | 
 | 
|---|
| 4504 | # Commands to strip libraries.
 | 
|---|
| 4505 | old_striplib=$lt_old_striplib
 | 
|---|
| 4506 | striplib=$lt_striplib
 | 
|---|
| 4507 | 
 | 
|---|
| 4508 | # Dependencies to place before the objects being linked to create a
 | 
|---|
| 4509 | # shared library.
 | 
|---|
| 4510 | predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
 | 
|---|
| 4511 | 
 | 
|---|
| 4512 | # Dependencies to place after the objects being linked to create a
 | 
|---|
| 4513 | # shared library.
 | 
|---|
| 4514 | postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
 | 
|---|
| 4515 | 
 | 
|---|
| 4516 | # Dependencies to place before the objects being linked to create a
 | 
|---|
| 4517 | # shared library.
 | 
|---|
| 4518 | predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
 | 
|---|
| 4519 | 
 | 
|---|
| 4520 | # Dependencies to place after the objects being linked to create a
 | 
|---|
| 4521 | # shared library.
 | 
|---|
| 4522 | postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
 | 
|---|
| 4523 | 
 | 
|---|
| 4524 | # The library search path used internally by the compiler when linking
 | 
|---|
| 4525 | # a shared library.
 | 
|---|
| 4526 | compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
 | 
|---|
| 4527 | 
 | 
|---|
| 4528 | # Method to check whether dependent libraries are shared objects.
 | 
|---|
| 4529 | deplibs_check_method=$lt_deplibs_check_method
 | 
|---|
| 4530 | 
 | 
|---|
| 4531 | # Command to use when deplibs_check_method == file_magic.
 | 
|---|
| 4532 | file_magic_cmd=$lt_file_magic_cmd
 | 
|---|
| 4533 | 
 | 
|---|
| 4534 | # Flag that allows shared libraries with undefined symbols to be built.
 | 
|---|
| 4535 | allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
 | 
|---|
| 4536 | 
 | 
|---|
| 4537 | # Flag that forces no undefined symbols.
 | 
|---|
| 4538 | no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
 | 
|---|
| 4539 | 
 | 
|---|
| 4540 | # Commands used to finish a libtool library installation in a directory.
 | 
|---|
| 4541 | finish_cmds=$lt_finish_cmds
 | 
|---|
| 4542 | 
 | 
|---|
| 4543 | # Same as above, but a single script fragment to be evaled but not shown.
 | 
|---|
| 4544 | finish_eval=$lt_finish_eval
 | 
|---|
| 4545 | 
 | 
|---|
| 4546 | # Take the output of nm and produce a listing of raw symbols and C names.
 | 
|---|
| 4547 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 | 
|---|
| 4548 | 
 | 
|---|
| 4549 | # Transform the output of nm in a proper C declaration
 | 
|---|
| 4550 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 | 
|---|
| 4551 | 
 | 
|---|
| 4552 | # Transform the output of nm in a C name address pair
 | 
|---|
| 4553 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 | 
|---|
| 4554 | 
 | 
|---|
| 4555 | # This is the shared library runtime path variable.
 | 
|---|
| 4556 | runpath_var=$runpath_var
 | 
|---|
| 4557 | 
 | 
|---|
| 4558 | # This is the shared library path variable.
 | 
|---|
| 4559 | shlibpath_var=$shlibpath_var
 | 
|---|
| 4560 | 
 | 
|---|
| 4561 | # Is shlibpath searched before the hard-coded library search path?
 | 
|---|
| 4562 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 | 
|---|
| 4563 | 
 | 
|---|
| 4564 | # How to hardcode a shared library path into an executable.
 | 
|---|
| 4565 | hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
 | 
|---|
| 4566 | 
 | 
|---|
| 4567 | # Whether we should hardcode library paths into libraries.
 | 
|---|
| 4568 | hardcode_into_libs=$hardcode_into_libs
 | 
|---|
| 4569 | 
 | 
|---|
| 4570 | # Flag to hardcode \$libdir into a binary during linking.
 | 
|---|
| 4571 | # This must work even if \$libdir does not exist.
 | 
|---|
| 4572 | hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
 | 
|---|
| 4573 | 
 | 
|---|
| 4574 | # If ld is used when linking, flag to hardcode \$libdir into
 | 
|---|
| 4575 | # a binary during linking. This must work even if \$libdir does
 | 
|---|
| 4576 | # not exist.
 | 
|---|
| 4577 | hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
 | 
|---|
| 4578 | 
 | 
|---|
| 4579 | # Whether we need a single -rpath flag with a separated argument.
 | 
|---|
| 4580 | hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
 | 
|---|
| 4581 | 
 | 
|---|
| 4582 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 | 
|---|
| 4583 | # resulting binary.
 | 
|---|
| 4584 | hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
 | 
|---|
| 4585 | 
 | 
|---|
| 4586 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 | 
|---|
| 4587 | # resulting binary.
 | 
|---|
| 4588 | hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
 | 
|---|
| 4589 | 
 | 
|---|
| 4590 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 | 
|---|
| 4591 | # the resulting binary.
 | 
|---|
| 4592 | hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
 | 
|---|
| 4593 | 
 | 
|---|
| 4594 | # Set to yes if building a shared library automatically hardcodes DIR into the library
 | 
|---|
| 4595 | # and all subsequent libraries and executables linked against it.
 | 
|---|
| 4596 | hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
 | 
|---|
| 4597 | 
 | 
|---|
| 4598 | # Variables whose values should be saved in libtool wrapper scripts and
 | 
|---|
| 4599 | # restored at relink time.
 | 
|---|
| 4600 | variables_saved_for_relink="$variables_saved_for_relink"
 | 
|---|
| 4601 | 
 | 
|---|
| 4602 | # Whether libtool must link a program against all its dependency libraries.
 | 
|---|
| 4603 | link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
 | 
|---|
| 4604 | 
 | 
|---|
| 4605 | # Compile-time system search path for libraries
 | 
|---|
| 4606 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 | 
|---|
| 4607 | 
 | 
|---|
| 4608 | # Run-time system search path for libraries
 | 
|---|
| 4609 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 | 
|---|
| 4610 | 
 | 
|---|
| 4611 | # Fix the shell variable \$srcfile for the compiler.
 | 
|---|
| 4612 | fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 | 
|---|
| 4613 | 
 | 
|---|
| 4614 | # Set to yes if exported symbols are required.
 | 
|---|
| 4615 | always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
 | 
|---|
| 4616 | 
 | 
|---|
| 4617 | # The commands to list exported symbols.
 | 
|---|
| 4618 | export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
 | 
|---|
| 4619 | 
 | 
|---|
| 4620 | # The commands to extract the exported symbol list from a shared archive.
 | 
|---|
| 4621 | extract_expsyms_cmds=$lt_extract_expsyms_cmds
 | 
|---|
| 4622 | 
 | 
|---|
| 4623 | # Symbols that should not be listed in the preloaded symbols.
 | 
|---|
| 4624 | exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
 | 
|---|
| 4625 | 
 | 
|---|
| 4626 | # Symbols that must always be exported.
 | 
|---|
| 4627 | include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
 | 
|---|
| 4628 | 
 | 
|---|
| 4629 | ifelse([$1],[],
 | 
|---|
| 4630 | [# ### END LIBTOOL CONFIG],
 | 
|---|
| 4631 | [# ### END LIBTOOL TAG CONFIG: $tagname])
 | 
|---|
| 4632 | 
 | 
|---|
| 4633 | __EOF__
 | 
|---|
| 4634 | 
 | 
|---|
| 4635 | ifelse([$1],[], [
 | 
|---|
| 4636 |   case $host_os in
 | 
|---|
| 4637 |   aix3*)
 | 
|---|
| 4638 |     cat <<\EOF >> "$cfgfile"
 | 
|---|
| 4639 | 
 | 
|---|
| 4640 | # AIX sometimes has problems with the GCC collect2 program.  For some
 | 
|---|
| 4641 | # reason, if we set the COLLECT_NAMES environment variable, the problems
 | 
|---|
| 4642 | # vanish in a puff of smoke.
 | 
|---|
| 4643 | if test "X${COLLECT_NAMES+set}" != Xset; then
 | 
|---|
| 4644 |   COLLECT_NAMES=
 | 
|---|
| 4645 |   export COLLECT_NAMES
 | 
|---|
| 4646 | fi
 | 
|---|
| 4647 | EOF
 | 
|---|
| 4648 |     ;;
 | 
|---|
| 4649 |   esac
 | 
|---|
| 4650 | 
 | 
|---|
| 4651 |   # We use sed instead of cat because bash on DJGPP gets confused if
 | 
|---|
| 4652 |   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 | 
|---|
| 4653 |   # text mode, it properly converts lines to CR/LF.  This bash problem
 | 
|---|
| 4654 |   # is reportedly fixed, but why not run on old versions too?
 | 
|---|
| 4655 |   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 | 
|---|
| 4656 | 
 | 
|---|
| 4657 |   mv -f "$cfgfile" "$ofile" || \
 | 
|---|
| 4658 |     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 | 
|---|
| 4659 |   chmod +x "$ofile"
 | 
|---|
| 4660 | ])
 | 
|---|
| 4661 | else
 | 
|---|
| 4662 |   # If there is no Makefile yet, we rely on a make rule to execute
 | 
|---|
| 4663 |   # `config.status --recheck' to rerun these tests and create the
 | 
|---|
| 4664 |   # libtool script then.
 | 
|---|
| 4665 |   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 | 
|---|
| 4666 |   if test -f "$ltmain_in"; then
 | 
|---|
| 4667 |     test -f Makefile && make "$ltmain"
 | 
|---|
| 4668 |   fi
 | 
|---|
| 4669 | fi
 | 
|---|
| 4670 | ])# AC_LIBTOOL_CONFIG
 | 
|---|
| 4671 | 
 | 
|---|
| 4672 | 
 | 
|---|
| 4673 | # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
 | 
|---|
| 4674 | # -------------------------------------------
 | 
|---|
| 4675 | AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
 | 
|---|
| 4676 | [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 | 
|---|
| 4677 | 
 | 
|---|
| 4678 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 | 
|---|
| 4679 | 
 | 
|---|
| 4680 | if test "$GCC" = yes; then
 | 
|---|
| 4681 |   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 | 
|---|
| 4682 | 
 | 
|---|
| 4683 |   AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 | 
|---|
| 4684 |     lt_cv_prog_compiler_rtti_exceptions,
 | 
|---|
| 4685 |     [-fno-rtti -fno-exceptions], [],
 | 
|---|
| 4686 |     [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 | 
|---|
| 4687 | fi
 | 
|---|
| 4688 | ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
 | 
|---|
| 4689 | 
 | 
|---|
| 4690 | 
 | 
|---|
| 4691 | # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 | 
|---|
| 4692 | # ---------------------------------
 | 
|---|
| 4693 | AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
 | 
|---|
| 4694 | [AC_REQUIRE([AC_CANONICAL_HOST])
 | 
|---|
| 4695 | AC_REQUIRE([AC_PROG_NM])
 | 
|---|
| 4696 | AC_REQUIRE([AC_OBJEXT])
 | 
|---|
| 4697 | # Check for command to grab the raw symbol name followed by C symbol from nm.
 | 
|---|
| 4698 | AC_MSG_CHECKING([command to parse $NM output from $compiler object])
 | 
|---|
| 4699 | AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
 | 
|---|
| 4700 | [
 | 
|---|
| 4701 | # These are sane defaults that work on at least a few old systems.
 | 
|---|
| 4702 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 | 
|---|
| 4703 | 
 | 
|---|
| 4704 | # Character class describing NM global symbol codes.
 | 
|---|
| 4705 | symcode='[[BCDEGRST]]'
 | 
|---|
| 4706 | 
 | 
|---|
| 4707 | # Regexp to match symbols that can be accessed directly from C.
 | 
|---|
| 4708 | sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
 | 
|---|
| 4709 | 
 | 
|---|
| 4710 | # Transform an extracted symbol line into a proper C declaration
 | 
|---|
| 4711 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 | 
|---|
| 4712 | 
 | 
|---|
| 4713 | # Transform an extracted symbol line into symbol name and symbol address
 | 
|---|
| 4714 | 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'"
 | 
|---|
| 4715 | 
 | 
|---|
| 4716 | # Define system-specific variables.
 | 
|---|
| 4717 | case $host_os in
 | 
|---|
| 4718 | aix*)
 | 
|---|
| 4719 |   symcode='[[BCDT]]'
 | 
|---|
| 4720 |   ;;
 | 
|---|
| 4721 | cygwin* | mingw* | pw32*)
 | 
|---|
| 4722 |   symcode='[[ABCDGISTW]]'
 | 
|---|
| 4723 |   ;;
 | 
|---|
| 4724 | hpux*) # Its linker distinguishes data from code symbols
 | 
|---|
| 4725 |   if test "$host_cpu" = ia64; then
 | 
|---|
| 4726 |     symcode='[[ABCDEGRST]]'
 | 
|---|
| 4727 |   fi
 | 
|---|
| 4728 |   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 | 
|---|
| 4729 |   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'"
 | 
|---|
| 4730 |   ;;
 | 
|---|
| 4731 | linux*)
 | 
|---|
| 4732 |   if test "$host_cpu" = ia64; then
 | 
|---|
| 4733 |     symcode='[[ABCDGIRSTW]]'
 | 
|---|
| 4734 |     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 | 
|---|
| 4735 |     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'"
 | 
|---|
| 4736 |   fi
 | 
|---|
| 4737 |   ;;
 | 
|---|
| 4738 | irix* | nonstopux*)
 | 
|---|
| 4739 |   symcode='[[BCDEGRST]]'
 | 
|---|
| 4740 |   ;;
 | 
|---|
| 4741 | osf*)
 | 
|---|
| 4742 |   symcode='[[BCDEGQRST]]'
 | 
|---|
| 4743 |   ;;
 | 
|---|
| 4744 | solaris*)
 | 
|---|
| 4745 |   symcode='[[BDRT]]'
 | 
|---|
| 4746 |   ;;
 | 
|---|
| 4747 | sco3.2v5*)
 | 
|---|
| 4748 |   symcode='[[DT]]'
 | 
|---|
| 4749 |   ;;
 | 
|---|
| 4750 | sysv4.2uw2*)
 | 
|---|
| 4751 |   symcode='[[DT]]'
 | 
|---|
| 4752 |   ;;
 | 
|---|
| 4753 | sysv5* | sco5v6* | unixware* | OpenUNIX*)
 | 
|---|
| 4754 |   symcode='[[ABDT]]'
 | 
|---|
| 4755 |   ;;
 | 
|---|
| 4756 | sysv4)
 | 
|---|
| 4757 |   symcode='[[DFNSTU]]'
 | 
|---|
| 4758 |   ;;
 | 
|---|
| 4759 | esac
 | 
|---|
| 4760 | 
 | 
|---|
| 4761 | # Handle CRLF in mingw tool chain
 | 
|---|
| 4762 | opt_cr=
 | 
|---|
| 4763 | case $build_os in
 | 
|---|
| 4764 | mingw*)
 | 
|---|
| 4765 |   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 | 
|---|
| 4766 |   ;;
 | 
|---|
| 4767 | esac
 | 
|---|
| 4768 | 
 | 
|---|
| 4769 | # If we're using GNU nm, then use its standard symbol codes.
 | 
|---|
| 4770 | case `$NM -V 2>&1` in
 | 
|---|
| 4771 | *GNU* | *'with BFD'*)
 | 
|---|
| 4772 |   symcode='[[ABCDGIRSTW]]' ;;
 | 
|---|
| 4773 | esac
 | 
|---|
| 4774 | 
 | 
|---|
| 4775 | # Try without a prefix undercore, then with it.
 | 
|---|
| 4776 | for ac_symprfx in "" "_"; do
 | 
|---|
| 4777 | 
 | 
|---|
| 4778 |   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 | 
|---|
| 4779 |   symxfrm="\\1 $ac_symprfx\\2 \\2"
 | 
|---|
| 4780 | 
 | 
|---|
| 4781 |   # Write the raw and C identifiers.
 | 
|---|
| 4782 |   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 | 
|---|
| 4783 | 
 | 
|---|
| 4784 |   # Check to see that the pipe works correctly.
 | 
|---|
| 4785 |   pipe_works=no
 | 
|---|
| 4786 | 
 | 
|---|
| 4787 |   rm -f conftest*
 | 
|---|
| 4788 |   cat > conftest.$ac_ext <<EOF
 | 
|---|
| 4789 | #ifdef __cplusplus
 | 
|---|
| 4790 | extern "C" {
 | 
|---|
| 4791 | #endif
 | 
|---|
| 4792 | char nm_test_var;
 | 
|---|
| 4793 | void nm_test_func(){}
 | 
|---|
| 4794 | #ifdef __cplusplus
 | 
|---|
| 4795 | }
 | 
|---|
| 4796 | #endif
 | 
|---|
| 4797 | int main(){nm_test_var='a';nm_test_func();return(0);}
 | 
|---|
| 4798 | EOF
 | 
|---|
| 4799 | 
 | 
|---|
| 4800 |   if AC_TRY_EVAL(ac_compile); then
 | 
|---|
| 4801 |     # Now try to grab the symbols.
 | 
|---|
| 4802 |     nlist=conftest.nm
 | 
|---|
| 4803 |     if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 | 
|---|
| 4804 |       # Try sorting and uniquifying the output.
 | 
|---|
| 4805 |       if sort "$nlist" | uniq > "$nlist"T; then
 | 
|---|
| 4806 |         mv -f "$nlist"T "$nlist"
 | 
|---|
| 4807 |       else
 | 
|---|
| 4808 |         rm -f "$nlist"T
 | 
|---|
| 4809 |       fi
 | 
|---|
| 4810 | 
 | 
|---|
| 4811 |       # Make sure that we snagged all the symbols we need.
 | 
|---|
| 4812 |       if grep ' nm_test_var$' "$nlist" >/dev/null; then
 | 
|---|
| 4813 |         if grep ' nm_test_func$' "$nlist" >/dev/null; then
 | 
|---|
| 4814 |           cat <<EOF > conftest.$ac_ext
 | 
|---|
| 4815 | #ifdef __cplusplus
 | 
|---|
| 4816 | extern "C" {
 | 
|---|
| 4817 | #endif
 | 
|---|
| 4818 | 
 | 
|---|
| 4819 | EOF
 | 
|---|
| 4820 |           # Now generate the symbol file.
 | 
|---|
| 4821 |           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 | 
|---|
| 4822 | 
 | 
|---|
| 4823 |           cat <<EOF >> conftest.$ac_ext
 | 
|---|
| 4824 | #if defined (__STDC__) && __STDC__
 | 
|---|
| 4825 | # define lt_ptr_t void *
 | 
|---|
| 4826 | #else
 | 
|---|
| 4827 | # define lt_ptr_t char *
 | 
|---|
| 4828 | # define const
 | 
|---|
| 4829 | #endif
 | 
|---|
| 4830 | 
 | 
|---|
| 4831 | /* The mapping between symbol names and symbols. */
 | 
|---|
| 4832 | const struct {
 | 
|---|
| 4833 |   const char *name;
 | 
|---|
| 4834 |   lt_ptr_t address;
 | 
|---|
| 4835 | }
 | 
|---|
| 4836 | lt_preloaded_symbols[[]] =
 | 
|---|
| 4837 | {
 | 
|---|
| 4838 | EOF
 | 
|---|
| 4839 |           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 | 
|---|
| 4840 |           cat <<\EOF >> conftest.$ac_ext
 | 
|---|
| 4841 |   {0, (lt_ptr_t) 0}
 | 
|---|
| 4842 | };
 | 
|---|
| 4843 | 
 | 
|---|
| 4844 | #ifdef __cplusplus
 | 
|---|
| 4845 | }
 | 
|---|
| 4846 | #endif
 | 
|---|
| 4847 | EOF
 | 
|---|
| 4848 |           # Now try linking the two files.
 | 
|---|
| 4849 |           mv conftest.$ac_objext conftstm.$ac_objext
 | 
|---|
| 4850 |           lt_save_LIBS="$LIBS"
 | 
|---|
| 4851 |           lt_save_CFLAGS="$CFLAGS"
 | 
|---|
| 4852 |           LIBS="conftstm.$ac_objext"
 | 
|---|
| 4853 |           CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 | 
|---|
| 4854 |           if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
 | 
|---|
| 4855 |             pipe_works=yes
 | 
|---|
| 4856 |           fi
 | 
|---|
| 4857 |           LIBS="$lt_save_LIBS"
 | 
|---|
| 4858 |           CFLAGS="$lt_save_CFLAGS"
 | 
|---|
| 4859 |         else
 | 
|---|
| 4860 |           echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
 | 
|---|
| 4861 |         fi
 | 
|---|
| 4862 |       else
 | 
|---|
| 4863 |         echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
 | 
|---|
| 4864 |       fi
 | 
|---|
| 4865 |     else
 | 
|---|
| 4866 |       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
 | 
|---|
| 4867 |     fi
 | 
|---|
| 4868 |   else
 | 
|---|
| 4869 |     echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
 | 
|---|
| 4870 |     cat conftest.$ac_ext >&5
 | 
|---|
| 4871 |   fi
 | 
|---|
| 4872 |   rm -f conftest* conftst*
 | 
|---|
| 4873 | 
 | 
|---|
| 4874 |   # Do not use the global_symbol_pipe unless it works.
 | 
|---|
| 4875 |   if test "$pipe_works" = yes; then
 | 
|---|
| 4876 |     break
 | 
|---|
| 4877 |   else
 | 
|---|
| 4878 |     lt_cv_sys_global_symbol_pipe=
 | 
|---|
| 4879 |   fi
 | 
|---|
| 4880 | done
 | 
|---|
| 4881 | ])
 | 
|---|
| 4882 | if test -z "$lt_cv_sys_global_symbol_pipe"; then
 | 
|---|
| 4883 |   lt_cv_sys_global_symbol_to_cdecl=
 | 
|---|
| 4884 | fi
 | 
|---|
| 4885 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 | 
|---|
| 4886 |   AC_MSG_RESULT(failed)
 | 
|---|
| 4887 | else
 | 
|---|
| 4888 |   AC_MSG_RESULT(ok)
 | 
|---|
| 4889 | fi
 | 
|---|
| 4890 | ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 | 
|---|
| 4891 | 
 | 
|---|
| 4892 | 
 | 
|---|
| 4893 | # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
 | 
|---|
| 4894 | # ---------------------------------------
 | 
|---|
| 4895 | AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
 | 
|---|
| 4896 | [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
 | 
|---|
| 4897 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 | 
|---|
| 4898 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
 | 
|---|
| 4899 | 
 | 
|---|
| 4900 | AC_MSG_CHECKING([for $compiler option to produce PIC])
 | 
|---|
| 4901 |  ifelse([$1],[CXX],[
 | 
|---|
| 4902 |   # C++ specific cases for pic, static, wl, etc.
 | 
|---|
| 4903 |   if test "$GXX" = yes; then
 | 
|---|
| 4904 |     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 4905 |     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 | 
|---|
| 4906 | 
 | 
|---|
| 4907 |     case $host_os in
 | 
|---|
| 4908 |     aix*)
 | 
|---|
| 4909 |       # All AIX code is PIC.
 | 
|---|
| 4910 |       if test "$host_cpu" = ia64; then
 | 
|---|
| 4911 |         # AIX 5 now supports IA64 processor
 | 
|---|
| 4912 |         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 | 
|---|
| 4913 |       fi
 | 
|---|
| 4914 |       ;;
 | 
|---|
| 4915 |     amigaos*)
 | 
|---|
| 4916 |       # FIXME: we need at least 68020 code to build shared libraries, but
 | 
|---|
| 4917 |       # adding the `-m68020' flag to GCC prevents building anything better,
 | 
|---|
| 4918 |       # like `-m68040'.
 | 
|---|
| 4919 |       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 | 
|---|
| 4920 |       ;;
 | 
|---|
| 4921 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 | 
|---|
| 4922 |       # PIC is the default for these OSes.
 | 
|---|
| 4923 |       ;;
 | 
|---|
| 4924 |     mingw* | os2* | pw32*)
 | 
|---|
| 4925 |       # This hack is so that the source file can tell whether it is being
 | 
|---|
| 4926 |       # built for inclusion in a dll (and should export symbols for example).
 | 
|---|
| 4927 |       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 | 
|---|
| 4928 |       ;;
 | 
|---|
| 4929 |     darwin* | rhapsody*)
 | 
|---|
| 4930 |       # PIC is the default on this platform
 | 
|---|
| 4931 |       # Common symbols not allowed in MH_DYLIB files
 | 
|---|
| 4932 |       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 | 
|---|
| 4933 |       ;;
 | 
|---|
| 4934 |     *djgpp*)
 | 
|---|
| 4935 |       # DJGPP does not support shared libraries at all
 | 
|---|
| 4936 |       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 | 
|---|
| 4937 |       ;;
 | 
|---|
| 4938 |     interix3*)
 | 
|---|
| 4939 |       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 | 
|---|
| 4940 |       # Instead, we relocate shared libraries at runtime.
 | 
|---|
| 4941 |       ;;
 | 
|---|
| 4942 |     sysv4*MP*)
 | 
|---|
| 4943 |       if test -d /usr/nec; then
 | 
|---|
| 4944 |         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 | 
|---|
| 4945 |       fi
 | 
|---|
| 4946 |       ;;
 | 
|---|
| 4947 |     hpux*)
 | 
|---|
| 4948 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 | 
|---|
| 4949 |       # not for PA HP-UX.
 | 
|---|
| 4950 |       case $host_cpu in
 | 
|---|
| 4951 |       hppa*64*|ia64*)
 | 
|---|
| 4952 |         ;;
 | 
|---|
| 4953 |       *)
 | 
|---|
| 4954 |         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 | 
|---|
| 4955 |         ;;
 | 
|---|
| 4956 |       esac
 | 
|---|
| 4957 |       ;;
 | 
|---|
| 4958 |     *)
 | 
|---|
| 4959 |       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 | 
|---|
| 4960 |       ;;
 | 
|---|
| 4961 |     esac
 | 
|---|
| 4962 |   else
 | 
|---|
| 4963 |     case $host_os in
 | 
|---|
| 4964 |       aix4* | aix5*)
 | 
|---|
| 4965 |         # All AIX code is PIC.
 | 
|---|
| 4966 |         if test "$host_cpu" = ia64; then
 | 
|---|
| 4967 |           # AIX 5 now supports IA64 processor
 | 
|---|
| 4968 |           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 | 
|---|
| 4969 |         else
 | 
|---|
| 4970 |           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 | 
|---|
| 4971 |         fi
 | 
|---|
| 4972 |         ;;
 | 
|---|
| 4973 |       chorus*)
 | 
|---|
| 4974 |         case $cc_basename in
 | 
|---|
| 4975 |         cxch68*)
 | 
|---|
| 4976 |           # Green Hills C++ Compiler
 | 
|---|
| 4977 |           # _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"
 | 
|---|
| 4978 |           ;;
 | 
|---|
| 4979 |         esac
 | 
|---|
| 4980 |         ;;
 | 
|---|
| 4981 |        darwin*)
 | 
|---|
| 4982 |          # PIC is the default on this platform
 | 
|---|
| 4983 |          # Common symbols not allowed in MH_DYLIB files
 | 
|---|
| 4984 |          case $cc_basename in
 | 
|---|
| 4985 |            xlc*)
 | 
|---|
| 4986 |            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 | 
|---|
| 4987 |            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 4988 |            ;;
 | 
|---|
| 4989 |          esac
 | 
|---|
| 4990 |        ;;
 | 
|---|
| 4991 |       dgux*)
 | 
|---|
| 4992 |         case $cc_basename in
 | 
|---|
| 4993 |           ec++*)
 | 
|---|
| 4994 |             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 | 
|---|
| 4995 |             ;;
 | 
|---|
| 4996 |           ghcx*)
 | 
|---|
| 4997 |             # Green Hills C++ Compiler
 | 
|---|
| 4998 |             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 | 
|---|
| 4999 |             ;;
 | 
|---|
| 5000 |           *)
 | 
|---|
| 5001 |             ;;
 | 
|---|
| 5002 |         esac
 | 
|---|
| 5003 |         ;;
 | 
|---|
| 5004 |       freebsd* | kfreebsd*-gnu | dragonfly*)
 | 
|---|
| 5005 |         # FreeBSD uses GNU C++
 | 
|---|
| 5006 |         ;;
 | 
|---|
| 5007 |       hpux9* | hpux10* | hpux11*)
 | 
|---|
| 5008 |         case $cc_basename in
 | 
|---|
| 5009 |           CC*)
 | 
|---|
| 5010 |             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 5011 |             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 | 
|---|
| 5012 |             if test "$host_cpu" != ia64; then
 | 
|---|
| 5013 |               _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 | 
|---|
| 5014 |             fi
 | 
|---|
| 5015 |             ;;
 | 
|---|
| 5016 |           aCC*)
 | 
|---|
| 5017 |             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 5018 |             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 | 
|---|
| 5019 |             case $host_cpu in
 | 
|---|
| 5020 |             hppa*64*|ia64*)
 | 
|---|
| 5021 |               # +Z the default
 | 
|---|
| 5022 |               ;;
 | 
|---|
| 5023 |             *)
 | 
|---|
| 5024 |               _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 | 
|---|
| 5025 |               ;;
 | 
|---|
| 5026 |             esac
 | 
|---|
| 5027 |             ;;
 | 
|---|
| 5028 |           *)
 | 
|---|
| 5029 |             ;;
 | 
|---|
| 5030 |         esac
 | 
|---|
| 5031 |         ;;
 | 
|---|
| 5032 |       interix*)
 | 
|---|
| 5033 |         # This is c89, which is MS Visual C++ (no shared libs)
 | 
|---|
| 5034 |         # Anyone wants to do a port?
 | 
|---|
| 5035 |         ;;
 | 
|---|
| 5036 |       irix5* | irix6* | nonstopux*)
 | 
|---|
| 5037 |         case $cc_basename in
 | 
|---|
| 5038 |           CC*)
 | 
|---|
| 5039 |             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 5040 |             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 | 
|---|
| 5041 |             # CC pic flag -KPIC is the default.
 | 
|---|
| 5042 |             ;;
 | 
|---|
| 5043 |           *)
 | 
|---|
| 5044 |             ;;
 | 
|---|
| 5045 |         esac
 | 
|---|
| 5046 |         ;;
 | 
|---|
| 5047 |       linux*)
 | 
|---|
| 5048 |         case $cc_basename in
 | 
|---|
| 5049 |           KCC*)
 | 
|---|
| 5050 |             # KAI C++ Compiler
 | 
|---|
| 5051 |             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 | 
|---|
| 5052 |             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 | 
|---|
| 5053 |             ;;
 | 
|---|
| 5054 |           icpc* | ecpc*)
 | 
|---|
| 5055 |             # Intel C++
 | 
|---|
| 5056 |             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 5057 |             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 | 
|---|
| 5058 |             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 | 
|---|
| 5059 |             ;;
 | 
|---|
| 5060 |           pgCC*)
 | 
|---|
| 5061 |             # Portland Group C++ compiler.
 | 
|---|
| 5062 |             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 5063 |             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 | 
|---|
| 5064 |             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 | 
|---|
| 5065 |             ;;
 | 
|---|
| 5066 |           cxx*)
 | 
|---|
| 5067 |             # Compaq C++
 | 
|---|
| 5068 |             # Make sure the PIC flag is empty.  It appears that all Alpha
 | 
|---|
| 5069 |             # Linux and Compaq Tru64 Unix objects are PIC.
 | 
|---|
| 5070 |             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 | 
|---|
| 5071 |             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 | 
|---|
| 5072 |             ;;
 | 
|---|
| 5073 |           *)
 | 
|---|
| 5074 |             ;;
 | 
|---|
| 5075 |         esac
 | 
|---|
| 5076 |         ;;
 | 
|---|
| 5077 |       lynxos*)
 | 
|---|
| 5078 |         ;;
 | 
|---|
| 5079 |       m88k*)
 | 
|---|
| 5080 |         ;;
 | 
|---|
| 5081 |       mvs*)
 | 
|---|
| 5082 |         case $cc_basename in
 | 
|---|
| 5083 |           cxx*)
 | 
|---|
| 5084 |             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 | 
|---|
| 5085 |             ;;
 | 
|---|
| 5086 |           *)
 | 
|---|
| 5087 |             ;;
 | 
|---|
| 5088 |         esac
 | 
|---|
| 5089 |         ;;
 | 
|---|
| 5090 |       netbsd*)
 | 
|---|
| 5091 |         ;;
 | 
|---|
| 5092 |       osf3* | osf4* | osf5*)
 | 
|---|
| 5093 |         case $cc_basename in
 | 
|---|
| 5094 |           KCC*)
 | 
|---|
| 5095 |             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 | 
|---|
| 5096 |             ;;
 | 
|---|
| 5097 |           RCC*)
 | 
|---|
| 5098 |             # Rational C++ 2.4.1
 | 
|---|
| 5099 |             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 | 
|---|
| 5100 |             ;;
 | 
|---|
| 5101 |           cxx*)
 | 
|---|
| 5102 |             # Digital/Compaq C++
 | 
|---|
| 5103 |             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 5104 |             # Make sure the PIC flag is empty.  It appears that all Alpha
 | 
|---|
| 5105 |             # Linux and Compaq Tru64 Unix objects are PIC.
 | 
|---|
| 5106 |             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 | 
|---|
| 5107 |             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 | 
|---|
| 5108 |             ;;
 | 
|---|
| 5109 |           *)
 | 
|---|
| 5110 |             ;;
 | 
|---|
| 5111 |         esac
 | 
|---|
| 5112 |         ;;
 | 
|---|
| 5113 |       psos*)
 | 
|---|
| 5114 |         ;;
 | 
|---|
| 5115 |       solaris*)
 | 
|---|
| 5116 |         case $cc_basename in
 | 
|---|
| 5117 |           CC*)
 | 
|---|
| 5118 |             # Sun C++ 4.2, 5.x and Centerline C++
 | 
|---|
| 5119 |             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 | 
|---|
| 5120 |             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 | 
|---|
| 5121 |             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 | 
|---|
| 5122 |             ;;
 | 
|---|
| 5123 |           gcx*)
 | 
|---|
| 5124 |             # Green Hills C++ Compiler
 | 
|---|
| 5125 |             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 | 
|---|
| 5126 |             ;;
 | 
|---|
| 5127 |           *)
 | 
|---|
| 5128 |             ;;
 | 
|---|
| 5129 |         esac
 | 
|---|
| 5130 |         ;;
 | 
|---|
| 5131 |       sunos4*)
 | 
|---|
| 5132 |         case $cc_basename in
 | 
|---|
| 5133 |           CC*)
 | 
|---|
| 5134 |             # Sun C++ 4.x
 | 
|---|
| 5135 |             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 | 
|---|
| 5136 |             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 | 
|---|
| 5137 |             ;;
 | 
|---|
| 5138 |           lcc*)
 | 
|---|
| 5139 |             # Lucid
 | 
|---|
| 5140 |             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 | 
|---|
| 5141 |             ;;
 | 
|---|
| 5142 |           *)
 | 
|---|
| 5143 |             ;;
 | 
|---|
| 5144 |         esac
 | 
|---|
| 5145 |         ;;
 | 
|---|
| 5146 |       tandem*)
 | 
|---|
| 5147 |         case $cc_basename in
 | 
|---|
| 5148 |           NCC*)
 | 
|---|
| 5149 |             # NonStop-UX NCC 3.20
 | 
|---|
| 5150 |             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 | 
|---|
| 5151 |             ;;
 | 
|---|
| 5152 |           *)
 | 
|---|
| 5153 |             ;;
 | 
|---|
| 5154 |         esac
 | 
|---|
| 5155 |         ;;
 | 
|---|
| 5156 |       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 | 
|---|
| 5157 |         case $cc_basename in
 | 
|---|
| 5158 |           CC*)
 | 
|---|
| 5159 |             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 5160 |             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 | 
|---|
| 5161 |             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 | 
|---|
| 5162 |             ;;
 | 
|---|
| 5163 |         esac
 | 
|---|
| 5164 |         ;;
 | 
|---|
| 5165 |       vxworks*)
 | 
|---|
| 5166 |         ;;
 | 
|---|
| 5167 |       *)
 | 
|---|
| 5168 |         _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 | 
|---|
| 5169 |         ;;
 | 
|---|
| 5170 |     esac
 | 
|---|
| 5171 |   fi
 | 
|---|
| 5172 | ],
 | 
|---|
| 5173 | [
 | 
|---|
| 5174 |   if test "$GCC" = yes; then
 | 
|---|
| 5175 |     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 5176 |     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 | 
|---|
| 5177 | 
 | 
|---|
| 5178 |     case $host_os in
 | 
|---|
| 5179 |       aix*)
 | 
|---|
| 5180 |       # All AIX code is PIC.
 | 
|---|
| 5181 |       if test "$host_cpu" = ia64; then
 | 
|---|
| 5182 |         # AIX 5 now supports IA64 processor
 | 
|---|
| 5183 |         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 | 
|---|
| 5184 |       fi
 | 
|---|
| 5185 |       ;;
 | 
|---|
| 5186 | 
 | 
|---|
| 5187 |     amigaos*)
 | 
|---|
| 5188 |       # FIXME: we need at least 68020 code to build shared libraries, but
 | 
|---|
| 5189 |       # adding the `-m68020' flag to GCC prevents building anything better,
 | 
|---|
| 5190 |       # like `-m68040'.
 | 
|---|
| 5191 |       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 | 
|---|
| 5192 |       ;;
 | 
|---|
| 5193 | 
 | 
|---|
| 5194 |     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 | 
|---|
| 5195 |       # PIC is the default for these OSes.
 | 
|---|
| 5196 |       ;;
 | 
|---|
| 5197 | 
 | 
|---|
| 5198 |     mingw* | pw32* | os2*)
 | 
|---|
| 5199 |       # This hack is so that the source file can tell whether it is being
 | 
|---|
| 5200 |       # built for inclusion in a dll (and should export symbols for example).
 | 
|---|
| 5201 |       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 | 
|---|
| 5202 |       ;;
 | 
|---|
| 5203 | 
 | 
|---|
| 5204 |     darwin* | rhapsody*)
 | 
|---|
| 5205 |       # PIC is the default on this platform
 | 
|---|
| 5206 |       # Common symbols not allowed in MH_DYLIB files
 | 
|---|
| 5207 |       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 | 
|---|
| 5208 |       ;;
 | 
|---|
| 5209 | 
 | 
|---|
| 5210 |     interix3*)
 | 
|---|
| 5211 |       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 | 
|---|
| 5212 |       # Instead, we relocate shared libraries at runtime.
 | 
|---|
| 5213 |       ;;
 | 
|---|
| 5214 | 
 | 
|---|
| 5215 |     msdosdjgpp*)
 | 
|---|
| 5216 |       # Just because we use GCC doesn't mean we suddenly get shared libraries
 | 
|---|
| 5217 |       # on systems that don't support them.
 | 
|---|
| 5218 |       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 | 
|---|
| 5219 |       enable_shared=no
 | 
|---|
| 5220 |       ;;
 | 
|---|
| 5221 | 
 | 
|---|
| 5222 |     sysv4*MP*)
 | 
|---|
| 5223 |       if test -d /usr/nec; then
 | 
|---|
| 5224 |         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 | 
|---|
| 5225 |       fi
 | 
|---|
| 5226 |       ;;
 | 
|---|
| 5227 | 
 | 
|---|
| 5228 |     hpux*)
 | 
|---|
| 5229 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 | 
|---|
| 5230 |       # not for PA HP-UX.
 | 
|---|
| 5231 |       case $host_cpu in
 | 
|---|
| 5232 |       hppa*64*|ia64*)
 | 
|---|
| 5233 |         # +Z the default
 | 
|---|
| 5234 |         ;;
 | 
|---|
| 5235 |       *)
 | 
|---|
| 5236 |         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 | 
|---|
| 5237 |         ;;
 | 
|---|
| 5238 |       esac
 | 
|---|
| 5239 |       ;;
 | 
|---|
| 5240 | 
 | 
|---|
| 5241 |     *)
 | 
|---|
| 5242 |       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 | 
|---|
| 5243 |       ;;
 | 
|---|
| 5244 |     esac
 | 
|---|
| 5245 |   else
 | 
|---|
| 5246 |     # PORTME Check for flag to pass linker flags through the system compiler.
 | 
|---|
| 5247 |     case $host_os in
 | 
|---|
| 5248 |     aix*)
 | 
|---|
| 5249 |       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 5250 |       if test "$host_cpu" = ia64; then
 | 
|---|
| 5251 |         # AIX 5 now supports IA64 processor
 | 
|---|
| 5252 |         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 | 
|---|
| 5253 |       else
 | 
|---|
| 5254 |         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 | 
|---|
| 5255 |       fi
 | 
|---|
| 5256 |       ;;
 | 
|---|
| 5257 |       darwin*)
 | 
|---|
| 5258 |         # PIC is the default on this platform
 | 
|---|
| 5259 |         # Common symbols not allowed in MH_DYLIB files
 | 
|---|
| 5260 |        case $cc_basename in
 | 
|---|
| 5261 |          xlc*)
 | 
|---|
| 5262 |          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 | 
|---|
| 5263 |          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 5264 |          ;;
 | 
|---|
| 5265 |        esac
 | 
|---|
| 5266 |        ;;
 | 
|---|
| 5267 | 
 | 
|---|
| 5268 |     mingw* | pw32* | os2*)
 | 
|---|
| 5269 |       # This hack is so that the source file can tell whether it is being
 | 
|---|
| 5270 |       # built for inclusion in a dll (and should export symbols for example).
 | 
|---|
| 5271 |       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 | 
|---|
| 5272 |       ;;
 | 
|---|
| 5273 | 
 | 
|---|
| 5274 |     hpux9* | hpux10* | hpux11*)
 | 
|---|
| 5275 |       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 5276 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 | 
|---|
| 5277 |       # not for PA HP-UX.
 | 
|---|
| 5278 |       case $host_cpu in
 | 
|---|
| 5279 |       hppa*64*|ia64*)
 | 
|---|
| 5280 |         # +Z the default
 | 
|---|
| 5281 |         ;;
 | 
|---|
| 5282 |       *)
 | 
|---|
| 5283 |         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 | 
|---|
| 5284 |         ;;
 | 
|---|
| 5285 |       esac
 | 
|---|
| 5286 |       # Is there a better lt_prog_compiler_static that works with the bundled CC?
 | 
|---|
| 5287 |       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 | 
|---|
| 5288 |       ;;
 | 
|---|
| 5289 | 
 | 
|---|
| 5290 |     irix5* | irix6* | nonstopux*)
 | 
|---|
| 5291 |       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 5292 |       # PIC (with -KPIC) is the default.
 | 
|---|
| 5293 |       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 | 
|---|
| 5294 |       ;;
 | 
|---|
| 5295 | 
 | 
|---|
| 5296 |     newsos6)
 | 
|---|
| 5297 |       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 | 
|---|
| 5298 |       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 | 
|---|
| 5299 |       ;;
 | 
|---|
| 5300 | 
 | 
|---|
| 5301 |     linux*)
 | 
|---|
| 5302 |       case $cc_basename in
 | 
|---|
| 5303 |       icc* | ecc*)
 | 
|---|
| 5304 |         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 5305 |         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 | 
|---|
| 5306 |         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 | 
|---|
| 5307 |         ;;
 | 
|---|
| 5308 |       pgcc* | pgf77* | pgf90* | pgf95*)
 | 
|---|
| 5309 |         # Portland Group compilers (*not* the Pentium gcc compiler,
 | 
|---|
| 5310 |         # which looks to be a dead project)
 | 
|---|
| 5311 |         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 5312 |         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 | 
|---|
| 5313 |         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 | 
|---|
| 5314 |         ;;
 | 
|---|
| 5315 |       ccc*)
 | 
|---|
| 5316 |         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 5317 |         # All Alpha code is PIC.
 | 
|---|
| 5318 |         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 | 
|---|
| 5319 |         ;;
 | 
|---|
| 5320 |       esac
 | 
|---|
| 5321 |       ;;
 | 
|---|
| 5322 | 
 | 
|---|
| 5323 |     osf3* | osf4* | osf5*)
 | 
|---|
| 5324 |       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 5325 |       # All OSF/1 code is PIC.
 | 
|---|
| 5326 |       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 | 
|---|
| 5327 |       ;;
 | 
|---|
| 5328 | 
 | 
|---|
| 5329 |     solaris*)
 | 
|---|
| 5330 |       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 | 
|---|
| 5331 |       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 | 
|---|
| 5332 |       case $cc_basename in
 | 
|---|
| 5333 |       f77* | f90* | f95*)
 | 
|---|
| 5334 |         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 | 
|---|
| 5335 |       *)
 | 
|---|
| 5336 |         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 | 
|---|
| 5337 |       esac
 | 
|---|
| 5338 |       ;;
 | 
|---|
| 5339 | 
 | 
|---|
| 5340 |     sunos4*)
 | 
|---|
| 5341 |       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 | 
|---|
| 5342 |       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 | 
|---|
| 5343 |       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 | 
|---|
| 5344 |       ;;
 | 
|---|
| 5345 | 
 | 
|---|
| 5346 |     sysv4 | sysv4.2uw2* | sysv4.3*)
 | 
|---|
| 5347 |       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 5348 |       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 | 
|---|
| 5349 |       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 | 
|---|
| 5350 |       ;;
 | 
|---|
| 5351 | 
 | 
|---|
| 5352 |     sysv4*MP*)
 | 
|---|
| 5353 |       if test -d /usr/nec ;then
 | 
|---|
| 5354 |         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 | 
|---|
| 5355 |         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 | 
|---|
| 5356 |       fi
 | 
|---|
| 5357 |       ;;
 | 
|---|
| 5358 | 
 | 
|---|
| 5359 |     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 | 
|---|
| 5360 |       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 5361 |       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 | 
|---|
| 5362 |       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 | 
|---|
| 5363 |       ;;
 | 
|---|
| 5364 | 
 | 
|---|
| 5365 |     unicos*)
 | 
|---|
| 5366 |       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 | 
|---|
| 5367 |       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 | 
|---|
| 5368 |       ;;
 | 
|---|
| 5369 | 
 | 
|---|
| 5370 |     uts4*)
 | 
|---|
| 5371 |       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 | 
|---|
| 5372 |       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 | 
|---|
| 5373 |       ;;
 | 
|---|
| 5374 | 
 | 
|---|
| 5375 |     *)
 | 
|---|
| 5376 |       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 | 
|---|
| 5377 |       ;;
 | 
|---|
| 5378 |     esac
 | 
|---|
| 5379 |   fi
 | 
|---|
| 5380 | ])
 | 
|---|
| 5381 | AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 | 
|---|
| 5382 | 
 | 
|---|
| 5383 | #
 | 
|---|
| 5384 | # Check to make sure the PIC flag actually works.
 | 
|---|
| 5385 | #
 | 
|---|
| 5386 | if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
 | 
|---|
| 5387 |   AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
 | 
|---|
| 5388 |     _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 | 
|---|
| 5389 |     [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
 | 
|---|
| 5390 |     [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 | 
|---|
| 5391 |      "" | " "*) ;;
 | 
|---|
| 5392 |      *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 | 
|---|
| 5393 |      esac],
 | 
|---|
| 5394 |     [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 | 
|---|
| 5395 |      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 | 
|---|
| 5396 | fi
 | 
|---|
| 5397 | case $host_os in
 | 
|---|
| 5398 |   # For platforms which do not support PIC, -DPIC is meaningless:
 | 
|---|
| 5399 |   *djgpp*)
 | 
|---|
| 5400 |     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 | 
|---|
| 5401 |     ;;
 | 
|---|
| 5402 |   *)
 | 
|---|
| 5403 |     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
 | 
|---|
| 5404 |     ;;
 | 
|---|
| 5405 | esac
 | 
|---|
| 5406 | 
 | 
|---|
| 5407 | #
 | 
|---|
| 5408 | # Check to make sure the static flag actually works.
 | 
|---|
| 5409 | #
 | 
|---|
| 5410 | wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 | 
|---|
| 5411 | AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 | 
|---|
| 5412 |   _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 | 
|---|
| 5413 |   $lt_tmp_static_flag,
 | 
|---|
| 5414 |   [],
 | 
|---|
| 5415 |   [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
 | 
|---|
| 5416 | ])
 | 
|---|
| 5417 | 
 | 
|---|
| 5418 | 
 | 
|---|
| 5419 | # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
 | 
|---|
| 5420 | # ------------------------------------
 | 
|---|
| 5421 | # See if the linker supports building shared libraries.
 | 
|---|
| 5422 | AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
 | 
|---|
| 5423 | [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 | 
|---|
| 5424 | ifelse([$1],[CXX],[
 | 
|---|
| 5425 |   _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 | 
|---|
| 5426 |   case $host_os in
 | 
|---|
| 5427 |   aix4* | aix5*)
 | 
|---|
| 5428 |     # If we're using GNU nm, then we don't want the "-C" option.
 | 
|---|
| 5429 |     # -C means demangle to AIX nm, but means don't demangle with GNU nm
 | 
|---|
| 5430 |     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 | 
|---|
| 5431 |       _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'
 | 
|---|
| 5432 |     else
 | 
|---|
| 5433 |       _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'
 | 
|---|
| 5434 |     fi
 | 
|---|
| 5435 |     ;;
 | 
|---|
| 5436 |   pw32*)
 | 
|---|
| 5437 |     _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 | 
|---|
| 5438 |   ;;
 | 
|---|
| 5439 |   cygwin* | mingw*)
 | 
|---|
| 5440 |     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 | 
|---|
| 5441 |   ;;
 | 
|---|
| 5442 |   *)
 | 
|---|
| 5443 |     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 | 
|---|
| 5444 |   ;;
 | 
|---|
| 5445 |   esac
 | 
|---|
| 5446 | ],[
 | 
|---|
| 5447 |   runpath_var=
 | 
|---|
| 5448 |   _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 | 
|---|
| 5449 |   _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 | 
|---|
| 5450 |   _LT_AC_TAGVAR(archive_cmds, $1)=
 | 
|---|
| 5451 |   _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 | 
|---|
| 5452 |   _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
 | 
|---|
| 5453 |   _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 | 
|---|
| 5454 |   _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 | 
|---|
| 5455 |   _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 | 
|---|
| 5456 |   _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
 | 
|---|
| 5457 |   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 | 
|---|
| 5458 |   _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 | 
|---|
| 5459 |   _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 | 
|---|
| 5460 |   _LT_AC_TAGVAR(hardcode_direct, $1)=no
 | 
|---|
| 5461 |   _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 | 
|---|
| 5462 |   _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 | 
|---|
| 5463 |   _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 | 
|---|
| 5464 |   _LT_AC_TAGVAR(hardcode_automatic, $1)=no
 | 
|---|
| 5465 |   _LT_AC_TAGVAR(module_cmds, $1)=
 | 
|---|
| 5466 |   _LT_AC_TAGVAR(module_expsym_cmds, $1)=
 | 
|---|
| 5467 |   _LT_AC_TAGVAR(always_export_symbols, $1)=no
 | 
|---|
| 5468 |   _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 | 
|---|
| 5469 |   # include_expsyms should be a list of space-separated symbols to be *always*
 | 
|---|
| 5470 |   # included in the symbol list
 | 
|---|
| 5471 |   _LT_AC_TAGVAR(include_expsyms, $1)=
 | 
|---|
| 5472 |   # exclude_expsyms can be an extended regexp of symbols to exclude
 | 
|---|
| 5473 |   # it will be wrapped by ` (' and `)$', so one must not match beginning or
 | 
|---|
| 5474 |   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 | 
|---|
| 5475 |   # as well as any symbol that contains `d'.
 | 
|---|
| 5476 |   _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 | 
|---|
| 5477 |   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 | 
|---|
| 5478 |   # platforms (ab)use it in PIC code, but their linkers get confused if
 | 
|---|
| 5479 |   # the symbol is explicitly referenced.  Since portable code cannot
 | 
|---|
| 5480 |   # rely on this symbol name, it's probably fine to never include it in
 | 
|---|
| 5481 |   # preloaded symbol tables.
 | 
|---|
| 5482 |   extract_expsyms_cmds=
 | 
|---|
| 5483 |   # Just being paranoid about ensuring that cc_basename is set.
 | 
|---|
| 5484 |   _LT_CC_BASENAME([$compiler])
 | 
|---|
| 5485 |   case $host_os in
 | 
|---|
| 5486 |   cygwin* | mingw* | pw32*)
 | 
|---|
| 5487 |     # FIXME: the MSVC++ port hasn't been tested in a loooong time
 | 
|---|
| 5488 |     # When not using gcc, we currently assume that we are using
 | 
|---|
| 5489 |     # Microsoft Visual C++.
 | 
|---|
| 5490 |     if test "$GCC" != yes; then
 | 
|---|
| 5491 |       with_gnu_ld=no
 | 
|---|
| 5492 |     fi
 | 
|---|
| 5493 |     ;;
 | 
|---|
| 5494 |   interix*)
 | 
|---|
| 5495 |     # we just hope/assume this is gcc and not c89 (= MSVC++)
 | 
|---|
| 5496 |     with_gnu_ld=yes
 | 
|---|
| 5497 |     ;;
 | 
|---|
| 5498 |   openbsd*)
 | 
|---|
| 5499 |     with_gnu_ld=no
 | 
|---|
| 5500 |     ;;
 | 
|---|
| 5501 |   esac
 | 
|---|
| 5502 | 
 | 
|---|
| 5503 |   _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 | 
|---|
| 5504 |   if test "$with_gnu_ld" = yes; then
 | 
|---|
| 5505 |     # If archive_cmds runs LD, not CC, wlarc should be empty
 | 
|---|
| 5506 |     wlarc='${wl}'
 | 
|---|
| 5507 | 
 | 
|---|
| 5508 |     # Set some defaults for GNU ld with shared library support. These
 | 
|---|
| 5509 |     # are reset later if shared libraries are not supported. Putting them
 | 
|---|
| 5510 |     # here allows them to be overridden if necessary.
 | 
|---|
| 5511 |     runpath_var=LD_RUN_PATH
 | 
|---|
| 5512 |     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 | 
|---|
| 5513 |     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 | 
|---|
| 5514 |     # ancient GNU ld didn't support --whole-archive et. al.
 | 
|---|
| 5515 |     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 | 
|---|
| 5516 |         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 | 
|---|
| 5517 |       else
 | 
|---|
| 5518 |         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 | 
|---|
| 5519 |     fi
 | 
|---|
| 5520 |     supports_anon_versioning=no
 | 
|---|
| 5521 |     case `$LD -v 2>/dev/null` in
 | 
|---|
| 5522 |       *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 | 
|---|
| 5523 |       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 | 
|---|
| 5524 |       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 | 
|---|
| 5525 |       *\ 2.11.*) ;; # other 2.11 versions
 | 
|---|
| 5526 |       *) supports_anon_versioning=yes ;;
 | 
|---|
| 5527 |     esac
 | 
|---|
| 5528 | 
 | 
|---|
| 5529 |     # See if GNU ld supports shared libraries.
 | 
|---|
| 5530 |     case $host_os in
 | 
|---|
| 5531 |     aix3* | aix4* | aix5*)
 | 
|---|
| 5532 |       # On AIX/PPC, the GNU linker is very broken
 | 
|---|
| 5533 |       if test "$host_cpu" != ia64; then
 | 
|---|
| 5534 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 5535 |         cat <<EOF 1>&2
 | 
|---|
| 5536 | 
 | 
|---|
| 5537 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported
 | 
|---|
| 5538 | *** to be unable to reliably create shared libraries on AIX.
 | 
|---|
| 5539 | *** Therefore, libtool is disabling shared libraries support.  If you
 | 
|---|
| 5540 | *** really care for shared libraries, you may want to modify your PATH
 | 
|---|
| 5541 | *** so that a non-GNU linker is found, and then restart.
 | 
|---|
| 5542 | 
 | 
|---|
| 5543 | EOF
 | 
|---|
| 5544 |       fi
 | 
|---|
| 5545 |       ;;
 | 
|---|
| 5546 | 
 | 
|---|
| 5547 |     amigaos*)
 | 
|---|
| 5548 |       _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)'
 | 
|---|
| 5549 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 | 
|---|
| 5550 |       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 | 
|---|
| 5551 | 
 | 
|---|
| 5552 |       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 | 
|---|
| 5553 |       # that the semantics of dynamic libraries on AmigaOS, at least up
 | 
|---|
| 5554 |       # to version 4, is to share data among multiple programs linked
 | 
|---|
| 5555 |       # with the same dynamic library.  Since this doesn't match the
 | 
|---|
| 5556 |       # behavior of shared libraries on other platforms, we can't use
 | 
|---|
| 5557 |       # them.
 | 
|---|
| 5558 |       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 5559 |       ;;
 | 
|---|
| 5560 | 
 | 
|---|
| 5561 |     beos*)
 | 
|---|
| 5562 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 | 
|---|
| 5563 |         _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 | 
|---|
| 5564 |         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 | 
|---|
| 5565 |         # support --undefined.  This deserves some investigation.  FIXME
 | 
|---|
| 5566 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 | 
|---|
| 5567 |       else
 | 
|---|
| 5568 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 5569 |       fi
 | 
|---|
| 5570 |       ;;
 | 
|---|
| 5571 | 
 | 
|---|
| 5572 |     cygwin* | mingw* | pw32*)
 | 
|---|
| 5573 |       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 | 
|---|
| 5574 |       # as there is no search path for DLLs.
 | 
|---|
| 5575 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 | 
|---|
| 5576 |       _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 | 
|---|
| 5577 |       _LT_AC_TAGVAR(always_export_symbols, $1)=no
 | 
|---|
| 5578 |       _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 | 
|---|
| 5579 |       _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 | 
|---|
| 5580 | 
 | 
|---|
| 5581 |       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 | 
|---|
| 5582 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 | 
|---|
| 5583 |         # If the export-symbols file already is a .def file (1st line
 | 
|---|
| 5584 |         # is EXPORTS), use it as is; otherwise, prepend...
 | 
|---|
| 5585 |         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 | 
|---|
| 5586 |           cp $export_symbols $output_objdir/$soname.def;
 | 
|---|
| 5587 |         else
 | 
|---|
| 5588 |           echo EXPORTS > $output_objdir/$soname.def;
 | 
|---|
| 5589 |           cat $export_symbols >> $output_objdir/$soname.def;
 | 
|---|
| 5590 |         fi~
 | 
|---|
| 5591 |         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 | 
|---|
| 5592 |       else
 | 
|---|
| 5593 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 5594 |       fi
 | 
|---|
| 5595 |       ;;
 | 
|---|
| 5596 | 
 | 
|---|
| 5597 |     interix3*)
 | 
|---|
| 5598 |       _LT_AC_TAGVAR(hardcode_direct, $1)=no
 | 
|---|
| 5599 |       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 5600 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 | 
|---|
| 5601 |       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 | 
|---|
| 5602 |       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 | 
|---|
| 5603 |       # Instead, shared libraries are loaded at an image base (0x10000000 by
 | 
|---|
| 5604 |       # default) and relocated if they conflict, which is a slow very memory
 | 
|---|
| 5605 |       # consuming and fragmenting process.  To avoid this, we pick a random,
 | 
|---|
| 5606 |       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 | 
|---|
| 5607 |       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 | 
|---|
| 5608 |       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 | 
|---|
| 5609 |       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 | 
|---|
| 5610 |       ;;
 | 
|---|
| 5611 | 
 | 
|---|
| 5612 |     linux*)
 | 
|---|
| 5613 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 | 
|---|
| 5614 |         tmp_addflag=
 | 
|---|
| 5615 |         case $cc_basename,$host_cpu in
 | 
|---|
| 5616 |         pgcc*)                          # Portland Group C compiler
 | 
|---|
| 5617 |           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 | 
|---|
| 5618 |           tmp_addflag=' $pic_flag'
 | 
|---|
| 5619 |           ;;
 | 
|---|
| 5620 |         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 | 
|---|
| 5621 |           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 | 
|---|
| 5622 |           tmp_addflag=' $pic_flag -Mnomain' ;;
 | 
|---|
| 5623 |         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 | 
|---|
| 5624 |           tmp_addflag=' -i_dynamic' ;;
 | 
|---|
| 5625 |         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 | 
|---|
| 5626 |           tmp_addflag=' -i_dynamic -nofor_main' ;;
 | 
|---|
| 5627 |         ifc* | ifort*)                  # Intel Fortran compiler
 | 
|---|
| 5628 |           tmp_addflag=' -nofor_main' ;;
 | 
|---|
| 5629 |         esac
 | 
|---|
| 5630 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 | 
|---|
| 5631 | 
 | 
|---|
| 5632 |         if test $supports_anon_versioning = yes; then
 | 
|---|
| 5633 |           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 | 
|---|
| 5634 |   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 | 
|---|
| 5635 |   $echo "local: *; };" >> $output_objdir/$libname.ver~
 | 
|---|
| 5636 |           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 | 
|---|
| 5637 |         fi
 | 
|---|
| 5638 |       else
 | 
|---|
| 5639 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 5640 |       fi
 | 
|---|
| 5641 |       ;;
 | 
|---|
| 5642 | 
 | 
|---|
| 5643 |     netbsd*)
 | 
|---|
| 5644 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 | 
|---|
| 5645 |         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 | 
|---|
| 5646 |         wlarc=
 | 
|---|
| 5647 |       else
 | 
|---|
| 5648 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 | 
|---|
| 5649 |         _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'
 | 
|---|
| 5650 |       fi
 | 
|---|
| 5651 |       ;;
 | 
|---|
| 5652 | 
 | 
|---|
| 5653 |     solaris*)
 | 
|---|
| 5654 |       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 | 
|---|
| 5655 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 5656 |         cat <<EOF 1>&2
 | 
|---|
| 5657 | 
 | 
|---|
| 5658 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably
 | 
|---|
| 5659 | *** create shared libraries on Solaris systems.  Therefore, libtool
 | 
|---|
| 5660 | *** is disabling shared libraries support.  We urge you to upgrade GNU
 | 
|---|
| 5661 | *** binutils to release 2.9.1 or newer.  Another option is to modify
 | 
|---|
| 5662 | *** your PATH or compiler configuration so that the native linker is
 | 
|---|
| 5663 | *** used, and then restart.
 | 
|---|
| 5664 | 
 | 
|---|
| 5665 | EOF
 | 
|---|
| 5666 |       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 | 
|---|
| 5667 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 | 
|---|
| 5668 |         _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'
 | 
|---|
| 5669 |       else
 | 
|---|
| 5670 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 5671 |       fi
 | 
|---|
| 5672 |       ;;
 | 
|---|
| 5673 | 
 | 
|---|
| 5674 |     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 | 
|---|
| 5675 |       case `$LD -v 2>&1` in
 | 
|---|
| 5676 |         *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 | 
|---|
| 5677 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 5678 |         cat <<_LT_EOF 1>&2
 | 
|---|
| 5679 | 
 | 
|---|
| 5680 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 | 
|---|
| 5681 | *** reliably create shared libraries on SCO systems.  Therefore, libtool
 | 
|---|
| 5682 | *** is disabling shared libraries support.  We urge you to upgrade GNU
 | 
|---|
| 5683 | *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 | 
|---|
| 5684 | *** your PATH or compiler configuration so that the native linker is
 | 
|---|
| 5685 | *** used, and then restart.
 | 
|---|
| 5686 | 
 | 
|---|
| 5687 | _LT_EOF
 | 
|---|
| 5688 |         ;;
 | 
|---|
| 5689 |         *)
 | 
|---|
| 5690 |           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 | 
|---|
| 5691 |             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 | 
|---|
| 5692 |             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 | 
|---|
| 5693 |             _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 | 
|---|
| 5694 |           else
 | 
|---|
| 5695 |             _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 5696 |           fi
 | 
|---|
| 5697 |         ;;
 | 
|---|
| 5698 |       esac
 | 
|---|
| 5699 |       ;;
 | 
|---|
| 5700 | 
 | 
|---|
| 5701 |     sunos4*)
 | 
|---|
| 5702 |       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 | 
|---|
| 5703 |       wlarc=
 | 
|---|
| 5704 |       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 | 
|---|
| 5705 |       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 5706 |       ;;
 | 
|---|
| 5707 | 
 | 
|---|
| 5708 |     *)
 | 
|---|
| 5709 |       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 | 
|---|
| 5710 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 | 
|---|
| 5711 |         _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'
 | 
|---|
| 5712 |       else
 | 
|---|
| 5713 |         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 5714 |       fi
 | 
|---|
| 5715 |       ;;
 | 
|---|
| 5716 |     esac
 | 
|---|
| 5717 | 
 | 
|---|
| 5718 |     if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 | 
|---|
| 5719 |       runpath_var=
 | 
|---|
| 5720 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 | 
|---|
| 5721 |       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 | 
|---|
| 5722 |       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 | 
|---|
| 5723 |     fi
 | 
|---|
| 5724 |   else
 | 
|---|
| 5725 |     # PORTME fill in a description of your system's linker (not GNU ld)
 | 
|---|
| 5726 |     case $host_os in
 | 
|---|
| 5727 |     aix3*)
 | 
|---|
| 5728 |       _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 | 
|---|
| 5729 |       _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 | 
|---|
| 5730 |       _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'
 | 
|---|
| 5731 |       # Note: this linker hardcodes the directories in LIBPATH if there
 | 
|---|
| 5732 |       # are no directories specified by -L.
 | 
|---|
| 5733 |       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 | 
|---|
| 5734 |       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 | 
|---|
| 5735 |         # Neither direct hardcoding nor static linking is supported with a
 | 
|---|
| 5736 |         # broken collect2.
 | 
|---|
| 5737 |         _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 | 
|---|
| 5738 |       fi
 | 
|---|
| 5739 |       ;;
 | 
|---|
| 5740 | 
 | 
|---|
| 5741 |     aix4* | aix5*)
 | 
|---|
| 5742 |       if test "$host_cpu" = ia64; then
 | 
|---|
| 5743 |         # On IA64, the linker does run time linking by default, so we don't
 | 
|---|
| 5744 |         # have to do anything special.
 | 
|---|
| 5745 |         aix_use_runtimelinking=no
 | 
|---|
| 5746 |         exp_sym_flag='-Bexport'
 | 
|---|
| 5747 |         no_entry_flag=""
 | 
|---|
| 5748 |       else
 | 
|---|
| 5749 |         # If we're using GNU nm, then we don't want the "-C" option.
 | 
|---|
| 5750 |         # -C means demangle to AIX nm, but means don't demangle with GNU nm
 | 
|---|
| 5751 |         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 | 
|---|
| 5752 |           _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'
 | 
|---|
| 5753 |         else
 | 
|---|
| 5754 |           _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'
 | 
|---|
| 5755 |         fi
 | 
|---|
| 5756 |         aix_use_runtimelinking=no
 | 
|---|
| 5757 | 
 | 
|---|
| 5758 |         # Test if we are trying to use run time linking or normal
 | 
|---|
| 5759 |         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 | 
|---|
| 5760 |         # need to do runtime linking.
 | 
|---|
| 5761 |         case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 | 
|---|
| 5762 |           for ld_flag in $LDFLAGS; do
 | 
|---|
| 5763 |           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 | 
|---|
| 5764 |             aix_use_runtimelinking=yes
 | 
|---|
| 5765 |             break
 | 
|---|
| 5766 |           fi
 | 
|---|
| 5767 |           done
 | 
|---|
| 5768 |           ;;
 | 
|---|
| 5769 |         esac
 | 
|---|
| 5770 | 
 | 
|---|
| 5771 |         exp_sym_flag='-bexport'
 | 
|---|
| 5772 |         no_entry_flag='-bnoentry'
 | 
|---|
| 5773 |       fi
 | 
|---|
| 5774 | 
 | 
|---|
| 5775 |       # When large executables or shared objects are built, AIX ld can
 | 
|---|
| 5776 |       # have problems creating the table of contents.  If linking a library
 | 
|---|
| 5777 |       # or program results in "error TOC overflow" add -mminimal-toc to
 | 
|---|
| 5778 |       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 | 
|---|
| 5779 |       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 | 
|---|
| 5780 | 
 | 
|---|
| 5781 |       _LT_AC_TAGVAR(archive_cmds, $1)=''
 | 
|---|
| 5782 |       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 | 
|---|
| 5783 |       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 | 
|---|
| 5784 |       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 | 
|---|
| 5785 | 
 | 
|---|
| 5786 |       if test "$GCC" = yes; then
 | 
|---|
| 5787 |         case $host_os in aix4.[[012]]|aix4.[[012]].*)
 | 
|---|
| 5788 |         # We only want to do this on AIX 4.2 and lower, the check
 | 
|---|
| 5789 |         # below for broken collect2 doesn't work under 4.3+
 | 
|---|
| 5790 |           collect2name=`${CC} -print-prog-name=collect2`
 | 
|---|
| 5791 |           if test -f "$collect2name" && \
 | 
|---|
| 5792 |            strings "$collect2name" | grep resolve_lib_name >/dev/null
 | 
|---|
| 5793 |           then
 | 
|---|
| 5794 |           # We have reworked collect2
 | 
|---|
| 5795 |           _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 | 
|---|
| 5796 |           else
 | 
|---|
| 5797 |           # We have old collect2
 | 
|---|
| 5798 |           _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 | 
|---|
| 5799 |           # It fails to find uninstalled libraries when the uninstalled
 | 
|---|
| 5800 |           # path is not listed in the libpath.  Setting hardcode_minus_L
 | 
|---|
| 5801 |           # to unsupported forces relinking
 | 
|---|
| 5802 |           _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 | 
|---|
| 5803 |           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 | 
|---|
| 5804 |           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 | 
|---|
| 5805 |           fi
 | 
|---|
| 5806 |           ;;
 | 
|---|
| 5807 |         esac
 | 
|---|
| 5808 |         shared_flag='-shared'
 | 
|---|
| 5809 |         if test "$aix_use_runtimelinking" = yes; then
 | 
|---|
| 5810 |           shared_flag="$shared_flag "'${wl}-G'
 | 
|---|
| 5811 |         fi
 | 
|---|
| 5812 |       else
 | 
|---|
| 5813 |         # not using gcc
 | 
|---|
| 5814 |         if test "$host_cpu" = ia64; then
 | 
|---|
| 5815 |         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 | 
|---|
| 5816 |         # chokes on -Wl,-G. The following line is correct:
 | 
|---|
| 5817 |           shared_flag='-G'
 | 
|---|
| 5818 |         else
 | 
|---|
| 5819 |           if test "$aix_use_runtimelinking" = yes; then
 | 
|---|
| 5820 |             shared_flag='${wl}-G'
 | 
|---|
| 5821 |           else
 | 
|---|
| 5822 |             shared_flag='${wl}-bM:SRE'
 | 
|---|
| 5823 |           fi
 | 
|---|
| 5824 |         fi
 | 
|---|
| 5825 |       fi
 | 
|---|
| 5826 | 
 | 
|---|
| 5827 |       # It seems that -bexpall does not export symbols beginning with
 | 
|---|
| 5828 |       # underscore (_), so it is better to generate a list of symbols to export.
 | 
|---|
| 5829 |       _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 | 
|---|
| 5830 |       if test "$aix_use_runtimelinking" = yes; then
 | 
|---|
| 5831 |         # Warning - without using the other runtime loading flags (-brtl),
 | 
|---|
| 5832 |         # -berok will link without error, but may produce a broken library.
 | 
|---|
| 5833 |         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 | 
|---|
| 5834 |        # Determine the default libpath from the value encoded in an empty executable.
 | 
|---|
| 5835 |        _LT_AC_SYS_LIBPATH_AIX
 | 
|---|
| 5836 |        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 | 
|---|
| 5837 |         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 | 
|---|
| 5838 |        else
 | 
|---|
| 5839 |         if test "$host_cpu" = ia64; then
 | 
|---|
| 5840 |           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 | 
|---|
| 5841 |           _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 | 
|---|
| 5842 |           _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 | 
|---|
| 5843 |         else
 | 
|---|
| 5844 |          # Determine the default libpath from the value encoded in an empty executable.
 | 
|---|
| 5845 |          _LT_AC_SYS_LIBPATH_AIX
 | 
|---|
| 5846 |          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 | 
|---|
| 5847 |           # Warning - without using the other run time loading flags,
 | 
|---|
| 5848 |           # -berok will link without error, but may produce a broken library.
 | 
|---|
| 5849 |           _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 | 
|---|
| 5850 |           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 | 
|---|
| 5851 |           # Exported symbols can be pulled into shared objects from archives
 | 
|---|
| 5852 |           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 | 
|---|
| 5853 |           _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 | 
|---|
| 5854 |           # This is similar to how AIX traditionally builds its shared libraries.
 | 
|---|
| 5855 |           _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 | 
|---|
| 5856 |         fi
 | 
|---|
| 5857 |       fi
 | 
|---|
| 5858 |       ;;
 | 
|---|
| 5859 | 
 | 
|---|
| 5860 |     amigaos*)
 | 
|---|
| 5861 |       _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)'
 | 
|---|
| 5862 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 | 
|---|
| 5863 |       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 | 
|---|
| 5864 |       # see comment about different semantics on the GNU ld section
 | 
|---|
| 5865 |       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 5866 |       ;;
 | 
|---|
| 5867 | 
 | 
|---|
| 5868 |     bsdi[[45]]*)
 | 
|---|
| 5869 |       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 | 
|---|
| 5870 |       ;;
 | 
|---|
| 5871 | 
 | 
|---|
| 5872 |     cygwin* | mingw* | pw32*)
 | 
|---|
| 5873 |       # When not using gcc, we currently assume that we are using
 | 
|---|
| 5874 |       # Microsoft Visual C++.
 | 
|---|
| 5875 |       # hardcode_libdir_flag_spec is actually meaningless, as there is
 | 
|---|
| 5876 |       # no search path for DLLs.
 | 
|---|
| 5877 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 | 
|---|
| 5878 |       _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 | 
|---|
| 5879 |       # Tell ltmain to make .lib files, not .a files.
 | 
|---|
| 5880 |       libext=lib
 | 
|---|
| 5881 |       # Tell ltmain to make .dll files, not .so files.
 | 
|---|
| 5882 |       shrext_cmds=".dll"
 | 
|---|
| 5883 |       # FIXME: Setting linknames here is a bad hack.
 | 
|---|
| 5884 |       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 | 
|---|
| 5885 |       # The linker will automatically build a .lib file if we build a DLL.
 | 
|---|
| 5886 |       _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
 | 
|---|
| 5887 |       # FIXME: Should let the user specify the lib program.
 | 
|---|
| 5888 |       _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 | 
|---|
| 5889 |       _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 | 
|---|
| 5890 |       _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 | 
|---|
| 5891 |       ;;
 | 
|---|
| 5892 | 
 | 
|---|
| 5893 |     darwin* | rhapsody*)
 | 
|---|
| 5894 |       case $host_os in
 | 
|---|
| 5895 |         rhapsody* | darwin1.[[012]])
 | 
|---|
| 5896 |          _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 | 
|---|
| 5897 |          ;;
 | 
|---|
| 5898 |        *) # Darwin 1.3 on
 | 
|---|
| 5899 |          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 | 
|---|
| 5900 |            _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 | 
|---|
| 5901 |          else
 | 
|---|
| 5902 |            case ${MACOSX_DEPLOYMENT_TARGET} in
 | 
|---|
| 5903 |              10.[[012]])
 | 
|---|
| 5904 |                _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 | 
|---|
| 5905 |                ;;
 | 
|---|
| 5906 |              10.*)
 | 
|---|
| 5907 |                _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 | 
|---|
| 5908 |                ;;
 | 
|---|
| 5909 |            esac
 | 
|---|
| 5910 |          fi
 | 
|---|
| 5911 |          ;;
 | 
|---|
| 5912 |       esac
 | 
|---|
| 5913 |       _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 | 
|---|
| 5914 |       _LT_AC_TAGVAR(hardcode_direct, $1)=no
 | 
|---|
| 5915 |       _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 | 
|---|
| 5916 |       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 | 
|---|
| 5917 |       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 | 
|---|
| 5918 |       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 | 
|---|
| 5919 |     if test "$GCC" = yes ; then
 | 
|---|
| 5920 |         output_verbose_link_cmd='echo'
 | 
|---|
| 5921 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 | 
|---|
| 5922 |       _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 | 
|---|
| 5923 |       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 | 
|---|
| 5924 |       _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}'
 | 
|---|
| 5925 |       _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}'
 | 
|---|
| 5926 |     else
 | 
|---|
| 5927 |       case $cc_basename in
 | 
|---|
| 5928 |         xlc*)
 | 
|---|
| 5929 |          output_verbose_link_cmd='echo'
 | 
|---|
| 5930 |          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 | 
|---|
| 5931 |          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 | 
|---|
| 5932 |           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 | 
|---|
| 5933 |          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 | 
|---|
| 5934 |           _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}'
 | 
|---|
| 5935 |           ;;
 | 
|---|
| 5936 |        *)
 | 
|---|
| 5937 |          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 5938 |           ;;
 | 
|---|
| 5939 |       esac
 | 
|---|
| 5940 |     fi
 | 
|---|
| 5941 |       ;;
 | 
|---|
| 5942 | 
 | 
|---|
| 5943 |     dgux*)
 | 
|---|
| 5944 |       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 | 
|---|
| 5945 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 | 
|---|
| 5946 |       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 5947 |       ;;
 | 
|---|
| 5948 | 
 | 
|---|
| 5949 |     freebsd1*)
 | 
|---|
| 5950 |       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 5951 |       ;;
 | 
|---|
| 5952 | 
 | 
|---|
| 5953 |     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 | 
|---|
| 5954 |     # support.  Future versions do this automatically, but an explicit c++rt0.o
 | 
|---|
| 5955 |     # does not break anything, and helps significantly (at the cost of a little
 | 
|---|
| 5956 |     # extra space).
 | 
|---|
| 5957 |     freebsd2.2*)
 | 
|---|
| 5958 |       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 | 
|---|
| 5959 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 | 
|---|
| 5960 |       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 | 
|---|
| 5961 |       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 5962 |       ;;
 | 
|---|
| 5963 | 
 | 
|---|
| 5964 |     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 | 
|---|
| 5965 |     freebsd2*)
 | 
|---|
| 5966 |       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 | 
|---|
| 5967 |       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 | 
|---|
| 5968 |       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 | 
|---|
| 5969 |       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 5970 |       ;;
 | 
|---|
| 5971 | 
 | 
|---|
| 5972 |     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 | 
|---|
| 5973 |     freebsd* | kfreebsd*-gnu | dragonfly*)
 | 
|---|
| 5974 |       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 5975 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 | 
|---|
| 5976 |       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 | 
|---|
| 5977 |       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 5978 |       ;;
 | 
|---|
| 5979 | 
 | 
|---|
| 5980 |     hpux9*)
 | 
|---|
| 5981 |       if test "$GCC" = yes; then
 | 
|---|
| 5982 |         _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'
 | 
|---|
| 5983 |       else
 | 
|---|
| 5984 |         _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'
 | 
|---|
| 5985 |       fi
 | 
|---|
| 5986 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 | 
|---|
| 5987 |       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 | 
|---|
| 5988 |       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 | 
|---|
| 5989 | 
 | 
|---|
| 5990 |       # hardcode_minus_L: Not really in the search PATH,
 | 
|---|
| 5991 |       # but as the default location of the library.
 | 
|---|
| 5992 |       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 | 
|---|
| 5993 |       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 | 
|---|
| 5994 |       ;;
 | 
|---|
| 5995 | 
 | 
|---|
| 5996 |     hpux10*)
 | 
|---|
| 5997 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 | 
|---|
| 5998 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 5999 |       else
 | 
|---|
| 6000 |         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 | 
|---|
| 6001 |       fi
 | 
|---|
| 6002 |       if test "$with_gnu_ld" = no; then
 | 
|---|
| 6003 |         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 | 
|---|
| 6004 |         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 | 
|---|
| 6005 | 
 | 
|---|
| 6006 |         _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 | 
|---|
| 6007 |         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 | 
|---|
| 6008 | 
 | 
|---|
| 6009 |         # hardcode_minus_L: Not really in the search PATH,
 | 
|---|
| 6010 |         # but as the default location of the library.
 | 
|---|
| 6011 |         _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 | 
|---|
| 6012 |       fi
 | 
|---|
| 6013 |       ;;
 | 
|---|
| 6014 | 
 | 
|---|
| 6015 |     hpux11*)
 | 
|---|
| 6016 |       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 | 
|---|
| 6017 |         case $host_cpu in
 | 
|---|
| 6018 |         hppa*64*)
 | 
|---|
| 6019 |           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 6020 |           ;;
 | 
|---|
| 6021 |         ia64*)
 | 
|---|
| 6022 |           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 6023 |           ;;
 | 
|---|
| 6024 |         *)
 | 
|---|
| 6025 |           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 6026 |           ;;
 | 
|---|
| 6027 |         esac
 | 
|---|
| 6028 |       else
 | 
|---|
| 6029 |         case $host_cpu in
 | 
|---|
| 6030 |         hppa*64*)
 | 
|---|
| 6031 |           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 6032 |           ;;
 | 
|---|
| 6033 |         ia64*)
 | 
|---|
| 6034 |           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 6035 |           ;;
 | 
|---|
| 6036 |         *)
 | 
|---|
| 6037 |           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 6038 |           ;;
 | 
|---|
| 6039 |         esac
 | 
|---|
| 6040 |       fi
 | 
|---|
| 6041 |       if test "$with_gnu_ld" = no; then
 | 
|---|
| 6042 |         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 | 
|---|
| 6043 |         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 | 
|---|
| 6044 | 
 | 
|---|
| 6045 |         case $host_cpu in
 | 
|---|
| 6046 |         hppa*64*|ia64*)
 | 
|---|
| 6047 |           _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 | 
|---|
| 6048 |           _LT_AC_TAGVAR(hardcode_direct, $1)=no
 | 
|---|
| 6049 |           _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 6050 |           ;;
 | 
|---|
| 6051 |         *)
 | 
|---|
| 6052 |           _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 | 
|---|
| 6053 |           _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 | 
|---|
| 6054 | 
 | 
|---|
| 6055 |           # hardcode_minus_L: Not really in the search PATH,
 | 
|---|
| 6056 |           # but as the default location of the library.
 | 
|---|
| 6057 |           _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 | 
|---|
| 6058 |           ;;
 | 
|---|
| 6059 |         esac
 | 
|---|
| 6060 |       fi
 | 
|---|
| 6061 |       ;;
 | 
|---|
| 6062 | 
 | 
|---|
| 6063 |     irix5* | irix6* | nonstopux*)
 | 
|---|
| 6064 |       if test "$GCC" = yes; then
 | 
|---|
| 6065 |         _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'
 | 
|---|
| 6066 |       else
 | 
|---|
| 6067 |         _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'
 | 
|---|
| 6068 |         _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 | 
|---|
| 6069 |       fi
 | 
|---|
| 6070 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 | 
|---|
| 6071 |       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 | 
|---|
| 6072 |       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 | 
|---|
| 6073 |       ;;
 | 
|---|
| 6074 | 
 | 
|---|
| 6075 |     netbsd*)
 | 
|---|
| 6076 |       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 | 
|---|
| 6077 |         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 | 
|---|
| 6078 |       else
 | 
|---|
| 6079 |         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 | 
|---|
| 6080 |       fi
 | 
|---|
| 6081 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 | 
|---|
| 6082 |       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 | 
|---|
| 6083 |       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 6084 |       ;;
 | 
|---|
| 6085 | 
 | 
|---|
| 6086 |     newsos6)
 | 
|---|
| 6087 |       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 | 
|---|
| 6088 |       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 | 
|---|
| 6089 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 | 
|---|
| 6090 |       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 | 
|---|
| 6091 |       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 6092 |       ;;
 | 
|---|
| 6093 | 
 | 
|---|
| 6094 |     openbsd*)
 | 
|---|
| 6095 |       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 | 
|---|
| 6096 |       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 6097 |       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 | 
|---|
| 6098 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 6099 |         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 | 
|---|
| 6100 |         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 | 
|---|
| 6101 |         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 | 
|---|
| 6102 |       else
 | 
|---|
| 6103 |        case $host_os in
 | 
|---|
| 6104 |          openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 | 
|---|
| 6105 |            _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 | 
|---|
| 6106 |            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 | 
|---|
| 6107 |            ;;
 | 
|---|
| 6108 |          *)
 | 
|---|
| 6109 |            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 6110 |            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 | 
|---|
| 6111 |            ;;
 | 
|---|
| 6112 |        esac
 | 
|---|
| 6113 |       fi
 | 
|---|
| 6114 |       ;;
 | 
|---|
| 6115 | 
 | 
|---|
| 6116 |     os2*)
 | 
|---|
| 6117 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 | 
|---|
| 6118 |       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 | 
|---|
| 6119 |       _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 | 
|---|
| 6120 |       _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'
 | 
|---|
| 6121 |       _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 | 
|---|
| 6122 |       ;;
 | 
|---|
| 6123 | 
 | 
|---|
| 6124 |     osf3*)
 | 
|---|
| 6125 |       if test "$GCC" = yes; then
 | 
|---|
| 6126 |         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 | 
|---|
| 6127 |         _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'
 | 
|---|
| 6128 |       else
 | 
|---|
| 6129 |         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 | 
|---|
| 6130 |         _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'
 | 
|---|
| 6131 |       fi
 | 
|---|
| 6132 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 | 
|---|
| 6133 |       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 | 
|---|
| 6134 |       ;;
 | 
|---|
| 6135 | 
 | 
|---|
| 6136 |     osf4* | osf5*)      # as osf3* with the addition of -msym flag
 | 
|---|
| 6137 |       if test "$GCC" = yes; then
 | 
|---|
| 6138 |         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 | 
|---|
| 6139 |         _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'
 | 
|---|
| 6140 |         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 | 
|---|
| 6141 |       else
 | 
|---|
| 6142 |         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 | 
|---|
| 6143 |         _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'
 | 
|---|
| 6144 |         _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~
 | 
|---|
| 6145 |         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 | 
|---|
| 6146 | 
 | 
|---|
| 6147 |         # Both c and cxx compiler support -rpath directly
 | 
|---|
| 6148 |         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 | 
|---|
| 6149 |       fi
 | 
|---|
| 6150 |       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 | 
|---|
| 6151 |       ;;
 | 
|---|
| 6152 | 
 | 
|---|
| 6153 |     solaris*)
 | 
|---|
| 6154 |       _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 | 
|---|
| 6155 |       if test "$GCC" = yes; then
 | 
|---|
| 6156 |         wlarc='${wl}'
 | 
|---|
| 6157 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 6158 |         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 | 
|---|
| 6159 |           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 | 
|---|
| 6160 |       else
 | 
|---|
| 6161 |         wlarc=''
 | 
|---|
| 6162 |         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 | 
|---|
| 6163 |         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 | 
|---|
| 6164 |         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 | 
|---|
| 6165 |       fi
 | 
|---|
| 6166 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 | 
|---|
| 6167 |       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 6168 |       case $host_os in
 | 
|---|
| 6169 |       solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 | 
|---|
| 6170 |       *)
 | 
|---|
| 6171 |         # The compiler driver will combine linker options so we
 | 
|---|
| 6172 |         # cannot just pass the convience library names through
 | 
|---|
| 6173 |         # without $wl, iff we do not link with $LD.
 | 
|---|
| 6174 |         # Luckily, gcc supports the same syntax we need for Sun Studio.
 | 
|---|
| 6175 |         # Supported since Solaris 2.6 (maybe 2.5.1?)
 | 
|---|
| 6176 |         case $wlarc in
 | 
|---|
| 6177 |         '')
 | 
|---|
| 6178 |           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 | 
|---|
| 6179 |         *)
 | 
|---|
| 6180 |           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 | 
|---|
| 6181 |         esac ;;
 | 
|---|
| 6182 |       esac
 | 
|---|
| 6183 |       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 | 
|---|
| 6184 |       ;;
 | 
|---|
| 6185 | 
 | 
|---|
| 6186 |     sunos4*)
 | 
|---|
| 6187 |       if test "x$host_vendor" = xsequent; then
 | 
|---|
| 6188 |         # Use $CC to link under sequent, because it throws in some extra .o
 | 
|---|
| 6189 |         # files that make .init and .fini sections work.
 | 
|---|
| 6190 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 6191 |       else
 | 
|---|
| 6192 |         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 | 
|---|
| 6193 |       fi
 | 
|---|
| 6194 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 | 
|---|
| 6195 |       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 | 
|---|
| 6196 |       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 | 
|---|
| 6197 |       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 6198 |       ;;
 | 
|---|
| 6199 | 
 | 
|---|
| 6200 |     sysv4)
 | 
|---|
| 6201 |       case $host_vendor in
 | 
|---|
| 6202 |         sni)
 | 
|---|
| 6203 |           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 | 
|---|
| 6204 |           _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 | 
|---|
| 6205 |         ;;
 | 
|---|
| 6206 |         siemens)
 | 
|---|
| 6207 |           ## LD is ld it makes a PLAMLIB
 | 
|---|
| 6208 |           ## CC just makes a GrossModule.
 | 
|---|
| 6209 |           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 | 
|---|
| 6210 |           _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 | 
|---|
| 6211 |           _LT_AC_TAGVAR(hardcode_direct, $1)=no
 | 
|---|
| 6212 |         ;;
 | 
|---|
| 6213 |         motorola)
 | 
|---|
| 6214 |           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 | 
|---|
| 6215 |           _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 | 
|---|
| 6216 |         ;;
 | 
|---|
| 6217 |       esac
 | 
|---|
| 6218 |       runpath_var='LD_RUN_PATH'
 | 
|---|
| 6219 |       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 6220 |       ;;
 | 
|---|
| 6221 | 
 | 
|---|
| 6222 |     sysv4.3*)
 | 
|---|
| 6223 |       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 | 
|---|
| 6224 |       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 6225 |       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 | 
|---|
| 6226 |       ;;
 | 
|---|
| 6227 | 
 | 
|---|
| 6228 |     sysv4*MP*)
 | 
|---|
| 6229 |       if test -d /usr/nec; then
 | 
|---|
| 6230 |         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 | 
|---|
| 6231 |         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 6232 |         runpath_var=LD_RUN_PATH
 | 
|---|
| 6233 |         hardcode_runpath_var=yes
 | 
|---|
| 6234 |         _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 | 
|---|
| 6235 |       fi
 | 
|---|
| 6236 |       ;;
 | 
|---|
| 6237 | 
 | 
|---|
| 6238 |     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 | 
|---|
| 6239 |       _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 | 
|---|
| 6240 |       _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 | 
|---|
| 6241 |       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 6242 |       runpath_var='LD_RUN_PATH'
 | 
|---|
| 6243 | 
 | 
|---|
| 6244 |       if test "$GCC" = yes; then
 | 
|---|
| 6245 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 6246 |         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 6247 |       else
 | 
|---|
| 6248 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 6249 |         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 6250 |       fi
 | 
|---|
| 6251 |       ;;
 | 
|---|
| 6252 | 
 | 
|---|
| 6253 |     sysv5* | sco3.2v5* | sco5v6*)
 | 
|---|
| 6254 |       # Note: We can NOT use -z defs as we might desire, because we do not
 | 
|---|
| 6255 |       # link with -lc, and that would cause any symbols used from libc to
 | 
|---|
| 6256 |       # always be unresolved, which means just about no library would
 | 
|---|
| 6257 |       # ever link correctly.  If we're not using GNU ld we use -z text
 | 
|---|
| 6258 |       # though, which does catch some bad symbols but isn't as heavy-handed
 | 
|---|
| 6259 |       # as -z defs.
 | 
|---|
| 6260 |       _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 | 
|---|
| 6261 |       _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 | 
|---|
| 6262 |       _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 | 
|---|
| 6263 |       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 6264 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 | 
|---|
| 6265 |       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 | 
|---|
| 6266 |       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 | 
|---|
| 6267 |       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 | 
|---|
| 6268 |       runpath_var='LD_RUN_PATH'
 | 
|---|
| 6269 | 
 | 
|---|
| 6270 |       if test "$GCC" = yes; then
 | 
|---|
| 6271 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 6272 |         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 6273 |       else
 | 
|---|
| 6274 |         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 6275 |         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 | 
|---|
| 6276 |       fi
 | 
|---|
| 6277 |       ;;
 | 
|---|
| 6278 | 
 | 
|---|
| 6279 |     uts4*)
 | 
|---|
| 6280 |       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 | 
|---|
| 6281 |       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 | 
|---|
| 6282 |       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 | 
|---|
| 6283 |       ;;
 | 
|---|
| 6284 | 
 | 
|---|
| 6285 |     *)
 | 
|---|
| 6286 |       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 | 
|---|
| 6287 |       ;;
 | 
|---|
| 6288 |     esac
 | 
|---|
| 6289 |   fi
 | 
|---|
| 6290 | ])
 | 
|---|
| 6291 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 | 
|---|
| 6292 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 | 
|---|
| 6293 | 
 | 
|---|
| 6294 | #
 | 
|---|
| 6295 | # Do we need to explicitly link libc?
 | 
|---|
| 6296 | #
 | 
|---|
| 6297 | case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
 | 
|---|
| 6298 | x|xyes)
 | 
|---|
| 6299 |   # Assume -lc should be added
 | 
|---|
| 6300 |   _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 | 
|---|
| 6301 | 
 | 
|---|
| 6302 |   if test "$enable_shared" = yes && test "$GCC" = yes; then
 | 
|---|
| 6303 |     case $_LT_AC_TAGVAR(archive_cmds, $1) in
 | 
|---|
| 6304 |     *'~'*)
 | 
|---|
| 6305 |       # FIXME: we may have to deal with multi-command sequences.
 | 
|---|
| 6306 |       ;;
 | 
|---|
| 6307 |     '$CC '*)
 | 
|---|
| 6308 |       # Test whether the compiler implicitly links with -lc since on some
 | 
|---|
| 6309 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc
 | 
|---|
| 6310 |       # to ld, don't add -lc before -lgcc.
 | 
|---|
| 6311 |       AC_MSG_CHECKING([whether -lc should be explicitly linked in])
 | 
|---|
| 6312 |       $rm conftest*
 | 
|---|
| 6313 |       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 | 
|---|
| 6314 | 
 | 
|---|
| 6315 |       if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 | 
|---|
| 6316 |         soname=conftest
 | 
|---|
| 6317 |         lib=conftest
 | 
|---|
| 6318 |         libobjs=conftest.$ac_objext
 | 
|---|
| 6319 |         deplibs=
 | 
|---|
| 6320 |         wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 | 
|---|
| 6321 |         pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 | 
|---|
| 6322 |         compiler_flags=-v
 | 
|---|
| 6323 |         linker_flags=-v
 | 
|---|
| 6324 |         verstring=
 | 
|---|
| 6325 |         output_objdir=.
 | 
|---|
| 6326 |         libname=conftest
 | 
|---|
| 6327 |         lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
 | 
|---|
| 6328 |         _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 | 
|---|
| 6329 |         if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
 | 
|---|
| 6330 |         then
 | 
|---|
| 6331 |           _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 | 
|---|
| 6332 |         else
 | 
|---|
| 6333 |           _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 | 
|---|
| 6334 |         fi
 | 
|---|
| 6335 |         _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 | 
|---|
| 6336 |       else
 | 
|---|
| 6337 |         cat conftest.err 1>&5
 | 
|---|
| 6338 |       fi
 | 
|---|
| 6339 |       $rm conftest*
 | 
|---|
| 6340 |       AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
 | 
|---|
| 6341 |       ;;
 | 
|---|
| 6342 |     esac
 | 
|---|
| 6343 |   fi
 | 
|---|
| 6344 |   ;;
 | 
|---|
| 6345 | esac
 | 
|---|
| 6346 | ])# AC_LIBTOOL_PROG_LD_SHLIBS
 | 
|---|
| 6347 | 
 | 
|---|
| 6348 | 
 | 
|---|
| 6349 | # _LT_AC_FILE_LTDLL_C
 | 
|---|
| 6350 | # -------------------
 | 
|---|
| 6351 | # Be careful that the start marker always follows a newline.
 | 
|---|
| 6352 | AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
 | 
|---|
| 6353 | # /* ltdll.c starts here */
 | 
|---|
| 6354 | # #define WIN32_LEAN_AND_MEAN
 | 
|---|
| 6355 | # #include <windows.h>
 | 
|---|
| 6356 | # #undef WIN32_LEAN_AND_MEAN
 | 
|---|
| 6357 | # #include <stdio.h>
 | 
|---|
| 6358 | #
 | 
|---|
| 6359 | # #ifndef __CYGWIN__
 | 
|---|
| 6360 | # #  ifdef __CYGWIN32__
 | 
|---|
| 6361 | # #    define __CYGWIN__ __CYGWIN32__
 | 
|---|
| 6362 | # #  endif
 | 
|---|
| 6363 | # #endif
 | 
|---|
| 6364 | #
 | 
|---|
| 6365 | # #ifdef __cplusplus
 | 
|---|
| 6366 | # extern "C" {
 | 
|---|
| 6367 | # #endif
 | 
|---|
| 6368 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
 | 
|---|
| 6369 | # #ifdef __cplusplus
 | 
|---|
| 6370 | # }
 | 
|---|
| 6371 | # #endif
 | 
|---|
| 6372 | #
 | 
|---|
| 6373 | # #ifdef __CYGWIN__
 | 
|---|
| 6374 | # #include <cygwin/cygwin_dll.h>
 | 
|---|
| 6375 | # DECLARE_CYGWIN_DLL( DllMain );
 | 
|---|
| 6376 | # #endif
 | 
|---|
| 6377 | # HINSTANCE __hDllInstance_base;
 | 
|---|
| 6378 | #
 | 
|---|
| 6379 | # BOOL APIENTRY
 | 
|---|
| 6380 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
 | 
|---|
| 6381 | # {
 | 
|---|
| 6382 | #   __hDllInstance_base = hInst;
 | 
|---|
| 6383 | #   return TRUE;
 | 
|---|
| 6384 | # }
 | 
|---|
| 6385 | # /* ltdll.c ends here */
 | 
|---|
| 6386 | ])# _LT_AC_FILE_LTDLL_C
 | 
|---|
| 6387 | 
 | 
|---|
| 6388 | 
 | 
|---|
| 6389 | # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
 | 
|---|
| 6390 | # ---------------------------------
 | 
|---|
| 6391 | AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
 | 
|---|
| 6392 | 
 | 
|---|
| 6393 | 
 | 
|---|
| 6394 | # old names
 | 
|---|
| 6395 | AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
 | 
|---|
| 6396 | AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
 | 
|---|
| 6397 | AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
 | 
|---|
| 6398 | AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 | 
|---|
| 6399 | AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 | 
|---|
| 6400 | AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
 | 
|---|
| 6401 | AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
 | 
|---|
| 6402 | 
 | 
|---|
| 6403 | # This is just to silence aclocal about the macro not being used
 | 
|---|
| 6404 | ifelse([AC_DISABLE_FAST_INSTALL])
 | 
|---|
| 6405 | 
 | 
|---|
| 6406 | AC_DEFUN([LT_AC_PROG_GCJ],
 | 
|---|
| 6407 | [AC_CHECK_TOOL(GCJ, gcj, no)
 | 
|---|
| 6408 |   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 | 
|---|
| 6409 |   AC_SUBST(GCJFLAGS)
 | 
|---|
| 6410 | ])
 | 
|---|
| 6411 | 
 | 
|---|
| 6412 | AC_DEFUN([LT_AC_PROG_RC],
 | 
|---|
| 6413 | [AC_CHECK_TOOL(RC, windres, no)
 | 
|---|
| 6414 | ])
 | 
|---|
| 6415 | 
 | 
|---|
| 6416 | ############################################################
 | 
|---|
| 6417 | # NOTE: This macro has been submitted for inclusion into   #
 | 
|---|
| 6418 | #  GNU Autoconf as AC_PROG_SED.  When it is available in   #
 | 
|---|
| 6419 | #  a released version of Autoconf we should remove this    #
 | 
|---|
| 6420 | #  macro and use it instead.                               #
 | 
|---|
| 6421 | ############################################################
 | 
|---|
| 6422 | # LT_AC_PROG_SED
 | 
|---|
| 6423 | # --------------
 | 
|---|
| 6424 | # Check for a fully-functional sed program, that truncates
 | 
|---|
| 6425 | # as few characters as possible.  Prefer GNU sed if found.
 | 
|---|
| 6426 | AC_DEFUN([LT_AC_PROG_SED],
 | 
|---|
| 6427 | [AC_MSG_CHECKING([for a sed that does not truncate output])
 | 
|---|
| 6428 | AC_CACHE_VAL(lt_cv_path_SED,
 | 
|---|
| 6429 | [# Loop through the user's path and test for sed and gsed.
 | 
|---|
| 6430 | # Then use that list of sed's as ones to test for truncation.
 | 
|---|
| 6431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 | 
|---|
| 6432 | for as_dir in $PATH
 | 
|---|
| 6433 | do
 | 
|---|
| 6434 |   IFS=$as_save_IFS
 | 
|---|
| 6435 |   test -z "$as_dir" && as_dir=.
 | 
|---|
| 6436 |   for lt_ac_prog in sed gsed; do
 | 
|---|
| 6437 |     for ac_exec_ext in '' $ac_executable_extensions; do
 | 
|---|
| 6438 |       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 | 
|---|
| 6439 |         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 | 
|---|
| 6440 |       fi
 | 
|---|
| 6441 |     done
 | 
|---|
| 6442 |   done
 | 
|---|
| 6443 | done
 | 
|---|
| 6444 | lt_ac_max=0
 | 
|---|
| 6445 | lt_ac_count=0
 | 
|---|
| 6446 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris
 | 
|---|
| 6447 | # along with /bin/sed that truncates output.
 | 
|---|
| 6448 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 | 
|---|
| 6449 |   test ! -f $lt_ac_sed && continue
 | 
|---|
| 6450 |   cat /dev/null > conftest.in
 | 
|---|
| 6451 |   lt_ac_count=0
 | 
|---|
| 6452 |   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 | 
|---|
| 6453 |   # Check for GNU sed and select it if it is found.
 | 
|---|
| 6454 |   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 | 
|---|
| 6455 |     lt_cv_path_SED=$lt_ac_sed
 | 
|---|
| 6456 |     break
 | 
|---|
| 6457 |   fi
 | 
|---|
| 6458 |   while true; do
 | 
|---|
| 6459 |     cat conftest.in conftest.in >conftest.tmp
 | 
|---|
| 6460 |     mv conftest.tmp conftest.in
 | 
|---|
| 6461 |     cp conftest.in conftest.nl
 | 
|---|
| 6462 |     echo >>conftest.nl
 | 
|---|
| 6463 |     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 | 
|---|
| 6464 |     cmp -s conftest.out conftest.nl || break
 | 
|---|
| 6465 |     # 10000 chars as input seems more than enough
 | 
|---|
| 6466 |     test $lt_ac_count -gt 10 && break
 | 
|---|
| 6467 |     lt_ac_count=`expr $lt_ac_count + 1`
 | 
|---|
| 6468 |     if test $lt_ac_count -gt $lt_ac_max; then
 | 
|---|
| 6469 |       lt_ac_max=$lt_ac_count
 | 
|---|
| 6470 |       lt_cv_path_SED=$lt_ac_sed
 | 
|---|
| 6471 |     fi
 | 
|---|
| 6472 |   done
 | 
|---|
| 6473 | done
 | 
|---|
| 6474 | ])
 | 
|---|
| 6475 | SED=$lt_cv_path_SED
 | 
|---|
| 6476 | AC_MSG_RESULT([$SED])
 | 
|---|
| 6477 | ])
 | 
|---|