aclocal.m4
上传用户:shenzhenrh
上传日期:2013-05-12
资源大小:2904k
文件大小:245k
源码类别:

信息检索与抽取

开发平台:

Unix_Linux

  1. # generated automatically by aclocal 1.9.2 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  3. # Free Software Foundation, Inc.
  4. # This file is free software; the Free Software Foundation
  5. # gives unlimited permission to copy and/or distribute it,
  6. # with or without modifications, as long as this notice is preserved.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  9. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  10. # PARTICULAR PURPOSE.
  11. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  12. # serial 47 AC_PROG_LIBTOOL
  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. # AC_PROG_LIBTOOL
  22. # ---------------
  23. AC_DEFUN([AC_PROG_LIBTOOL],
  24. [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  25. dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  26. dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  27.   AC_PROVIDE_IFELSE([AC_PROG_CXX],
  28.     [AC_LIBTOOL_CXX],
  29.     [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  30.   ])])
  31. dnl And a similar setup for Fortran 77 support
  32.   AC_PROVIDE_IFELSE([AC_PROG_F77],
  33.     [AC_LIBTOOL_F77],
  34.     [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  35. ])])
  36. dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  37. dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  38. dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  39.   AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  40.     [AC_LIBTOOL_GCJ],
  41.     [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  42.       [AC_LIBTOOL_GCJ],
  43.       [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  44. [AC_LIBTOOL_GCJ],
  45.       [ifdef([AC_PROG_GCJ],
  46.      [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  47.        ifdef([A][M_PROG_GCJ],
  48.      [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  49.        ifdef([LT_AC_PROG_GCJ],
  50.      [define([LT_AC_PROG_GCJ],
  51. defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  52. ])])# AC_PROG_LIBTOOL
  53. # _AC_PROG_LIBTOOL
  54. # ----------------
  55. AC_DEFUN([_AC_PROG_LIBTOOL],
  56. [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  57. AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  58. AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  59. AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  60. # This can be used to rebuild libtool when needed
  61. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  62. # Always use our own libtool.
  63. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  64. AC_SUBST(LIBTOOL)dnl
  65. # Prevent multiple expansion
  66. define([AC_PROG_LIBTOOL], [])
  67. ])# _AC_PROG_LIBTOOL
  68. # AC_LIBTOOL_SETUP
  69. # ----------------
  70. AC_DEFUN([AC_LIBTOOL_SETUP],
  71. [AC_PREREQ(2.50)dnl
  72. AC_REQUIRE([AC_ENABLE_SHARED])dnl
  73. AC_REQUIRE([AC_ENABLE_STATIC])dnl
  74. AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  75. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  76. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  77. AC_REQUIRE([AC_PROG_CC])dnl
  78. AC_REQUIRE([AC_PROG_LD])dnl
  79. AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  80. AC_REQUIRE([AC_PROG_NM])dnl
  81. AC_REQUIRE([AC_PROG_LN_S])dnl
  82. AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  83. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  84. AC_REQUIRE([AC_OBJEXT])dnl
  85. AC_REQUIRE([AC_EXEEXT])dnl
  86. dnl
  87. AC_LIBTOOL_SYS_MAX_CMD_LEN
  88. AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  89. AC_LIBTOOL_OBJDIR
  90. AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  91. _LT_AC_PROG_ECHO_BACKSLASH
  92. case $host_os in
  93. aix3*)
  94.   # AIX sometimes has problems with the GCC collect2 program.  For some
  95.   # reason, if we set the COLLECT_NAMES environment variable, the problems
  96.   # vanish in a puff of smoke.
  97.   if test "X${COLLECT_NAMES+set}" != Xset; then
  98.     COLLECT_NAMES=
  99.     export COLLECT_NAMES
  100.   fi
  101.   ;;
  102. esac
  103. # Sed substitution that helps us do robust quoting.  It backslashifies
  104. # metacharacters that are still active within double-quoted strings.
  105. Xsed='sed -e s/^X//'
  106. [sed_quote_subst='s/([\"\`$\\])/\1/g']
  107. # Same as above, but do not quote variable references.
  108. [double_quote_subst='s/([\"\`\\])/\1/g']
  109. # Sed substitution to delay expansion of an escaped shell variable in a
  110. # double_quote_subst'ed string.
  111. delay_variable_subst='s/\\\\\$/\\\$/g'
  112. # Sed substitution to avoid accidental globbing in evaled expressions
  113. no_glob_subst='s/*/\*/g'
  114. # Constants:
  115. rm="rm -f"
  116. # Global variables:
  117. default_ofile=libtool
  118. can_build_shared=yes
  119. # All known linkers require a `.a' archive for static linking (except M$VC,
  120. # which needs '.lib').
  121. libext=a
  122. ltmain="$ac_aux_dir/ltmain.sh"
  123. ofile="$default_ofile"
  124. with_gnu_ld="$lt_cv_prog_gnu_ld"
  125. AC_CHECK_TOOL(AR, ar, false)
  126. AC_CHECK_TOOL(RANLIB, ranlib, :)
  127. AC_CHECK_TOOL(STRIP, strip, :)
  128. old_CC="$CC"
  129. old_CFLAGS="$CFLAGS"
  130. # Set sane defaults for various variables
  131. test -z "$AR" && AR=ar
  132. test -z "$AR_FLAGS" && AR_FLAGS=cru
  133. test -z "$AS" && AS=as
  134. test -z "$CC" && CC=cc
  135. test -z "$LTCC" && LTCC=$CC
  136. test -z "$DLLTOOL" && DLLTOOL=dlltool
  137. test -z "$LD" && LD=ld
  138. test -z "$LN_S" && LN_S="ln -s"
  139. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  140. test -z "$NM" && NM=nm
  141. test -z "$SED" && SED=sed
  142. test -z "$OBJDUMP" && OBJDUMP=objdump
  143. test -z "$RANLIB" && RANLIB=:
  144. test -z "$STRIP" && STRIP=:
  145. test -z "$ac_objext" && ac_objext=o
  146. # Determine commands to create old-style static archives.
  147. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  148. old_postinstall_cmds='chmod 644 $oldlib'
  149. old_postuninstall_cmds=
  150. if test -n "$RANLIB"; then
  151.   case $host_os in
  152.   openbsd*)
  153.     old_postinstall_cmds="$RANLIB -t $oldlib~$old_postinstall_cmds"
  154.     ;;
  155.   *)
  156.     old_postinstall_cmds="$RANLIB $oldlib~$old_postinstall_cmds"
  157.     ;;
  158.   esac
  159.   old_archive_cmds="$old_archive_cmds~$RANLIB $oldlib"
  160. fi
  161. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  162. # Only perform the check for file, if the check method requires it
  163. case $deplibs_check_method in
  164. file_magic*)
  165.   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  166.     AC_PATH_MAGIC
  167.   fi
  168.   ;;
  169. esac
  170. AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  171. AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  172. enable_win32_dll=yes, enable_win32_dll=no)
  173. AC_ARG_ENABLE([libtool-lock],
  174.     [AC_HELP_STRING([--disable-libtool-lock],
  175. [avoid locking (might break parallel builds)])])
  176. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  177. AC_ARG_WITH([pic],
  178.     [AC_HELP_STRING([--with-pic],
  179. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  180.     [pic_mode="$withval"],
  181.     [pic_mode=default])
  182. test -z "$pic_mode" && pic_mode=default
  183. # Use C for the default configuration in the libtool script
  184. tagname=
  185. AC_LIBTOOL_LANG_C_CONFIG
  186. _LT_AC_TAGCONFIG
  187. ])# AC_LIBTOOL_SETUP
  188. # _LT_AC_SYS_COMPILER
  189. # -------------------
  190. AC_DEFUN([_LT_AC_SYS_COMPILER],
  191. [AC_REQUIRE([AC_PROG_CC])dnl
  192. # If no C compiler was specified, use CC.
  193. LTCC=${LTCC-"$CC"}
  194. # Allow CC to be a program name with arguments.
  195. compiler=$CC
  196. ])# _LT_AC_SYS_COMPILER
  197. # _LT_AC_SYS_LIBPATH_AIX
  198. # ----------------------
  199. # Links a minimal program and checks the executable
  200. # for the system default hardcoded library path. In most cases,
  201. # this is /usr/lib:/lib, but when the MPI compilers are used
  202. # the location of the communication and MPI libs are included too.
  203. # If we don't find anything, use the default library path according
  204. # to the aix ld manual.
  205. AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  206. [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  207. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *(.*)$/1/; p; }
  208. }'`
  209. # Check for a 64-bit object if we didn't find anything.
  210. 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; }
  211. }'`; fi],[])
  212. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  213. ])# _LT_AC_SYS_LIBPATH_AIX
  214. # _LT_AC_SHELL_INIT(ARG)
  215. # ----------------------
  216. AC_DEFUN([_LT_AC_SHELL_INIT],
  217. [ifdef([AC_DIVERSION_NOTICE],
  218.      [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  219.  [AC_DIVERT_PUSH(NOTICE)])
  220. $1
  221. AC_DIVERT_POP
  222. ])# _LT_AC_SHELL_INIT
  223. # _LT_AC_PROG_ECHO_BACKSLASH
  224. # --------------------------
  225. # Add some code to the start of the generated configure script which
  226. # will find an echo command which doesn't interpret backslashes.
  227. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  228. [_LT_AC_SHELL_INIT([
  229. # Check that we are running under the correct shell.
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. case X$ECHO in
  232. X*--fallback-echo)
  233.   # Remove one level of quotation (which was required for Make).
  234.   ECHO=`echo "$ECHO" | sed 's,\\[$]\[$]0,'[$]0','`
  235.   ;;
  236. esac
  237. echo=${ECHO-echo}
  238. if test "X[$]1" = X--no-reexec; then
  239.   # Discard the --no-reexec flag, and continue.
  240.   shift
  241. elif test "X[$]1" = X--fallback-echo; then
  242.   # Avoid inline document here, it may be left over
  243.   :
  244. elif test "X`($echo 't') 2>/dev/null`" = 'Xt' ; then
  245.   # Yippee, $echo works!
  246.   :
  247. else
  248.   # Restart under the correct shell.
  249.   exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  250. fi
  251. if test "X[$]1" = X--fallback-echo; then
  252.   # used as fallback echo
  253.   shift
  254.   cat <<EOF
  255. [$]*
  256. EOF
  257.   exit 0
  258. fi
  259. # The HP-UX ksh and POSIX shell print the target directory to stdout
  260. # if CDPATH is set.
  261. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  262. if test -z "$ECHO"; then
  263. if test "X${echo_test_string+set}" != Xset; then
  264. # find a string as large as possible, as long as the shell can cope with it
  265.   for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  266.     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  267.     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  268.        echo_test_string="`eval $cmd`" &&
  269.        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  270.     then
  271.       break
  272.     fi
  273.   done
  274. fi
  275. if test "X`($echo 't') 2>/dev/null`" = 'Xt' &&
  276.    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  277.    test "X$echo_testing_string" = "X$echo_test_string"; then
  278.   :
  279. else
  280.   # The Solaris, AIX, and Digital Unix default echo programs unquote
  281.   # backslashes.  This makes it impossible to quote backslashes using
  282.   #   echo "$something" | sed 's/\/\\/g'
  283.   #
  284.   # So, first we look for a working echo in the user's PATH.
  285.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  286.   for dir in $PATH /usr/ucb; do
  287.     IFS="$lt_save_ifs"
  288.     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  289.        test "X`($dir/echo 't') 2>/dev/null`" = 'Xt' &&
  290.        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  291.        test "X$echo_testing_string" = "X$echo_test_string"; then
  292.       echo="$dir/echo"
  293.       break
  294.     fi
  295.   done
  296.   IFS="$lt_save_ifs"
  297.   if test "X$echo" = Xecho; then
  298.     # We didn't find a better echo, so look for alternatives.
  299.     if test "X`(print -r 't') 2>/dev/null`" = 'Xt' &&
  300.        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  301.        test "X$echo_testing_string" = "X$echo_test_string"; then
  302.       # This shell has a builtin print -r that does the trick.
  303.       echo='print -r'
  304.     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  305.  test "X$CONFIG_SHELL" != X/bin/ksh; then
  306.       # If we have ksh, try running configure again with it.
  307.       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  308.       export ORIGINAL_CONFIG_SHELL
  309.       CONFIG_SHELL=/bin/ksh
  310.       export CONFIG_SHELL
  311.       exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  312.     else
  313.       # Try using printf.
  314.       echo='printf %sn'
  315.       if test "X`($echo 't') 2>/dev/null`" = 'Xt' &&
  316.  echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  317.  test "X$echo_testing_string" = "X$echo_test_string"; then
  318. # Cool, printf works
  319. :
  320.       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo 't') 2>/dev/null` &&
  321.    test "X$echo_testing_string" = 'Xt' &&
  322.    echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  323.    test "X$echo_testing_string" = "X$echo_test_string"; then
  324. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  325. export CONFIG_SHELL
  326. SHELL="$CONFIG_SHELL"
  327. export SHELL
  328. echo="$CONFIG_SHELL [$]0 --fallback-echo"
  329.       elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo 't') 2>/dev/null` &&
  330.    test "X$echo_testing_string" = 'Xt' &&
  331.    echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  332.    test "X$echo_testing_string" = "X$echo_test_string"; then
  333. echo="$CONFIG_SHELL [$]0 --fallback-echo"
  334.       else
  335. # maybe with a smaller string...
  336. prev=:
  337. for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  338.   if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  339.   then
  340.     break
  341.   fi
  342.   prev="$cmd"
  343. done
  344. if test "$prev" != 'sed 50q "[$]0"'; then
  345.   echo_test_string=`eval $prev`
  346.   export echo_test_string
  347.   exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  348. else
  349.   # Oops.  We lost completely, so just stick with echo.
  350.   echo=echo
  351. fi
  352.       fi
  353.     fi
  354.   fi
  355. fi
  356. fi
  357. # Copy echo and quote the copy suitably for passing to libtool from
  358. # the Makefile, instead of quoting the original, which is used later.
  359. ECHO=$echo
  360. if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  361.    ECHO="$CONFIG_SHELL \$[$]0 --fallback-echo"
  362. fi
  363. AC_SUBST(ECHO)
  364. ])])# _LT_AC_PROG_ECHO_BACKSLASH
  365. # _LT_AC_LOCK
  366. # -----------
  367. AC_DEFUN([_LT_AC_LOCK],
  368. [AC_ARG_ENABLE([libtool-lock],
  369.     [AC_HELP_STRING([--disable-libtool-lock],
  370. [avoid locking (might break parallel builds)])])
  371. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  372. # Some flags need to be propagated to the compiler or linker for good
  373. # libtool support.
  374. case $host in
  375. ia64-*-hpux*)
  376.   # Find out which ABI we are using.
  377.   echo 'int i;' > conftest.$ac_ext
  378.   if AC_TRY_EVAL(ac_compile); then
  379.     case `/usr/bin/file conftest.$ac_objext` in
  380.     *ELF-32*)
  381.       HPUX_IA64_MODE="32"
  382.       ;;
  383.     *ELF-64*)
  384.       HPUX_IA64_MODE="64"
  385.       ;;
  386.     esac
  387.   fi
  388.   rm -rf conftest*
  389.   ;;
  390. *-*-irix6*)
  391.   # Find out which ABI we are using.
  392.   echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  393.   if AC_TRY_EVAL(ac_compile); then
  394.    if test "$lt_cv_prog_gnu_ld" = yes; then
  395.     case `/usr/bin/file conftest.$ac_objext` in
  396.     *32-bit*)
  397.       LD="${LD-ld} -melf32bsmip"
  398.       ;;
  399.     *N32*)
  400.       LD="${LD-ld} -melf32bmipn32"
  401.       ;;
  402.     *64-bit*)
  403.       LD="${LD-ld} -melf64bmip"
  404.       ;;
  405.     esac
  406.    else
  407.     case `/usr/bin/file conftest.$ac_objext` in
  408.     *32-bit*)
  409.       LD="${LD-ld} -32"
  410.       ;;
  411.     *N32*)
  412.       LD="${LD-ld} -n32"
  413.       ;;
  414.     *64-bit*)
  415.       LD="${LD-ld} -64"
  416.       ;;
  417.     esac
  418.    fi
  419.   fi
  420.   rm -rf conftest*
  421.   ;;
  422. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  423.   # Find out which ABI we are using.
  424.   echo 'int i;' > conftest.$ac_ext
  425.   if AC_TRY_EVAL(ac_compile); then
  426.     case "`/usr/bin/file conftest.o`" in
  427.     *32-bit*)
  428.       case $host in
  429.         x86_64-*linux*)
  430.           LD="${LD-ld} -m elf_i386"
  431.           ;;
  432.         ppc64-*linux*|powerpc64-*linux*)
  433.           LD="${LD-ld} -m elf32ppclinux"
  434.           ;;
  435.         s390x-*linux*)
  436.           LD="${LD-ld} -m elf_s390"
  437.           ;;
  438.         sparc64-*linux*)
  439.           LD="${LD-ld} -m elf32_sparc"
  440.           ;;
  441.       esac
  442.       ;;
  443.     *64-bit*)
  444.       case $host in
  445.         x86_64-*linux*)
  446.           LD="${LD-ld} -m elf_x86_64"
  447.           ;;
  448.         ppc*-*linux*|powerpc*-*linux*)
  449.           LD="${LD-ld} -m elf64ppc"
  450.           ;;
  451.         s390*-*linux*)
  452.           LD="${LD-ld} -m elf64_s390"
  453.           ;;
  454.         sparc*-*linux*)
  455.           LD="${LD-ld} -m elf64_sparc"
  456.           ;;
  457.       esac
  458.       ;;
  459.     esac
  460.   fi
  461.   rm -rf conftest*
  462.   ;;
  463. *-*-sco3.2v5*)
  464.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  465.   SAVE_CFLAGS="$CFLAGS"
  466.   CFLAGS="$CFLAGS -belf"
  467.   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  468.     [AC_LANG_PUSH(C)
  469.      AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  470.      AC_LANG_POP])
  471.   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  472.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  473.     CFLAGS="$SAVE_CFLAGS"
  474.   fi
  475.   ;;
  476. AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  477. [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  478.   AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  479.   AC_CHECK_TOOL(AS, as, false)
  480.   AC_CHECK_TOOL(OBJDUMP, objdump, false)
  481.   ;;
  482.   ])
  483. esac
  484. need_locks="$enable_libtool_lock"
  485. ])# _LT_AC_LOCK
  486. # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  487. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  488. # ----------------------------------------------------------------
  489. # Check whether the given compiler option works
  490. AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  491. [AC_REQUIRE([LT_AC_PROG_SED])
  492. AC_CACHE_CHECK([$1], [$2],
  493.   [$2=no
  494.   ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  495.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  496.    lt_compiler_flag="$3"
  497.    # Insert the option either (1) after the last *FLAGS variable, or
  498.    # (2) before a word containing "conftest.", or (3) at the end.
  499.    # Note that $ac_compile itself does not contain backslashes and begins
  500.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  501.    # The option is referenced via a variable to avoid confusing sed.
  502.    lt_compile=`echo "$ac_compile" | $SED 
  503.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' 
  504.    -e 's: [[^ ]]*conftest.: $lt_compiler_flag&:; t' 
  505.    -e 's:$: $lt_compiler_flag:'`
  506.    (eval echo ""$as_me:__oline__: $lt_compile"" >&AS_MESSAGE_LOG_FD)
  507.    (eval "$lt_compile" 2>conftest.err)
  508.    ac_status=$?
  509.    cat conftest.err >&AS_MESSAGE_LOG_FD
  510.    echo "$as_me:__oline__: $? = $ac_status" >&AS_MESSAGE_LOG_FD
  511.    if (exit $ac_status) && test -s "$ac_outfile"; then
  512.      # The compiler can only warn and ignore the option if not recognized
  513.      # So say no if there are warnings
  514.      if test ! -s conftest.err; then
  515.        $2=yes
  516.      fi
  517.    fi
  518.    $rm conftest*
  519. ])
  520. if test x"[$]$2" = xyes; then
  521.     ifelse([$5], , :, [$5])
  522. else
  523.     ifelse([$6], , :, [$6])
  524. fi
  525. ])# AC_LIBTOOL_COMPILER_OPTION
  526. # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  527. #                          [ACTION-SUCCESS], [ACTION-FAILURE])
  528. # ------------------------------------------------------------
  529. # Check whether the given compiler option works
  530. AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  531. [AC_CACHE_CHECK([$1], [$2],
  532.   [$2=no
  533.    save_LDFLAGS="$LDFLAGS"
  534.    LDFLAGS="$LDFLAGS $3"
  535.    printf "$lt_simple_link_test_code" > conftest.$ac_ext
  536.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  537.      # The compiler can only warn and ignore the option if not recognized
  538.      # So say no if there are warnings
  539.      if test -s conftest.err; then
  540.        # Append any errors to the config.log.
  541.        cat conftest.err 1>&AS_MESSAGE_LOG_FD
  542.      else
  543.        $2=yes
  544.      fi
  545.    fi
  546.    $rm conftest*
  547.    LDFLAGS="$save_LDFLAGS"
  548. ])
  549. if test x"[$]$2" = xyes; then
  550.     ifelse([$4], , :, [$4])
  551. else
  552.     ifelse([$5], , :, [$5])
  553. fi
  554. ])# AC_LIBTOOL_LINKER_OPTION
  555. # AC_LIBTOOL_SYS_MAX_CMD_LEN
  556. # --------------------------
  557. AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  558. [# find the maximum length of command line arguments
  559. AC_MSG_CHECKING([the maximum length of command line arguments])
  560. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  561.   i=0
  562.   teststring="ABCD"
  563.   case $build_os in
  564.   msdosdjgpp*)
  565.     # On DJGPP, this test can blow up pretty badly due to problems in libc
  566.     # (any single argument exceeding 2000 bytes causes a buffer overrun
  567.     # during glob expansion).  Even if it were fixed, the result of this
  568.     # check would be larger than it should be.
  569.     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
  570.     ;;
  571.   gnu*)
  572.     # Under GNU Hurd, this test is not required because there is
  573.     # no limit to the length of command line arguments.
  574.     # Libtool will interpret -1 as no limit whatsoever
  575.     lt_cv_sys_max_cmd_len=-1;
  576.     ;;
  577.   cygwin* | mingw*)
  578.     # On Win9x/ME, this test blows up -- it succeeds, but takes
  579.     # about 5 minutes as the teststring grows exponentially.
  580.     # Worse, since 9x/ME are not pre-emptively multitasking,
  581.     # you end up with a "frozen" computer, even though with patience
  582.     # the test eventually succeeds (with a max line length of 256k).
  583.     # Instead, let's just punt: use the minimum linelength reported by
  584.     # all of the supported platforms: 8192 (on NT/2K/XP).
  585.     lt_cv_sys_max_cmd_len=8192;
  586.     ;;
  587.   amigaos*)
  588.     # On AmigaOS with pdksh, this test takes hours, literally.
  589.     # So we just punt and use a minimum line length of 8192.
  590.     lt_cv_sys_max_cmd_len=8192;
  591.     ;;
  592.   netbsd* | freebsd* | openbsd* | darwin* )
  593.     # This has been around since 386BSD, at least.  Likely further.
  594.     if test -x /sbin/sysctl; then
  595.       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  596.     elif test -x /usr/sbin/sysctl; then
  597.       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  598.     else
  599.       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  600.     fi
  601.     # And add a safety zone
  602.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len / 4`
  603.     ;;
  604.  *)
  605.     # If test is not a shell built-in, we'll probably end up computing a
  606.     # maximum length that is only half of the actual maximum length, but
  607.     # we can't tell.
  608.     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  609.     while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` 
  610.        = "XX$teststring") >/dev/null 2>&1 &&
  611.     new_result=`expr "X$teststring" : ".*" 2>&1` &&
  612.     lt_cv_sys_max_cmd_len=$new_result &&
  613.     test $i != 17 # 1/2 MB should be enough
  614.     do
  615.       i=`expr $i + 1`
  616.       teststring=$teststring$teststring
  617.     done
  618.     teststring=
  619.     # Add a significant safety factor because C++ compilers can tack on massive
  620.     # amounts of additional arguments before passing them to the linker.
  621.     # It appears as though 1/2 is a usable value.
  622.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len / 2`
  623.     ;;
  624.   esac
  625. ])
  626. if test -n $lt_cv_sys_max_cmd_len ; then
  627.   AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  628. else
  629.   AC_MSG_RESULT(none)
  630. fi
  631. ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  632. # _LT_AC_CHECK_DLFCN
  633. # --------------------
  634. AC_DEFUN([_LT_AC_CHECK_DLFCN],
  635. [AC_CHECK_HEADERS(dlfcn.h)dnl
  636. ])# _LT_AC_CHECK_DLFCN
  637. # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  638. #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  639. # ------------------------------------------------------------------
  640. AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  641. [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  642. if test "$cross_compiling" = yes; then :
  643.   [$4]
  644. else
  645.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  646.   lt_status=$lt_dlunknown
  647.   cat > conftest.$ac_ext <<EOF
  648. [#line __oline__ "configure"
  649. #include "confdefs.h"
  650. #if HAVE_DLFCN_H
  651. #include <dlfcn.h>
  652. #endif
  653. #include <stdio.h>
  654. #ifdef RTLD_GLOBAL
  655. #  define LT_DLGLOBAL RTLD_GLOBAL
  656. #else
  657. #  ifdef DL_GLOBAL
  658. #    define LT_DLGLOBAL DL_GLOBAL
  659. #  else
  660. #    define LT_DLGLOBAL 0
  661. #  endif
  662. #endif
  663. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  664.    find out it does not work in some platform. */
  665. #ifndef LT_DLLAZY_OR_NOW
  666. #  ifdef RTLD_LAZY
  667. #    define LT_DLLAZY_OR_NOW RTLD_LAZY
  668. #  else
  669. #    ifdef DL_LAZY
  670. #      define LT_DLLAZY_OR_NOW DL_LAZY
  671. #    else
  672. #      ifdef RTLD_NOW
  673. #        define LT_DLLAZY_OR_NOW RTLD_NOW
  674. #      else
  675. #        ifdef DL_NOW
  676. #          define LT_DLLAZY_OR_NOW DL_NOW
  677. #        else
  678. #          define LT_DLLAZY_OR_NOW 0
  679. #        endif
  680. #      endif
  681. #    endif
  682. #  endif
  683. #endif
  684. #ifdef __cplusplus
  685. extern "C" void exit (int);
  686. #endif
  687. void fnord() { int i=42;}
  688. int main ()
  689. {
  690.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  691.   int status = $lt_dlunknown;
  692.   if (self)
  693.     {
  694.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  695.       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  696.       /* dlclose (self); */
  697.     }
  698.     exit (status);
  699. }]
  700. EOF
  701.   if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  702.     (./conftest; exit; ) 2>/dev/null
  703.     lt_status=$?
  704.     case x$lt_status in
  705.       x$lt_dlno_uscore) $1 ;;
  706.       x$lt_dlneed_uscore) $2 ;;
  707.       x$lt_unknown|x*) $3 ;;
  708.     esac
  709.   else :
  710.     # compilation failed
  711.     $3
  712.   fi
  713. fi
  714. rm -fr conftest*
  715. ])# _LT_AC_TRY_DLOPEN_SELF
  716. # AC_LIBTOOL_DLOPEN_SELF
  717. # -------------------
  718. AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  719. [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  720. if test "x$enable_dlopen" != xyes; then
  721.   enable_dlopen=unknown
  722.   enable_dlopen_self=unknown
  723.   enable_dlopen_self_static=unknown
  724. else
  725.   lt_cv_dlopen=no
  726.   lt_cv_dlopen_libs=
  727.   case $host_os in
  728.   beos*)
  729.     lt_cv_dlopen="load_add_on"
  730.     lt_cv_dlopen_libs=
  731.     lt_cv_dlopen_self=yes
  732.     ;;
  733.   mingw* | pw32*)
  734.     lt_cv_dlopen="LoadLibrary"
  735.     lt_cv_dlopen_libs=
  736.    ;;
  737.   cygwin*)
  738.     lt_cv_dlopen="dlopen"
  739.     lt_cv_dlopen_libs=
  740.    ;;
  741.   darwin*)
  742.   # if libdl is installed we need to link against it
  743.     AC_CHECK_LIB([dl], [dlopen],
  744. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  745.     lt_cv_dlopen="dyld"
  746.     lt_cv_dlopen_libs=
  747.     lt_cv_dlopen_self=yes
  748.     ])
  749.    ;;
  750.   *)
  751.     AC_CHECK_FUNC([shl_load],
  752.   [lt_cv_dlopen="shl_load"],
  753.       [AC_CHECK_LIB([dld], [shl_load],
  754.     [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  755. [AC_CHECK_FUNC([dlopen],
  756.       [lt_cv_dlopen="dlopen"],
  757.   [AC_CHECK_LIB([dl], [dlopen],
  758. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  759.     [AC_CHECK_LIB([svld], [dlopen],
  760.   [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  761.       [AC_CHECK_LIB([dld], [dld_link],
  762.     [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  763.       ])
  764.     ])
  765.   ])
  766. ])
  767.       ])
  768.     ;;
  769.   esac
  770.   if test "x$lt_cv_dlopen" != xno; then
  771.     enable_dlopen=yes
  772.   else
  773.     enable_dlopen=no
  774.   fi
  775.   case $lt_cv_dlopen in
  776.   dlopen)
  777.     save_CPPFLAGS="$CPPFLAGS"
  778.     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  779.     save_LDFLAGS="$LDFLAGS"
  780.     eval LDFLAGS="$LDFLAGS $export_dynamic_flag_spec"
  781.     save_LIBS="$LIBS"
  782.     LIBS="$lt_cv_dlopen_libs $LIBS"
  783.     AC_CACHE_CHECK([whether a program can dlopen itself],
  784.   lt_cv_dlopen_self, [dnl
  785.   _LT_AC_TRY_DLOPEN_SELF(
  786.     lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  787.     lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  788.     ])
  789.     if test "x$lt_cv_dlopen_self" = xyes; then
  790.       LDFLAGS="$LDFLAGS $link_static_flag"
  791.       AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  792.        lt_cv_dlopen_self_static, [dnl
  793.   _LT_AC_TRY_DLOPEN_SELF(
  794.     lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  795.     lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
  796.       ])
  797.     fi
  798.     CPPFLAGS="$save_CPPFLAGS"
  799.     LDFLAGS="$save_LDFLAGS"
  800.     LIBS="$save_LIBS"
  801.     ;;
  802.   esac
  803.   case $lt_cv_dlopen_self in
  804.   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  805.   *) enable_dlopen_self=unknown ;;
  806.   esac
  807.   case $lt_cv_dlopen_self_static in
  808.   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  809.   *) enable_dlopen_self_static=unknown ;;
  810.   esac
  811. fi
  812. ])# AC_LIBTOOL_DLOPEN_SELF
  813. # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  814. # ---------------------------------
  815. # Check to see if options -c and -o are simultaneously supported by compiler
  816. AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  817. [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  818. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  819.   [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  820.   [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  821.    $rm -r conftest 2>/dev/null
  822.    mkdir conftest
  823.    cd conftest
  824.    mkdir out
  825.    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  826.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  827.    # Insert the option either (1) after the last *FLAGS variable, or
  828.    # (2) before a word containing "conftest.", or (3) at the end.
  829.    # Note that $ac_compile itself does not contain backslashes and begins
  830.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  831.    lt_compile=`echo "$ac_compile" | $SED 
  832.    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' 
  833.    -e 's: [[^ ]]*conftest.: $lt_compiler_flag&:; t' 
  834.    -e 's:$: $lt_compiler_flag:'`
  835.    (eval echo ""$as_me:__oline__: $lt_compile"" >&AS_MESSAGE_LOG_FD)
  836.    (eval "$lt_compile" 2>out/conftest.err)
  837.    ac_status=$?
  838.    cat out/conftest.err >&AS_MESSAGE_LOG_FD
  839.    echo "$as_me:__oline__: $? = $ac_status" >&AS_MESSAGE_LOG_FD
  840.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  841.    then
  842.      # The compiler can only warn and ignore the option if not recognized
  843.      # So say no if there are warnings
  844.      if test ! -s out/conftest.err; then
  845.        _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  846.      fi
  847.    fi
  848.    chmod u+w .
  849.    $rm conftest*
  850.    # SGI C++ compiler will create directory out/ii_files/ for
  851.    # template instantiation
  852.    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  853.    $rm out/* && rmdir out
  854.    cd ..
  855.    rmdir conftest
  856.    $rm conftest*
  857. ])
  858. ])# AC_LIBTOOL_PROG_CC_C_O
  859. # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  860. # -----------------------------------------
  861. # Check to see if we can do hard links to lock some files if needed
  862. AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  863. [AC_REQUIRE([_LT_AC_LOCK])dnl
  864. hard_links="nottested"
  865. if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  866.   # do not overwrite the value of need_locks provided by the user
  867.   AC_MSG_CHECKING([if we can lock with hard links])
  868.   hard_links=yes
  869.   $rm conftest*
  870.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  871.   touch conftest.a
  872.   ln conftest.a conftest.b 2>&5 || hard_links=no
  873.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  874.   AC_MSG_RESULT([$hard_links])
  875.   if test "$hard_links" = no; then
  876.     AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  877.     need_locks=warn
  878.   fi
  879. else
  880.   need_locks=no
  881. fi
  882. ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  883. # AC_LIBTOOL_OBJDIR
  884. # -----------------
  885. AC_DEFUN([AC_LIBTOOL_OBJDIR],
  886. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  887. [rm -f .libs 2>/dev/null
  888. mkdir .libs 2>/dev/null
  889. if test -d .libs; then
  890.   lt_cv_objdir=.libs
  891. else
  892.   # MS-DOS does not allow filenames that begin with a dot.
  893.   lt_cv_objdir=_libs
  894. fi
  895. rmdir .libs 2>/dev/null])
  896. objdir=$lt_cv_objdir
  897. ])# AC_LIBTOOL_OBJDIR
  898. # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  899. # ----------------------------------------------
  900. # Check hardcoding attributes.
  901. AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  902. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  903. _LT_AC_TAGVAR(hardcode_action, $1)=
  904. if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || 
  905.    test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || 
  906.    test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  907.   # We can hardcode non-existant directories.
  908.   if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  909.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  910.      # have to relink, otherwise we might link with an installed library
  911.      # when we should be linking with a yet-to-be-installed one
  912.      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  913.      test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  914.     # Linking always hardcodes the temporary library directory.
  915.     _LT_AC_TAGVAR(hardcode_action, $1)=relink
  916.   else
  917.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  918.     _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  919.   fi
  920. else
  921.   # We cannot hardcode anything, or else we can only hardcode existing
  922.   # directories.
  923.   _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  924. fi
  925. AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  926. if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  927.   # Fast installation is not supported
  928.   enable_fast_install=no
  929. elif test "$shlibpath_overrides_runpath" = yes ||
  930.      test "$enable_shared" = no; then
  931.   # Fast installation is not necessary
  932.   enable_fast_install=needless
  933. fi
  934. ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  935. # AC_LIBTOOL_SYS_LIB_STRIP
  936. # ------------------------
  937. AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  938. [striplib=
  939. old_striplib=
  940. AC_MSG_CHECKING([whether stripping libraries is possible])
  941. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  942.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  943.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  944.   AC_MSG_RESULT([yes])
  945. else
  946. # FIXME - insert some real tests, host_os isn't really good enough
  947.   case $host_os in
  948.    darwin*)
  949.        if test -n "$STRIP" ; then
  950.          striplib="$STRIP -x"
  951.          AC_MSG_RESULT([yes])
  952.        else
  953.   AC_MSG_RESULT([no])
  954. fi
  955.        ;;
  956.    *)
  957.   AC_MSG_RESULT([no])
  958.     ;;
  959.   esac
  960. fi
  961. ])# AC_LIBTOOL_SYS_LIB_STRIP
  962. # AC_LIBTOOL_SYS_DYNAMIC_LINKER
  963. # -----------------------------
  964. # PORTME Fill in your ld.so characteristics
  965. AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  966. [AC_MSG_CHECKING([dynamic linker characteristics])
  967. library_names_spec=
  968. libname_spec='lib$name'
  969. soname_spec=
  970. shrext_cmds=".so"
  971. postinstall_cmds=
  972. postuninstall_cmds=
  973. finish_cmds=
  974. finish_eval=
  975. shlibpath_var=
  976. shlibpath_overrides_runpath=unknown
  977. version_type=none
  978. dynamic_linker="$host_os ld.so"
  979. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  980. if test "$GCC" = yes; then
  981.   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  982.   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  983.     # if the path contains ";" then we assume it to be the separator
  984.     # otherwise default to the standard path separator (i.e. ":") - it is
  985.     # assumed that no part of a normal pathname contains ";" but that should
  986.     # okay in the real world where ";" in dirpaths is itself problematic.
  987.     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  988.   else
  989.     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  990.   fi
  991. else
  992.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  993. fi
  994. need_lib_prefix=unknown
  995. hardcode_into_libs=no
  996. # when you set need_version to no, make sure it does not cause -set_version
  997. # flags to be left without arguments
  998. need_version=unknown
  999. case $host_os in
  1000. aix3*)
  1001.   version_type=linux
  1002.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  1003.   shlibpath_var=LIBPATH
  1004.   # AIX 3 has no versioning support, so we append a major version to the name.
  1005.   soname_spec='${libname}${release}${shared_ext}$major'
  1006.   ;;
  1007. aix4* | aix5*)
  1008.   version_type=linux
  1009.   need_lib_prefix=no
  1010.   need_version=no
  1011.   hardcode_into_libs=yes
  1012.   if test "$host_cpu" = ia64; then
  1013.     # AIX 5 supports IA64
  1014.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  1015.     shlibpath_var=LD_LIBRARY_PATH
  1016.   else
  1017.     # With GCC up to 2.95.x, collect2 would create an import file
  1018.     # for dependence libraries.  The import file would start with
  1019.     # the line `#! .'.  This would cause the generated library to
  1020.     # depend on `.', always an invalid library.  This was fixed in
  1021.     # development snapshots of GCC prior to 3.0.
  1022.     case $host_os in
  1023.       aix4 | aix4.[[01]] | aix4.[[01]].*)
  1024.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  1025.    echo ' yes '
  1026.    echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  1027. :
  1028.       else
  1029. can_build_shared=no
  1030.       fi
  1031.       ;;
  1032.     esac
  1033.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  1034.     # soname into executable. Probably we can add versioning support to
  1035.     # collect2, so additional links can be useful in future.
  1036.     if test "$aix_use_runtimelinking" = yes; then
  1037.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  1038.       # instead of lib<name>.a to let people know that these are not
  1039.       # typical AIX shared libraries.
  1040.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1041.     else
  1042.       # We preserve .a as extension for shared libraries through AIX4.2
  1043.       # and later when we are not doing run time linking.
  1044.       library_names_spec='${libname}${release}.a $libname.a'
  1045.       soname_spec='${libname}${release}${shared_ext}$major'
  1046.     fi
  1047.     shlibpath_var=LIBPATH
  1048.   fi
  1049.   ;;
  1050. amigaos*)
  1051.   library_names_spec='$libname.ixlibrary $libname.a'
  1052.   # Create ${libname}_ixlibrary.a entries in /sys/libs.
  1053.   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'
  1054.   ;;
  1055. beos*)
  1056.   library_names_spec='${libname}${shared_ext}'
  1057.   dynamic_linker="$host_os ld.so"
  1058.   shlibpath_var=LIBRARY_PATH
  1059.   ;;
  1060. bsdi[[45]]*)
  1061.   version_type=linux
  1062.   need_version=no
  1063.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1064.   soname_spec='${libname}${release}${shared_ext}$major'
  1065.   finish_cmds='PATH="$PATH:/sbin" ldconfig $libdir'
  1066.   shlibpath_var=LD_LIBRARY_PATH
  1067.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  1068.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  1069.   # the default ld.so.conf also contains /usr/contrib/lib and
  1070.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  1071.   # libtool to hard-code these into programs
  1072.   ;;
  1073. cygwin* | mingw* | pw32*)
  1074.   version_type=windows
  1075.   shrext_cmds=".dll"
  1076.   need_version=no
  1077.   need_lib_prefix=no
  1078.   case $GCC,$host_os in
  1079.   yes,cygwin* | yes,mingw* | yes,pw32*)
  1080.     library_names_spec='$libname.dll.a'
  1081.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  1082.     postinstall_cmds='base_file=`basename ${file}`~
  1083.       dlpath=`$SHELL 2>&1 -c '''. $dir/'''${base_file}'''i;echo $dlname'''`~
  1084.       dldir=$destdir/`dirname $dlpath`~
  1085.       test -d $dldir || mkdir -p $dldir~
  1086.       $install_prog $dir/$dlname $dldir/$dlname'
  1087.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '''. $file; echo $dlname'''`~
  1088.       dlpath=$dir/$dldll~
  1089.        $rm $dlpath'
  1090.     shlibpath_overrides_runpath=yes
  1091.     case $host_os in
  1092.     cygwin*)
  1093.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  1094.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1095.       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  1096.       ;;
  1097.     mingw*)
  1098.       # MinGW DLLs use traditional 'lib' prefix
  1099.       soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1100.       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1101.       if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  1102.         # It is most probably a Windows format PATH printed by
  1103.         # mingw gcc, but we are running on Cygwin. Gcc prints its search
  1104.         # path with ; separators, and with drive letters. We can handle the
  1105.         # drive letters (cygwin fileutils understands them), so leave them,
  1106.         # especially as we might pass files found there to a mingw objdump,
  1107.         # which wouldn't understand a cygwinified path. Ahh.
  1108.         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1109.       else
  1110.         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  1111.       fi
  1112.       ;;
  1113.     pw32*)
  1114.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  1115.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  1116.       ;;
  1117.     esac
  1118.     ;;
  1119.   *)
  1120.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  1121.     ;;
  1122.   esac
  1123.   dynamic_linker='Win32 ld.exe'
  1124.   # FIXME: first we should search . and the directory the executable is in
  1125.   shlibpath_var=PATH
  1126.   ;;
  1127. darwin* | rhapsody*)
  1128.   dynamic_linker="$host_os dyld"
  1129.   version_type=darwin
  1130.   need_lib_prefix=no
  1131.   need_version=no
  1132.   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  1133.   soname_spec='${libname}${release}${major}$shared_ext'
  1134.   shlibpath_overrides_runpath=yes
  1135.   shlibpath_var=DYLD_LIBRARY_PATH
  1136.   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  1137.   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  1138.   if test "$GCC" = yes; then
  1139.     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"`
  1140.   else
  1141.     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  1142.   fi
  1143.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  1144.   ;;
  1145. dgux*)
  1146.   version_type=linux
  1147.   need_lib_prefix=no
  1148.   need_version=no
  1149.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  1150.   soname_spec='${libname}${release}${shared_ext}$major'
  1151.   shlibpath_var=LD_LIBRARY_PATH
  1152.   ;;
  1153. freebsd1*)
  1154.   dynamic_linker=no
  1155.   ;;
  1156. kfreebsd*-gnu)
  1157.   version_type=linux
  1158.   need_lib_prefix=no
  1159.   need_version=no
  1160.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1161.   soname_spec='${libname}${release}${shared_ext}$major'
  1162.   shlibpath_var=LD_LIBRARY_PATH
  1163.   shlibpath_overrides_runpath=no
  1164.   hardcode_into_libs=yes
  1165.   dynamic_linker='GNU ld.so'
  1166.   ;;
  1167. freebsd*)
  1168.   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  1169.   version_type=freebsd-$objformat
  1170.   case $version_type in
  1171.     freebsd-elf*)
  1172.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1173.       need_version=no
  1174.       need_lib_prefix=no
  1175.       ;;
  1176.     freebsd-*)
  1177.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  1178.       need_version=yes
  1179.       ;;
  1180.   esac
  1181.   shlibpath_var=LD_LIBRARY_PATH
  1182.   case $host_os in
  1183.   freebsd2*)
  1184.     shlibpath_overrides_runpath=yes
  1185.     ;;
  1186.   freebsd3.[01]* | freebsdelf3.[01]*)
  1187.     shlibpath_overrides_runpath=yes
  1188.     hardcode_into_libs=yes
  1189.     ;;
  1190.   *) # from 3.2 on
  1191.     shlibpath_overrides_runpath=no
  1192.     hardcode_into_libs=yes
  1193.     ;;
  1194.   esac
  1195.   ;;
  1196. gnu*)
  1197.   version_type=linux
  1198.   need_lib_prefix=no
  1199.   need_version=no
  1200.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  1201.   soname_spec='${libname}${release}${shared_ext}$major'
  1202.   shlibpath_var=LD_LIBRARY_PATH
  1203.   hardcode_into_libs=yes
  1204.   ;;
  1205. hpux9* | hpux10* | hpux11*)
  1206.   # Give a soname corresponding to the major version so that dld.sl refuses to
  1207.   # link against other versions.
  1208.   version_type=sunos
  1209.   need_lib_prefix=no
  1210.   need_version=no
  1211.   case "$host_cpu" in
  1212.   ia64*)
  1213.     shrext_cmds='.so'
  1214.     hardcode_into_libs=yes
  1215.     dynamic_linker="$host_os dld.so"
  1216.     shlibpath_var=LD_LIBRARY_PATH
  1217.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1218.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1219.     soname_spec='${libname}${release}${shared_ext}$major'
  1220.     if test "X$HPUX_IA64_MODE" = X32; then
  1221.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  1222.     else
  1223.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  1224.     fi
  1225.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1226.     ;;
  1227.    hppa*64*)
  1228.      shrext_cmds='.sl'
  1229.      hardcode_into_libs=yes
  1230.      dynamic_linker="$host_os dld.sl"
  1231.      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  1232.      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1233.      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1234.      soname_spec='${libname}${release}${shared_ext}$major'
  1235.      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  1236.      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1237.      ;;
  1238.    *)
  1239.     shrext_cmds='.sl'
  1240.     dynamic_linker="$host_os dld.sl"
  1241.     shlibpath_var=SHLIB_PATH
  1242.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  1243.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1244.     soname_spec='${libname}${release}${shared_ext}$major'
  1245.     ;;
  1246.   esac
  1247.   # HP-UX runs *really* slowly unless shared libraries are mode 555.
  1248.   postinstall_cmds='chmod 555 $lib'
  1249.   ;;
  1250. irix5* | irix6* | nonstopux*)
  1251.   case $host_os in
  1252.     nonstopux*) version_type=nonstopux ;;
  1253.     *)
  1254. if test "$lt_cv_prog_gnu_ld" = yes; then
  1255. version_type=linux
  1256. else
  1257. version_type=irix
  1258. fi ;;
  1259.   esac
  1260.   need_lib_prefix=no
  1261.   need_version=no
  1262.   soname_spec='${libname}${release}${shared_ext}$major'
  1263.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  1264.   case $host_os in
  1265.   irix5* | nonstopux*)
  1266.     libsuff= shlibsuff=
  1267.     ;;
  1268.   *)
  1269.     case $LD in # libtool.m4 will add one of these switches to LD
  1270.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  1271.       libsuff= shlibsuff= libmagic=32-bit;;
  1272.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  1273.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  1274.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  1275.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  1276.     *) libsuff= shlibsuff= libmagic=never-match;;
  1277.     esac
  1278.     ;;
  1279.   esac
  1280.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  1281.   shlibpath_overrides_runpath=no
  1282.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  1283.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  1284.   hardcode_into_libs=yes
  1285.   ;;
  1286. # No shared lib support for Linux oldld, aout, or coff.
  1287. linux*oldld* | linux*aout* | linux*coff*)
  1288.   dynamic_linker=no
  1289.   ;;
  1290. # This must be Linux ELF.
  1291. linux*)
  1292.   version_type=linux
  1293.   need_lib_prefix=no
  1294.   need_version=no
  1295.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1296.   soname_spec='${libname}${release}${shared_ext}$major'
  1297.   finish_cmds='PATH="$PATH:/sbin" ldconfig -n $libdir'
  1298.   shlibpath_var=LD_LIBRARY_PATH
  1299.   shlibpath_overrides_runpath=no
  1300.   # This implies no fast_install, which is unacceptable.
  1301.   # Some rework will be needed to allow for fast_install
  1302.   # before this can be enabled.
  1303.   hardcode_into_libs=yes
  1304.   # Append ld.so.conf contents to the search path
  1305.   if test -f /etc/ld.so.conf; then
  1306.     lt_ld_extra=`$SED -e 's/[:,t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr 'n' ' '`
  1307.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  1308.   fi
  1309.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  1310.   # powerpc, because MkLinux only supported shared libraries with the
  1311.   # GNU dynamic linker.  Since this was broken with cross compilers,
  1312.   # most powerpc-linux boxes support dynamic linking these days and
  1313.   # people can always --disable-shared, the test was removed, and we
  1314.   # assume the GNU/Linux dynamic linker is in use.
  1315.   dynamic_linker='GNU/Linux ld.so'
  1316.   ;;
  1317. knetbsd*-gnu)
  1318.   version_type=linux
  1319.   need_lib_prefix=no
  1320.   need_version=no
  1321.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1322.   soname_spec='${libname}${release}${shared_ext}$major'
  1323.   shlibpath_var=LD_LIBRARY_PATH
  1324.   shlibpath_overrides_runpath=no
  1325.   hardcode_into_libs=yes
  1326.   dynamic_linker='GNU ld.so'
  1327.   ;;
  1328. netbsd*)
  1329.   version_type=sunos
  1330.   need_lib_prefix=no
  1331.   need_version=no
  1332.   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1333.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1334.     finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir'
  1335.     dynamic_linker='NetBSD (a.out) ld.so'
  1336.   else
  1337.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1338.     soname_spec='${libname}${release}${shared_ext}$major'
  1339.     dynamic_linker='NetBSD ld.elf_so'
  1340.   fi
  1341.   shlibpath_var=LD_LIBRARY_PATH
  1342.   shlibpath_overrides_runpath=yes
  1343.   hardcode_into_libs=yes
  1344.   ;;
  1345. newsos6)
  1346.   version_type=linux
  1347.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1348.   shlibpath_var=LD_LIBRARY_PATH
  1349.   shlibpath_overrides_runpath=yes
  1350.   ;;
  1351. nto-qnx*)
  1352.   version_type=linux
  1353.   need_lib_prefix=no
  1354.   need_version=no
  1355.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1356.   soname_spec='${libname}${release}${shared_ext}$major'
  1357.   shlibpath_var=LD_LIBRARY_PATH
  1358.   shlibpath_overrides_runpath=yes
  1359.   ;;
  1360. openbsd*)
  1361.   version_type=sunos
  1362.   need_lib_prefix=no
  1363.   need_version=no
  1364.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1365.   finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir'
  1366.   shlibpath_var=LD_LIBRARY_PATH
  1367.   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1368.     case $host_os in
  1369.       openbsd2.[[89]] | openbsd2.[[89]].*)
  1370. shlibpath_overrides_runpath=no
  1371. ;;
  1372.       *)
  1373. shlibpath_overrides_runpath=yes
  1374. ;;
  1375.       esac
  1376.   else
  1377.     shlibpath_overrides_runpath=yes
  1378.   fi
  1379.   ;;
  1380. os2*)
  1381.   libname_spec='$name'
  1382.   shrext_cmds=".dll"
  1383.   need_lib_prefix=no
  1384.   library_names_spec='$libname${shared_ext} $libname.a'
  1385.   dynamic_linker='OS/2 ld.exe'
  1386.   shlibpath_var=LIBPATH
  1387.   ;;
  1388. osf3* | osf4* | osf5*)
  1389.   version_type=osf
  1390.   need_lib_prefix=no
  1391.   need_version=no
  1392.   soname_spec='${libname}${release}${shared_ext}$major'
  1393.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1394.   shlibpath_var=LD_LIBRARY_PATH
  1395.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  1396.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  1397.   ;;
  1398. sco3.2v5*)
  1399.   version_type=osf
  1400.   soname_spec='${libname}${release}${shared_ext}$major'
  1401.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1402.   shlibpath_var=LD_LIBRARY_PATH
  1403.   ;;
  1404. solaris*)
  1405.   version_type=linux
  1406.   need_lib_prefix=no
  1407.   need_version=no
  1408.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1409.   soname_spec='${libname}${release}${shared_ext}$major'
  1410.   shlibpath_var=LD_LIBRARY_PATH
  1411.   shlibpath_overrides_runpath=yes
  1412.   hardcode_into_libs=yes
  1413.   # ldd complains unless libraries are executable
  1414.   postinstall_cmds='chmod +x $lib'
  1415.   ;;
  1416. sunos4*)
  1417.   version_type=sunos
  1418.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1419.   finish_cmds='PATH="$PATH:/usr/etc" ldconfig $libdir'
  1420.   shlibpath_var=LD_LIBRARY_PATH
  1421.   shlibpath_overrides_runpath=yes
  1422.   if test "$with_gnu_ld" = yes; then
  1423.     need_lib_prefix=no
  1424.   fi
  1425.   need_version=yes
  1426.   ;;
  1427. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1428.   version_type=linux
  1429.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1430.   soname_spec='${libname}${release}${shared_ext}$major'
  1431.   shlibpath_var=LD_LIBRARY_PATH
  1432.   case $host_vendor in
  1433.     sni)
  1434.       shlibpath_overrides_runpath=no
  1435.       need_lib_prefix=no
  1436.       export_dynamic_flag_spec='${wl}-Blargedynsym'
  1437.       runpath_var=LD_RUN_PATH
  1438.       ;;
  1439.     siemens)
  1440.       need_lib_prefix=no
  1441.       ;;
  1442.     motorola)
  1443.       need_lib_prefix=no
  1444.       need_version=no
  1445.       shlibpath_overrides_runpath=no
  1446.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  1447.       ;;
  1448.   esac
  1449.   ;;
  1450. sysv4*MP*)
  1451.   if test -d /usr/nec ;then
  1452.     version_type=linux
  1453.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  1454.     soname_spec='$libname${shared_ext}.$major'
  1455.     shlibpath_var=LD_LIBRARY_PATH
  1456.   fi
  1457.   ;;
  1458. uts4*)
  1459.   version_type=linux
  1460.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1461.   soname_spec='${libname}${release}${shared_ext}$major'
  1462.   shlibpath_var=LD_LIBRARY_PATH
  1463.   ;;
  1464. *)
  1465.   dynamic_linker=no
  1466.   ;;
  1467. esac
  1468. AC_MSG_RESULT([$dynamic_linker])
  1469. test "$dynamic_linker" = no && can_build_shared=no
  1470. ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1471. # _LT_AC_TAGCONFIG
  1472. # ----------------
  1473. AC_DEFUN([_LT_AC_TAGCONFIG],
  1474. [AC_ARG_WITH([tags],
  1475.     [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  1476.         [include additional configurations @<:@automatic@:>@])],
  1477.     [tagnames="$withval"])
  1478. if test -f "$ltmain" && test -n "$tagnames"; then
  1479.   if test ! -f "${ofile}"; then
  1480.     AC_MSG_WARN([output file `$ofile' does not exist])
  1481.   fi
  1482.   if test -z "$LTCC"; then
  1483.     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  1484.     if test -z "$LTCC"; then
  1485.       AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  1486.     else
  1487.       AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  1488.     fi
  1489.   fi
  1490.   # Extract list of available tagged configurations in $ofile.
  1491.   # Note that this assumes the entire list is on one line.
  1492.   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=(.*$)/1/' -e 's/"//g'`
  1493.   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1494.   for tagname in $tagnames; do
  1495.     IFS="$lt_save_ifs"
  1496.     # Check whether tagname contains only valid characters
  1497.     case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  1498.     "") ;;
  1499.     *)  AC_MSG_ERROR([invalid tag name: $tagname])
  1500. ;;
  1501.     esac
  1502.     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  1503.     then
  1504.       AC_MSG_ERROR([tag name "$tagname" already exists])
  1505.     fi
  1506.     # Update the list of available tags.
  1507.     if test -n "$tagname"; then
  1508.       echo appending configuration tag "$tagname" to $ofile
  1509.       case $tagname in
  1510.       CXX)
  1511. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  1512.     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 
  1513.     (test "X$CXX" != "Xg++"))) ; then
  1514.   AC_LIBTOOL_LANG_CXX_CONFIG
  1515. else
  1516.   tagname=""
  1517. fi
  1518. ;;
  1519.       F77)
  1520. if test -n "$F77" && test "X$F77" != "Xno"; then
  1521.   AC_LIBTOOL_LANG_F77_CONFIG
  1522. else
  1523.   tagname=""
  1524. fi
  1525. ;;
  1526.       GCJ)
  1527. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  1528.   AC_LIBTOOL_LANG_GCJ_CONFIG
  1529. else
  1530.   tagname=""
  1531. fi
  1532. ;;
  1533.       RC)
  1534. AC_LIBTOOL_LANG_RC_CONFIG
  1535. ;;
  1536.       *)
  1537. AC_MSG_ERROR([Unsupported tag name: $tagname])
  1538. ;;
  1539.       esac
  1540.       # Append the new tag name to the list of available tags.
  1541.       if test -n "$tagname" ; then
  1542.       available_tags="$available_tags $tagname"
  1543.     fi
  1544.     fi
  1545.   done
  1546.   IFS="$lt_save_ifs"
  1547.   # Now substitute the updated list of available tags.
  1548.   if eval "sed -e 's/^available_tags=.*$/available_tags="$available_tags"/' "$ofile" > "${ofile}T""; then
  1549.     mv "${ofile}T" "$ofile"
  1550.     chmod +x "$ofile"
  1551.   else
  1552.     rm -f "${ofile}T"
  1553.     AC_MSG_ERROR([unable to update list of available tagged configurations.])
  1554.   fi
  1555. fi
  1556. ])# _LT_AC_TAGCONFIG
  1557. # AC_LIBTOOL_DLOPEN
  1558. # -----------------
  1559. # enable checks for dlopen support
  1560. AC_DEFUN([AC_LIBTOOL_DLOPEN],
  1561.  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  1562. ])# AC_LIBTOOL_DLOPEN
  1563. # AC_LIBTOOL_WIN32_DLL
  1564. # --------------------
  1565. # declare package support for building win32 dll's
  1566. AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  1567. [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  1568. ])# AC_LIBTOOL_WIN32_DLL
  1569. # AC_ENABLE_SHARED([DEFAULT])
  1570. # ---------------------------
  1571. # implement the --enable-shared flag
  1572. # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
  1573. AC_DEFUN([AC_ENABLE_SHARED],
  1574. [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  1575. AC_ARG_ENABLE([shared],
  1576.     [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  1577. [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  1578.     [p=${PACKAGE-default}
  1579.     case $enableval in
  1580.     yes) enable_shared=yes ;;
  1581.     no) enable_shared=no ;;
  1582.     *)
  1583.       enable_shared=no
  1584.       # Look at the argument we got.  We use all the common list separators.
  1585.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1586.       for pkg in $enableval; do
  1587. IFS="$lt_save_ifs"
  1588. if test "X$pkg" = "X$p"; then
  1589.   enable_shared=yes
  1590. fi
  1591.       done
  1592.       IFS="$lt_save_ifs"
  1593.       ;;
  1594.     esac],
  1595.     [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  1596. ])# AC_ENABLE_SHARED
  1597. # AC_DISABLE_SHARED
  1598. # -----------------
  1599. #- set the default shared flag to --disable-shared
  1600. AC_DEFUN([AC_DISABLE_SHARED],
  1601. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1602. AC_ENABLE_SHARED(no)
  1603. ])# AC_DISABLE_SHARED
  1604. # AC_ENABLE_STATIC([DEFAULT])
  1605. # ---------------------------
  1606. # implement the --enable-static flag
  1607. # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
  1608. AC_DEFUN([AC_ENABLE_STATIC],
  1609. [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  1610. AC_ARG_ENABLE([static],
  1611.     [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  1612. [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  1613.     [p=${PACKAGE-default}
  1614.     case $enableval in
  1615.     yes) enable_static=yes ;;
  1616.     no) enable_static=no ;;
  1617.     *)
  1618.      enable_static=no
  1619.       # Look at the argument we got.  We use all the common list separators.
  1620.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1621.       for pkg in $enableval; do
  1622. IFS="$lt_save_ifs"
  1623. if test "X$pkg" = "X$p"; then
  1624.   enable_static=yes
  1625. fi
  1626.       done
  1627.       IFS="$lt_save_ifs"
  1628.       ;;
  1629.     esac],
  1630.     [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  1631. ])# AC_ENABLE_STATIC
  1632. # AC_DISABLE_STATIC
  1633. # -----------------
  1634. # set the default static flag to --disable-static
  1635. AC_DEFUN([AC_DISABLE_STATIC],
  1636. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1637. AC_ENABLE_STATIC(no)
  1638. ])# AC_DISABLE_STATIC
  1639. # AC_ENABLE_FAST_INSTALL([DEFAULT])
  1640. # ---------------------------------
  1641. # implement the --enable-fast-install flag
  1642. # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
  1643. AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  1644. [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  1645. AC_ARG_ENABLE([fast-install],
  1646.     [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  1647.     [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  1648.     [p=${PACKAGE-default}
  1649.     case $enableval in
  1650.     yes) enable_fast_install=yes ;;
  1651.     no) enable_fast_install=no ;;
  1652.     *)
  1653.       enable_fast_install=no
  1654.       # Look at the argument we got.  We use all the common list separators.
  1655.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1656.       for pkg in $enableval; do
  1657. IFS="$lt_save_ifs"
  1658. if test "X$pkg" = "X$p"; then
  1659.   enable_fast_install=yes
  1660. fi
  1661.       done
  1662.       IFS="$lt_save_ifs"
  1663.       ;;
  1664.     esac],
  1665.     [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  1666. ])# AC_ENABLE_FAST_INSTALL
  1667. # AC_DISABLE_FAST_INSTALL
  1668. # -----------------------
  1669. # set the default to --disable-fast-install
  1670. AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  1671. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1672. AC_ENABLE_FAST_INSTALL(no)
  1673. ])# AC_DISABLE_FAST_INSTALL
  1674. # AC_LIBTOOL_PICMODE([MODE])
  1675. # --------------------------
  1676. # implement the --with-pic flag
  1677. # MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
  1678. AC_DEFUN([AC_LIBTOOL_PICMODE],
  1679. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1680. pic_mode=ifelse($#,1,$1,default)
  1681. ])# AC_LIBTOOL_PICMODE
  1682. # AC_PROG_EGREP
  1683. # -------------
  1684. # This is predefined starting with Autoconf 2.54, so this conditional
  1685. # definition can be removed once we require Autoconf 2.54 or later.
  1686. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  1687. [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  1688.    [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  1689.     then ac_cv_prog_egrep='grep -E'
  1690.     else ac_cv_prog_egrep='egrep'
  1691.     fi])
  1692.  EGREP=$ac_cv_prog_egrep
  1693.  AC_SUBST([EGREP])
  1694. ])])
  1695. # AC_PATH_TOOL_PREFIX
  1696. # -------------------
  1697. # find a file program which can recognise shared library
  1698. AC_DEFUN([AC_PATH_TOOL_PREFIX],
  1699. [AC_REQUIRE([AC_PROG_EGREP])dnl
  1700. AC_MSG_CHECKING([for $1])
  1701. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  1702. [case $MAGIC_CMD in
  1703. [[\/*] |  ?:[\/]*])
  1704.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  1705.   ;;
  1706. *)
  1707.   lt_save_MAGIC_CMD="$MAGIC_CMD"
  1708.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1709. dnl $ac_dummy forces splitting on constant user-supplied paths.
  1710. dnl POSIX.2 word splitting is done only on the output of word expansions,
  1711. dnl not every word.  This closes a longstanding sh security hole.
  1712.   ac_dummy="ifelse([$2], , $PATH, [$2])"
  1713.   for ac_dir in $ac_dummy; do
  1714.     IFS="$lt_save_ifs"
  1715.     test -z "$ac_dir" && ac_dir=.
  1716.     if test -f $ac_dir/$1; then
  1717.       lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  1718.       if test -n "$file_magic_test_file"; then
  1719. case $deplibs_check_method in
  1720. "file_magic "*)
  1721.   file_magic_regex="`expr "$deplibs_check_method" : "file_magic (.*)"`"
  1722.   MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  1723.   if eval $file_magic_cmd $file_magic_test_file 2> /dev/null |
  1724.     $EGREP "$file_magic_regex" > /dev/null; then
  1725.     :
  1726.   else
  1727.     cat <<EOF 1>&2
  1728. *** Warning: the command libtool uses to detect shared libraries,
  1729. *** $file_magic_cmd, produces output that libtool cannot recognize.
  1730. *** The result is that libtool may fail to recognize shared libraries
  1731. *** as such.  This will affect the creation of libtool libraries that
  1732. *** depend on shared libraries, but programs linked with such libtool
  1733. *** libraries will work regardless of this problem.  Nevertheless, you
  1734. *** may want to report the problem to your system manager and/or to
  1735. *** bug-libtool@gnu.org
  1736. EOF
  1737.   fi ;;
  1738. esac
  1739.       fi
  1740.       break
  1741.     fi
  1742.   done
  1743.   IFS="$lt_save_ifs"
  1744.   MAGIC_CMD="$lt_save_MAGIC_CMD"
  1745.   ;;
  1746. esac])
  1747. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  1748. if test -n "$MAGIC_CMD"; then
  1749.   AC_MSG_RESULT($MAGIC_CMD)
  1750. else
  1751.   AC_MSG_RESULT(no)
  1752. fi
  1753. ])# AC_PATH_TOOL_PREFIX
  1754. # AC_PATH_MAGIC
  1755. # -------------
  1756. # find a file program which can recognise a shared library
  1757. AC_DEFUN([AC_PATH_MAGIC],
  1758. [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  1759. if test -z "$lt_cv_path_MAGIC_CMD"; then
  1760.   if test -n "$ac_tool_prefix"; then
  1761.     AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  1762.   else
  1763.     MAGIC_CMD=:
  1764.   fi
  1765. fi
  1766. ])# AC_PATH_MAGIC
  1767. # AC_PROG_LD
  1768. # ----------
  1769. # find the pathname to the GNU or non-GNU linker
  1770. AC_DEFUN([AC_PROG_LD],
  1771. [AC_ARG_WITH([gnu-ld],
  1772.     [AC_HELP_STRING([--with-gnu-ld],
  1773. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  1774.     [test "$withval" = no || with_gnu_ld=yes],
  1775.     [with_gnu_ld=no])
  1776. AC_REQUIRE([LT_AC_PROG_SED])dnl
  1777. AC_REQUIRE([AC_PROG_CC])dnl
  1778. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1779. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  1780. ac_prog=ld
  1781. if test "$GCC" = yes; then
  1782.   # Check if gcc -print-prog-name=ld gives a path.
  1783.   AC_MSG_CHECKING([for ld used by $CC])
  1784.   case $host in
  1785.   *-*-mingw*)
  1786.     # gcc leaves a trailing carriage return which upsets mingw
  1787.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '15'` ;;
  1788.   *)
  1789.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  1790.   esac
  1791.   case $ac_prog in
  1792.     # Accept absolute paths.
  1793.     [[\/]]* | ?:[[\/]]*)
  1794.       re_direlt='/[[^/]][[^/]]*/../'
  1795.       # Canonicalize the pathname of ld
  1796.       ac_prog=`echo $ac_prog| $SED 's%\\%/%g'`
  1797.       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1798. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  1799.       done
  1800.       test -z "$LD" && LD="$ac_prog"
  1801.       ;;
  1802.   "")
  1803.     # If it fails, then pretend we aren't using GCC.
  1804.     ac_prog=ld
  1805.     ;;
  1806.   *)
  1807.     # If it is relative, then search for the first ld in PATH.
  1808.     with_gnu_ld=unknown
  1809.     ;;
  1810.   esac
  1811. elif test "$with_gnu_ld" = yes; then
  1812.   AC_MSG_CHECKING([for GNU ld])
  1813. else
  1814.   AC_MSG_CHECKING([for non-GNU ld])
  1815. fi
  1816. AC_CACHE_VAL(lt_cv_path_LD,
  1817. [if test -z "$LD"; then
  1818.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1819.   for ac_dir in $PATH; do
  1820.     IFS="$lt_save_ifs"
  1821.     test -z "$ac_dir" && ac_dir=.
  1822.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1823.       lt_cv_path_LD="$ac_dir/$ac_prog"
  1824.       # Check to see if the program is GNU ld.  I'd rather use --version,
  1825.       # but apparently some GNU ld's only accept -v.
  1826.       # Break only if it was the GNU/non-GNU ld that we prefer.
  1827.       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  1828.       *GNU* | *'with BFD'*)
  1829. test "$with_gnu_ld" != no && break
  1830. ;;
  1831.       *)
  1832. test "$with_gnu_ld" != yes && break
  1833. ;;
  1834.       esac
  1835.     fi
  1836.   done
  1837.   IFS="$lt_save_ifs"
  1838. else
  1839.   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  1840. fi])
  1841. LD="$lt_cv_path_LD"
  1842. if test -n "$LD"; then
  1843.   AC_MSG_RESULT($LD)
  1844. else
  1845.   AC_MSG_RESULT(no)
  1846. fi
  1847. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in $PATH])
  1848. AC_PROG_LD_GNU
  1849. ])# AC_PROG_LD
  1850. # AC_PROG_LD_GNU
  1851. # --------------
  1852. AC_DEFUN([AC_PROG_LD_GNU],
  1853. [AC_REQUIRE([AC_PROG_EGREP])dnl
  1854. AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  1855. [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1856. case `$LD -v 2>&1 </dev/null` in
  1857. *GNU* | *'with BFD'*)
  1858.   lt_cv_prog_gnu_ld=yes
  1859.   ;;
  1860. *)
  1861.   lt_cv_prog_gnu_ld=no
  1862.   ;;
  1863. esac])
  1864. with_gnu_ld=$lt_cv_prog_gnu_ld
  1865. ])# AC_PROG_LD_GNU
  1866. # AC_PROG_LD_RELOAD_FLAG
  1867. # ----------------------
  1868. # find reload flag for linker
  1869. #   -- PORTME Some linkers may need a different reload flag.
  1870. AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  1871. [AC_CACHE_CHECK([for $LD option to reload object files],
  1872.   lt_cv_ld_reload_flag,
  1873.   [lt_cv_ld_reload_flag='-r'])
  1874. reload_flag=$lt_cv_ld_reload_flag
  1875. case $reload_flag in
  1876. "" | " "*) ;;
  1877. *) reload_flag=" $reload_flag" ;;
  1878. esac
  1879. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  1880. case $host_os in
  1881.   darwin*)
  1882.     if test "$GCC" = yes; then
  1883.       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  1884.     else
  1885.       reload_cmds='$LD$reload_flag -o $output$reload_objs'
  1886.     fi
  1887.     ;;
  1888. esac
  1889. ])# AC_PROG_LD_RELOAD_FLAG
  1890. # AC_DEPLIBS_CHECK_METHOD
  1891. # -----------------------
  1892. # how to check for library dependencies
  1893. #  -- PORTME fill in with the dynamic library characteristics
  1894. AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  1895. [AC_CACHE_CHECK([how to recognise dependent libraries],
  1896. lt_cv_deplibs_check_method,
  1897. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  1898. lt_cv_file_magic_test_file=
  1899. lt_cv_deplibs_check_method='unknown'
  1900. # Need to set the preceding variable on all platforms that support
  1901. # interlibrary dependencies.
  1902. # 'none' -- dependencies not supported.
  1903. # `unknown' -- same as none, but documents that we really don't know.
  1904. # 'pass_all' -- all dependencies passed with no checks.
  1905. # 'test_compile' -- check by making test program.
  1906. # 'file_magic [[regex]]' -- check by looking for files in library path
  1907. # which responds to the $file_magic_cmd with a given extended regex.
  1908. # If you have `file' or equivalent on your system and you're not sure
  1909. # whether `pass_all' will *always* work, you probably want this one.
  1910. case $host_os in
  1911. aix4* | aix5*)
  1912.   lt_cv_deplibs_check_method=pass_all
  1913.   ;;
  1914. beos*)
  1915.   lt_cv_deplibs_check_method=pass_all
  1916.   ;;
  1917. bsdi[[45]]*)
  1918.   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  1919.   lt_cv_file_magic_cmd='/usr/bin/file -L'
  1920.   lt_cv_file_magic_test_file=/shlib/libc.so
  1921.   ;;
  1922. cygwin*)
  1923.   # func_win32_libid is a shell function defined in ltmain.sh
  1924.   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  1925.   lt_cv_file_magic_cmd='func_win32_libid'
  1926.   ;;
  1927. mingw* | pw32*)
  1928.   # Base MSYS/MinGW do not provide the 'file' command needed by
  1929.   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  1930.   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  1931.   lt_cv_file_magic_cmd='$OBJDUMP -f'
  1932.   ;;
  1933. darwin* | rhapsody*)
  1934.   lt_cv_deplibs_check_method=pass_all
  1935.   ;;
  1936. freebsd* | kfreebsd*-gnu)
  1937.   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1938.     case $host_cpu in
  1939.     i*86 )
  1940.       # Not sure whether the presence of OpenBSD here was a mistake.
  1941.       # Let's accept both of them until this is cleared up.
  1942.       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
  1943.       lt_cv_file_magic_cmd=/usr/bin/file
  1944.       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  1945.       ;;
  1946.     esac
  1947.   else
  1948.     lt_cv_deplibs_check_method=pass_all
  1949.   fi
  1950.   ;;
  1951. gnu*)
  1952.   lt_cv_deplibs_check_method=pass_all
  1953.   ;;
  1954. hpux10.20* | hpux11*)
  1955.   lt_cv_file_magic_cmd=/usr/bin/file
  1956.   case "$host_cpu" in
  1957.   ia64*)
  1958.     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  1959.     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  1960.     ;;
  1961.   hppa*64*)
  1962.     [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]']
  1963.     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  1964.     ;;
  1965.   *)
  1966.     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  1967.     lt_cv_file_magic_test_file=/usr/lib/libc.sl
  1968.     ;;
  1969.   esac
  1970.   ;;
  1971. irix5* | irix6* | nonstopux*)
  1972.   case $LD in
  1973.   *-32|*"-32 ") libmagic=32-bit;;
  1974.   *-n32|*"-n32 ") libmagic=N32;;
  1975.   *-64|*"-64 ") libmagic=64-bit;;
  1976.   *) libmagic=never-match;;
  1977.   esac
  1978.   lt_cv_deplibs_check_method=pass_all
  1979.   ;;
  1980. # This must be Linux ELF.
  1981. linux*)
  1982.   lt_cv_deplibs_check_method=pass_all
  1983.   ;;
  1984. netbsd*)
  1985.   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1986.     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(.so.[[0-9]]+.[[0-9]]+|_pic.a)$'
  1987.   else
  1988.     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(.so|_pic.a)$'
  1989.   fi
  1990.   ;;
  1991. newos6*)
  1992.   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  1993.   lt_cv_file_magic_cmd=/usr/bin/file
  1994.   lt_cv_file_magic_test_file=/usr/lib/libnls.so
  1995.   ;;
  1996. nto-qnx*)
  1997.   lt_cv_deplibs_check_method=unknown
  1998.   ;;
  1999. openbsd*)
  2000.   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2001.     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(.so.[[0-9]]+.[[0-9]]+|.so|_pic.a)$'
  2002.   else
  2003.     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(.so.[[0-9]]+.[[0-9]]+|_pic.a)$'
  2004.   fi
  2005.   ;;
  2006. osf3* | osf4* | osf5*)
  2007.   lt_cv_deplibs_check_method=pass_all
  2008.   ;;
  2009. sco3.2v5*)
  2010.   lt_cv_deplibs_check_method=pass_all
  2011.   ;;
  2012. solaris*)
  2013.   lt_cv_deplibs_check_method=pass_all
  2014.   ;;
  2015. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2016.   case $host_vendor in
  2017.   motorola)
  2018.     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]]'
  2019.     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2020.     ;;
  2021.   ncr)
  2022.     lt_cv_deplibs_check_method=pass_all
  2023.     ;;
  2024.   sequent)
  2025.     lt_cv_file_magic_cmd='/bin/file'
  2026.     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  2027.     ;;
  2028.   sni)
  2029.     lt_cv_file_magic_cmd='/bin/file'
  2030.     lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  2031.     lt_cv_file_magic_test_file=/lib/libc.so
  2032.     ;;
  2033.   siemens)
  2034.     lt_cv_deplibs_check_method=pass_all
  2035.     ;;
  2036.   esac
  2037.   ;;
  2038. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
  2039.   lt_cv_deplibs_check_method=pass_all
  2040.   ;;
  2041. esac
  2042. ])
  2043. file_magic_cmd=$lt_cv_file_magic_cmd
  2044. deplibs_check_method=$lt_cv_deplibs_check_method
  2045. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  2046. ])# AC_DEPLIBS_CHECK_METHOD
  2047. # AC_PROG_NM
  2048. # ----------
  2049. # find the pathname to a BSD-compatible name lister
  2050. AC_DEFUN([AC_PROG_NM],
  2051. [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  2052. [if test -n "$NM"; then
  2053.   # Let the user override the test.
  2054.   lt_cv_path_NM="$NM"
  2055. else
  2056.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2057.   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  2058.     IFS="$lt_save_ifs"
  2059.     test -z "$ac_dir" && ac_dir=.
  2060.     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  2061.     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  2062.       # Check to see if the nm accepts a BSD-compat flag.
  2063.       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2064.       #   nm: unknown option "B" ignored
  2065.       # Tru64's nm complains that /dev/null is an invalid object file
  2066.       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  2067.       */dev/null* | *'Invalid file or object type'*)
  2068. lt_cv_path_NM="$tmp_nm -B"
  2069. break
  2070.         ;;
  2071.       *)
  2072. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  2073. */dev/null*)
  2074.   lt_cv_path_NM="$tmp_nm -p"
  2075.   break
  2076.   ;;
  2077. *)
  2078.   lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2079.   continue # so that we can try to find one that supports BSD flags
  2080.   ;;
  2081. esac
  2082.       esac
  2083.     fi
  2084.   done
  2085.   IFS="$lt_save_ifs"
  2086.   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  2087. fi])
  2088. NM="$lt_cv_path_NM"
  2089. ])# AC_PROG_NM
  2090. # AC_CHECK_LIBM
  2091. # -------------
  2092. # check for math library
  2093. AC_DEFUN([AC_CHECK_LIBM],
  2094. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2095. LIBM=
  2096. case $host in
  2097. *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  2098.   # These system don't have libm, or don't need it
  2099.   ;;
  2100. *-ncr-sysv4.3*)
  2101.   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  2102.   AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  2103.   ;;
  2104. *)
  2105.   AC_CHECK_LIB(m, cos, LIBM="-lm")
  2106.   ;;
  2107. esac
  2108. ])# AC_CHECK_LIBM
  2109. # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  2110. # -----------------------------------
  2111. # sets LIBLTDL to the link flags for the libltdl convenience library and
  2112. # LTDLINCL to the include flags for the libltdl header and adds
  2113. # --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
  2114. # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
  2115. # DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
  2116. # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
  2117. # '${top_srcdir}/' (note the single quotes!).  If your package is not
  2118. # flat and you're not using automake, define top_builddir and
  2119. # top_srcdir appropriately in the Makefiles.
  2120. AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  2121. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2122.   case $enable_ltdl_convenience in
  2123.   no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  2124.   "") enable_ltdl_convenience=yes
  2125.       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  2126.   esac
  2127.   LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  2128.   LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  2129.   # For backwards non-gettext consistent compatibility...
  2130.   INCLTDL="$LTDLINCL"
  2131. ])# AC_LIBLTDL_CONVENIENCE
  2132. # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  2133. # -----------------------------------
  2134. # sets LIBLTDL to the link flags for the libltdl installable library and
  2135. # LTDLINCL to the include flags for the libltdl header and adds
  2136. # --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
  2137. # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
  2138. # DIRECTORY is not provided and an installed libltdl is not found, it is
  2139. # assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
  2140. # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
  2141. # quotes!).  If your package is not flat and you're not using automake,
  2142. # define top_builddir and top_srcdir appropriately in the Makefiles.
  2143. # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  2144. AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  2145. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2146.   AC_CHECK_LIB(ltdl, lt_dlinit,
  2147.   [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  2148.   [if test x"$enable_ltdl_install" = xno; then
  2149.      AC_MSG_WARN([libltdl not installed, but installation disabled])
  2150.    else
  2151.      enable_ltdl_install=yes
  2152.    fi
  2153.   ])
  2154.   if test x"$enable_ltdl_install" = x"yes"; then
  2155.     ac_configure_args="$ac_configure_args --enable-ltdl-install"
  2156.     LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  2157.     LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  2158.   else
  2159.     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  2160.     LIBLTDL="-lltdl"
  2161.     LTDLINCL=
  2162.   fi
  2163.   # For backwards non-gettext consistent compatibility...
  2164.   INCLTDL="$LTDLINCL"
  2165. ])# AC_LIBLTDL_INSTALLABLE
  2166. # AC_LIBTOOL_CXX
  2167. # --------------
  2168. # enable support for C++ libraries
  2169. AC_DEFUN([AC_LIBTOOL_CXX],
  2170. [AC_REQUIRE([_LT_AC_LANG_CXX])
  2171. ])# AC_LIBTOOL_CXX
  2172. # _LT_AC_LANG_CXX
  2173. # ---------------
  2174. AC_DEFUN([_LT_AC_LANG_CXX],
  2175. [AC_REQUIRE([AC_PROG_CXX])
  2176. AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  2177. _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  2178. ])# _LT_AC_LANG_CXX
  2179. # _LT_AC_PROG_CXXCPP
  2180. # ---------------
  2181. AC_DEFUN([_LT_AC_PROG_CXXCPP],
  2182. [
  2183. AC_REQUIRE([AC_PROG_CXX])
  2184. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  2185.     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 
  2186.     (test "X$CXX" != "Xg++"))) ; then
  2187.   AC_PROG_CXXCPP
  2188. fi
  2189. ])# _LT_AC_PROG_CXXCPP
  2190. # AC_LIBTOOL_F77
  2191. # --------------
  2192. # enable support for Fortran 77 libraries
  2193. AC_DEFUN([AC_LIBTOOL_F77],
  2194. [AC_REQUIRE([_LT_AC_LANG_F77])
  2195. ])# AC_LIBTOOL_F77
  2196. # _LT_AC_LANG_F77
  2197. # ---------------
  2198. AC_DEFUN([_LT_AC_LANG_F77],
  2199. [AC_REQUIRE([AC_PROG_F77])
  2200. _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  2201. ])# _LT_AC_LANG_F77
  2202. # AC_LIBTOOL_GCJ
  2203. # --------------
  2204. # enable support for GCJ libraries
  2205. AC_DEFUN([AC_LIBTOOL_GCJ],
  2206. [AC_REQUIRE([_LT_AC_LANG_GCJ])
  2207. ])# AC_LIBTOOL_GCJ
  2208. # _LT_AC_LANG_GCJ
  2209. # ---------------
  2210. AC_DEFUN([_LT_AC_LANG_GCJ],
  2211. [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  2212.   [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  2213.     [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  2214.       [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  2215.  [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  2216.    [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  2217. _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  2218. ])# _LT_AC_LANG_GCJ
  2219. # AC_LIBTOOL_RC
  2220. # --------------
  2221. # enable support for Windows resource files
  2222. AC_DEFUN([AC_LIBTOOL_RC],
  2223. [AC_REQUIRE([LT_AC_PROG_RC])
  2224. _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  2225. ])# AC_LIBTOOL_RC
  2226. # AC_LIBTOOL_LANG_C_CONFIG
  2227. # ------------------------
  2228. # Ensure that the configuration vars for the C compiler are
  2229. # suitably defined.  Those variables are subsequently used by
  2230. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  2231. AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  2232. AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  2233. [lt_save_CC="$CC"
  2234. AC_LANG_PUSH(C)
  2235. # Source file extension for C test sources.
  2236. ac_ext=c
  2237. # Object file extension for compiled C test sources.
  2238. objext=o
  2239. _LT_AC_TAGVAR(objext, $1)=$objext
  2240. # Code to be used in simple compile tests
  2241. lt_simple_compile_test_code="int some_variable = 0;n"
  2242. # Code to be used in simple link tests
  2243. lt_simple_link_test_code='int main(){return(0);}n'
  2244. _LT_AC_SYS_COMPILER
  2245. #
  2246. # Check for any special shared library compilation flags.
  2247. #
  2248. _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
  2249. if test "$GCC" = no; then
  2250.   case $host_os in
  2251.   sco3.2v5*)
  2252.     _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
  2253.     ;;
  2254.   esac
  2255. fi
  2256. if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
  2257.   AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
  2258.   if echo "$old_CC $old_CFLAGS " | grep "[[  ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[  ]]" >/dev/null; then :
  2259.   else
  2260.     AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
  2261.     _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
  2262.   fi
  2263. fi
  2264. #
  2265. # Check to make sure the static flag actually works.
  2266. #
  2267. AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
  2268.   _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  2269.   $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
  2270.   [],
  2271.   [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  2272. AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  2273. AC_LIBTOOL_PROG_COMPILER_PIC($1)
  2274. AC_LIBTOOL_PROG_CC_C_O($1)
  2275. AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  2276. AC_LIBTOOL_PROG_LD_SHLIBS($1)
  2277. AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  2278. AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  2279. AC_LIBTOOL_SYS_LIB_STRIP
  2280. AC_LIBTOOL_DLOPEN_SELF($1)
  2281. # Report which librarie types wil actually be built
  2282. AC_MSG_CHECKING([if libtool supports shared libraries])
  2283. AC_MSG_RESULT([$can_build_shared])
  2284. AC_MSG_CHECKING([whether to build shared libraries])
  2285. test "$can_build_shared" = "no" && enable_shared=no
  2286. # On AIX, shared libraries and static libraries use the same namespace, and
  2287. # are all built from PIC.
  2288. case "$host_os" in
  2289. aix3*)
  2290.   test "$enable_shared" = yes && enable_static=no
  2291.   if test -n "$RANLIB"; then
  2292.     archive_cmds="$archive_cmds~$RANLIB $lib"
  2293.     postinstall_cmds='$RANLIB $lib'
  2294.   fi
  2295.   ;;
  2296. aix4* | aix5*)
  2297.   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  2298.     test "$enable_shared" = yes && enable_static=no
  2299.   fi
  2300.     ;;
  2301. esac
  2302. AC_MSG_RESULT([$enable_shared])
  2303. AC_MSG_CHECKING([whether to build static libraries])
  2304. # Make sure either enable_shared or enable_static is yes.
  2305. test "$enable_shared" = yes || enable_static=yes
  2306. AC_MSG_RESULT([$enable_static])
  2307. AC_LIBTOOL_CONFIG($1)
  2308. AC_LANG_POP
  2309. CC="$lt_save_CC"
  2310. ])# AC_LIBTOOL_LANG_C_CONFIG
  2311. # AC_LIBTOOL_LANG_CXX_CONFIG
  2312. # --------------------------
  2313. # Ensure that the configuration vars for the C compiler are
  2314. # suitably defined.  Those variables are subsequently used by
  2315. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  2316. AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  2317. AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  2318. [AC_LANG_PUSH(C++)
  2319. AC_REQUIRE([AC_PROG_CXX])
  2320. AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  2321. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2322. _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  2323. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  2324. _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  2325. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  2326. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2327. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  2328. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  2329. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  2330. _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  2331. _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  2332. _LT_AC_TAGVAR(module_cmds, $1)=
  2333. _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  2334. _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  2335. _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  2336. _LT_AC_TAGVAR(no_undefined_flag, $1)=
  2337. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  2338. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  2339. # Dependencies to place before and after the object being linked:
  2340. _LT_AC_TAGVAR(predep_objects, $1)=
  2341. _LT_AC_TAGVAR(postdep_objects, $1)=
  2342. _LT_AC_TAGVAR(predeps, $1)=
  2343. _LT_AC_TAGVAR(postdeps, $1)=
  2344. _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  2345. # Source file extension for C++ test sources.
  2346. ac_ext=cc
  2347. # Object file extension for compiled C++ test sources.
  2348. objext=o
  2349. _LT_AC_TAGVAR(objext, $1)=$objext
  2350. # Code to be used in simple compile tests
  2351. lt_simple_compile_test_code="int some_variable = 0;n"
  2352. # Code to be used in simple link tests
  2353. lt_simple_link_test_code='int main(int, char *[]) { return(0); }n'
  2354. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  2355. _LT_AC_SYS_COMPILER
  2356. # Allow CC to be a program name with arguments.
  2357. lt_save_CC=$CC
  2358. lt_save_LD=$LD
  2359. lt_save_GCC=$GCC
  2360. GCC=$GXX
  2361. lt_save_with_gnu_ld=$with_gnu_ld
  2362. lt_save_path_LD=$lt_cv_path_LD
  2363. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  2364.   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  2365. else
  2366.   unset lt_cv_prog_gnu_ld
  2367. fi
  2368. if test -n "${lt_cv_path_LDCXX+set}"; then
  2369.   lt_cv_path_LD=$lt_cv_path_LDCXX
  2370. else
  2371.   unset lt_cv_path_LD
  2372. fi
  2373. test -z "${LDCXX+set}" || LD=$LDCXX
  2374. CC=${CXX-"c++"}
  2375. compiler=$CC
  2376. _LT_AC_TAGVAR(compiler, $1)=$CC
  2377. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  2378. # We don't want -fno-exception wen compiling C++ code, so set the
  2379. # no_builtin_flag separately
  2380. if test "$GXX" = yes; then
  2381.   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  2382. else
  2383.   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  2384. fi
  2385. if test "$GXX" = yes; then
  2386.   # Set up default GNU C++ configuration
  2387.   AC_PROG_LD
  2388.   # Check if GNU C++ uses GNU ld as the underlying linker, since the
  2389.   # archiving commands below assume that GNU ld is being used.
  2390.   if test "$with_gnu_ld" = yes; then
  2391.     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2392.     _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'
  2393.     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  2394.     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  2395.     # If archive_cmds runs LD, not CC, wlarc should be empty
  2396.     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  2397.     #     investigate it a little bit more. (MM)
  2398.     wlarc='${wl}'
  2399.     # ancient GNU ld didn't support --whole-archive et. al.
  2400.     if eval "`$CC -print-prog-name=ld` --help 2>&1" | 
  2401. grep 'no-whole-archive' > /dev/null; then
  2402.       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  2403.     else
  2404.       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  2405.     fi
  2406.   else
  2407.     with_gnu_ld=no
  2408.     wlarc=
  2409.     # A generic and very simple default shared library creation
  2410.     # command for GNU C++ for the case where it uses the native
  2411.     # linker, instead of GNU ld.  If possible, this setting should
  2412.     # overridden to take advantage of the native linker features on
  2413.     # the platform it is being used on.
  2414.     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  2415.   fi
  2416.   # Commands to make compiler produce verbose output that lists
  2417.   # what "hidden" libraries, object files and flags are used when
  2418.   # linking a shared library.
  2419.   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "-L"'
  2420. else
  2421.   GXX=no
  2422.   with_gnu_ld=no
  2423.   wlarc=
  2424. fi
  2425. # PORTME: fill in a description of your system's C++ link characteristics
  2426. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  2427. _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  2428. case $host_os in
  2429.   aix3*)
  2430.     # FIXME: insert proper C++ library support
  2431.     _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2432.     ;;
  2433.   aix4* | aix5*)
  2434.     if test "$host_cpu" = ia64; then
  2435.       # On IA64, the linker does run time linking by default, so we don't
  2436.       # have to do anything special.
  2437.       aix_use_runtimelinking=no
  2438.       exp_sym_flag='-Bexport'
  2439.       no_entry_flag=""
  2440.     else
  2441.       aix_use_runtimelinking=no
  2442.       # Test if we are trying to use run time linking or normal
  2443.       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  2444.       # need to do runtime linking.
  2445.       case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  2446. for ld_flag in $LDFLAGS; do
  2447.   case $ld_flag in
  2448.   *-brtl*)
  2449.     aix_use_runtimelinking=yes
  2450.     break
  2451.     ;;
  2452.   esac
  2453. done
  2454.       esac
  2455.       exp_sym_flag='-bexport'
  2456.       no_entry_flag='-bnoentry'
  2457.     fi
  2458.     # When large executables or shared objects are built, AIX ld can
  2459.     # have problems creating the table of contents.  If linking a library
  2460.     # or program results in "error TOC overflow" add -mminimal-toc to
  2461.     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  2462.     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  2463.     _LT_AC_TAGVAR(archive_cmds, $1)=''
  2464.     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2465.     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  2466.     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  2467.     if test "$GXX" = yes; then
  2468.       case $host_os in aix4.[012]|aix4.[012].*)
  2469.       # We only want to do this on AIX 4.2 and lower, the check
  2470.       # below for broken collect2 doesn't work under 4.3+
  2471. collect2name=`${CC} -print-prog-name=collect2`
  2472. if test -f "$collect2name" && 
  2473.    strings "$collect2name" | grep resolve_lib_name >/dev/null
  2474. then
  2475.   # We have reworked collect2
  2476.   _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2477. else
  2478.   # We have old collect2
  2479.   _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  2480.   # It fails to find uninstalled libraries when the uninstalled
  2481.   # path is not listed in the libpath.  Setting hardcode_minus_L
  2482.   # to unsupported forces relinking
  2483.   _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  2484.   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  2485.   _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  2486. fi
  2487.       esac
  2488.       shared_flag='-shared'
  2489.     else
  2490.       # not using gcc
  2491.       if test "$host_cpu" = ia64; then
  2492. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  2493. # chokes on -Wl,-G. The following line is correct:
  2494. shared_flag='-G'
  2495.       else
  2496. if test "$aix_use_runtimelinking" = yes; then
  2497.   shared_flag='${wl}-G'
  2498. else
  2499.   shared_flag='${wl}-bM:SRE'
  2500. fi
  2501.       fi
  2502.     fi
  2503.     # It seems that -bexpall does not export symbols beginning with
  2504.     # underscore (_), so it is better to generate a list of symbols to export.
  2505.     _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  2506.     if test "$aix_use_runtimelinking" = yes; then
  2507.       # Warning - without using the other runtime loading flags (-brtl),
  2508.       # -berok will link without error, but may produce a broken library.
  2509.       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  2510.       # Determine the default libpath from the value encoded in an empty executable.
  2511.       _LT_AC_SYS_LIBPATH_AIX
  2512.       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  2513.       _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"${wl}$no_entry_flag ${wl}$exp_sym_flag:$export_symbols $shared_flag"
  2514.      else
  2515.       if test "$host_cpu" = ia64; then
  2516. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  2517. _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  2518. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"${wl}$no_entry_flag ${wl}$exp_sym_flag:$export_symbols"
  2519.       else
  2520. # Determine the default libpath from the value encoded in an empty executable.
  2521. _LT_AC_SYS_LIBPATH_AIX
  2522. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  2523. # Warning - without using the other run time loading flags,
  2524. # -berok will link without error, but may produce a broken library.
  2525. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  2526. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  2527. # -bexpall does not export symbols beginning with underscore (_)
  2528. _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  2529. # Exported symbols can be pulled into shared objects from archives
  2530. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  2531. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  2532. # This is similar to how AIX traditionally builds it's shared libraries.
  2533. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  2534.       fi
  2535.     fi
  2536.     ;;
  2537.   chorus*)
  2538.     case $cc_basename in
  2539.       *)
  2540. # FIXME: insert proper C++ library support
  2541. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2542. ;;
  2543.     esac
  2544.     ;;
  2545.   cygwin* | mingw* | pw32*)
  2546.     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  2547.     # as there is no search path for DLLs.
  2548.     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  2549.     _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  2550.     _LT_AC_TAGVAR(always_export_symbols, $1)=no
  2551.     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  2552.     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  2553.       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  2554.       # If the export-symbols file already is a .def file (1st line
  2555.       # is EXPORTS), use it as is; otherwise, prepend...
  2556.       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  2557. cp $export_symbols $output_objdir/$soname.def;
  2558.       else
  2559. echo EXPORTS > $output_objdir/$soname.def;
  2560. cat $export_symbols >> $output_objdir/$soname.def;
  2561.       fi~
  2562.       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  2563.     else
  2564.       _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2565.     fi
  2566.   ;;
  2567.       darwin* | rhapsody*)
  2568.         case "$host_os" in
  2569.         rhapsody* | darwin1.[[012]])
  2570.          _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  2571.          ;;
  2572.        *) # Darwin 1.3 on
  2573.          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  2574.            _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  2575.          else
  2576.            case ${MACOSX_DEPLOYMENT_TARGET} in
  2577.              10.[[012]])
  2578.                _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  2579.                ;;
  2580.              10.*)
  2581.                _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  2582.                ;;
  2583.            esac
  2584.          fi
  2585.          ;;
  2586.         esac
  2587.       _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2588.       _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2589.       _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  2590.       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  2591.       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  2592.       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  2593.     if test "$GXX" = yes ; then
  2594.       lt_int_apple_cc_single_mod=no
  2595.       output_verbose_link_cmd='echo'
  2596.       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  2597.        lt_int_apple_cc_single_mod=yes
  2598.       fi
  2599.       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  2600.        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  2601.       else
  2602.           _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'
  2603.         fi
  2604.         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  2605.         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  2606.           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  2607.             _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}'
  2608.           else
  2609.             _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}'
  2610.           fi
  2611.             _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}'
  2612.       else
  2613.       case "$cc_basename" in
  2614.         xlc*)
  2615.          output_verbose_link_cmd='echo'
  2616.           _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'
  2617.           _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  2618.           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  2619.           _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}'
  2620.           _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}'
  2621.           ;;
  2622.        *)
  2623.          _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2624.           ;;
  2625.       esac
  2626.       fi
  2627.         ;;
  2628.   dgux*)
  2629.     case $cc_basename in
  2630.       ec++)
  2631. # FIXME: insert proper C++ library support
  2632. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2633. ;;
  2634.       ghcx)
  2635. # Green Hills C++ Compiler
  2636. # FIXME: insert proper C++ library support
  2637. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2638. ;;
  2639.       *)
  2640. # FIXME: insert proper C++ library support
  2641. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2642. ;;
  2643.     esac
  2644.     ;;
  2645.   freebsd[12]*)
  2646.     # C++ shared libraries reported to be fairly broken before switch to ELF
  2647.     _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2648.     ;;
  2649.   freebsd-elf*)
  2650.     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2651.     ;;
  2652.   freebsd* | kfreebsd*-gnu)
  2653.     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  2654.     # conventions
  2655.     _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  2656.     ;;
  2657.   gnu*)
  2658.     ;;
  2659.   hpux9*)
  2660.     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  2661.     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2662.     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  2663.     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2664.     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  2665. # but as the default
  2666. # location of the library.
  2667.     case $cc_basename in
  2668.     CC)
  2669.       # FIXME: insert proper C++ library support
  2670.       _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2671.       ;;
  2672.     aCC)
  2673.       _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'
  2674.       # Commands to make compiler produce verbose output that lists
  2675.       # what "hidden" libraries, object files and flags are used when
  2676.       # linking a shared library.
  2677.       #
  2678.       # There doesn't appear to be a way to prevent this compiler from
  2679.       # explicitly linking system object files so we need to strip them
  2680.       # from the output so that they don't get included in the library
  2681.       # dependencies.
  2682.       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'
  2683.       ;;
  2684.     *)
  2685.       if test "$GXX" = yes; then
  2686.         _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'
  2687.       else
  2688.         # FIXME: insert proper C++ library support
  2689.         _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2690.       fi
  2691.       ;;
  2692.     esac
  2693.     ;;
  2694.   hpux10*|hpux11*)
  2695.     if test $with_gnu_ld = no; then
  2696.       case "$host_cpu" in
  2697.       hppa*64*)
  2698. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  2699. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  2700. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2701.         ;;
  2702.       ia64*)
  2703. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  2704.         ;;
  2705.       *)
  2706. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  2707. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2708. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  2709.         ;;
  2710.       esac
  2711.     fi
  2712.     case "$host_cpu" in
  2713.     hppa*64*)
  2714.       _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2715.       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  2716.       ;;
  2717.     ia64*)
  2718.       _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2719.       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  2720.       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  2721.       # but as the default
  2722.       # location of the library.
  2723.       ;;
  2724.     *)
  2725.       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2726.       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  2727.       # but as the default
  2728.       # location of the library.
  2729.       ;;
  2730.     esac
  2731.     case $cc_basename in
  2732.       CC)
  2733. # FIXME: insert proper C++ library support
  2734. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2735. ;;
  2736.       aCC)
  2737. case "$host_cpu" in
  2738. hppa*64*|ia64*)
  2739.   _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  2740.   ;;
  2741. *)
  2742.   _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'
  2743.   ;;
  2744. esac
  2745. # Commands to make compiler produce verbose output that lists
  2746. # what "hidden" libraries, object files and flags are used when
  2747. # linking a shared library.
  2748. #
  2749. # There doesn't appear to be a way to prevent this compiler from
  2750. # explicitly linking system object files so we need to strip them
  2751. # from the output so that they don't get included in the library
  2752. # dependencies.
  2753. 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'
  2754. ;;
  2755.       *)
  2756. if test "$GXX" = yes; then
  2757.   if test $with_gnu_ld = no; then
  2758.     case "$host_cpu" in
  2759.     ia64*|hppa*64*)
  2760.       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  2761.       ;;
  2762.     *)
  2763.       _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'
  2764.       ;;
  2765.     esac
  2766.   fi
  2767. else
  2768.   # FIXME: insert proper C++ library support
  2769.   _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2770. fi
  2771. ;;
  2772.     esac
  2773.     ;;
  2774.   irix5* | irix6*)
  2775.     case $cc_basename in
  2776.       CC)
  2777. # SGI C++
  2778. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  2779. # Archives containing C++ object files must be created using
  2780. # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  2781. # necessary to make sure instantiated templates are included
  2782. # in the archive.
  2783. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  2784. ;;
  2785.       *)
  2786. if test "$GXX" = yes; then
  2787.   if test "$with_gnu_ld" = no; then
  2788.     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  2789.   else
  2790.     _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'
  2791.   fi
  2792. fi
  2793. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  2794. ;;
  2795.     esac
  2796.     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  2797.     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2798.     ;;
  2799.   linux*)
  2800.     case $cc_basename in
  2801.       KCC)
  2802. # Kuck and Associates, Inc. (KAI) C++ Compiler
  2803. # KCC will only create a shared library if the output file
  2804. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  2805. # to its proper name (with version) after linking.
  2806. _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'
  2807. _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'
  2808. # Commands to make compiler produce verbose output that lists
  2809. # what "hidden" libraries, object files and flags are used when
  2810. # linking a shared library.
  2811. #
  2812. # There doesn't appear to be a way to prevent this compiler from
  2813. # explicitly linking system object files so we need to strip them
  2814. # from the output so that they don't get included in the library
  2815. # dependencies.
  2816. 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'
  2817. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  2818. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  2819. # Archives containing C++ object files must be created using
  2820. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  2821. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  2822. ;;
  2823.       icpc)
  2824. # Intel C++
  2825. with_gnu_ld=yes
  2826. # version 8.0 and above of icpc choke on multiply defined symbols
  2827. # if we add $predep_objects and $postdep_objects, however 7.1 and
  2828. # earlier do not add the objects themselves.
  2829. case `$CC -V 2>&1` in
  2830. *"Version 7."*)
  2831.      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2832.      _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'
  2833.   ;;
  2834. *)  # Version 8.0 or newer
  2835.      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2836.    _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'
  2837.   ;;
  2838. esac
  2839. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2840. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  2841. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  2842. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  2843. ;;
  2844.       cxx)
  2845. # Compaq C++
  2846. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2847. _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'
  2848. runpath_var=LD_RUN_PATH
  2849. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  2850. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2851. # Commands to make compiler produce verbose output that lists
  2852. # what "hidden" libraries, object files and flags are used when
  2853. # linking a shared library.
  2854. #
  2855. # There doesn't appear to be a way to prevent this compiler from
  2856. # explicitly linking system object files so we need to strip them
  2857. # from the output so that they don't get included in the library
  2858. # dependencies.
  2859. 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'
  2860. ;;
  2861.     esac
  2862.     ;;
  2863.   lynxos*)
  2864.     # FIXME: insert proper C++ library support
  2865.     _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2866.     ;;
  2867.   m88k*)
  2868.     # FIXME: insert proper C++ library support
  2869.     _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2870.     ;;
  2871.   mvs*)
  2872.     case $cc_basename in
  2873.       cxx)
  2874. # FIXME: insert proper C++ library support
  2875. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2876. ;;
  2877.       *)
  2878. # FIXME: insert proper C++ library support
  2879. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2880. ;;
  2881.     esac
  2882.     ;;
  2883.   netbsd*)
  2884.     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2885.       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  2886.       wlarc=
  2887.       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  2888.       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2889.       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  2890.     fi
  2891.     # Workaround some broken pre-1.5 toolchains
  2892.     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  2893.     ;;
  2894.   openbsd2*)
  2895.     # C++ shared libraries are fairly broken
  2896.     _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2897.     ;;
  2898.   openbsd*)
  2899.     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2900.     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  2901.     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  2902.     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  2903.     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2904.       _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'
  2905.       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  2906.       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  2907.     fi
  2908.     output_verbose_link_cmd='echo'
  2909.     ;;
  2910.   osf3*)
  2911.     case $cc_basename in
  2912.       KCC)
  2913. # Kuck and Associates, Inc. (KAI) C++ Compiler
  2914. # KCC will only create a shared library if the output file
  2915. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  2916. # to its proper name (with version) after linking.
  2917. _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'
  2918. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  2919. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2920. # Archives containing C++ object files must be created using
  2921. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  2922. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  2923. ;;
  2924.       RCC)
  2925. # Rational C++ 2.4.1
  2926. # FIXME: insert proper C++ library support
  2927. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2928. ;;
  2929.       cxx)
  2930. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}*'
  2931. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  2932. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  2933. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2934. # Commands to make compiler produce verbose output that lists
  2935. # what "hidden" libraries, object files and flags are used when
  2936. # linking a shared library.
  2937. #
  2938. # There doesn't appear to be a way to prevent this compiler from
  2939. # explicitly linking system object files so we need to strip them
  2940. # from the output so that they don't get included in the library
  2941. # dependencies.
  2942. 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'
  2943. ;;
  2944.       *)
  2945. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  2946.   _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}*'
  2947.   _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  2948.   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  2949.   _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2950.   # Commands to make compiler produce verbose output that lists
  2951.   # what "hidden" libraries, object files and flags are used when
  2952.   # linking a shared library.
  2953.   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "-L"'
  2954. else
  2955.   # FIXME: insert proper C++ library support
  2956.   _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2957. fi
  2958. ;;
  2959.     esac
  2960.     ;;
  2961.   osf4* | osf5*)
  2962.     case $cc_basename in
  2963.       KCC)
  2964. # Kuck and Associates, Inc. (KAI) C++ Compiler
  2965. # KCC will only create a shared library if the output file
  2966. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  2967. # to its proper name (with version) after linking.
  2968. _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'
  2969. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  2970. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2971. # Archives containing C++ object files must be created using
  2972. # the KAI C++ compiler.
  2973. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  2974. ;;
  2975.       RCC)
  2976. # Rational C++ 2.4.1
  2977. # FIXME: insert proper C++ library support
  2978. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2979. ;;
  2980.       cxx)
  2981. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved *'
  2982. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  2983. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\n" -exported_symbol "$i" >> $lib.exp; done~
  2984.   echo "-hidden">> $lib.exp~
  2985.   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
  2986.   $rm $lib.exp'
  2987. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  2988. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2989. # Commands to make compiler produce verbose output that lists
  2990. # what "hidden" libraries, object files and flags are used when
  2991. # linking a shared library.
  2992. #
  2993. # There doesn't appear to be a way to prevent this compiler from
  2994. # explicitly linking system object files so we need to strip them
  2995. # from the output so that they don't get included in the library
  2996. # dependencies.
  2997. 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'
  2998. ;;
  2999.       *)
  3000. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3001.   _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}*'
  3002.  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  3003.   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3004.   _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3005.   # Commands to make compiler produce verbose output that lists
  3006.   # what "hidden" libraries, object files and flags are used when
  3007.   # linking a shared library.
  3008.   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "-L"'
  3009. else
  3010.   # FIXME: insert proper C++ library support
  3011.   _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3012. fi
  3013. ;;
  3014.     esac
  3015.     ;;
  3016.   psos*)
  3017.     # FIXME: insert proper C++ library support
  3018.     _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3019.     ;;
  3020.   sco*)
  3021.     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3022.     case $cc_basename in
  3023.       CC)
  3024. # FIXME: insert proper C++ library support
  3025. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3026. ;;
  3027.       *)
  3028. # FIXME: insert proper C++ library support
  3029. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3030. ;;
  3031.     esac
  3032.     ;;
  3033.   sunos4*)
  3034.     case $cc_basename in
  3035.       CC)
  3036. # Sun C++ 4.x
  3037. # FIXME: insert proper C++ library support
  3038. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3039. ;;
  3040.       lcc)
  3041. # Lucid
  3042. # FIXME: insert proper C++ library support
  3043. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3044. ;;
  3045.       *)
  3046. # FIXME: insert proper C++ library support
  3047. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3048. ;;
  3049.     esac
  3050.     ;;
  3051.   solaris*)
  3052.     case $cc_basename in
  3053.       CC)
  3054. # Sun C++ 4.2, 5.x and Centerline C++
  3055. _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  3056. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3057. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/(.*)/1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3058. $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3059. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3060. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3061. case $host_os in
  3062.   solaris2.[0-5] | solaris2.[0-5].*) ;;
  3063.   *)
  3064.     # The C++ compiler is used as linker so we must use $wl
  3065.     # flag to pass the commands to the underlying system
  3066.     # linker.
  3067.     # Supported since Solaris 2.6 (maybe 2.5.1?)
  3068.     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  3069.     ;;
  3070. esac
  3071. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3072. # Commands to make compiler produce verbose output that lists
  3073. # what "hidden" libraries, object files and flags are used when
  3074. # linking a shared library.
  3075. #
  3076. # There doesn't appear to be a way to prevent this compiler from
  3077. # explicitly linking system object files so we need to strip them
  3078. # from the output so that they don't get included in the library
  3079. # dependencies.
  3080. output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  3081. # Archives containing C++ object files must be created using
  3082. # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  3083. # necessary to make sure instantiated templates are included
  3084. # in the archive.
  3085. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  3086. ;;
  3087.       gcx)
  3088. # Green Hills C++ Compiler
  3089. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3090. # The C++ compiler must be used to create the archive.
  3091. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  3092. ;;
  3093.       *)
  3094. # GNU C++ compiler with Solaris linker
  3095. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3096.   _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  3097.   if $CC --version | grep -v '^2.7' > /dev/null; then
  3098.     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3099.     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/(.*)/1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3100. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3101.     # Commands to make compiler produce verbose output that lists
  3102.     # what "hidden" libraries, object files and flags are used when
  3103.     # linking a shared library.
  3104.     output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "-L""
  3105.   else
  3106.     # g++ 2.7 appears to require `-G' NOT `-shared' on this
  3107.     # platform.
  3108.     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3109.     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/(.*)/1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3110. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3111.     # Commands to make compiler produce verbose output that lists
  3112.     # what "hidden" libraries, object files and flags are used when
  3113.     # linking a shared library.
  3114.     output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "-L""
  3115.   fi
  3116.   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  3117. fi
  3118. ;;
  3119.     esac
  3120.     ;;
  3121.   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  3122.     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3123.     ;;
  3124.   tandem*)
  3125.     case $cc_basename in
  3126.       NCC)
  3127. # NonStop-UX NCC 3.20
  3128. # FIXME: insert proper C++ library support
  3129. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3130. ;;
  3131.       *)
  3132. # FIXME: insert proper C++ library support
  3133. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3134. ;;
  3135.     esac
  3136.     ;;
  3137.   vxworks*)
  3138.     # FIXME: insert proper C++ library support
  3139.     _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3140.     ;;
  3141.   *)
  3142.     # FIXME: insert proper C++ library support
  3143.     _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3144.     ;;
  3145. esac
  3146. AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  3147. test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  3148. _LT_AC_TAGVAR(GCC, $1)="$GXX"
  3149. _LT_AC_TAGVAR(LD, $1)="$LD"
  3150. AC_LIBTOOL_POSTDEP_PREDEP($1)
  3151. AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3152. AC_LIBTOOL_PROG_CC_C_O($1)
  3153. AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3154. AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3155. AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3156. AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3157. AC_LIBTOOL_SYS_LIB_STRIP
  3158. AC_LIBTOOL_DLOPEN_SELF($1)
  3159. AC_LIBTOOL_CONFIG($1)
  3160. AC_LANG_POP
  3161. CC=$lt_save_CC
  3162. LDCXX=$LD
  3163. LD=$lt_save_LD
  3164. GCC=$lt_save_GCC
  3165. with_gnu_ldcxx=$with_gnu_ld
  3166. with_gnu_ld=$lt_save_with_gnu_ld
  3167. lt_cv_path_LDCXX=$lt_cv_path_LD
  3168. lt_cv_path_LD=$lt_save_path_LD
  3169. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  3170. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  3171. ])# AC_LIBTOOL_LANG_CXX_CONFIG
  3172. # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  3173. # ------------------------
  3174. # Figure out "hidden" library dependencies from verbose