Blame aclocal.m4

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