Blame aclocal.m4

Packit d36e9b
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
Packit d36e9b
Packit d36e9b
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
Packit d36e9b
# 2005  Free Software Foundation, Inc.
Packit d36e9b
# This file is free software; the Free Software Foundation
Packit d36e9b
# gives unlimited permission to copy and/or distribute it,
Packit d36e9b
# with or without modifications, as long as this notice is preserved.
Packit d36e9b
Packit d36e9b
# This program is distributed in the hope that it will be useful,
Packit d36e9b
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
Packit d36e9b
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
Packit d36e9b
# PARTICULAR PURPOSE.
Packit d36e9b
Packit d36e9b
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
Packit d36e9b
Packit d36e9b
# serial 48 AC_PROG_LIBTOOL
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
Packit d36e9b
# -----------------------------------------------------------
Packit d36e9b
# If this macro is not defined by Autoconf, define it here.
Packit d36e9b
m4_ifdef([AC_PROVIDE_IFELSE],
Packit d36e9b
         [],
Packit d36e9b
         [m4_define([AC_PROVIDE_IFELSE],
Packit d36e9b
	         [m4_ifdef([AC_PROVIDE_$1],
Packit d36e9b
		           [$2], [$3])])])
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_PROG_LIBTOOL
Packit d36e9b
# ---------------
Packit d36e9b
AC_DEFUN([AC_PROG_LIBTOOL],
Packit d36e9b
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
Packit d36e9b
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
Packit d36e9b
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
Packit d36e9b
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
Packit d36e9b
    [AC_LIBTOOL_CXX],
Packit d36e9b
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
Packit d36e9b
  ])])
Packit d36e9b
dnl And a similar setup for Fortran 77 support
Packit d36e9b
  AC_PROVIDE_IFELSE([AC_PROG_F77],
Packit d36e9b
    [AC_LIBTOOL_F77],
Packit d36e9b
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
Packit d36e9b
])])
Packit d36e9b
Packit d36e9b
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
Packit d36e9b
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
Packit d36e9b
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
Packit d36e9b
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
Packit d36e9b
    [AC_LIBTOOL_GCJ],
Packit d36e9b
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
Packit d36e9b
      [AC_LIBTOOL_GCJ],
Packit d36e9b
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
Packit d36e9b
	[AC_LIBTOOL_GCJ],
Packit d36e9b
      [ifdef([AC_PROG_GCJ],
Packit d36e9b
	     [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
Packit d36e9b
       ifdef([A][M_PROG_GCJ],
Packit d36e9b
	     [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
Packit d36e9b
       ifdef([LT_AC_PROG_GCJ],
Packit d36e9b
	     [define([LT_AC_PROG_GCJ],
Packit d36e9b
		defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
Packit d36e9b
])])# AC_PROG_LIBTOOL
Packit d36e9b
Packit d36e9b
Packit d36e9b
# _AC_PROG_LIBTOOL
Packit d36e9b
# ----------------
Packit d36e9b
AC_DEFUN([_AC_PROG_LIBTOOL],
Packit d36e9b
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
Packit d36e9b
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
Packit d36e9b
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
Packit d36e9b
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
Packit d36e9b
Packit d36e9b
# This can be used to rebuild libtool when needed
Packit d36e9b
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
Packit d36e9b
Packit d36e9b
# Always use our own libtool.
Packit d36e9b
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
Packit d36e9b
AC_SUBST(LIBTOOL)dnl
Packit d36e9b
Packit d36e9b
# Prevent multiple expansion
Packit d36e9b
define([AC_PROG_LIBTOOL], [])
Packit d36e9b
])# _AC_PROG_LIBTOOL
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBTOOL_SETUP
Packit d36e9b
# ----------------
Packit d36e9b
AC_DEFUN([AC_LIBTOOL_SETUP],
Packit d36e9b
[AC_PREREQ(2.50)dnl
Packit d36e9b
AC_REQUIRE([AC_ENABLE_SHARED])dnl
Packit d36e9b
AC_REQUIRE([AC_ENABLE_STATIC])dnl
Packit d36e9b
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
Packit d36e9b
AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit d36e9b
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
Packit d36e9b
AC_REQUIRE([AC_PROG_CC])dnl
Packit d36e9b
AC_REQUIRE([AC_PROG_LD])dnl
Packit d36e9b
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
Packit d36e9b
AC_REQUIRE([AC_PROG_NM])dnl
Packit d36e9b
Packit d36e9b
AC_REQUIRE([AC_PROG_LN_S])dnl
Packit d36e9b
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
Packit d36e9b
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
Packit d36e9b
AC_REQUIRE([AC_OBJEXT])dnl
Packit d36e9b
AC_REQUIRE([AC_EXEEXT])dnl
Packit d36e9b
dnl
Packit d36e9b
Packit d36e9b
AC_LIBTOOL_SYS_MAX_CMD_LEN
Packit d36e9b
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
Packit d36e9b
AC_LIBTOOL_OBJDIR
Packit d36e9b
Packit d36e9b
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
Packit d36e9b
_LT_AC_PROG_ECHO_BACKSLASH
Packit d36e9b
Packit d36e9b
case $host_os in
Packit d36e9b
aix3*)
Packit d36e9b
  # AIX sometimes has problems with the GCC collect2 program.  For some
Packit d36e9b
  # reason, if we set the COLLECT_NAMES environment variable, the problems
Packit d36e9b
  # vanish in a puff of smoke.
Packit d36e9b
  if test "X${COLLECT_NAMES+set}" != Xset; then
Packit d36e9b
    COLLECT_NAMES=
Packit d36e9b
    export COLLECT_NAMES
Packit d36e9b
  fi
Packit d36e9b
  ;;
Packit d36e9b
esac
Packit d36e9b
Packit d36e9b
# Sed substitution that helps us do robust quoting.  It backslashifies
Packit d36e9b
# metacharacters that are still active within double-quoted strings.
Packit d36e9b
Xsed='sed -e 1s/^X//'
Packit d36e9b
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
Packit d36e9b
Packit d36e9b
# Same as above, but do not quote variable references.
Packit d36e9b
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
Packit d36e9b
Packit d36e9b
# Sed substitution to delay expansion of an escaped shell variable in a
Packit d36e9b
# double_quote_subst'ed string.
Packit d36e9b
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
Packit d36e9b
Packit d36e9b
# Sed substitution to avoid accidental globbing in evaled expressions
Packit d36e9b
no_glob_subst='s/\*/\\\*/g'
Packit d36e9b
Packit d36e9b
# Constants:
Packit d36e9b
rm="rm -f"
Packit d36e9b
Packit d36e9b
# Global variables:
Packit d36e9b
default_ofile=libtool
Packit d36e9b
can_build_shared=yes
Packit d36e9b
Packit d36e9b
# All known linkers require a `.a' archive for static linking (except MSVC,
Packit d36e9b
# which needs '.lib').
Packit d36e9b
libext=a
Packit d36e9b
ltmain="$ac_aux_dir/ltmain.sh"
Packit d36e9b
ofile="$default_ofile"
Packit d36e9b
with_gnu_ld="$lt_cv_prog_gnu_ld"
Packit d36e9b
Packit d36e9b
AC_CHECK_TOOL(AR, ar, false)
Packit d36e9b
AC_CHECK_TOOL(RANLIB, ranlib, :)
Packit d36e9b
AC_CHECK_TOOL(STRIP, strip, :)
Packit d36e9b
Packit d36e9b
old_CC="$CC"
Packit d36e9b
old_CFLAGS="$CFLAGS"
Packit d36e9b
Packit d36e9b
# Set sane defaults for various variables
Packit d36e9b
test -z "$AR" && AR=ar
Packit d36e9b
test -z "$AR_FLAGS" && AR_FLAGS=cru
Packit d36e9b
test -z "$AS" && AS=as
Packit d36e9b
test -z "$CC" && CC=cc
Packit d36e9b
test -z "$LTCC" && LTCC=$CC
Packit d36e9b
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Packit d36e9b
test -z "$DLLTOOL" && DLLTOOL=dlltool
Packit d36e9b
test -z "$LD" && LD=ld
Packit d36e9b
test -z "$LN_S" && LN_S="ln -s"
Packit d36e9b
test -z "$MAGIC_CMD" && MAGIC_CMD=file
Packit d36e9b
test -z "$NM" && NM=nm
Packit d36e9b
test -z "$SED" && SED=sed
Packit d36e9b
test -z "$OBJDUMP" && OBJDUMP=objdump
Packit d36e9b
test -z "$RANLIB" && RANLIB=:
Packit d36e9b
test -z "$STRIP" && STRIP=:
Packit d36e9b
test -z "$ac_objext" && ac_objext=o
Packit d36e9b
Packit d36e9b
# Determine commands to create old-style static archives.
Packit d36e9b
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
Packit d36e9b
old_postinstall_cmds='chmod 644 $oldlib'
Packit d36e9b
old_postuninstall_cmds=
Packit d36e9b
Packit d36e9b
if test -n "$RANLIB"; then
Packit d36e9b
  case $host_os in
Packit d36e9b
  openbsd*)
Packit d36e9b
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
Packit d36e9b
    ;;
Packit d36e9b
  *)
Packit d36e9b
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
Packit d36e9b
    ;;
Packit d36e9b
  esac
Packit d36e9b
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
Packit d36e9b
fi
Packit d36e9b
Packit d36e9b
_LT_CC_BASENAME([$compiler])
Packit d36e9b
Packit d36e9b
# Only perform the check for file, if the check method requires it
Packit d36e9b
case $deplibs_check_method in
Packit d36e9b
file_magic*)
Packit d36e9b
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Packit d36e9b
    AC_PATH_MAGIC
Packit d36e9b
  fi
Packit d36e9b
  ;;
Packit d36e9b
esac
Packit d36e9b
Packit d36e9b
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
Packit d36e9b
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
Packit d36e9b
enable_win32_dll=yes, enable_win32_dll=no)
Packit d36e9b
Packit d36e9b
AC_ARG_ENABLE([libtool-lock],
Packit d36e9b
    [AC_HELP_STRING([--disable-libtool-lock],
Packit d36e9b
	[avoid locking (might break parallel builds)])])
Packit d36e9b
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Packit d36e9b
Packit d36e9b
AC_ARG_WITH([pic],
Packit d36e9b
    [AC_HELP_STRING([--with-pic],
Packit d36e9b
	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
Packit d36e9b
    [pic_mode="$withval"],
Packit d36e9b
    [pic_mode=default])
Packit d36e9b
test -z "$pic_mode" && pic_mode=default
Packit d36e9b
Packit d36e9b
# Use C for the default configuration in the libtool script
Packit d36e9b
tagname=
Packit d36e9b
AC_LIBTOOL_LANG_C_CONFIG
Packit d36e9b
_LT_AC_TAGCONFIG
Packit d36e9b
])# AC_LIBTOOL_SETUP
Packit d36e9b
Packit d36e9b
Packit d36e9b
# _LT_AC_SYS_COMPILER
Packit d36e9b
# -------------------
Packit d36e9b
AC_DEFUN([_LT_AC_SYS_COMPILER],
Packit d36e9b
[AC_REQUIRE([AC_PROG_CC])dnl
Packit d36e9b
Packit d36e9b
# If no C compiler was specified, use CC.
Packit d36e9b
LTCC=${LTCC-"$CC"}
Packit d36e9b
Packit d36e9b
# If no C compiler flags were specified, use CFLAGS.
Packit d36e9b
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
Packit d36e9b
Packit d36e9b
# Allow CC to be a program name with arguments.
Packit d36e9b
compiler=$CC
Packit d36e9b
])# _LT_AC_SYS_COMPILER
Packit d36e9b
Packit d36e9b
Packit d36e9b
# _LT_CC_BASENAME(CC)
Packit d36e9b
# -------------------
Packit d36e9b
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
Packit d36e9b
AC_DEFUN([_LT_CC_BASENAME],
Packit d36e9b
[for cc_temp in $1""; do
Packit d36e9b
  case $cc_temp in
Packit d36e9b
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
Packit d36e9b
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
Packit d36e9b
    \-*) ;;
Packit d36e9b
    *) break;;
Packit d36e9b
  esac
Packit d36e9b
done
Packit d36e9b
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
Packit d36e9b
])
Packit d36e9b
Packit d36e9b
Packit d36e9b
# _LT_COMPILER_BOILERPLATE
Packit d36e9b
# ------------------------
Packit d36e9b
# Check for compiler boilerplate output or warnings with
Packit d36e9b
# the simple compiler test code.
Packit d36e9b
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
Packit d36e9b
[ac_outfile=conftest.$ac_objext
Packit d36e9b
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
Packit d36e9b
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Packit d36e9b
_lt_compiler_boilerplate=`cat conftest.err`
Packit d36e9b
$rm conftest*
Packit d36e9b
])# _LT_COMPILER_BOILERPLATE
Packit d36e9b
Packit d36e9b
Packit d36e9b
# _LT_LINKER_BOILERPLATE
Packit d36e9b
# ----------------------
Packit d36e9b
# Check for linker boilerplate output or warnings with
Packit d36e9b
# the simple link test code.
Packit d36e9b
AC_DEFUN([_LT_LINKER_BOILERPLATE],
Packit d36e9b
[ac_outfile=conftest.$ac_objext
Packit d36e9b
printf "$lt_simple_link_test_code" >conftest.$ac_ext
Packit d36e9b
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
Packit d36e9b
_lt_linker_boilerplate=`cat conftest.err`
Packit d36e9b
$rm conftest*
Packit d36e9b
])# _LT_LINKER_BOILERPLATE
Packit d36e9b
Packit d36e9b
Packit d36e9b
# _LT_AC_SYS_LIBPATH_AIX
Packit d36e9b
# ----------------------
Packit d36e9b
# Links a minimal program and checks the executable
Packit d36e9b
# for the system default hardcoded library path. In most cases,
Packit d36e9b
# this is /usr/lib:/lib, but when the MPI compilers are used
Packit d36e9b
# the location of the communication and MPI libs are included too.
Packit d36e9b
# If we don't find anything, use the default library path according
Packit d36e9b
# to the aix ld manual.
Packit d36e9b
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
Packit d36e9b
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
Packit d36e9b
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
Packit d36e9b
}'`
Packit d36e9b
# Check for a 64-bit object if we didn't find anything.
Packit d36e9b
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; }
Packit d36e9b
}'`; fi],[])
Packit d36e9b
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Packit d36e9b
])# _LT_AC_SYS_LIBPATH_AIX
Packit d36e9b
Packit d36e9b
Packit d36e9b
# _LT_AC_SHELL_INIT(ARG)
Packit d36e9b
# ----------------------
Packit d36e9b
AC_DEFUN([_LT_AC_SHELL_INIT],
Packit d36e9b
[ifdef([AC_DIVERSION_NOTICE],
Packit d36e9b
	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
Packit d36e9b
	 [AC_DIVERT_PUSH(NOTICE)])
Packit d36e9b
$1
Packit d36e9b
AC_DIVERT_POP
Packit d36e9b
])# _LT_AC_SHELL_INIT
Packit d36e9b
Packit d36e9b
Packit d36e9b
# _LT_AC_PROG_ECHO_BACKSLASH
Packit d36e9b
# --------------------------
Packit d36e9b
# Add some code to the start of the generated configure script which
Packit d36e9b
# will find an echo command which doesn't interpret backslashes.
Packit d36e9b
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
Packit d36e9b
[_LT_AC_SHELL_INIT([
Packit d36e9b
# Check that we are running under the correct shell.
Packit d36e9b
SHELL=${CONFIG_SHELL-/bin/sh}
Packit d36e9b
Packit d36e9b
case X$ECHO in
Packit d36e9b
X*--fallback-echo)
Packit d36e9b
  # Remove one level of quotation (which was required for Make).
Packit d36e9b
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
Packit d36e9b
  ;;
Packit d36e9b
esac
Packit d36e9b
Packit d36e9b
echo=${ECHO-echo}
Packit d36e9b
if test "X[$]1" = X--no-reexec; then
Packit d36e9b
  # Discard the --no-reexec flag, and continue.
Packit d36e9b
  shift
Packit d36e9b
elif test "X[$]1" = X--fallback-echo; then
Packit d36e9b
  # Avoid inline document here, it may be left over
Packit d36e9b
  :
Packit d36e9b
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
Packit d36e9b
  # Yippee, $echo works!
Packit d36e9b
  :
Packit d36e9b
else
Packit d36e9b
  # Restart under the correct shell.
Packit d36e9b
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
Packit d36e9b
fi
Packit d36e9b
Packit d36e9b
if test "X[$]1" = X--fallback-echo; then
Packit d36e9b
  # used as fallback echo
Packit d36e9b
  shift
Packit d36e9b
  cat <
Packit d36e9b
[$]*
Packit d36e9b
EOF
Packit d36e9b
  exit 0
Packit d36e9b
fi
Packit d36e9b
Packit d36e9b
# The HP-UX ksh and POSIX shell print the target directory to stdout
Packit d36e9b
# if CDPATH is set.
Packit d36e9b
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Packit d36e9b
Packit d36e9b
if test -z "$ECHO"; then
Packit d36e9b
if test "X${echo_test_string+set}" != Xset; then
Packit d36e9b
# find a string as large as possible, as long as the shell can cope with it
Packit d36e9b
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
Packit d36e9b
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Packit d36e9b
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
Packit d36e9b
       echo_test_string=`eval $cmd` &&
Packit d36e9b
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
Packit d36e9b
    then
Packit d36e9b
      break
Packit d36e9b
    fi
Packit d36e9b
  done
Packit d36e9b
fi
Packit d36e9b
Packit d36e9b
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
Packit d36e9b
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
Packit d36e9b
   test "X$echo_testing_string" = "X$echo_test_string"; then
Packit d36e9b
  :
Packit d36e9b
else
Packit d36e9b
  # The Solaris, AIX, and Digital Unix default echo programs unquote
Packit d36e9b
  # backslashes.  This makes it impossible to quote backslashes using
Packit d36e9b
  #   echo "$something" | sed 's/\\/\\\\/g'
Packit d36e9b
  #
Packit d36e9b
  # So, first we look for a working echo in the user's PATH.
Packit d36e9b
Packit d36e9b
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Packit d36e9b
  for dir in $PATH /usr/ucb; do
Packit d36e9b
    IFS="$lt_save_ifs"
Packit d36e9b
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
Packit d36e9b
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
Packit d36e9b
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
Packit d36e9b
       test "X$echo_testing_string" = "X$echo_test_string"; then
Packit d36e9b
      echo="$dir/echo"
Packit d36e9b
      break
Packit d36e9b
    fi
Packit d36e9b
  done
Packit d36e9b
  IFS="$lt_save_ifs"
Packit d36e9b
Packit d36e9b
  if test "X$echo" = Xecho; then
Packit d36e9b
    # We didn't find a better echo, so look for alternatives.
Packit d36e9b
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
Packit d36e9b
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
Packit d36e9b
       test "X$echo_testing_string" = "X$echo_test_string"; then
Packit d36e9b
      # This shell has a builtin print -r that does the trick.
Packit d36e9b
      echo='print -r'
Packit d36e9b
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
Packit d36e9b
	 test "X$CONFIG_SHELL" != X/bin/ksh; then
Packit d36e9b
      # If we have ksh, try running configure again with it.
Packit d36e9b
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
Packit d36e9b
      export ORIGINAL_CONFIG_SHELL
Packit d36e9b
      CONFIG_SHELL=/bin/ksh
Packit d36e9b
      export CONFIG_SHELL
Packit d36e9b
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
Packit d36e9b
    else
Packit d36e9b
      # Try using printf.
Packit d36e9b
      echo='printf %s\n'
Packit d36e9b
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
Packit d36e9b
	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
Packit d36e9b
	 test "X$echo_testing_string" = "X$echo_test_string"; then
Packit d36e9b
	# Cool, printf works
Packit d36e9b
	:
Packit d36e9b
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
Packit d36e9b
	   test "X$echo_testing_string" = 'X\t' &&
Packit d36e9b
	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
Packit d36e9b
	   test "X$echo_testing_string" = "X$echo_test_string"; then
Packit d36e9b
	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
Packit d36e9b
	export CONFIG_SHELL
Packit d36e9b
	SHELL="$CONFIG_SHELL"
Packit d36e9b
	export SHELL
Packit d36e9b
	echo="$CONFIG_SHELL [$]0 --fallback-echo"
Packit d36e9b
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
Packit d36e9b
	   test "X$echo_testing_string" = 'X\t' &&
Packit d36e9b
	   echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
Packit d36e9b
	   test "X$echo_testing_string" = "X$echo_test_string"; then
Packit d36e9b
	echo="$CONFIG_SHELL [$]0 --fallback-echo"
Packit d36e9b
      else
Packit d36e9b
	# maybe with a smaller string...
Packit d36e9b
	prev=:
Packit d36e9b
Packit d36e9b
	for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
Packit d36e9b
	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
Packit d36e9b
	  then
Packit d36e9b
	    break
Packit d36e9b
	  fi
Packit d36e9b
	  prev="$cmd"
Packit d36e9b
	done
Packit d36e9b
Packit d36e9b
	if test "$prev" != 'sed 50q "[$]0"'; then
Packit d36e9b
	  echo_test_string=`eval $prev`
Packit d36e9b
	  export echo_test_string
Packit d36e9b
	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
Packit d36e9b
	else
Packit d36e9b
	  # Oops.  We lost completely, so just stick with echo.
Packit d36e9b
	  echo=echo
Packit d36e9b
	fi
Packit d36e9b
      fi
Packit d36e9b
    fi
Packit d36e9b
  fi
Packit d36e9b
fi
Packit d36e9b
fi
Packit d36e9b
Packit d36e9b
# Copy echo and quote the copy suitably for passing to libtool from
Packit d36e9b
# the Makefile, instead of quoting the original, which is used later.
Packit d36e9b
ECHO=$echo
Packit d36e9b
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
Packit d36e9b
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
Packit d36e9b
fi
Packit d36e9b
Packit d36e9b
AC_SUBST(ECHO)
Packit d36e9b
])])# _LT_AC_PROG_ECHO_BACKSLASH
Packit d36e9b
Packit d36e9b
Packit d36e9b
# _LT_AC_LOCK
Packit d36e9b
# -----------
Packit d36e9b
AC_DEFUN([_LT_AC_LOCK],
Packit d36e9b
[AC_ARG_ENABLE([libtool-lock],
Packit d36e9b
    [AC_HELP_STRING([--disable-libtool-lock],
Packit d36e9b
	[avoid locking (might break parallel builds)])])
Packit d36e9b
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Packit d36e9b
Packit d36e9b
# Some flags need to be propagated to the compiler or linker for good
Packit d36e9b
# libtool support.
Packit d36e9b
case $host in
Packit d36e9b
ia64-*-hpux*)
Packit d36e9b
  # Find out which ABI we are using.
Packit d36e9b
  echo 'int i;' > conftest.$ac_ext
Packit d36e9b
  if AC_TRY_EVAL(ac_compile); then
Packit d36e9b
    case `/usr/bin/file conftest.$ac_objext` in
Packit d36e9b
    *ELF-32*)
Packit d36e9b
      HPUX_IA64_MODE="32"
Packit d36e9b
      ;;
Packit d36e9b
    *ELF-64*)
Packit d36e9b
      HPUX_IA64_MODE="64"
Packit d36e9b
      ;;
Packit d36e9b
    esac
Packit d36e9b
  fi
Packit d36e9b
  rm -rf conftest*
Packit d36e9b
  ;;
Packit d36e9b
*-*-irix6*)
Packit d36e9b
  # Find out which ABI we are using.
Packit d36e9b
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
Packit d36e9b
  if AC_TRY_EVAL(ac_compile); then
Packit d36e9b
   if test "$lt_cv_prog_gnu_ld" = yes; then
Packit d36e9b
    case `/usr/bin/file conftest.$ac_objext` in
Packit d36e9b
    *32-bit*)
Packit d36e9b
      LD="${LD-ld} -melf32bsmip"
Packit d36e9b
      ;;
Packit d36e9b
    *N32*)
Packit d36e9b
      LD="${LD-ld} -melf32bmipn32"
Packit d36e9b
      ;;
Packit d36e9b
    *64-bit*)
Packit d36e9b
      LD="${LD-ld} -melf64bmip"
Packit d36e9b
      ;;
Packit d36e9b
    esac
Packit d36e9b
   else
Packit d36e9b
    case `/usr/bin/file conftest.$ac_objext` in
Packit d36e9b
    *32-bit*)
Packit d36e9b
      LD="${LD-ld} -32"
Packit d36e9b
      ;;
Packit d36e9b
    *N32*)
Packit d36e9b
      LD="${LD-ld} -n32"
Packit d36e9b
      ;;
Packit d36e9b
    *64-bit*)
Packit d36e9b
      LD="${LD-ld} -64"
Packit d36e9b
      ;;
Packit d36e9b
    esac
Packit d36e9b
   fi
Packit d36e9b
  fi
Packit d36e9b
  rm -rf conftest*
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
Packit d36e9b
  # Find out which ABI we are using.
Packit d36e9b
  echo 'int i;' > conftest.$ac_ext
Packit d36e9b
  if AC_TRY_EVAL(ac_compile); then
Packit d36e9b
    case `/usr/bin/file conftest.o` in
Packit d36e9b
    *32-bit*)
Packit d36e9b
      case $host in
Packit d36e9b
        x86_64-*linux*)
Packit d36e9b
          LD="${LD-ld} -m elf_i386"
Packit d36e9b
          ;;
Packit d36e9b
        ppc64-*linux*|powerpc64-*linux*)
Packit d36e9b
          LD="${LD-ld} -m elf32ppclinux"
Packit d36e9b
          ;;
Packit d36e9b
        s390x-*linux*)
Packit d36e9b
          LD="${LD-ld} -m elf_s390"
Packit d36e9b
          ;;
Packit d36e9b
        sparc64-*linux*)
Packit d36e9b
          LD="${LD-ld} -m elf32_sparc"
Packit d36e9b
          ;;
Packit d36e9b
      esac
Packit d36e9b
      ;;
Packit d36e9b
    *64-bit*)
Packit d36e9b
      case $host in
Packit d36e9b
        x86_64-*linux*)
Packit d36e9b
          LD="${LD-ld} -m elf_x86_64"
Packit d36e9b
          ;;
Packit d36e9b
        ppc*-*linux*|powerpc*-*linux*)
Packit d36e9b
          LD="${LD-ld} -m elf64ppc"
Packit d36e9b
          ;;
Packit d36e9b
        s390*-*linux*)
Packit d36e9b
          LD="${LD-ld} -m elf64_s390"
Packit d36e9b
          ;;
Packit d36e9b
        sparc*-*linux*)
Packit d36e9b
          LD="${LD-ld} -m elf64_sparc"
Packit d36e9b
          ;;
Packit d36e9b
      esac
Packit d36e9b
      ;;
Packit d36e9b
    esac
Packit d36e9b
  fi
Packit d36e9b
  rm -rf conftest*
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
*-*-sco3.2v5*)
Packit d36e9b
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Packit d36e9b
  SAVE_CFLAGS="$CFLAGS"
Packit d36e9b
  CFLAGS="$CFLAGS -belf"
Packit d36e9b
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
Packit d36e9b
    [AC_LANG_PUSH(C)
Packit d36e9b
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
Packit d36e9b
     AC_LANG_POP])
Packit d36e9b
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
Packit d36e9b
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Packit d36e9b
    CFLAGS="$SAVE_CFLAGS"
Packit d36e9b
  fi
Packit d36e9b
  ;;
Packit d36e9b
sparc*-*solaris*)
Packit d36e9b
  # Find out which ABI we are using.
Packit d36e9b
  echo 'int i;' > conftest.$ac_ext
Packit d36e9b
  if AC_TRY_EVAL(ac_compile); then
Packit d36e9b
    case `/usr/bin/file conftest.o` in
Packit d36e9b
    *64-bit*)
Packit d36e9b
      case $lt_cv_prog_gnu_ld in
Packit d36e9b
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
Packit d36e9b
      *)    LD="${LD-ld} -64" ;;
Packit d36e9b
      esac
Packit d36e9b
      ;;
Packit d36e9b
    esac
Packit d36e9b
  fi
Packit d36e9b
  rm -rf conftest*
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
Packit d36e9b
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
Packit d36e9b
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
Packit d36e9b
  AC_CHECK_TOOL(AS, as, false)
Packit d36e9b
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
Packit d36e9b
  ;;
Packit d36e9b
  ])
Packit d36e9b
esac
Packit d36e9b
Packit d36e9b
need_locks="$enable_libtool_lock"
Packit d36e9b
Packit d36e9b
])# _LT_AC_LOCK
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
Packit d36e9b
#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
Packit d36e9b
# ----------------------------------------------------------------
Packit d36e9b
# Check whether the given compiler option works
Packit d36e9b
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
Packit d36e9b
[AC_REQUIRE([LT_AC_PROG_SED])
Packit d36e9b
AC_CACHE_CHECK([$1], [$2],
Packit d36e9b
  [$2=no
Packit d36e9b
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
Packit d36e9b
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Packit d36e9b
   lt_compiler_flag="$3"
Packit d36e9b
   # Insert the option either (1) after the last *FLAGS variable, or
Packit d36e9b
   # (2) before a word containing "conftest.", or (3) at the end.
Packit d36e9b
   # Note that $ac_compile itself does not contain backslashes and begins
Packit d36e9b
   # with a dollar sign (not a hyphen), so the echo should work correctly.
Packit d36e9b
   # The option is referenced via a variable to avoid confusing sed.
Packit d36e9b
   lt_compile=`echo "$ac_compile" | $SED \
Packit d36e9b
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Packit d36e9b
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
Packit d36e9b
   -e 's:$: $lt_compiler_flag:'`
Packit d36e9b
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
Packit d36e9b
   (eval "$lt_compile" 2>conftest.err)
Packit d36e9b
   ac_status=$?
Packit d36e9b
   cat conftest.err >&AS_MESSAGE_LOG_FD
Packit d36e9b
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
Packit d36e9b
   if (exit $ac_status) && test -s "$ac_outfile"; then
Packit d36e9b
     # The compiler can only warn and ignore the option if not recognized
Packit d36e9b
     # So say no if there are warnings other than the usual output.
Packit d36e9b
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
Packit d36e9b
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Packit d36e9b
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Packit d36e9b
       $2=yes
Packit d36e9b
     fi
Packit d36e9b
   fi
Packit d36e9b
   $rm conftest*
Packit d36e9b
])
Packit d36e9b
Packit d36e9b
if test x"[$]$2" = xyes; then
Packit d36e9b
    ifelse([$5], , :, [$5])
Packit d36e9b
else
Packit d36e9b
    ifelse([$6], , :, [$6])
Packit d36e9b
fi
Packit d36e9b
])# AC_LIBTOOL_COMPILER_OPTION
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
Packit d36e9b
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
Packit d36e9b
# ------------------------------------------------------------
Packit d36e9b
# Check whether the given compiler option works
Packit d36e9b
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
Packit d36e9b
[AC_CACHE_CHECK([$1], [$2],
Packit d36e9b
  [$2=no
Packit d36e9b
   save_LDFLAGS="$LDFLAGS"
Packit d36e9b
   LDFLAGS="$LDFLAGS $3"
Packit d36e9b
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
Packit d36e9b
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
Packit d36e9b
     # The linker can only warn and ignore the option if not recognized
Packit d36e9b
     # So say no if there are warnings
Packit d36e9b
     if test -s conftest.err; then
Packit d36e9b
       # Append any errors to the config.log.
Packit d36e9b
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
Packit d36e9b
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
Packit d36e9b
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
Packit d36e9b
       if diff conftest.exp conftest.er2 >/dev/null; then
Packit d36e9b
         $2=yes
Packit d36e9b
       fi
Packit d36e9b
     else
Packit d36e9b
       $2=yes
Packit d36e9b
     fi
Packit d36e9b
   fi
Packit d36e9b
   $rm conftest*
Packit d36e9b
   LDFLAGS="$save_LDFLAGS"
Packit d36e9b
])
Packit d36e9b
Packit d36e9b
if test x"[$]$2" = xyes; then
Packit d36e9b
    ifelse([$4], , :, [$4])
Packit d36e9b
else
Packit d36e9b
    ifelse([$5], , :, [$5])
Packit d36e9b
fi
Packit d36e9b
])# AC_LIBTOOL_LINKER_OPTION
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBTOOL_SYS_MAX_CMD_LEN
Packit d36e9b
# --------------------------
Packit d36e9b
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
Packit d36e9b
[# find the maximum length of command line arguments
Packit d36e9b
AC_MSG_CHECKING([the maximum length of command line arguments])
Packit d36e9b
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
Packit d36e9b
  i=0
Packit d36e9b
  teststring="ABCD"
Packit d36e9b
Packit d36e9b
  case $build_os in
Packit d36e9b
  msdosdjgpp*)
Packit d36e9b
    # On DJGPP, this test can blow up pretty badly due to problems in libc
Packit d36e9b
    # (any single argument exceeding 2000 bytes causes a buffer overrun
Packit d36e9b
    # during glob expansion).  Even if it were fixed, the result of this
Packit d36e9b
    # check would be larger than it should be.
Packit d36e9b
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
Packit d36e9b
    ;;
Packit d36e9b
Packit d36e9b
  gnu*)
Packit d36e9b
    # Under GNU Hurd, this test is not required because there is
Packit d36e9b
    # no limit to the length of command line arguments.
Packit d36e9b
    # Libtool will interpret -1 as no limit whatsoever
Packit d36e9b
    lt_cv_sys_max_cmd_len=-1;
Packit d36e9b
    ;;
Packit d36e9b
Packit d36e9b
  cygwin* | mingw*)
Packit d36e9b
    # On Win9x/ME, this test blows up -- it succeeds, but takes
Packit d36e9b
    # about 5 minutes as the teststring grows exponentially.
Packit d36e9b
    # Worse, since 9x/ME are not pre-emptively multitasking,
Packit d36e9b
    # you end up with a "frozen" computer, even though with patience
Packit d36e9b
    # the test eventually succeeds (with a max line length of 256k).
Packit d36e9b
    # Instead, let's just punt: use the minimum linelength reported by
Packit d36e9b
    # all of the supported platforms: 8192 (on NT/2K/XP).
Packit d36e9b
    lt_cv_sys_max_cmd_len=8192;
Packit d36e9b
    ;;
Packit d36e9b
Packit d36e9b
  amigaos*)
Packit d36e9b
    # On AmigaOS with pdksh, this test takes hours, literally.
Packit d36e9b
    # So we just punt and use a minimum line length of 8192.
Packit d36e9b
    lt_cv_sys_max_cmd_len=8192;
Packit d36e9b
    ;;
Packit d36e9b
Packit d36e9b
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Packit d36e9b
    # This has been around since 386BSD, at least.  Likely further.
Packit d36e9b
    if test -x /sbin/sysctl; then
Packit d36e9b
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
Packit d36e9b
    elif test -x /usr/sbin/sysctl; then
Packit d36e9b
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
Packit d36e9b
    else
Packit d36e9b
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
Packit d36e9b
    fi
Packit d36e9b
    # And add a safety zone
Packit d36e9b
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Packit d36e9b
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Packit d36e9b
    ;;
Packit d36e9b
Packit d36e9b
  interix*)
Packit d36e9b
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
Packit d36e9b
    lt_cv_sys_max_cmd_len=196608
Packit d36e9b
    ;;
Packit d36e9b
Packit d36e9b
  osf*)
Packit d36e9b
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
Packit d36e9b
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
Packit d36e9b
    # nice to cause kernel panics so lets avoid the loop below.
Packit d36e9b
    # First set a reasonable default.
Packit d36e9b
    lt_cv_sys_max_cmd_len=16384
Packit d36e9b
    #
Packit d36e9b
    if test -x /sbin/sysconfig; then
Packit d36e9b
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
Packit d36e9b
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
Packit d36e9b
      esac
Packit d36e9b
    fi
Packit d36e9b
    ;;
Packit d36e9b
  sco3.2v5*)
Packit d36e9b
    lt_cv_sys_max_cmd_len=102400
Packit d36e9b
    ;;
Packit d36e9b
  sysv5* | sco5v6* | sysv4.2uw2*)
Packit d36e9b
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
Packit d36e9b
    if test -n "$kargmax"; then
Packit d36e9b
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ 	]]//'`
Packit d36e9b
    else
Packit d36e9b
      lt_cv_sys_max_cmd_len=32768
Packit d36e9b
    fi
Packit d36e9b
    ;;
Packit d36e9b
  *)
Packit d36e9b
    # If test is not a shell built-in, we'll probably end up computing a
Packit d36e9b
    # maximum length that is only half of the actual maximum length, but
Packit d36e9b
    # we can't tell.
Packit d36e9b
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
Packit d36e9b
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
Packit d36e9b
	       = "XX$teststring") >/dev/null 2>&1 &&
Packit d36e9b
	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
Packit d36e9b
	    lt_cv_sys_max_cmd_len=$new_result &&
Packit d36e9b
	    test $i != 17 # 1/2 MB should be enough
Packit d36e9b
    do
Packit d36e9b
      i=`expr $i + 1`
Packit d36e9b
      teststring=$teststring$teststring
Packit d36e9b
    done
Packit d36e9b
    teststring=
Packit d36e9b
    # Add a significant safety factor because C++ compilers can tack on massive
Packit d36e9b
    # amounts of additional arguments before passing them to the linker.
Packit d36e9b
    # It appears as though 1/2 is a usable value.
Packit d36e9b
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
Packit d36e9b
    ;;
Packit d36e9b
  esac
Packit d36e9b
])
Packit d36e9b
if test -n $lt_cv_sys_max_cmd_len ; then
Packit d36e9b
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
Packit d36e9b
else
Packit d36e9b
  AC_MSG_RESULT(none)
Packit d36e9b
fi
Packit d36e9b
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
Packit d36e9b
Packit d36e9b
Packit d36e9b
# _LT_AC_CHECK_DLFCN
Packit d36e9b
# ------------------
Packit d36e9b
AC_DEFUN([_LT_AC_CHECK_DLFCN],
Packit d36e9b
[AC_CHECK_HEADERS(dlfcn.h)dnl
Packit d36e9b
])# _LT_AC_CHECK_DLFCN
Packit d36e9b
Packit d36e9b
Packit d36e9b
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
Packit d36e9b
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
Packit d36e9b
# ---------------------------------------------------------------------
Packit d36e9b
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
Packit d36e9b
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
Packit d36e9b
if test "$cross_compiling" = yes; then :
Packit d36e9b
  [$4]
Packit d36e9b
else
Packit d36e9b
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
Packit d36e9b
  lt_status=$lt_dlunknown
Packit d36e9b
  cat > conftest.$ac_ext <
Packit d36e9b
[#line __oline__ "configure"
Packit d36e9b
#include "confdefs.h"
Packit d36e9b
Packit d36e9b
#if HAVE_DLFCN_H
Packit d36e9b
#include <dlfcn.h>
Packit d36e9b
#endif
Packit d36e9b
Packit d36e9b
#include <stdio.h>
Packit d36e9b
Packit d36e9b
#ifdef RTLD_GLOBAL
Packit d36e9b
#  define LT_DLGLOBAL		RTLD_GLOBAL
Packit d36e9b
#else
Packit d36e9b
#  ifdef DL_GLOBAL
Packit d36e9b
#    define LT_DLGLOBAL		DL_GLOBAL
Packit d36e9b
#  else
Packit d36e9b
#    define LT_DLGLOBAL		0
Packit d36e9b
#  endif
Packit d36e9b
#endif
Packit d36e9b
Packit d36e9b
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
Packit d36e9b
   find out it does not work in some platform. */
Packit d36e9b
#ifndef LT_DLLAZY_OR_NOW
Packit d36e9b
#  ifdef RTLD_LAZY
Packit d36e9b
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
Packit d36e9b
#  else
Packit d36e9b
#    ifdef DL_LAZY
Packit d36e9b
#      define LT_DLLAZY_OR_NOW		DL_LAZY
Packit d36e9b
#    else
Packit d36e9b
#      ifdef RTLD_NOW
Packit d36e9b
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
Packit d36e9b
#      else
Packit d36e9b
#        ifdef DL_NOW
Packit d36e9b
#          define LT_DLLAZY_OR_NOW	DL_NOW
Packit d36e9b
#        else
Packit d36e9b
#          define LT_DLLAZY_OR_NOW	0
Packit d36e9b
#        endif
Packit d36e9b
#      endif
Packit d36e9b
#    endif
Packit d36e9b
#  endif
Packit d36e9b
#endif
Packit d36e9b
Packit d36e9b
#ifdef __cplusplus
Packit d36e9b
extern "C" void exit (int);
Packit d36e9b
#endif
Packit d36e9b
Packit d36e9b
void fnord() { int i=42;}
Packit d36e9b
int main ()
Packit d36e9b
{
Packit d36e9b
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
Packit d36e9b
  int status = $lt_dlunknown;
Packit d36e9b
Packit d36e9b
  if (self)
Packit d36e9b
    {
Packit d36e9b
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
Packit d36e9b
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Packit d36e9b
      /* dlclose (self); */
Packit d36e9b
    }
Packit d36e9b
  else
Packit d36e9b
    puts (dlerror ());
Packit d36e9b
Packit d36e9b
    exit (status);
Packit d36e9b
}]
Packit d36e9b
EOF
Packit d36e9b
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
Packit d36e9b
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
Packit d36e9b
    lt_status=$?
Packit d36e9b
    case x$lt_status in
Packit d36e9b
      x$lt_dlno_uscore) $1 ;;
Packit d36e9b
      x$lt_dlneed_uscore) $2 ;;
Packit d36e9b
      x$lt_dlunknown|x*) $3 ;;
Packit d36e9b
    esac
Packit d36e9b
  else :
Packit d36e9b
    # compilation failed
Packit d36e9b
    $3
Packit d36e9b
  fi
Packit d36e9b
fi
Packit d36e9b
rm -fr conftest*
Packit d36e9b
])# _LT_AC_TRY_DLOPEN_SELF
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBTOOL_DLOPEN_SELF
Packit d36e9b
# ----------------------
Packit d36e9b
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
Packit d36e9b
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
Packit d36e9b
if test "x$enable_dlopen" != xyes; then
Packit d36e9b
  enable_dlopen=unknown
Packit d36e9b
  enable_dlopen_self=unknown
Packit d36e9b
  enable_dlopen_self_static=unknown
Packit d36e9b
else
Packit d36e9b
  lt_cv_dlopen=no
Packit d36e9b
  lt_cv_dlopen_libs=
Packit d36e9b
Packit d36e9b
  case $host_os in
Packit d36e9b
  beos*)
Packit d36e9b
    lt_cv_dlopen="load_add_on"
Packit d36e9b
    lt_cv_dlopen_libs=
Packit d36e9b
    lt_cv_dlopen_self=yes
Packit d36e9b
    ;;
Packit d36e9b
Packit d36e9b
  mingw* | pw32*)
Packit d36e9b
    lt_cv_dlopen="LoadLibrary"
Packit d36e9b
    lt_cv_dlopen_libs=
Packit d36e9b
   ;;
Packit d36e9b
Packit d36e9b
  cygwin*)
Packit d36e9b
    lt_cv_dlopen="dlopen"
Packit d36e9b
    lt_cv_dlopen_libs=
Packit d36e9b
   ;;
Packit d36e9b
Packit d36e9b
  darwin*)
Packit d36e9b
  # if libdl is installed we need to link against it
Packit d36e9b
    AC_CHECK_LIB([dl], [dlopen],
Packit d36e9b
		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
Packit d36e9b
    lt_cv_dlopen="dyld"
Packit d36e9b
    lt_cv_dlopen_libs=
Packit d36e9b
    lt_cv_dlopen_self=yes
Packit d36e9b
    ])
Packit d36e9b
   ;;
Packit d36e9b
Packit d36e9b
  *)
Packit d36e9b
    AC_CHECK_FUNC([shl_load],
Packit d36e9b
	  [lt_cv_dlopen="shl_load"],
Packit d36e9b
      [AC_CHECK_LIB([dld], [shl_load],
Packit d36e9b
	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
Packit d36e9b
	[AC_CHECK_FUNC([dlopen],
Packit d36e9b
	      [lt_cv_dlopen="dlopen"],
Packit d36e9b
	  [AC_CHECK_LIB([dl], [dlopen],
Packit d36e9b
		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
Packit d36e9b
	    [AC_CHECK_LIB([svld], [dlopen],
Packit d36e9b
		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
Packit d36e9b
	      [AC_CHECK_LIB([dld], [dld_link],
Packit d36e9b
		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
Packit d36e9b
	      ])
Packit d36e9b
	    ])
Packit d36e9b
	  ])
Packit d36e9b
	])
Packit d36e9b
      ])
Packit d36e9b
    ;;
Packit d36e9b
  esac
Packit d36e9b
Packit d36e9b
  if test "x$lt_cv_dlopen" != xno; then
Packit d36e9b
    enable_dlopen=yes
Packit d36e9b
  else
Packit d36e9b
    enable_dlopen=no
Packit d36e9b
  fi
Packit d36e9b
Packit d36e9b
  case $lt_cv_dlopen in
Packit d36e9b
  dlopen)
Packit d36e9b
    save_CPPFLAGS="$CPPFLAGS"
Packit d36e9b
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Packit d36e9b
Packit d36e9b
    save_LDFLAGS="$LDFLAGS"
Packit d36e9b
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Packit d36e9b
Packit d36e9b
    save_LIBS="$LIBS"
Packit d36e9b
    LIBS="$lt_cv_dlopen_libs $LIBS"
Packit d36e9b
Packit d36e9b
    AC_CACHE_CHECK([whether a program can dlopen itself],
Packit d36e9b
	  lt_cv_dlopen_self, [dnl
Packit d36e9b
	  _LT_AC_TRY_DLOPEN_SELF(
Packit d36e9b
	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
Packit d36e9b
	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
Packit d36e9b
    ])
Packit d36e9b
Packit d36e9b
    if test "x$lt_cv_dlopen_self" = xyes; then
Packit d36e9b
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Packit d36e9b
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
Packit d36e9b
    	  lt_cv_dlopen_self_static, [dnl
Packit d36e9b
	  _LT_AC_TRY_DLOPEN_SELF(
Packit d36e9b
	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
Packit d36e9b
	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
Packit d36e9b
      ])
Packit d36e9b
    fi
Packit d36e9b
Packit d36e9b
    CPPFLAGS="$save_CPPFLAGS"
Packit d36e9b
    LDFLAGS="$save_LDFLAGS"
Packit d36e9b
    LIBS="$save_LIBS"
Packit d36e9b
    ;;
Packit d36e9b
  esac
Packit d36e9b
Packit d36e9b
  case $lt_cv_dlopen_self in
Packit d36e9b
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
Packit d36e9b
  *) enable_dlopen_self=unknown ;;
Packit d36e9b
  esac
Packit d36e9b
Packit d36e9b
  case $lt_cv_dlopen_self_static in
Packit d36e9b
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
Packit d36e9b
  *) enable_dlopen_self_static=unknown ;;
Packit d36e9b
  esac
Packit d36e9b
fi
Packit d36e9b
])# AC_LIBTOOL_DLOPEN_SELF
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
Packit d36e9b
# ---------------------------------
Packit d36e9b
# Check to see if options -c and -o are simultaneously supported by compiler
Packit d36e9b
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
Packit d36e9b
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
Packit d36e9b
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
Packit d36e9b
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
Packit d36e9b
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
Packit d36e9b
   $rm -r conftest 2>/dev/null
Packit d36e9b
   mkdir conftest
Packit d36e9b
   cd conftest
Packit d36e9b
   mkdir out
Packit d36e9b
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
Packit d36e9b
Packit d36e9b
   lt_compiler_flag="-o out/conftest2.$ac_objext"
Packit d36e9b
   # Insert the option either (1) after the last *FLAGS variable, or
Packit d36e9b
   # (2) before a word containing "conftest.", or (3) at the end.
Packit d36e9b
   # Note that $ac_compile itself does not contain backslashes and begins
Packit d36e9b
   # with a dollar sign (not a hyphen), so the echo should work correctly.
Packit d36e9b
   lt_compile=`echo "$ac_compile" | $SED \
Packit d36e9b
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Packit d36e9b
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
Packit d36e9b
   -e 's:$: $lt_compiler_flag:'`
Packit d36e9b
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
Packit d36e9b
   (eval "$lt_compile" 2>out/conftest.err)
Packit d36e9b
   ac_status=$?
Packit d36e9b
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
Packit d36e9b
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
Packit d36e9b
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
Packit d36e9b
   then
Packit d36e9b
     # The compiler can only warn and ignore the option if not recognized
Packit d36e9b
     # So say no if there are warnings
Packit d36e9b
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
Packit d36e9b
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
Packit d36e9b
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Packit d36e9b
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
Packit d36e9b
     fi
Packit d36e9b
   fi
Packit d36e9b
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
Packit d36e9b
   $rm conftest*
Packit d36e9b
   # SGI C++ compiler will create directory out/ii_files/ for
Packit d36e9b
   # template instantiation
Packit d36e9b
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
Packit d36e9b
   $rm out/* && rmdir out
Packit d36e9b
   cd ..
Packit d36e9b
   rmdir conftest
Packit d36e9b
   $rm conftest*
Packit d36e9b
])
Packit d36e9b
])# AC_LIBTOOL_PROG_CC_C_O
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
Packit d36e9b
# -----------------------------------------
Packit d36e9b
# Check to see if we can do hard links to lock some files if needed
Packit d36e9b
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
Packit d36e9b
[AC_REQUIRE([_LT_AC_LOCK])dnl
Packit d36e9b
Packit d36e9b
hard_links="nottested"
Packit d36e9b
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
Packit d36e9b
  # do not overwrite the value of need_locks provided by the user
Packit d36e9b
  AC_MSG_CHECKING([if we can lock with hard links])
Packit d36e9b
  hard_links=yes
Packit d36e9b
  $rm conftest*
Packit d36e9b
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
Packit d36e9b
  touch conftest.a
Packit d36e9b
  ln conftest.a conftest.b 2>&5 || hard_links=no
Packit d36e9b
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
Packit d36e9b
  AC_MSG_RESULT([$hard_links])
Packit d36e9b
  if test "$hard_links" = no; then
Packit d36e9b
    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
Packit d36e9b
    need_locks=warn
Packit d36e9b
  fi
Packit d36e9b
else
Packit d36e9b
  need_locks=no
Packit d36e9b
fi
Packit d36e9b
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBTOOL_OBJDIR
Packit d36e9b
# -----------------
Packit d36e9b
AC_DEFUN([AC_LIBTOOL_OBJDIR],
Packit d36e9b
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
Packit d36e9b
[rm -f .libs 2>/dev/null
Packit d36e9b
mkdir .libs 2>/dev/null
Packit d36e9b
if test -d .libs; then
Packit d36e9b
  lt_cv_objdir=.libs
Packit d36e9b
else
Packit d36e9b
  # MS-DOS does not allow filenames that begin with a dot.
Packit d36e9b
  lt_cv_objdir=_libs
Packit d36e9b
fi
Packit d36e9b
rmdir .libs 2>/dev/null])
Packit d36e9b
objdir=$lt_cv_objdir
Packit d36e9b
])# AC_LIBTOOL_OBJDIR
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
Packit d36e9b
# ----------------------------------------------
Packit d36e9b
# Check hardcoding attributes.
Packit d36e9b
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
Packit d36e9b
[AC_MSG_CHECKING([how to hardcode library paths into programs])
Packit d36e9b
_LT_AC_TAGVAR(hardcode_action, $1)=
Packit d36e9b
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
Packit d36e9b
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
Packit d36e9b
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
Packit d36e9b
Packit d36e9b
  # We can hardcode non-existant directories.
Packit d36e9b
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
Packit d36e9b
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
Packit d36e9b
     # have to relink, otherwise we might link with an installed library
Packit d36e9b
     # when we should be linking with a yet-to-be-installed one
Packit d36e9b
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
Packit d36e9b
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
Packit d36e9b
    # Linking always hardcodes the temporary library directory.
Packit d36e9b
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
Packit d36e9b
  else
Packit d36e9b
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
Packit d36e9b
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
Packit d36e9b
  fi
Packit d36e9b
else
Packit d36e9b
  # We cannot hardcode anything, or else we can only hardcode existing
Packit d36e9b
  # directories.
Packit d36e9b
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
Packit d36e9b
fi
Packit d36e9b
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
Packit d36e9b
Packit d36e9b
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
Packit d36e9b
  # Fast installation is not supported
Packit d36e9b
  enable_fast_install=no
Packit d36e9b
elif test "$shlibpath_overrides_runpath" = yes ||
Packit d36e9b
     test "$enable_shared" = no; then
Packit d36e9b
  # Fast installation is not necessary
Packit d36e9b
  enable_fast_install=needless
Packit d36e9b
fi
Packit d36e9b
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBTOOL_SYS_LIB_STRIP
Packit d36e9b
# ------------------------
Packit d36e9b
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
Packit d36e9b
[striplib=
Packit d36e9b
old_striplib=
Packit d36e9b
AC_MSG_CHECKING([whether stripping libraries is possible])
Packit d36e9b
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
Packit d36e9b
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
Packit d36e9b
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Packit d36e9b
  AC_MSG_RESULT([yes])
Packit d36e9b
else
Packit d36e9b
# FIXME - insert some real tests, host_os isn't really good enough
Packit d36e9b
  case $host_os in
Packit d36e9b
   darwin*)
Packit d36e9b
       if test -n "$STRIP" ; then
Packit d36e9b
         striplib="$STRIP -x"
Packit d36e9b
         AC_MSG_RESULT([yes])
Packit d36e9b
       else
Packit d36e9b
  AC_MSG_RESULT([no])
Packit d36e9b
fi
Packit d36e9b
       ;;
Packit d36e9b
   *)
Packit d36e9b
  AC_MSG_RESULT([no])
Packit d36e9b
    ;;
Packit d36e9b
  esac
Packit d36e9b
fi
Packit d36e9b
])# AC_LIBTOOL_SYS_LIB_STRIP
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
Packit d36e9b
# -----------------------------
Packit d36e9b
# PORTME Fill in your ld.so characteristics
Packit d36e9b
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
Packit d36e9b
[AC_MSG_CHECKING([dynamic linker characteristics])
Packit d36e9b
library_names_spec=
Packit d36e9b
libname_spec='lib$name'
Packit d36e9b
soname_spec=
Packit d36e9b
shrext_cmds=".so"
Packit d36e9b
postinstall_cmds=
Packit d36e9b
postuninstall_cmds=
Packit d36e9b
finish_cmds=
Packit d36e9b
finish_eval=
Packit d36e9b
shlibpath_var=
Packit d36e9b
shlibpath_overrides_runpath=unknown
Packit d36e9b
version_type=none
Packit d36e9b
dynamic_linker="$host_os ld.so"
Packit d36e9b
sys_lib_dlsearch_path_spec="/lib /usr/lib"
Packit d36e9b
if test "$GCC" = yes; then
Packit d36e9b
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Packit d36e9b
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
Packit d36e9b
    # if the path contains ";" then we assume it to be the separator
Packit d36e9b
    # otherwise default to the standard path separator (i.e. ":") - it is
Packit d36e9b
    # assumed that no part of a normal pathname contains ";" but that should
Packit d36e9b
    # okay in the real world where ";" in dirpaths is itself problematic.
Packit d36e9b
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Packit d36e9b
  else
Packit d36e9b
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
Packit d36e9b
  fi
Packit d36e9b
else
Packit d36e9b
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Packit d36e9b
fi
Packit d36e9b
need_lib_prefix=unknown
Packit d36e9b
hardcode_into_libs=no
Packit d36e9b
Packit d36e9b
# when you set need_version to no, make sure it does not cause -set_version
Packit d36e9b
# flags to be left without arguments
Packit d36e9b
need_version=unknown
Packit d36e9b
Packit d36e9b
case $host_os in
Packit d36e9b
aix3*)
Packit d36e9b
  version_type=linux
Packit d36e9b
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
Packit d36e9b
  shlibpath_var=LIBPATH
Packit d36e9b
Packit d36e9b
  # AIX 3 has no versioning support, so we append a major version to the name.
Packit d36e9b
  soname_spec='${libname}${release}${shared_ext}$major'
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
aix4* | aix5*)
Packit d36e9b
  version_type=linux
Packit d36e9b
  need_lib_prefix=no
Packit d36e9b
  need_version=no
Packit d36e9b
  hardcode_into_libs=yes
Packit d36e9b
  if test "$host_cpu" = ia64; then
Packit d36e9b
    # AIX 5 supports IA64
Packit d36e9b
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
Packit d36e9b
    shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
  else
Packit d36e9b
    # With GCC up to 2.95.x, collect2 would create an import file
Packit d36e9b
    # for dependence libraries.  The import file would start with
Packit d36e9b
    # the line `#! .'.  This would cause the generated library to
Packit d36e9b
    # depend on `.', always an invalid library.  This was fixed in
Packit d36e9b
    # development snapshots of GCC prior to 3.0.
Packit d36e9b
    case $host_os in
Packit d36e9b
      aix4 | aix4.[[01]] | aix4.[[01]].*)
Packit d36e9b
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
Packit d36e9b
	   echo ' yes '
Packit d36e9b
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
Packit d36e9b
	:
Packit d36e9b
      else
Packit d36e9b
	can_build_shared=no
Packit d36e9b
      fi
Packit d36e9b
      ;;
Packit d36e9b
    esac
Packit d36e9b
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
Packit d36e9b
    # soname into executable. Probably we can add versioning support to
Packit d36e9b
    # collect2, so additional links can be useful in future.
Packit d36e9b
    if test "$aix_use_runtimelinking" = yes; then
Packit d36e9b
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
Packit d36e9b
      # instead of lib<name>.a to let people know that these are not
Packit d36e9b
      # typical AIX shared libraries.
Packit d36e9b
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit d36e9b
    else
Packit d36e9b
      # We preserve .a as extension for shared libraries through AIX4.2
Packit d36e9b
      # and later when we are not doing run time linking.
Packit d36e9b
      library_names_spec='${libname}${release}.a $libname.a'
Packit d36e9b
      soname_spec='${libname}${release}${shared_ext}$major'
Packit d36e9b
    fi
Packit d36e9b
    shlibpath_var=LIBPATH
Packit d36e9b
  fi
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
amigaos*)
Packit d36e9b
  library_names_spec='$libname.ixlibrary $libname.a'
Packit d36e9b
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
Packit d36e9b
  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'
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
beos*)
Packit d36e9b
  library_names_spec='${libname}${shared_ext}'
Packit d36e9b
  dynamic_linker="$host_os ld.so"
Packit d36e9b
  shlibpath_var=LIBRARY_PATH
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
bsdi[[45]]*)
Packit d36e9b
  version_type=linux
Packit d36e9b
  need_version=no
Packit d36e9b
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit d36e9b
  soname_spec='${libname}${release}${shared_ext}$major'
Packit d36e9b
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
Packit d36e9b
  shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
Packit d36e9b
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
Packit d36e9b
  # the default ld.so.conf also contains /usr/contrib/lib and
Packit d36e9b
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
Packit d36e9b
  # libtool to hard-code these into programs
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
cygwin* | mingw* | pw32*)
Packit d36e9b
  version_type=windows
Packit d36e9b
  shrext_cmds=".dll"
Packit d36e9b
  need_version=no
Packit d36e9b
  need_lib_prefix=no
Packit d36e9b
Packit d36e9b
  case $GCC,$host_os in
Packit d36e9b
  yes,cygwin* | yes,mingw* | yes,pw32*)
Packit d36e9b
    library_names_spec='$libname.dll.a'
Packit d36e9b
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
Packit d36e9b
    postinstall_cmds='base_file=`basename \${file}`~
Packit d36e9b
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
Packit d36e9b
      dldir=$destdir/`dirname \$dlpath`~
Packit d36e9b
      test -d \$dldir || mkdir -p \$dldir~
Packit d36e9b
      $install_prog $dir/$dlname \$dldir/$dlname~
Packit d36e9b
      chmod a+x \$dldir/$dlname'
Packit d36e9b
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
Packit d36e9b
      dlpath=$dir/\$dldll~
Packit d36e9b
       $rm \$dlpath'
Packit d36e9b
    shlibpath_overrides_runpath=yes
Packit d36e9b
Packit d36e9b
    case $host_os in
Packit d36e9b
    cygwin*)
Packit d36e9b
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Packit d36e9b
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
Packit d36e9b
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
Packit d36e9b
      ;;
Packit d36e9b
    mingw*)
Packit d36e9b
      # MinGW DLLs use traditional 'lib' prefix
Packit d36e9b
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
Packit d36e9b
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Packit d36e9b
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
Packit d36e9b
        # It is most probably a Windows format PATH printed by
Packit d36e9b
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
Packit d36e9b
        # path with ; separators, and with drive letters. We can handle the
Packit d36e9b
        # drive letters (cygwin fileutils understands them), so leave them,
Packit d36e9b
        # especially as we might pass files found there to a mingw objdump,
Packit d36e9b
        # which wouldn't understand a cygwinified path. Ahh.
Packit d36e9b
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Packit d36e9b
      else
Packit d36e9b
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
Packit d36e9b
      fi
Packit d36e9b
      ;;
Packit d36e9b
    pw32*)
Packit d36e9b
      # pw32 DLLs use 'pw' prefix rather than 'lib'
Packit d36e9b
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
Packit d36e9b
      ;;
Packit d36e9b
    esac
Packit d36e9b
    ;;
Packit d36e9b
Packit d36e9b
  *)
Packit d36e9b
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
Packit d36e9b
    ;;
Packit d36e9b
  esac
Packit d36e9b
  dynamic_linker='Win32 ld.exe'
Packit d36e9b
  # FIXME: first we should search . and the directory the executable is in
Packit d36e9b
  shlibpath_var=PATH
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
darwin* | rhapsody*)
Packit d36e9b
  dynamic_linker="$host_os dyld"
Packit d36e9b
  version_type=darwin
Packit d36e9b
  need_lib_prefix=no
Packit d36e9b
  need_version=no
Packit d36e9b
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Packit d36e9b
  soname_spec='${libname}${release}${major}$shared_ext'
Packit d36e9b
  shlibpath_overrides_runpath=yes
Packit d36e9b
  shlibpath_var=DYLD_LIBRARY_PATH
Packit d36e9b
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Packit d36e9b
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Packit d36e9b
  if test "$GCC" = yes; then
Packit d36e9b
    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"`
Packit d36e9b
  else
Packit d36e9b
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
Packit d36e9b
  fi
Packit d36e9b
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
dgux*)
Packit d36e9b
  version_type=linux
Packit d36e9b
  need_lib_prefix=no
Packit d36e9b
  need_version=no
Packit d36e9b
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
Packit d36e9b
  soname_spec='${libname}${release}${shared_ext}$major'
Packit d36e9b
  shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
freebsd1*)
Packit d36e9b
  dynamic_linker=no
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
kfreebsd*-gnu)
Packit d36e9b
  version_type=linux
Packit d36e9b
  need_lib_prefix=no
Packit d36e9b
  need_version=no
Packit d36e9b
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Packit d36e9b
  soname_spec='${libname}${release}${shared_ext}$major'
Packit d36e9b
  shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
  shlibpath_overrides_runpath=no
Packit d36e9b
  hardcode_into_libs=yes
Packit d36e9b
  dynamic_linker='GNU ld.so'
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
freebsd* | dragonfly*)
Packit d36e9b
  # DragonFly does not have aout.  When/if they implement a new
Packit d36e9b
  # versioning mechanism, adjust this.
Packit d36e9b
  if test -x /usr/bin/objformat; then
Packit d36e9b
    objformat=`/usr/bin/objformat`
Packit d36e9b
  else
Packit d36e9b
    case $host_os in
Packit d36e9b
    freebsd[[123]]*) objformat=aout ;;
Packit d36e9b
    *) objformat=elf ;;
Packit d36e9b
    esac
Packit d36e9b
  fi
Packit d36e9b
  version_type=freebsd-$objformat
Packit d36e9b
  case $version_type in
Packit d36e9b
    freebsd-elf*)
Packit d36e9b
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Packit d36e9b
      need_version=no
Packit d36e9b
      need_lib_prefix=no
Packit d36e9b
      ;;
Packit d36e9b
    freebsd-*)
Packit d36e9b
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
Packit d36e9b
      need_version=yes
Packit d36e9b
      ;;
Packit d36e9b
  esac
Packit d36e9b
  shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
  case $host_os in
Packit d36e9b
  freebsd2*)
Packit d36e9b
    shlibpath_overrides_runpath=yes
Packit d36e9b
    ;;
Packit d36e9b
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
Packit d36e9b
    shlibpath_overrides_runpath=yes
Packit d36e9b
    hardcode_into_libs=yes
Packit d36e9b
    ;;
Packit d36e9b
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
Packit d36e9b
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
Packit d36e9b
    shlibpath_overrides_runpath=no
Packit d36e9b
    hardcode_into_libs=yes
Packit d36e9b
    ;;
Packit d36e9b
  freebsd*) # from 4.6 on
Packit d36e9b
    shlibpath_overrides_runpath=yes
Packit d36e9b
    hardcode_into_libs=yes
Packit d36e9b
    ;;
Packit d36e9b
  esac
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
gnu*)
Packit d36e9b
  version_type=linux
Packit d36e9b
  need_lib_prefix=no
Packit d36e9b
  need_version=no
Packit d36e9b
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
Packit d36e9b
  soname_spec='${libname}${release}${shared_ext}$major'
Packit d36e9b
  shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
  hardcode_into_libs=yes
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
hpux9* | hpux10* | hpux11*)
Packit d36e9b
  # Give a soname corresponding to the major version so that dld.sl refuses to
Packit d36e9b
  # link against other versions.
Packit d36e9b
  version_type=sunos
Packit d36e9b
  need_lib_prefix=no
Packit d36e9b
  need_version=no
Packit d36e9b
  case $host_cpu in
Packit d36e9b
  ia64*)
Packit d36e9b
    shrext_cmds='.so'
Packit d36e9b
    hardcode_into_libs=yes
Packit d36e9b
    dynamic_linker="$host_os dld.so"
Packit d36e9b
    shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Packit d36e9b
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit d36e9b
    soname_spec='${libname}${release}${shared_ext}$major'
Packit d36e9b
    if test "X$HPUX_IA64_MODE" = X32; then
Packit d36e9b
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Packit d36e9b
    else
Packit d36e9b
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Packit d36e9b
    fi
Packit d36e9b
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Packit d36e9b
    ;;
Packit d36e9b
   hppa*64*)
Packit d36e9b
     shrext_cmds='.sl'
Packit d36e9b
     hardcode_into_libs=yes
Packit d36e9b
     dynamic_linker="$host_os dld.sl"
Packit d36e9b
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Packit d36e9b
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Packit d36e9b
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit d36e9b
     soname_spec='${libname}${release}${shared_ext}$major'
Packit d36e9b
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
Packit d36e9b
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Packit d36e9b
     ;;
Packit d36e9b
   *)
Packit d36e9b
    shrext_cmds='.sl'
Packit d36e9b
    dynamic_linker="$host_os dld.sl"
Packit d36e9b
    shlibpath_var=SHLIB_PATH
Packit d36e9b
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Packit d36e9b
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit d36e9b
    soname_spec='${libname}${release}${shared_ext}$major'
Packit d36e9b
    ;;
Packit d36e9b
  esac
Packit d36e9b
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
Packit d36e9b
  postinstall_cmds='chmod 555 $lib'
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
interix3*)
Packit d36e9b
  version_type=linux
Packit d36e9b
  need_lib_prefix=no
Packit d36e9b
  need_version=no
Packit d36e9b
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Packit d36e9b
  soname_spec='${libname}${release}${shared_ext}$major'
Packit d36e9b
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
Packit d36e9b
  shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
  shlibpath_overrides_runpath=no
Packit d36e9b
  hardcode_into_libs=yes
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
irix5* | irix6* | nonstopux*)
Packit d36e9b
  case $host_os in
Packit d36e9b
    nonstopux*) version_type=nonstopux ;;
Packit d36e9b
    *)
Packit d36e9b
	if test "$lt_cv_prog_gnu_ld" = yes; then
Packit d36e9b
		version_type=linux
Packit d36e9b
	else
Packit d36e9b
		version_type=irix
Packit d36e9b
	fi ;;
Packit d36e9b
  esac
Packit d36e9b
  need_lib_prefix=no
Packit d36e9b
  need_version=no
Packit d36e9b
  soname_spec='${libname}${release}${shared_ext}$major'
Packit d36e9b
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
Packit d36e9b
  case $host_os in
Packit d36e9b
  irix5* | nonstopux*)
Packit d36e9b
    libsuff= shlibsuff=
Packit d36e9b
    ;;
Packit d36e9b
  *)
Packit d36e9b
    case $LD in # libtool.m4 will add one of these switches to LD
Packit d36e9b
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
Packit d36e9b
      libsuff= shlibsuff= libmagic=32-bit;;
Packit d36e9b
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
Packit d36e9b
      libsuff=32 shlibsuff=N32 libmagic=N32;;
Packit d36e9b
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
Packit d36e9b
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
Packit d36e9b
    *) libsuff= shlibsuff= libmagic=never-match;;
Packit d36e9b
    esac
Packit d36e9b
    ;;
Packit d36e9b
  esac
Packit d36e9b
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
Packit d36e9b
  shlibpath_overrides_runpath=no
Packit d36e9b
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
Packit d36e9b
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
Packit d36e9b
  hardcode_into_libs=yes
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
# No shared lib support for Linux oldld, aout, or coff.
Packit d36e9b
linux*oldld* | linux*aout* | linux*coff*)
Packit d36e9b
  dynamic_linker=no
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
# This must be Linux ELF.
Packit d36e9b
linux*)
Packit d36e9b
  version_type=linux
Packit d36e9b
  need_lib_prefix=no
Packit d36e9b
  need_version=no
Packit d36e9b
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit d36e9b
  soname_spec='${libname}${release}${shared_ext}$major'
Packit d36e9b
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
Packit d36e9b
  shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
  shlibpath_overrides_runpath=no
Packit d36e9b
  # This implies no fast_install, which is unacceptable.
Packit d36e9b
  # Some rework will be needed to allow for fast_install
Packit d36e9b
  # before this can be enabled.
Packit d36e9b
  hardcode_into_libs=yes
Packit d36e9b
Packit d36e9b
  # find out which ABI we are using
Packit d36e9b
  libsuff=
Packit d36e9b
  case "$host_cpu" in
Packit d36e9b
  x86_64*|s390x*|powerpc64*)
Packit d36e9b
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
Packit d36e9b
    if AC_TRY_EVAL(ac_compile); then
Packit d36e9b
      case `/usr/bin/file conftest.$ac_objext` in
Packit d36e9b
      *64-bit*)
Packit d36e9b
        libsuff=64
Packit d36e9b
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
Packit d36e9b
        ;;
Packit d36e9b
      esac
Packit d36e9b
    fi
Packit d36e9b
    rm -rf conftest*
Packit d36e9b
    ;;
Packit d36e9b
  esac
Packit d36e9b
Packit d36e9b
  # Append ld.so.conf contents to the search path
Packit d36e9b
  if test -f /etc/ld.so.conf; then
Packit d36e9b
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Packit d36e9b
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
Packit d36e9b
  fi
Packit d36e9b
Packit d36e9b
  # We used to test for /lib/ld.so.1 and disable shared libraries on
Packit d36e9b
  # powerpc, because MkLinux only supported shared libraries with the
Packit d36e9b
  # GNU dynamic linker.  Since this was broken with cross compilers,
Packit d36e9b
  # most powerpc-linux boxes support dynamic linking these days and
Packit d36e9b
  # people can always --disable-shared, the test was removed, and we
Packit d36e9b
  # assume the GNU/Linux dynamic linker is in use.
Packit d36e9b
  dynamic_linker='GNU/Linux ld.so'
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
knetbsd*-gnu)
Packit d36e9b
  version_type=linux
Packit d36e9b
  need_lib_prefix=no
Packit d36e9b
  need_version=no
Packit d36e9b
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Packit d36e9b
  soname_spec='${libname}${release}${shared_ext}$major'
Packit d36e9b
  shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
  shlibpath_overrides_runpath=no
Packit d36e9b
  hardcode_into_libs=yes
Packit d36e9b
  dynamic_linker='GNU ld.so'
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
netbsd*)
Packit d36e9b
  version_type=sunos
Packit d36e9b
  need_lib_prefix=no
Packit d36e9b
  need_version=no
Packit d36e9b
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
Packit d36e9b
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Packit d36e9b
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Packit d36e9b
    dynamic_linker='NetBSD (a.out) ld.so'
Packit d36e9b
  else
Packit d36e9b
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
Packit d36e9b
    soname_spec='${libname}${release}${shared_ext}$major'
Packit d36e9b
    dynamic_linker='NetBSD ld.elf_so'
Packit d36e9b
  fi
Packit d36e9b
  shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
  shlibpath_overrides_runpath=yes
Packit d36e9b
  hardcode_into_libs=yes
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
newsos6)
Packit d36e9b
  version_type=linux
Packit d36e9b
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit d36e9b
  shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
  shlibpath_overrides_runpath=yes
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
nto-qnx*)
Packit d36e9b
  version_type=linux
Packit d36e9b
  need_lib_prefix=no
Packit d36e9b
  need_version=no
Packit d36e9b
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit d36e9b
  soname_spec='${libname}${release}${shared_ext}$major'
Packit d36e9b
  shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
  shlibpath_overrides_runpath=yes
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
openbsd*)
Packit d36e9b
  version_type=sunos
Packit d36e9b
  sys_lib_dlsearch_path_spec="/usr/lib"
Packit d36e9b
  need_lib_prefix=no
Packit d36e9b
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
Packit d36e9b
  case $host_os in
Packit d36e9b
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
Packit d36e9b
    *)                         need_version=no  ;;
Packit d36e9b
  esac
Packit d36e9b
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Packit d36e9b
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
Packit d36e9b
  shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Packit d36e9b
    case $host_os in
Packit d36e9b
      openbsd2.[[89]] | openbsd2.[[89]].*)
Packit d36e9b
	shlibpath_overrides_runpath=no
Packit d36e9b
	;;
Packit d36e9b
      *)
Packit d36e9b
	shlibpath_overrides_runpath=yes
Packit d36e9b
	;;
Packit d36e9b
      esac
Packit d36e9b
  else
Packit d36e9b
    shlibpath_overrides_runpath=yes
Packit d36e9b
  fi
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
os2*)
Packit d36e9b
  libname_spec='$name'
Packit d36e9b
  shrext_cmds=".dll"
Packit d36e9b
  need_lib_prefix=no
Packit d36e9b
  library_names_spec='$libname${shared_ext} $libname.a'
Packit d36e9b
  dynamic_linker='OS/2 ld.exe'
Packit d36e9b
  shlibpath_var=LIBPATH
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
osf3* | osf4* | osf5*)
Packit d36e9b
  version_type=osf
Packit d36e9b
  need_lib_prefix=no
Packit d36e9b
  need_version=no
Packit d36e9b
  soname_spec='${libname}${release}${shared_ext}$major'
Packit d36e9b
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit d36e9b
  shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Packit d36e9b
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
solaris*)
Packit d36e9b
  version_type=linux
Packit d36e9b
  need_lib_prefix=no
Packit d36e9b
  need_version=no
Packit d36e9b
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit d36e9b
  soname_spec='${libname}${release}${shared_ext}$major'
Packit d36e9b
  shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
  shlibpath_overrides_runpath=yes
Packit d36e9b
  hardcode_into_libs=yes
Packit d36e9b
  # ldd complains unless libraries are executable
Packit d36e9b
  postinstall_cmds='chmod +x $lib'
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
sunos4*)
Packit d36e9b
  version_type=sunos
Packit d36e9b
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
Packit d36e9b
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
Packit d36e9b
  shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
  shlibpath_overrides_runpath=yes
Packit d36e9b
  if test "$with_gnu_ld" = yes; then
Packit d36e9b
    need_lib_prefix=no
Packit d36e9b
  fi
Packit d36e9b
  need_version=yes
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
sysv4 | sysv4.3*)
Packit d36e9b
  version_type=linux
Packit d36e9b
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit d36e9b
  soname_spec='${libname}${release}${shared_ext}$major'
Packit d36e9b
  shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
  case $host_vendor in
Packit d36e9b
    sni)
Packit d36e9b
      shlibpath_overrides_runpath=no
Packit d36e9b
      need_lib_prefix=no
Packit d36e9b
      export_dynamic_flag_spec='${wl}-Blargedynsym'
Packit d36e9b
      runpath_var=LD_RUN_PATH
Packit d36e9b
      ;;
Packit d36e9b
    siemens)
Packit d36e9b
      need_lib_prefix=no
Packit d36e9b
      ;;
Packit d36e9b
    motorola)
Packit d36e9b
      need_lib_prefix=no
Packit d36e9b
      need_version=no
Packit d36e9b
      shlibpath_overrides_runpath=no
Packit d36e9b
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
Packit d36e9b
      ;;
Packit d36e9b
  esac
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
sysv4*MP*)
Packit d36e9b
  if test -d /usr/nec ;then
Packit d36e9b
    version_type=linux
Packit d36e9b
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
Packit d36e9b
    soname_spec='$libname${shared_ext}.$major'
Packit d36e9b
    shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
  fi
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Packit d36e9b
  version_type=freebsd-elf
Packit d36e9b
  need_lib_prefix=no
Packit d36e9b
  need_version=no
Packit d36e9b
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
Packit d36e9b
  soname_spec='${libname}${release}${shared_ext}$major'
Packit d36e9b
  shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
  hardcode_into_libs=yes
Packit d36e9b
  if test "$with_gnu_ld" = yes; then
Packit d36e9b
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Packit d36e9b
    shlibpath_overrides_runpath=no
Packit d36e9b
  else
Packit d36e9b
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Packit d36e9b
    shlibpath_overrides_runpath=yes
Packit d36e9b
    case $host_os in
Packit d36e9b
      sco3.2v5*)
Packit d36e9b
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
Packit d36e9b
	;;
Packit d36e9b
    esac
Packit d36e9b
  fi
Packit d36e9b
  sys_lib_dlsearch_path_spec='/usr/lib'
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
uts4*)
Packit d36e9b
  version_type=linux
Packit d36e9b
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Packit d36e9b
  soname_spec='${libname}${release}${shared_ext}$major'
Packit d36e9b
  shlibpath_var=LD_LIBRARY_PATH
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
*)
Packit d36e9b
  dynamic_linker=no
Packit d36e9b
  ;;
Packit d36e9b
esac
Packit d36e9b
AC_MSG_RESULT([$dynamic_linker])
Packit d36e9b
test "$dynamic_linker" = no && can_build_shared=no
Packit d36e9b
Packit d36e9b
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Packit d36e9b
if test "$GCC" = yes; then
Packit d36e9b
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
Packit d36e9b
fi
Packit d36e9b
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
Packit d36e9b
Packit d36e9b
Packit d36e9b
# _LT_AC_TAGCONFIG
Packit d36e9b
# ----------------
Packit d36e9b
AC_DEFUN([_LT_AC_TAGCONFIG],
Packit d36e9b
[AC_ARG_WITH([tags],
Packit d36e9b
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
Packit d36e9b
        [include additional configurations @<:@automatic@:>@])],
Packit d36e9b
    [tagnames="$withval"])
Packit d36e9b
Packit d36e9b
if test -f "$ltmain" && test -n "$tagnames"; then
Packit d36e9b
  if test ! -f "${ofile}"; then
Packit d36e9b
    AC_MSG_WARN([output file `$ofile' does not exist])
Packit d36e9b
  fi
Packit d36e9b
Packit d36e9b
  if test -z "$LTCC"; then
Packit d36e9b
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
Packit d36e9b
    if test -z "$LTCC"; then
Packit d36e9b
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
Packit d36e9b
    else
Packit d36e9b
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
Packit d36e9b
    fi
Packit d36e9b
  fi
Packit d36e9b
  if test -z "$LTCFLAGS"; then
Packit d36e9b
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
Packit d36e9b
  fi
Packit d36e9b
Packit d36e9b
  # Extract list of available tagged configurations in $ofile.
Packit d36e9b
  # Note that this assumes the entire list is on one line.
Packit d36e9b
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
Packit d36e9b
Packit d36e9b
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Packit d36e9b
  for tagname in $tagnames; do
Packit d36e9b
    IFS="$lt_save_ifs"
Packit d36e9b
    # Check whether tagname contains only valid characters
Packit d36e9b
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
Packit d36e9b
    "") ;;
Packit d36e9b
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
Packit d36e9b
	;;
Packit d36e9b
    esac
Packit d36e9b
Packit d36e9b
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
Packit d36e9b
    then
Packit d36e9b
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
Packit d36e9b
    fi
Packit d36e9b
Packit d36e9b
    # Update the list of available tags.
Packit d36e9b
    if test -n "$tagname"; then
Packit d36e9b
      echo appending configuration tag \"$tagname\" to $ofile
Packit d36e9b
Packit d36e9b
      case $tagname in
Packit d36e9b
      CXX)
Packit d36e9b
	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
Packit d36e9b
	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
Packit d36e9b
	    (test "X$CXX" != "Xg++"))) ; then
Packit d36e9b
	  AC_LIBTOOL_LANG_CXX_CONFIG
Packit d36e9b
	else
Packit d36e9b
	  tagname=""
Packit d36e9b
	fi
Packit d36e9b
	;;
Packit d36e9b
Packit d36e9b
      F77)
Packit d36e9b
	if test -n "$F77" && test "X$F77" != "Xno"; then
Packit d36e9b
	  AC_LIBTOOL_LANG_F77_CONFIG
Packit d36e9b
	else
Packit d36e9b
	  tagname=""
Packit d36e9b
	fi
Packit d36e9b
	;;
Packit d36e9b
Packit d36e9b
      GCJ)
Packit d36e9b
	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Packit d36e9b
	  AC_LIBTOOL_LANG_GCJ_CONFIG
Packit d36e9b
	else
Packit d36e9b
	  tagname=""
Packit d36e9b
	fi
Packit d36e9b
	;;
Packit d36e9b
Packit d36e9b
      RC)
Packit d36e9b
	AC_LIBTOOL_LANG_RC_CONFIG
Packit d36e9b
	;;
Packit d36e9b
Packit d36e9b
      *)
Packit d36e9b
	AC_MSG_ERROR([Unsupported tag name: $tagname])
Packit d36e9b
	;;
Packit d36e9b
      esac
Packit d36e9b
Packit d36e9b
      # Append the new tag name to the list of available tags.
Packit d36e9b
      if test -n "$tagname" ; then
Packit d36e9b
      available_tags="$available_tags $tagname"
Packit d36e9b
    fi
Packit d36e9b
    fi
Packit d36e9b
  done
Packit d36e9b
  IFS="$lt_save_ifs"
Packit d36e9b
Packit d36e9b
  # Now substitute the updated list of available tags.
Packit d36e9b
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
Packit d36e9b
    mv "${ofile}T" "$ofile"
Packit d36e9b
    chmod +x "$ofile"
Packit d36e9b
  else
Packit d36e9b
    rm -f "${ofile}T"
Packit d36e9b
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
Packit d36e9b
  fi
Packit d36e9b
fi
Packit d36e9b
])# _LT_AC_TAGCONFIG
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBTOOL_DLOPEN
Packit d36e9b
# -----------------
Packit d36e9b
# enable checks for dlopen support
Packit d36e9b
AC_DEFUN([AC_LIBTOOL_DLOPEN],
Packit d36e9b
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
Packit d36e9b
])# AC_LIBTOOL_DLOPEN
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBTOOL_WIN32_DLL
Packit d36e9b
# --------------------
Packit d36e9b
# declare package support for building win32 DLLs
Packit d36e9b
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
Packit d36e9b
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
Packit d36e9b
])# AC_LIBTOOL_WIN32_DLL
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_ENABLE_SHARED([DEFAULT])
Packit d36e9b
# ---------------------------
Packit d36e9b
# implement the --enable-shared flag
Packit d36e9b
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
Packit d36e9b
AC_DEFUN([AC_ENABLE_SHARED],
Packit d36e9b
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
Packit d36e9b
AC_ARG_ENABLE([shared],
Packit d36e9b
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
Packit d36e9b
	[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
Packit d36e9b
    [p=${PACKAGE-default}
Packit d36e9b
    case $enableval in
Packit d36e9b
    yes) enable_shared=yes ;;
Packit d36e9b
    no) enable_shared=no ;;
Packit d36e9b
    *)
Packit d36e9b
      enable_shared=no
Packit d36e9b
      # Look at the argument we got.  We use all the common list separators.
Packit d36e9b
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Packit d36e9b
      for pkg in $enableval; do
Packit d36e9b
	IFS="$lt_save_ifs"
Packit d36e9b
	if test "X$pkg" = "X$p"; then
Packit d36e9b
	  enable_shared=yes
Packit d36e9b
	fi
Packit d36e9b
      done
Packit d36e9b
      IFS="$lt_save_ifs"
Packit d36e9b
      ;;
Packit d36e9b
    esac],
Packit d36e9b
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
Packit d36e9b
])# AC_ENABLE_SHARED
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_DISABLE_SHARED
Packit d36e9b
# -----------------
Packit d36e9b
# set the default shared flag to --disable-shared
Packit d36e9b
AC_DEFUN([AC_DISABLE_SHARED],
Packit d36e9b
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
Packit d36e9b
AC_ENABLE_SHARED(no)
Packit d36e9b
])# AC_DISABLE_SHARED
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_ENABLE_STATIC([DEFAULT])
Packit d36e9b
# ---------------------------
Packit d36e9b
# implement the --enable-static flag
Packit d36e9b
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
Packit d36e9b
AC_DEFUN([AC_ENABLE_STATIC],
Packit d36e9b
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
Packit d36e9b
AC_ARG_ENABLE([static],
Packit d36e9b
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
Packit d36e9b
	[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
Packit d36e9b
    [p=${PACKAGE-default}
Packit d36e9b
    case $enableval in
Packit d36e9b
    yes) enable_static=yes ;;
Packit d36e9b
    no) enable_static=no ;;
Packit d36e9b
    *)
Packit d36e9b
     enable_static=no
Packit d36e9b
      # Look at the argument we got.  We use all the common list separators.
Packit d36e9b
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Packit d36e9b
      for pkg in $enableval; do
Packit d36e9b
	IFS="$lt_save_ifs"
Packit d36e9b
	if test "X$pkg" = "X$p"; then
Packit d36e9b
	  enable_static=yes
Packit d36e9b
	fi
Packit d36e9b
      done
Packit d36e9b
      IFS="$lt_save_ifs"
Packit d36e9b
      ;;
Packit d36e9b
    esac],
Packit d36e9b
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
Packit d36e9b
])# AC_ENABLE_STATIC
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_DISABLE_STATIC
Packit d36e9b
# -----------------
Packit d36e9b
# set the default static flag to --disable-static
Packit d36e9b
AC_DEFUN([AC_DISABLE_STATIC],
Packit d36e9b
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
Packit d36e9b
AC_ENABLE_STATIC(no)
Packit d36e9b
])# AC_DISABLE_STATIC
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_ENABLE_FAST_INSTALL([DEFAULT])
Packit d36e9b
# ---------------------------------
Packit d36e9b
# implement the --enable-fast-install flag
Packit d36e9b
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
Packit d36e9b
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
Packit d36e9b
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
Packit d36e9b
AC_ARG_ENABLE([fast-install],
Packit d36e9b
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
Packit d36e9b
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
Packit d36e9b
    [p=${PACKAGE-default}
Packit d36e9b
    case $enableval in
Packit d36e9b
    yes) enable_fast_install=yes ;;
Packit d36e9b
    no) enable_fast_install=no ;;
Packit d36e9b
    *)
Packit d36e9b
      enable_fast_install=no
Packit d36e9b
      # Look at the argument we got.  We use all the common list separators.
Packit d36e9b
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
Packit d36e9b
      for pkg in $enableval; do
Packit d36e9b
	IFS="$lt_save_ifs"
Packit d36e9b
	if test "X$pkg" = "X$p"; then
Packit d36e9b
	  enable_fast_install=yes
Packit d36e9b
	fi
Packit d36e9b
      done
Packit d36e9b
      IFS="$lt_save_ifs"
Packit d36e9b
      ;;
Packit d36e9b
    esac],
Packit d36e9b
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
Packit d36e9b
])# AC_ENABLE_FAST_INSTALL
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_DISABLE_FAST_INSTALL
Packit d36e9b
# -----------------------
Packit d36e9b
# set the default to --disable-fast-install
Packit d36e9b
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
Packit d36e9b
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
Packit d36e9b
AC_ENABLE_FAST_INSTALL(no)
Packit d36e9b
])# AC_DISABLE_FAST_INSTALL
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBTOOL_PICMODE([MODE])
Packit d36e9b
# --------------------------
Packit d36e9b
# implement the --with-pic flag
Packit d36e9b
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
Packit d36e9b
AC_DEFUN([AC_LIBTOOL_PICMODE],
Packit d36e9b
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
Packit d36e9b
pic_mode=ifelse($#,1,$1,default)
Packit d36e9b
])# AC_LIBTOOL_PICMODE
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_PROG_EGREP
Packit d36e9b
# -------------
Packit d36e9b
# This is predefined starting with Autoconf 2.54, so this conditional
Packit d36e9b
# definition can be removed once we require Autoconf 2.54 or later.
Packit d36e9b
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
Packit d36e9b
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
Packit d36e9b
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
Packit d36e9b
    then ac_cv_prog_egrep='grep -E'
Packit d36e9b
    else ac_cv_prog_egrep='egrep'
Packit d36e9b
    fi])
Packit d36e9b
 EGREP=$ac_cv_prog_egrep
Packit d36e9b
 AC_SUBST([EGREP])
Packit d36e9b
])])
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_PATH_TOOL_PREFIX
Packit d36e9b
# -------------------
Packit d36e9b
# find a file program which can recognise shared library
Packit d36e9b
AC_DEFUN([AC_PATH_TOOL_PREFIX],
Packit d36e9b
[AC_REQUIRE([AC_PROG_EGREP])dnl
Packit d36e9b
AC_MSG_CHECKING([for $1])
Packit d36e9b
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
Packit d36e9b
[case $MAGIC_CMD in
Packit d36e9b
[[\\/*] |  ?:[\\/]*])
Packit d36e9b
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
Packit d36e9b
  ;;
Packit d36e9b
*)
Packit d36e9b
  lt_save_MAGIC_CMD="$MAGIC_CMD"
Packit d36e9b
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Packit d36e9b
dnl $ac_dummy forces splitting on constant user-supplied paths.
Packit d36e9b
dnl POSIX.2 word splitting is done only on the output of word expansions,
Packit d36e9b
dnl not every word.  This closes a longstanding sh security hole.
Packit d36e9b
  ac_dummy="ifelse([$2], , $PATH, [$2])"
Packit d36e9b
  for ac_dir in $ac_dummy; do
Packit d36e9b
    IFS="$lt_save_ifs"
Packit d36e9b
    test -z "$ac_dir" && ac_dir=.
Packit d36e9b
    if test -f $ac_dir/$1; then
Packit d36e9b
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
Packit d36e9b
      if test -n "$file_magic_test_file"; then
Packit d36e9b
	case $deplibs_check_method in
Packit d36e9b
	"file_magic "*)
Packit d36e9b
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Packit d36e9b
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Packit d36e9b
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
Packit d36e9b
	    $EGREP "$file_magic_regex" > /dev/null; then
Packit d36e9b
	    :
Packit d36e9b
	  else
Packit d36e9b
	    cat <<EOF 1>&2
Packit d36e9b
Packit d36e9b
*** Warning: the command libtool uses to detect shared libraries,
Packit d36e9b
*** $file_magic_cmd, produces output that libtool cannot recognize.
Packit d36e9b
*** The result is that libtool may fail to recognize shared libraries
Packit d36e9b
*** as such.  This will affect the creation of libtool libraries that
Packit d36e9b
*** depend on shared libraries, but programs linked with such libtool
Packit d36e9b
*** libraries will work regardless of this problem.  Nevertheless, you
Packit d36e9b
*** may want to report the problem to your system manager and/or to
Packit d36e9b
*** bug-libtool@gnu.org
Packit d36e9b
Packit d36e9b
EOF
Packit d36e9b
	  fi ;;
Packit d36e9b
	esac
Packit d36e9b
      fi
Packit d36e9b
      break
Packit d36e9b
    fi
Packit d36e9b
  done
Packit d36e9b
  IFS="$lt_save_ifs"
Packit d36e9b
  MAGIC_CMD="$lt_save_MAGIC_CMD"
Packit d36e9b
  ;;
Packit d36e9b
esac])
Packit d36e9b
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
Packit d36e9b
if test -n "$MAGIC_CMD"; then
Packit d36e9b
  AC_MSG_RESULT($MAGIC_CMD)
Packit d36e9b
else
Packit d36e9b
  AC_MSG_RESULT(no)
Packit d36e9b
fi
Packit d36e9b
])# AC_PATH_TOOL_PREFIX
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_PATH_MAGIC
Packit d36e9b
# -------------
Packit d36e9b
# find a file program which can recognise a shared library
Packit d36e9b
AC_DEFUN([AC_PATH_MAGIC],
Packit d36e9b
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
Packit d36e9b
if test -z "$lt_cv_path_MAGIC_CMD"; then
Packit d36e9b
  if test -n "$ac_tool_prefix"; then
Packit d36e9b
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
Packit d36e9b
  else
Packit d36e9b
    MAGIC_CMD=:
Packit d36e9b
  fi
Packit d36e9b
fi
Packit d36e9b
])# AC_PATH_MAGIC
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_PROG_LD
Packit d36e9b
# ----------
Packit d36e9b
# find the pathname to the GNU or non-GNU linker
Packit d36e9b
AC_DEFUN([AC_PROG_LD],
Packit d36e9b
[AC_ARG_WITH([gnu-ld],
Packit d36e9b
    [AC_HELP_STRING([--with-gnu-ld],
Packit d36e9b
	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
Packit d36e9b
    [test "$withval" = no || with_gnu_ld=yes],
Packit d36e9b
    [with_gnu_ld=no])
Packit d36e9b
AC_REQUIRE([LT_AC_PROG_SED])dnl
Packit d36e9b
AC_REQUIRE([AC_PROG_CC])dnl
Packit d36e9b
AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit d36e9b
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
Packit d36e9b
ac_prog=ld
Packit d36e9b
if test "$GCC" = yes; then
Packit d36e9b
  # Check if gcc -print-prog-name=ld gives a path.
Packit d36e9b
  AC_MSG_CHECKING([for ld used by $CC])
Packit d36e9b
  case $host in
Packit d36e9b
  *-*-mingw*)
Packit d36e9b
    # gcc leaves a trailing carriage return which upsets mingw
Packit d36e9b
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Packit d36e9b
  *)
Packit d36e9b
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
Packit d36e9b
  esac
Packit d36e9b
  case $ac_prog in
Packit d36e9b
    # Accept absolute paths.
Packit d36e9b
    [[\\/]]* | ?:[[\\/]]*)
Packit d36e9b
      re_direlt='/[[^/]][[^/]]*/\.\./'
Packit d36e9b
      # Canonicalize the pathname of ld
Packit d36e9b
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
Packit d36e9b
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
Packit d36e9b
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
Packit d36e9b
      done
Packit d36e9b
      test -z "$LD" && LD="$ac_prog"
Packit d36e9b
      ;;
Packit d36e9b
  "")
Packit d36e9b
    # If it fails, then pretend we aren't using GCC.
Packit d36e9b
    ac_prog=ld
Packit d36e9b
    ;;
Packit d36e9b
  *)
Packit d36e9b
    # If it is relative, then search for the first ld in PATH.
Packit d36e9b
    with_gnu_ld=unknown
Packit d36e9b
    ;;
Packit d36e9b
  esac
Packit d36e9b
elif test "$with_gnu_ld" = yes; then
Packit d36e9b
  AC_MSG_CHECKING([for GNU ld])
Packit d36e9b
else
Packit d36e9b
  AC_MSG_CHECKING([for non-GNU ld])
Packit d36e9b
fi
Packit d36e9b
AC_CACHE_VAL(lt_cv_path_LD,
Packit d36e9b
[if test -z "$LD"; then
Packit d36e9b
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Packit d36e9b
  for ac_dir in $PATH; do
Packit d36e9b
    IFS="$lt_save_ifs"
Packit d36e9b
    test -z "$ac_dir" && ac_dir=.
Packit d36e9b
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Packit d36e9b
      lt_cv_path_LD="$ac_dir/$ac_prog"
Packit d36e9b
      # Check to see if the program is GNU ld.  I'd rather use --version,
Packit d36e9b
      # but apparently some variants of GNU ld only accept -v.
Packit d36e9b
      # Break only if it was the GNU/non-GNU ld that we prefer.
Packit d36e9b
      case `"$lt_cv_path_LD" -v 2>&1 
Packit d36e9b
      *GNU* | *'with BFD'*)
Packit d36e9b
	test "$with_gnu_ld" != no && break
Packit d36e9b
	;;
Packit d36e9b
      *)
Packit d36e9b
	test "$with_gnu_ld" != yes && break
Packit d36e9b
	;;
Packit d36e9b
      esac
Packit d36e9b
    fi
Packit d36e9b
  done
Packit d36e9b
  IFS="$lt_save_ifs"
Packit d36e9b
else
Packit d36e9b
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
Packit d36e9b
fi])
Packit d36e9b
LD="$lt_cv_path_LD"
Packit d36e9b
if test -n "$LD"; then
Packit d36e9b
  AC_MSG_RESULT($LD)
Packit d36e9b
else
Packit d36e9b
  AC_MSG_RESULT(no)
Packit d36e9b
fi
Packit d36e9b
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
Packit d36e9b
AC_PROG_LD_GNU
Packit d36e9b
])# AC_PROG_LD
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_PROG_LD_GNU
Packit d36e9b
# --------------
Packit d36e9b
AC_DEFUN([AC_PROG_LD_GNU],
Packit d36e9b
[AC_REQUIRE([AC_PROG_EGREP])dnl
Packit d36e9b
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
Packit d36e9b
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
Packit d36e9b
case `$LD -v 2>&1 
Packit d36e9b
*GNU* | *'with BFD'*)
Packit d36e9b
  lt_cv_prog_gnu_ld=yes
Packit d36e9b
  ;;
Packit d36e9b
*)
Packit d36e9b
  lt_cv_prog_gnu_ld=no
Packit d36e9b
  ;;
Packit d36e9b
esac])
Packit d36e9b
with_gnu_ld=$lt_cv_prog_gnu_ld
Packit d36e9b
])# AC_PROG_LD_GNU
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_PROG_LD_RELOAD_FLAG
Packit d36e9b
# ----------------------
Packit d36e9b
# find reload flag for linker
Packit d36e9b
#   -- PORTME Some linkers may need a different reload flag.
Packit d36e9b
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
Packit d36e9b
[AC_CACHE_CHECK([for $LD option to reload object files],
Packit d36e9b
  lt_cv_ld_reload_flag,
Packit d36e9b
  [lt_cv_ld_reload_flag='-r'])
Packit d36e9b
reload_flag=$lt_cv_ld_reload_flag
Packit d36e9b
case $reload_flag in
Packit d36e9b
"" | " "*) ;;
Packit d36e9b
*) reload_flag=" $reload_flag" ;;
Packit d36e9b
esac
Packit d36e9b
reload_cmds='$LD$reload_flag -o $output$reload_objs'
Packit d36e9b
case $host_os in
Packit d36e9b
  darwin*)
Packit d36e9b
    if test "$GCC" = yes; then
Packit d36e9b
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
Packit d36e9b
    else
Packit d36e9b
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
Packit d36e9b
    fi
Packit d36e9b
    ;;
Packit d36e9b
esac
Packit d36e9b
])# AC_PROG_LD_RELOAD_FLAG
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_DEPLIBS_CHECK_METHOD
Packit d36e9b
# -----------------------
Packit d36e9b
# how to check for library dependencies
Packit d36e9b
#  -- PORTME fill in with the dynamic library characteristics
Packit d36e9b
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
Packit d36e9b
[AC_CACHE_CHECK([how to recognise dependent libraries],
Packit d36e9b
lt_cv_deplibs_check_method,
Packit d36e9b
[lt_cv_file_magic_cmd='$MAGIC_CMD'
Packit d36e9b
lt_cv_file_magic_test_file=
Packit d36e9b
lt_cv_deplibs_check_method='unknown'
Packit d36e9b
# Need to set the preceding variable on all platforms that support
Packit d36e9b
# interlibrary dependencies.
Packit d36e9b
# 'none' -- dependencies not supported.
Packit d36e9b
# `unknown' -- same as none, but documents that we really don't know.
Packit d36e9b
# 'pass_all' -- all dependencies passed with no checks.
Packit d36e9b
# 'test_compile' -- check by making test program.
Packit d36e9b
# 'file_magic [[regex]]' -- check by looking for files in library path
Packit d36e9b
# which responds to the $file_magic_cmd with a given extended regex.
Packit d36e9b
# If you have `file' or equivalent on your system and you're not sure
Packit d36e9b
# whether `pass_all' will *always* work, you probably want this one.
Packit d36e9b
Packit d36e9b
case $host_os in
Packit d36e9b
aix4* | aix5*)
Packit d36e9b
  lt_cv_deplibs_check_method=pass_all
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
beos*)
Packit d36e9b
  lt_cv_deplibs_check_method=pass_all
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
bsdi[[45]]*)
Packit d36e9b
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
Packit d36e9b
  lt_cv_file_magic_cmd='/usr/bin/file -L'
Packit d36e9b
  lt_cv_file_magic_test_file=/shlib/libc.so
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
cygwin*)
Packit d36e9b
  # func_win32_libid is a shell function defined in ltmain.sh
Packit d36e9b
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Packit d36e9b
  lt_cv_file_magic_cmd='func_win32_libid'
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
mingw* | pw32*)
Packit d36e9b
  # Base MSYS/MinGW do not provide the 'file' command needed by
Packit d36e9b
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
Packit d36e9b
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
Packit d36e9b
  lt_cv_file_magic_cmd='$OBJDUMP -f'
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
darwin* | rhapsody*)
Packit d36e9b
  lt_cv_deplibs_check_method=pass_all
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
freebsd* | kfreebsd*-gnu | dragonfly*)
Packit d36e9b
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
Packit d36e9b
    case $host_cpu in
Packit d36e9b
    i*86 )
Packit d36e9b
      # Not sure whether the presence of OpenBSD here was a mistake.
Packit d36e9b
      # Let's accept both of them until this is cleared up.
Packit d36e9b
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
Packit d36e9b
      lt_cv_file_magic_cmd=/usr/bin/file
Packit d36e9b
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
Packit d36e9b
      ;;
Packit d36e9b
    esac
Packit d36e9b
  else
Packit d36e9b
    lt_cv_deplibs_check_method=pass_all
Packit d36e9b
  fi
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
gnu*)
Packit d36e9b
  lt_cv_deplibs_check_method=pass_all
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
hpux10.20* | hpux11*)
Packit d36e9b
  lt_cv_file_magic_cmd=/usr/bin/file
Packit d36e9b
  case $host_cpu in
Packit d36e9b
  ia64*)
Packit d36e9b
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
Packit d36e9b
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
Packit d36e9b
    ;;
Packit d36e9b
  hppa*64*)
Packit d36e9b
    [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]']
Packit d36e9b
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
Packit d36e9b
    ;;
Packit d36e9b
  *)
Packit d36e9b
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
Packit d36e9b
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
Packit d36e9b
    ;;
Packit d36e9b
  esac
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
interix3*)
Packit d36e9b
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
Packit d36e9b
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
irix5* | irix6* | nonstopux*)
Packit d36e9b
  case $LD in
Packit d36e9b
  *-32|*"-32 ") libmagic=32-bit;;
Packit d36e9b
  *-n32|*"-n32 ") libmagic=N32;;
Packit d36e9b
  *-64|*"-64 ") libmagic=64-bit;;
Packit d36e9b
  *) libmagic=never-match;;
Packit d36e9b
  esac
Packit d36e9b
  lt_cv_deplibs_check_method=pass_all
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
# This must be Linux ELF.
Packit d36e9b
linux*)
Packit d36e9b
  lt_cv_deplibs_check_method=pass_all
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
netbsd*)
Packit d36e9b
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
Packit d36e9b
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
Packit d36e9b
  else
Packit d36e9b
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
Packit d36e9b
  fi
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
newos6*)
Packit d36e9b
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
Packit d36e9b
  lt_cv_file_magic_cmd=/usr/bin/file
Packit d36e9b
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
nto-qnx*)
Packit d36e9b
  lt_cv_deplibs_check_method=unknown
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
openbsd*)
Packit d36e9b
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Packit d36e9b
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
Packit d36e9b
  else
Packit d36e9b
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
Packit d36e9b
  fi
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
osf3* | osf4* | osf5*)
Packit d36e9b
  lt_cv_deplibs_check_method=pass_all
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
solaris*)
Packit d36e9b
  lt_cv_deplibs_check_method=pass_all
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
sysv4 | sysv4.3*)
Packit d36e9b
  case $host_vendor in
Packit d36e9b
  motorola)
Packit d36e9b
    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]]'
Packit d36e9b
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
Packit d36e9b
    ;;
Packit d36e9b
  ncr)
Packit d36e9b
    lt_cv_deplibs_check_method=pass_all
Packit d36e9b
    ;;
Packit d36e9b
  sequent)
Packit d36e9b
    lt_cv_file_magic_cmd='/bin/file'
Packit d36e9b
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
Packit d36e9b
    ;;
Packit d36e9b
  sni)
Packit d36e9b
    lt_cv_file_magic_cmd='/bin/file'
Packit d36e9b
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
Packit d36e9b
    lt_cv_file_magic_test_file=/lib/libc.so
Packit d36e9b
    ;;
Packit d36e9b
  siemens)
Packit d36e9b
    lt_cv_deplibs_check_method=pass_all
Packit d36e9b
    ;;
Packit d36e9b
  pc)
Packit d36e9b
    lt_cv_deplibs_check_method=pass_all
Packit d36e9b
    ;;
Packit d36e9b
  esac
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Packit d36e9b
  lt_cv_deplibs_check_method=pass_all
Packit d36e9b
  ;;
Packit d36e9b
esac
Packit d36e9b
])
Packit d36e9b
file_magic_cmd=$lt_cv_file_magic_cmd
Packit d36e9b
deplibs_check_method=$lt_cv_deplibs_check_method
Packit d36e9b
test -z "$deplibs_check_method" && deplibs_check_method=unknown
Packit d36e9b
])# AC_DEPLIBS_CHECK_METHOD
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_PROG_NM
Packit d36e9b
# ----------
Packit d36e9b
# find the pathname to a BSD-compatible name lister
Packit d36e9b
AC_DEFUN([AC_PROG_NM],
Packit d36e9b
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
Packit d36e9b
[if test -n "$NM"; then
Packit d36e9b
  # Let the user override the test.
Packit d36e9b
  lt_cv_path_NM="$NM"
Packit d36e9b
else
Packit d36e9b
  lt_nm_to_check="${ac_tool_prefix}nm"
Packit d36e9b
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
Packit d36e9b
    lt_nm_to_check="$lt_nm_to_check nm"
Packit d36e9b
  fi
Packit d36e9b
  for lt_tmp_nm in $lt_nm_to_check; do
Packit d36e9b
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Packit d36e9b
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Packit d36e9b
      IFS="$lt_save_ifs"
Packit d36e9b
      test -z "$ac_dir" && ac_dir=.
Packit d36e9b
      tmp_nm="$ac_dir/$lt_tmp_nm"
Packit d36e9b
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
Packit d36e9b
	# Check to see if the nm accepts a BSD-compat flag.
Packit d36e9b
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
Packit d36e9b
	#   nm: unknown option "B" ignored
Packit d36e9b
	# Tru64's nm complains that /dev/null is an invalid object file
Packit d36e9b
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
Packit d36e9b
	*/dev/null* | *'Invalid file or object type'*)
Packit d36e9b
	  lt_cv_path_NM="$tmp_nm -B"
Packit d36e9b
	  break
Packit d36e9b
	  ;;
Packit d36e9b
	*)
Packit d36e9b
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
Packit d36e9b
	  */dev/null*)
Packit d36e9b
	    lt_cv_path_NM="$tmp_nm -p"
Packit d36e9b
	    break
Packit d36e9b
	    ;;
Packit d36e9b
	  *)
Packit d36e9b
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
Packit d36e9b
	    continue # so that we can try to find one that supports BSD flags
Packit d36e9b
	    ;;
Packit d36e9b
	  esac
Packit d36e9b
	  ;;
Packit d36e9b
	esac
Packit d36e9b
      fi
Packit d36e9b
    done
Packit d36e9b
    IFS="$lt_save_ifs"
Packit d36e9b
  done
Packit d36e9b
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
Packit d36e9b
fi])
Packit d36e9b
NM="$lt_cv_path_NM"
Packit d36e9b
])# AC_PROG_NM
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_CHECK_LIBM
Packit d36e9b
# -------------
Packit d36e9b
# check for math library
Packit d36e9b
AC_DEFUN([AC_CHECK_LIBM],
Packit d36e9b
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
Packit d36e9b
LIBM=
Packit d36e9b
case $host in
Packit d36e9b
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
Packit d36e9b
  # These system don't have libm, or don't need it
Packit d36e9b
  ;;
Packit d36e9b
*-ncr-sysv4.3*)
Packit d36e9b
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
Packit d36e9b
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
Packit d36e9b
  ;;
Packit d36e9b
*)
Packit d36e9b
  AC_CHECK_LIB(m, cos, LIBM="-lm")
Packit d36e9b
  ;;
Packit d36e9b
esac
Packit d36e9b
])# AC_CHECK_LIBM
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
Packit d36e9b
# -----------------------------------
Packit d36e9b
# sets LIBLTDL to the link flags for the libltdl convenience library and
Packit d36e9b
# LTDLINCL to the include flags for the libltdl header and adds
Packit d36e9b
# --enable-ltdl-convenience to the configure arguments.  Note that
Packit d36e9b
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
Packit d36e9b
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
Packit d36e9b
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
Packit d36e9b
# (note the single quotes!).  If your package is not flat and you're not
Packit d36e9b
# using automake, define top_builddir and top_srcdir appropriately in
Packit d36e9b
# the Makefiles.
Packit d36e9b
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
Packit d36e9b
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
Packit d36e9b
  case $enable_ltdl_convenience in
Packit d36e9b
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
Packit d36e9b
  "") enable_ltdl_convenience=yes
Packit d36e9b
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
Packit d36e9b
  esac
Packit d36e9b
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
Packit d36e9b
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
Packit d36e9b
  # For backwards non-gettext consistent compatibility...
Packit d36e9b
  INCLTDL="$LTDLINCL"
Packit d36e9b
])# AC_LIBLTDL_CONVENIENCE
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
Packit d36e9b
# -----------------------------------
Packit d36e9b
# sets LIBLTDL to the link flags for the libltdl installable library and
Packit d36e9b
# LTDLINCL to the include flags for the libltdl header and adds
Packit d36e9b
# --enable-ltdl-install to the configure arguments.  Note that
Packit d36e9b
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
Packit d36e9b
# and an installed libltdl is not found, it is assumed to be `libltdl'.
Packit d36e9b
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
Packit d36e9b
# '${top_srcdir}/' (note the single quotes!).  If your package is not
Packit d36e9b
# flat and you're not using automake, define top_builddir and top_srcdir
Packit d36e9b
# appropriately in the Makefiles.
Packit d36e9b
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
Packit d36e9b
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
Packit d36e9b
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
Packit d36e9b
  AC_CHECK_LIB(ltdl, lt_dlinit,
Packit d36e9b
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
Packit d36e9b
  [if test x"$enable_ltdl_install" = xno; then
Packit d36e9b
     AC_MSG_WARN([libltdl not installed, but installation disabled])
Packit d36e9b
   else
Packit d36e9b
     enable_ltdl_install=yes
Packit d36e9b
   fi
Packit d36e9b
  ])
Packit d36e9b
  if test x"$enable_ltdl_install" = x"yes"; then
Packit d36e9b
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
Packit d36e9b
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
Packit d36e9b
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
Packit d36e9b
  else
Packit d36e9b
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
Packit d36e9b
    LIBLTDL="-lltdl"
Packit d36e9b
    LTDLINCL=
Packit d36e9b
  fi
Packit d36e9b
  # For backwards non-gettext consistent compatibility...
Packit d36e9b
  INCLTDL="$LTDLINCL"
Packit d36e9b
])# AC_LIBLTDL_INSTALLABLE
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBTOOL_CXX
Packit d36e9b
# --------------
Packit d36e9b
# enable support for C++ libraries
Packit d36e9b
AC_DEFUN([AC_LIBTOOL_CXX],
Packit d36e9b
[AC_REQUIRE([_LT_AC_LANG_CXX])
Packit d36e9b
])# AC_LIBTOOL_CXX
Packit d36e9b
Packit d36e9b
Packit d36e9b
# _LT_AC_LANG_CXX
Packit d36e9b
# ---------------
Packit d36e9b
AC_DEFUN([_LT_AC_LANG_CXX],
Packit d36e9b
[AC_REQUIRE([AC_PROG_CXX])
Packit d36e9b
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
Packit d36e9b
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
Packit d36e9b
])# _LT_AC_LANG_CXX
Packit d36e9b
Packit d36e9b
# _LT_AC_PROG_CXXCPP
Packit d36e9b
# ------------------
Packit d36e9b
AC_DEFUN([_LT_AC_PROG_CXXCPP],
Packit d36e9b
[
Packit d36e9b
AC_REQUIRE([AC_PROG_CXX])
Packit d36e9b
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
Packit d36e9b
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
Packit d36e9b
    (test "X$CXX" != "Xg++"))) ; then
Packit d36e9b
  AC_PROG_CXXCPP
Packit d36e9b
fi
Packit d36e9b
])# _LT_AC_PROG_CXXCPP
Packit d36e9b
Packit d36e9b
# AC_LIBTOOL_F77
Packit d36e9b
# --------------
Packit d36e9b
# enable support for Fortran 77 libraries
Packit d36e9b
AC_DEFUN([AC_LIBTOOL_F77],
Packit d36e9b
[AC_REQUIRE([_LT_AC_LANG_F77])
Packit d36e9b
])# AC_LIBTOOL_F77
Packit d36e9b
Packit d36e9b
Packit d36e9b
# _LT_AC_LANG_F77
Packit d36e9b
# ---------------
Packit d36e9b
AC_DEFUN([_LT_AC_LANG_F77],
Packit d36e9b
[AC_REQUIRE([AC_PROG_F77])
Packit d36e9b
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
Packit d36e9b
])# _LT_AC_LANG_F77
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBTOOL_GCJ
Packit d36e9b
# --------------
Packit d36e9b
# enable support for GCJ libraries
Packit d36e9b
AC_DEFUN([AC_LIBTOOL_GCJ],
Packit d36e9b
[AC_REQUIRE([_LT_AC_LANG_GCJ])
Packit d36e9b
])# AC_LIBTOOL_GCJ
Packit d36e9b
Packit d36e9b
Packit d36e9b
# _LT_AC_LANG_GCJ
Packit d36e9b
# ---------------
Packit d36e9b
AC_DEFUN([_LT_AC_LANG_GCJ],
Packit d36e9b
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
Packit d36e9b
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
Packit d36e9b
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
Packit d36e9b
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
Packit d36e9b
	 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
Packit d36e9b
	   [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
Packit d36e9b
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
Packit d36e9b
])# _LT_AC_LANG_GCJ
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBTOOL_RC
Packit d36e9b
# -------------
Packit d36e9b
# enable support for Windows resource files
Packit d36e9b
AC_DEFUN([AC_LIBTOOL_RC],
Packit d36e9b
[AC_REQUIRE([LT_AC_PROG_RC])
Packit d36e9b
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
Packit d36e9b
])# AC_LIBTOOL_RC
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBTOOL_LANG_C_CONFIG
Packit d36e9b
# ------------------------
Packit d36e9b
# Ensure that the configuration vars for the C compiler are
Packit d36e9b
# suitably defined.  Those variables are subsequently used by
Packit d36e9b
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
Packit d36e9b
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
Packit d36e9b
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
Packit d36e9b
[lt_save_CC="$CC"
Packit d36e9b
AC_LANG_PUSH(C)
Packit d36e9b
Packit d36e9b
# Source file extension for C test sources.
Packit d36e9b
ac_ext=c
Packit d36e9b
Packit d36e9b
# Object file extension for compiled C test sources.
Packit d36e9b
objext=o
Packit d36e9b
_LT_AC_TAGVAR(objext, $1)=$objext
Packit d36e9b
Packit d36e9b
# Code to be used in simple compile tests
Packit d36e9b
lt_simple_compile_test_code="int some_variable = 0;\n"
Packit d36e9b
Packit d36e9b
# Code to be used in simple link tests
Packit d36e9b
lt_simple_link_test_code='int main(){return(0);}\n'
Packit d36e9b
Packit d36e9b
_LT_AC_SYS_COMPILER
Packit d36e9b
Packit d36e9b
# save warnings/boilerplate of simple test code
Packit d36e9b
_LT_COMPILER_BOILERPLATE
Packit d36e9b
_LT_LINKER_BOILERPLATE
Packit d36e9b
Packit d36e9b
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
Packit d36e9b
AC_LIBTOOL_PROG_COMPILER_PIC($1)
Packit d36e9b
AC_LIBTOOL_PROG_CC_C_O($1)
Packit d36e9b
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
Packit d36e9b
AC_LIBTOOL_PROG_LD_SHLIBS($1)
Packit d36e9b
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
Packit d36e9b
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
Packit d36e9b
AC_LIBTOOL_SYS_LIB_STRIP
Packit d36e9b
AC_LIBTOOL_DLOPEN_SELF
Packit d36e9b
Packit d36e9b
# Report which library types will actually be built
Packit d36e9b
AC_MSG_CHECKING([if libtool supports shared libraries])
Packit d36e9b
AC_MSG_RESULT([$can_build_shared])
Packit d36e9b
Packit d36e9b
AC_MSG_CHECKING([whether to build shared libraries])
Packit d36e9b
test "$can_build_shared" = "no" && enable_shared=no
Packit d36e9b
Packit d36e9b
# On AIX, shared libraries and static libraries use the same namespace, and
Packit d36e9b
# are all built from PIC.
Packit d36e9b
case $host_os in
Packit d36e9b
aix3*)
Packit d36e9b
  test "$enable_shared" = yes && enable_static=no
Packit d36e9b
  if test -n "$RANLIB"; then
Packit d36e9b
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
Packit d36e9b
    postinstall_cmds='$RANLIB $lib'
Packit d36e9b
  fi
Packit d36e9b
  ;;
Packit d36e9b
Packit d36e9b
aix4* | aix5*)
Packit d36e9b
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
Packit d36e9b
    test "$enable_shared" = yes && enable_static=no
Packit d36e9b
  fi
Packit d36e9b
    ;;
Packit d36e9b
esac
Packit d36e9b
AC_MSG_RESULT([$enable_shared])
Packit d36e9b
Packit d36e9b
AC_MSG_CHECKING([whether to build static libraries])
Packit d36e9b
# Make sure either enable_shared or enable_static is yes.
Packit d36e9b
test "$enable_shared" = yes || enable_static=yes
Packit d36e9b
AC_MSG_RESULT([$enable_static])
Packit d36e9b
Packit d36e9b
AC_LIBTOOL_CONFIG($1)
Packit d36e9b
Packit d36e9b
AC_LANG_POP
Packit d36e9b
CC="$lt_save_CC"
Packit d36e9b
])# AC_LIBTOOL_LANG_C_CONFIG
Packit d36e9b
Packit d36e9b
Packit d36e9b
# AC_LIBTOOL_LANG_CXX_CONFIG
Packit d36e9b
# --------------------------
Packit d36e9b
# Ensure that the configuration vars for the C compiler are
Packit d36e9b
# suitably defined.  Those variables are subsequently used by
Packit d36e9b
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
Packit d36e9b
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
Packit d36e9b
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
Packit d36e9b
[AC_LANG_PUSH(C++)
Packit d36e9b
AC_REQUIRE([AC_PROG_CXX])
Packit d36e9b
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
Packit d36e9b
Packit d36e9b
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
Packit d36e9b
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
Packit d36e9b
_LT_AC_TAGVAR(always_export_symbols, $1)=no
Packit d36e9b
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
Packit d36e9b
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
Packit d36e9b
_LT_AC_TAGVAR(hardcode_direct, $1)=no
Packit d36e9b
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
Packit d36e9b
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
Packit d36e9b
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
Packit d36e9b
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
Packit d36e9b
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
Packit d36e9b
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
Packit d36e9b
_LT_AC_TAGVAR(module_cmds, $1)=
Packit d36e9b
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
Packit d36e9b
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
Packit d36e9b
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
Packit d36e9b
_LT_AC_TAGVAR(no_undefined_flag, $1)=
Packit d36e9b
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
Packit d36e9b
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
Packit d36e9b
Packit d36e9b
# Dependencies to place before and after the object being linked:
Packit d36e9b
_LT_AC_TAGVAR(predep_objects, $1)=
Packit d36e9b
_LT_AC_TAGVAR(postdep_objects, $1)=
Packit d36e9b
_LT_AC_TAGVAR(predeps, $1)=
Packit d36e9b
_LT_AC_TAGVAR(postdeps, $1)=
Packit d36e9b
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
Packit d36e9b
Packit d36e9b
# Source file extension for C++ test sources.
Packit d36e9b
ac_ext=cpp
Packit d36e9b
Packit d36e9b
# Object file extension for compiled C++ test sources.
Packit d36e9b
objext=o
Packit d36e9b
_LT_AC_TAGVAR(objext, $1)=$objext
Packit d36e9b
Packit d36e9b
# Code to be used in simple compile tests
Packit d36e9b
lt_simple_compile_test_code="int some_variable = 0;\n"
Packit d36e9b
Packit d36e9b
# Code to be used in simple link tests
Packit d36e9b
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
Packit d36e9b
Packit d36e9b
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
Packit d36e9b
_LT_AC_SYS_COMPILER
Packit d36e9b
Packit d36e9b
# save warnings/boilerplate of simple test code
Packit d36e9b
_LT_COMPILER_BOILERPLATE
Packit d36e9b
_LT_LINKER_BOILERPLATE
Packit d36e9b
Packit d36e9b
# Allow CC to be a program name with arguments.
Packit d36e9b
lt_save_CC=$CC
Packit d36e9b
lt_save_LD=$LD
Packit d36e9b
lt_save_GCC=$GCC
Packit d36e9b
GCC=$GXX
Packit d36e9b
lt_save_with_gnu_ld=$with_gnu_ld
Packit d36e9b
lt_save_path_LD=$lt_cv_path_LD
Packit d36e9b
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
Packit d36e9b
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
Packit d36e9b
else
Packit d36e9b
  $as_unset lt_cv_prog_gnu_ld
Packit d36e9b
fi
Packit d36e9b
if test -n "${lt_cv_path_LDCXX+set}"; then
Packit d36e9b
  lt_cv_path_LD=$lt_cv_path_LDCXX
Packit d36e9b
else
Packit d36e9b
  $as_unset lt_cv_path_LD
Packit d36e9b
fi
Packit d36e9b
test -z "${LDCXX+set}" || LD=$LDCXX
Packit d36e9b
CC=${CXX-"c++"}
Packit d36e9b
compiler=$CC
Packit d36e9b
_LT_AC_TAGVAR(compiler, $1)=$CC
Packit d36e9b
_LT_CC_BASENAME([$compiler])
Packit d36e9b
Packit d36e9b
# We don't want -fno-exception wen compiling C++ code, so set the
Packit d36e9b
# no_builtin_flag separately
Packit d36e9b
if test "$GXX" = yes; then
Packit d36e9b
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
Packit d36e9b
else
Packit d36e9b
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
Packit d36e9b
fi
Packit d36e9b
Packit d36e9b
if test "$GXX" = yes; then
Packit d36e9b
  # Set up default GNU C++ configuration
Packit d36e9b
Packit d36e9b
  AC_PROG_LD
Packit d36e9b
Packit d36e9b
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
Packit d36e9b
  # archiving commands below assume that GNU ld is being used.
Packit d36e9b
  if test "$with_gnu_ld" = yes; then
Packit d36e9b
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
Packit d36e9b
    _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'
Packit d36e9b
Packit d36e9b
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
Packit d36e9b
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
Packit d36e9b
Packit d36e9b
    # If archive_cmds runs LD, not CC, wlarc should be empty
Packit d36e9b
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
Packit d36e9b
    #     investigate it a little bit more. (MM)
Packit d36e9b
    wlarc='${wl}'
Packit d36e9b
Packit d36e9b
    # ancient GNU ld didn't support --whole-archive et. al.
Packit d36e9b
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
Packit d36e9b
	grep 'no-whole-archive' > /dev/null; then
Packit d36e9b
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
Packit d36e9b
    else
Packit d36e9b
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
Packit d36e9b
    fi
Packit d36e9b
  else
Packit d36e9b
    with_gnu_ld=no
Packit d36e9b
    wlarc=
Packit d36e9b
Packit d36e9b
    # A generic and very simple default shared library creation
Packit d36e9b
    # command for GNU C++ for the case where it uses the native
Packit d36e9b
    # linker, instead of GNU ld.  If possible, this setting should
Packit d36e9b
    # overridden to take advantage of the native linker features on
Packit d36e9b
    # the platform it is being used on.
Packit d36e9b
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
Packit d36e9b
  fi
Packit d36e9b
Packit d36e9b
  # Commands to make compiler produce verbose output that lists
Packit d36e9b
  # what "hidden" libraries, object files and flags are used when
Packit d36e9b
  # linking a shared library.
Packit d36e9b
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
Packit d36e9b
Packit d36e9b
else
Packit d36e9b
  GXX=no
Packit d36e9b
  with_gnu_ld=no
Packit d36e9b
  wlarc=
Packit d36e9b
fi
Packit d36e9b
Packit d36e9b
# PORTME: fill in a description of your system's C++ link characteristics
Packit d36e9b
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
Packit d36e9b
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
Packit d36e9b
case $host_os in
Packit d36e9b
  aix3*)
Packit d36e9b
    # FIXME: insert proper C++ library support
Packit d36e9b
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
Packit d36e9b
    ;;
Packit d36e9b
  aix4* | aix5*)
Packit d36e9b
    if test "$host_cpu" = ia64; then
Packit d36e9b
      # On IA64, the linker does run time linking by default, so we don't
Packit d36e9b
      # have to do anything special.
Packit d36e9b
      aix_use_runtimelinking=no
Packit d36e9b
      exp_sym_flag='-Bexport'
Packit d36e9b
      no_entry_flag=""
Packit d36e9b
    else
Packit d36e9b
      aix_use_runtimelinking=no
Packit d36e9b
Packit d36e9b
      # Test if we are trying to use run time linking or normal
Packit d36e9b
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Packit d36e9b
      # need to do runtime linking.
Packit d36e9b
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
Packit d36e9b
	for ld_flag in $LDFLAGS; do
Packit d36e9b
	  case $ld_flag in
Packit d36e9b
	  *-brtl*)
Packit d36e9b
	    aix_use_runtimelinking=yes
Packit d36e9b
	    break
Packit d36e9b
	    ;;
Packit d36e9b
	  esac
Packit d36e9b
	done
Packit d36e9b
	;;
Packit d36e9b
      esac
Packit d36e9b
Packit d36e9b
      exp_sym_flag='-bexport'
Packit d36e9b
      no_entry_flag='-bnoentry'
Packit d36e9b
    fi
Packit d36e9b
Packit d36e9b
    # When large executables or shared objects are built, AIX ld can
Packit d36e9b
    # have problems creating the table of contents.  If linking a library
Packit d36e9b
    # or program results in "error TOC overflow" add -mminimal-toc to
Packit d36e9b
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
Packit d36e9b
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
Packit d36e9b
Packit d36e9b
    _LT_AC_TAGVAR(archive_cmds, $1)=''
Packit d36e9b
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
Packit d36e9b
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
Packit d36e9b
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
Packit d36e9b
Packit d36e9b
    if test "$GXX" = yes; then
Packit d36e9b
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
Packit d36e9b
      # We only want to do this on AIX 4.2 and lower, the check
Packit d36e9b
      # below for broken collect2 doesn't work under 4.3+
Packit d36e9b
	collect2name=`${CC} -print-prog-name=collect2`
Packit d36e9b
	if test -f "$collect2name" && \
Packit d36e9b
	   strings "$collect2name" | grep resolve_lib_name >/dev/null
Packit d36e9b
	then
Packit d36e9b
	  # We have reworked collect2
Packit d36e9b
	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
Packit d36e9b
	else
Packit d36e9b
	  # We have old collect2
Packit d36e9b
	  _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
Packit d36e9b
	  # It fails to find uninstalled libraries when the uninstalled
Packit d36e9b
	  # path is not listed in the libpath.  Setting hardcode_minus_L
Packit d36e9b
	  # to unsupported forces relinking
Packit d36e9b
	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
Packit d36e9b
	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
Packit d36e9b
	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
Packit d36e9b
	fi
Packit d36e9b
	;;
Packit d36e9b
      esac
Packit d36e9b
      shared_flag='-shared'
Packit d36e9b
      if test "$aix_use_runtimelinking" = yes; then
Packit d36e9b
	shared_flag="$shared_flag "'${wl}-G'
Packit d36e9b
      fi
Packit d36e9b
    else
Packit d36e9b
      # not using gcc
Packit d36e9b
      if test "$host_cpu" = ia64; then
Packit d36e9b
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
Packit d36e9b
	# chokes on -Wl,-G. The following line is correct:
Packit d36e9b
	shared_flag='-G'
Packit d36e9b
      else
Packit d36e9b
	if test "$aix_use_runtimelinking" = yes; then
Packit d36e9b
	  shared_flag='${wl}-G'
Packit d36e9b
	else
Packit d36e9b
	  shared_flag='${wl}-bM:SRE'
Packit d36e9b
	fi
Packit d36e9b
      fi
Packit d36e9b
    fi
Packit d36e9b
Packit d36e9b
    # It seems that -bexpall does not export symbols beginning with
Packit d36e9b
    # underscore (_), so it is better to generate a list of symbols to export.
Packit d36e9b
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
Packit d36e9b
    if test "$aix_use_runtimelinking" = yes; then
Packit d36e9b
      # Warning - without using the other runtime loading flags (-brtl),
Packit d36e9b
      # -berok will link without error, but may produce a broken library.
Packit d36e9b
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
Packit d36e9b
      # Determine the default libpath from the value encoded in an empty executable.
Packit d36e9b
      _LT_AC_SYS_LIBPATH_AIX
Packit d36e9b
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
Packit d36e9b
Packit d36e9b
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Packit d36e9b
     else
Packit d36e9b
      if test "$host_cpu" = ia64; then
Packit d36e9b
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
Packit d36e9b
	_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
Packit d36e9b
	_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
Packit d36e9b
      else
Packit d36e9b
	# Determine the default libpath from the value encoded in an empty executable.
Packit d36e9b
	_LT_AC_SYS_LIBPATH_AIX
Packit d36e9b
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
Packit d36e9b
	# Warning - without using the other run time loading flags,
Packit d36e9b
	# -berok will link without error, but may produce a broken library.
Packit d36e9b
	_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
Packit d36e9b
	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
Packit d36e9b
	# Exported symbols can be pulled into shared objects from archives
Packit d36e9b
	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
Packit d36e9b
	_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
Packit d36e9b
	# This is similar to how AIX traditionally builds its shared libraries.
Packit d36e9b
	_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
Packit d36e9b
      fi
Packit d36e9b
    fi
Packit d36e9b
    ;;
Packit d36e9b
Packit d36e9b
  beos*)
Packit d36e9b
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
Packit d36e9b
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
Packit d36e9b
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
Packit d36e9b
      # support --undefined.  This deserves some investigation.  FIXME
Packit d36e9b
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Packit d36e9b
    else
Packit d36e9b
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
Packit d36e9b
    fi
Packit d36e9b
    ;;
Packit d36e9b
Packit d36e9b
  chorus*)
Packit d36e9b
    case $cc_basename in
Packit d36e9b
      *)
Packit d36e9b
	# FIXME: insert proper C++ library support
Packit d36e9b
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
Packit d36e9b
	;;
Packit d36e9b
    esac
Packit d36e9b
    ;;
Packit d36e9b
Packit d36e9b
  cygwin* | mingw* | pw32*)
Packit d36e9b
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
Packit d36e9b
    # as there is no search path for DLLs.
Packit d36e9b
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
Packit d36e9b
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
Packit d36e9b
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
Packit d36e9b
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
Packit d36e9b
Packit d36e9b
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Packit d36e9b
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Packit d36e9b
      # If the export-symbols file already is a .def file (1st line
Packit d36e9b
      # is EXPORTS), use it as is; otherwise, prepend...
Packit d36e9b
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
Packit d36e9b
	cp $export_symbols $output_objdir/$soname.def;
Packit d36e9b
      else
Packit d36e9b
	echo EXPORTS > $output_objdir/$soname.def;
Packit d36e9b
	cat $export_symbols >> $output_objdir/$soname.def;
Packit d36e9b
      fi~
Packit d36e9b
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Packit d36e9b
    else
Packit d36e9b
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
Packit d36e9b
    fi
Packit d36e9b
  ;;
Packit d36e9b
      darwin* | rhapsody*)
Packit d36e9b
        case $host_os in
Packit d36e9b
        rhapsody* | darwin1.[[012]])
Packit d36e9b
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
Packit d36e9b
         ;;
Packit d36e9b
       *) # Darwin 1.3 on
Packit d36e9b
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
Packit d36e9b
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
Packit d36e9b
         else
Packit d36e9b
           case ${MACOSX_DEPLOYMENT_TARGET} in
Packit d36e9b
             10.[[012]])
Packit d36e9b
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
Packit d36e9b
               ;;
Packit d36e9b
             10.*)
Packit d36e9b
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
Packit d36e9b
               ;;
Packit d36e9b
           esac
Packit d36e9b
         fi
Packit d36e9b
         ;;
Packit d36e9b
        esac
Packit d36e9b
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
Packit d36e9b
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
Packit d36e9b
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
Packit d36e9b
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
Packit d36e9b
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
Packit d36e9b
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
Packit d36e9b
Packit d36e9b
    if test "$GXX" = yes ; then
Packit d36e9b
      lt_int_apple_cc_single_mod=no
Packit d36e9b
      output_verbose_link_cmd='echo'
Packit d36e9b
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
Packit d36e9b
       lt_int_apple_cc_single_mod=yes
Packit d36e9b
      fi
Packit d36e9b
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Packit d36e9b
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
Packit d36e9b
      else
Packit d36e9b
          _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'
Packit d36e9b
        fi
Packit d36e9b
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Packit d36e9b
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Packit d36e9b
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Packit d36e9b
            _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}'
Packit d36e9b
          else
Packit d36e9b
            _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}'
Packit d36e9b
          fi
Packit d36e9b
            _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}'
Packit d36e9b
      else
Packit d36e9b
      case $cc_basename in
Packit d36e9b
        xlc*)
Packit d36e9b
         output_verbose_link_cmd='echo'
Packit d36e9b
          _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'
Packit d36e9b
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Packit d36e9b
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Packit d36e9b
          _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}'
Packit d36e9b
          _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}'
Packit d36e9b
          ;;
Packit d36e9b
       *)
Packit d36e9b
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
Packit d36e9b
          ;;
Packit d36e9b
      esac
Packit d36e9b
      fi
Packit d36e9b
        ;;
Packit d36e9b
Packit d36e9b
  dgux*)
Packit d36e9b
    case $cc_basename in
Packit d36e9b
      ec++*)
Packit d36e9b
	# FIXME: insert proper C++ library support
Packit d36e9b
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
Packit d36e9b
	;;
Packit d36e9b
      ghcx*)
Packit d36e9b
	# Green Hills C++ Compiler
Packit d36e9b
	# FIXME: insert proper C++ library support
Packit d36e9b
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
Packit d36e9b
	;;
Packit d36e9b
      *)
Packit d36e9b
	# FIXME: insert proper C++ library support
Packit d36e9b
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
Packit d36e9b
	;;
Packit d36e9b
    esac
Packit d36e9b
    ;;
Packit d36e9b
  freebsd[[12]]*)
Packit d36e9b
    # C++ shared libraries reported to be fairly broken before switch to ELF
Packit d36e9b
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
Packit d36e9b
    ;;
Packit d36e9b
  freebsd-elf*)
Packit d36e9b
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
Packit d36e9b
    ;;
Packit d36e9b
  freebsd* | kfreebsd*-gnu | dragonfly*)
Packit d36e9b
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
Packit d36e9b
    # conventions
Packit d36e9b
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
Packit d36e9b
    ;;
Packit d36e9b
  gnu*)
Packit d36e9b
    ;;
Packit d36e9b
  hpux9*)
Packit d36e9b
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
Packit d36e9b
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
Packit d36e9b
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
Packit d36e9b
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
Packit d36e9b
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
Packit d36e9b
				# but as the default
Packit d36e9b
				# location of the library.
Packit d36e9b
Packit d36e9b
    case $cc_basename in
Packit d36e9b
    CC*)
Packit d36e9b
      # FIXME: insert proper C++ library support
Packit d36e9b
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
Packit d36e9b
      ;;
Packit d36e9b
    aCC*)
Packit d36e9b
      _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'
Packit d36e9b
      # Commands to make compiler produce verbose output that lists
Packit d36e9b
      # what "hidden" libraries, object files and flags are used when
Packit d36e9b
      # linking a shared library.
Packit d36e9b
      #
Packit d36e9b
      # There doesn't appear to be a way to prevent this compiler from
Packit d36e9b
      # explicitly linking system object files so we need to strip them
Packit d36e9b
      # from the output so that they don't get included in the library
Packit d36e9b
      # dependencies.
Packit d36e9b
      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'
Packit d36e9b
      ;;
Packit d36e9b
    *)
Packit d36e9b
      if test "$GXX" = yes; then
Packit d36e9b
        _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'
Packit d36e9b
      else
Packit d36e9b
        # FIXME: insert proper C++ library support
Packit d36e9b
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
Packit d36e9b
      fi
Packit d36e9b
      ;;
Packit d36e9b
    esac
Packit d36e9b
    ;;
Packit d36e9b
  hpux10*|hpux11*)
Packit d36e9b
    if test $with_gnu_ld = no; then
Packit d36e9b
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
Packit d36e9b
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
Packit d36e9b
Packit d36e9b
      case $host_cpu in
Packit d36e9b
      hppa*64*|ia64*)
Packit d36e9b
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
Packit d36e9b
        ;;
Packit d36e9b
      *)
Packit d36e9b
	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
Packit d36e9b
        ;;
Packit d36e9b
      esac
Packit d36e9b
    fi
Packit d36e9b
    case $host_cpu in
Packit d36e9b
    hppa*64*|ia64*)
Packit d36e9b
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
Packit d36e9b
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit d36e9b
      ;;
Packit d36e9b
    *)
Packit d36e9b
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
Packit d36e9b
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
Packit d36e9b
					      # but as the default
Packit d36e9b
					      # location of the library.
Packit d36e9b
      ;;
Packit d36e9b
    esac
Packit d36e9b
Packit d36e9b
    case $cc_basename in
Packit d36e9b
      CC*)
Packit d36e9b
	# FIXME: insert proper C++ library support
Packit d36e9b
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
Packit d36e9b
	;;
Packit d36e9b
      aCC*)
Packit d36e9b
	case $host_cpu in
Packit d36e9b
	hppa*64*)
Packit d36e9b
	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Packit d36e9b
	  ;;
Packit d36e9b
	ia64*)
Packit d36e9b
	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Packit d36e9b
	  ;;
Packit d36e9b
	*)
Packit d36e9b
	  _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'
Packit d36e9b
	  ;;
Packit d36e9b
	esac
Packit d36e9b
	# Commands to make compiler produce verbose output that lists
Packit d36e9b
	# what "hidden" libraries, object files and flags are used when
Packit d36e9b
	# linking a shared library.
Packit d36e9b
	#
Packit d36e9b
	# There doesn't appear to be a way to prevent this compiler from
Packit d36e9b
	# explicitly linking system object files so we need to strip them
Packit d36e9b
	# from the output so that they don't get included in the library
Packit d36e9b
	# dependencies.
Packit d36e9b
	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'
Packit d36e9b
	;;
Packit d36e9b
      *)
Packit d36e9b
	if test "$GXX" = yes; then
Packit d36e9b
	  if test $with_gnu_ld = no; then
Packit d36e9b
	    case $host_cpu in
Packit d36e9b
	    hppa*64*)
Packit d36e9b
	      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Packit d36e9b
	      ;;
Packit d36e9b
	    ia64*)
Packit d36e9b
	      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Packit d36e9b
	      ;;
Packit d36e9b
	    *)
Packit d36e9b
	      _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'
Packit d36e9b
	      ;;
Packit d36e9b
	    esac
Packit d36e9b
	  fi
Packit d36e9b
	else
Packit d36e9b
	  # FIXME: insert proper C++ library support
Packit d36e9b
	  _LT_AC_TAGVAR(ld_shlibs, $1)=no
Packit d36e9b
	fi
Packit d36e9b
	;;
Packit d36e9b
    esac
Packit d36e9b
    ;;
Packit d36e9b
  interix3*)
Packit d36e9b
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
Packit d36e9b
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
Packit d36e9b
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
Packit d36e9b
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
Packit d36e9b
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
Packit d36e9b
    # Instead, shared libraries are loaded at an image base (0x10000000 by
Packit d36e9b
    # default) and relocated if they conflict, which is a slow very memory
Packit d36e9b
    # consuming and fragmenting process.  To avoid this, we pick a random,
Packit d36e9b
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
Packit d36e9b
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
Packit d36e9b
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
Packit d36e9b
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
Packit d36e9b
    ;;
Packit d36e9b
  irix5* | irix6*)
Packit d36e9b
    case $cc_basename in
Packit d36e9b
      CC*)
Packit