Blame gtkmm-osx/jpeg-6b/ltconfig

darco 56a656
#! /bin/sh
darco 56a656
darco 56a656
# ltconfig - Create a system-specific libtool.
darco 56a656
# Copyright (C) 1996-1998 Free Software Foundation, Inc.
darco 56a656
# Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996</gord@gnu.ai.mit.edu>
darco 56a656
#
darco 56a656
# This file is free software; you can redistribute it and/or modify it
darco 56a656
# under the terms of the GNU General Public License as published by
darco 56a656
# the Free Software Foundation; either version 2 of the License, or
darco 56a656
# (at your option) any later version.
darco 56a656
#
darco 56a656
# This program is distributed in the hope that it will be useful, but
darco 56a656
# WITHOUT ANY WARRANTY; without even the implied warranty of
darco 56a656
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
darco 56a656
# General Public License for more details.
darco 56a656
#
darco 56a656
# You should have received a copy of the GNU General Public License
darco 56a656
# along with this program; if not, write to the Free Software
darco 56a656
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
darco 56a656
#
darco 56a656
# As a special exception to the GNU General Public License, if you
darco 56a656
# distribute this file as part of a program that contains a
darco 56a656
# configuration script generated by Autoconf, you may include it under
darco 56a656
# the same distribution terms that you use for the rest of that program.
darco 56a656
darco 56a656
# A lot of this script is taken from autoconf-2.10.
darco 56a656
darco 56a656
# The HP-UX ksh and POSIX shell print the target directory to stdout
darco 56a656
# if CDPATH is set.
darco 56a656
if test "${CDPATH+set}" = set; then CDPATH=; export CDPATH; fi
darco 56a656
darco 56a656
echo=echo
darco 56a656
if test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then :
darco 56a656
else
darco 56a656
  # The Solaris and AIX default echo program unquotes backslashes.
darco 56a656
  # This makes it impossible to quote backslashes using
darco 56a656
  #   echo "$something" | sed 's/\\/\\\\/g'
darco 56a656
  # So, we emulate echo with printf '%s\n'
darco 56a656
  echo="printf %s\\n"
darco 56a656
  if test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then :
darco 56a656
  else
darco 56a656
    # Oops.  We have no working printf.  Try to find a not-so-buggy echo.
darco 56a656
    echo=echo
darco 56a656
    IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}:"
darco 56a656
    for dir in $PATH /usr/ucb; do
darco 56a656
      if test -f $dir/echo && test "X`$dir/echo '\t'`" = 'X\t'; then
darco 56a656
        echo="$dir/echo"
darco 56a656
        break
darco 56a656
      fi
darco 56a656
    done
darco 56a656
    IFS="$save_ifs"
darco 56a656
  fi
darco 56a656
fi
darco 56a656
darco 56a656
# Sed substitution that helps us do robust quoting.  It backslashifies
darco 56a656
# metacharacters that are still active within double-quoted strings.
darco 56a656
Xsed='sed -e s/^X//'
darco 56a656
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
darco 56a656
darco 56a656
# Same as above, but do not quote variable references.
darco 56a656
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
darco 56a656
darco 56a656
# The name of this program.
darco 56a656
progname=`$echo "X$0" | $Xsed -e 's%^.*/%%'`
darco 56a656
darco 56a656
# Constants:
darco 56a656
PROGRAM=ltconfig
darco 56a656
PACKAGE=libtool
darco 56a656
VERSION=1.2
darco 56a656
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.c 1>&5'
darco 56a656
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS 1>&5'
darco 56a656
rm="rm -f"
darco 56a656
darco 56a656
help="Try \`$progname --help' for more information."
darco 56a656
darco 56a656
# Global variables:
darco 56a656
can_build_shared=yes
darco 56a656
enable_shared=yes
darco 56a656
# All known linkers require a `.a' archive for static linking.
darco 56a656
enable_static=yes
darco 56a656
ltmain=
darco 56a656
silent=
darco 56a656
srcdir=
darco 56a656
ac_config_guess=
darco 56a656
ac_config_sub=
darco 56a656
host=
darco 56a656
nonopt=
darco 56a656
verify_host=yes
darco 56a656
with_gcc=no
darco 56a656
with_gnu_ld=no
darco 56a656
darco 56a656
old_AR="$AR"
darco 56a656
old_CC="$CC"
darco 56a656
old_CFLAGS="$CFLAGS"
darco 56a656
old_CPPFLAGS="$CPPFLAGS"
darco 56a656
old_LD="$LD"
darco 56a656
old_LN_S="$LN_S"
darco 56a656
old_NM="$NM"
darco 56a656
old_RANLIB="$RANLIB"
darco 56a656
darco 56a656
# Parse the command line options.
darco 56a656
args=
darco 56a656
prev=
darco 56a656
for option
darco 56a656
do
darco 56a656
  case "$option" in
darco 56a656
  -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
darco 56a656
  *) optarg= ;;
darco 56a656
  esac
darco 56a656
darco 56a656
  # If the previous option needs an argument, assign it.
darco 56a656
  if test -n "$prev"; then
darco 56a656
    eval "$prev=\$option"
darco 56a656
    prev=
darco 56a656
    continue
darco 56a656
  fi
darco 56a656
darco 56a656
  case "$option" in
darco 56a656
  --help) cat <
darco 56a656
Usage: $progname [OPTION]... LTMAIN [HOST]
darco 56a656
darco 56a656
Generate a system-specific libtool script.
darco 56a656
darco 56a656
    --disable-shared       do not build shared libraries
darco 56a656
    --disable-static       do not build static libraries
darco 56a656
    --help                 display this help and exit
darco 56a656
    --no-verify            do not verify that HOST is a valid host type
darco 56a656
    --quiet                same as \`--silent'
darco 56a656
    --silent               do not print informational messages
darco 56a656
    --srcdir=DIR           find \`config.guess' in DIR
darco 56a656
    --version              output version information and exit
darco 56a656
    --with-gcc             assume that the GNU C compiler will be used
darco 56a656
    --with-gnu-ld          assume that the C compiler uses the GNU linker
darco 56a656
darco 56a656
LTMAIN is the \`ltmain.sh' shell script fragment that provides basic libtool
darco 56a656
functionality.
darco 56a656
darco 56a656
HOST is the canonical host system name [default=guessed].
darco 56a656
EOM
darco 56a656
  exit 0
darco 56a656
  ;;
darco 56a656
darco 56a656
  --disable-shared) enable_shared=no ;;
darco 56a656
darco 56a656
  --disable-static) enable_static=no ;;
darco 56a656
darco 56a656
  --quiet | --silent) silent=yes ;;
darco 56a656
darco 56a656
  --srcdir) prev=srcdir ;;
darco 56a656
  --srcdir=*) srcdir="$optarg" ;;
darco 56a656
darco 56a656
  --no-verify) verify_host=no ;;
darco 56a656
darco 56a656
  --version) echo "$PROGRAM (GNU $PACKAGE) $VERSION"; exit 0 ;;
darco 56a656
darco 56a656
  --with-gcc) with_gcc=yes ;;
darco 56a656
  --with-gnu-ld) with_gnu_ld=yes ;;
darco 56a656
darco 56a656
  -*)
darco 56a656
    echo "$progname: unrecognized option \`$option'" 1>&2
darco 56a656
    echo "$help" 1>&2
darco 56a656
    exit 1
darco 56a656
    ;;
darco 56a656
darco 56a656
  *)
darco 56a656
    if test -z "$ltmain"; then
darco 56a656
      ltmain="$option"
darco 56a656
    elif test -z "$host"; then
darco 56a656
# This generates an unnecessary warning for sparc-sun-solaris4.1.3_U1
darco 56a656
#      if test -n "`echo $option| sed 's/[-a-z0-9.]//g'`"; then
darco 56a656
#        echo "$progname: warning \`$option' is not a valid host type" 1>&2
darco 56a656
#      fi
darco 56a656
      host="$option"
darco 56a656
    else
darco 56a656
      echo "$progname: too many arguments" 1>&2
darco 56a656
      echo "$help" 1>&2
darco 56a656
      exit 1
darco 56a656
    fi ;;
darco 56a656
  esac
darco 56a656
done
darco 56a656
darco 56a656
if test -z "$ltmain"; then
darco 56a656
  echo "$progname: you must specify a LTMAIN file" 1>&2
darco 56a656
  echo "$help" 1>&2
darco 56a656
  exit 1
darco 56a656
fi
darco 56a656
darco 56a656
if test -f "$ltmain"; then :
darco 56a656
else
darco 56a656
  echo "$progname: \`$ltmain' does not exist" 1>&2
darco 56a656
  echo "$help" 1>&2
darco 56a656
  exit 1
darco 56a656
fi
darco 56a656
darco 56a656
# Quote any args containing shell metacharacters.
darco 56a656
ltconfig_args=
darco 56a656
for arg
darco 56a656
do
darco 56a656
  case "$arg" in
darco 56a656
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
darco 56a656
  ltconfig_args="$ltconfig_args '$arg'" ;;
darco 56a656
  *) ltconfig_args="$ltconfig_args $arg" ;;
darco 56a656
  esac
darco 56a656
done
darco 56a656
darco 56a656
# A relevant subset of AC_INIT.
darco 56a656
darco 56a656
# File descriptor usage:
darco 56a656
# 0 standard input
darco 56a656
# 1 file creation
darco 56a656
# 2 errors and warnings
darco 56a656
# 3 some systems may open it to /dev/tty
darco 56a656
# 4 used on the Kubota Titan
darco 56a656
# 5 compiler messages saved in config.log
darco 56a656
# 6 checking for... messages and results
darco 56a656
if test "$silent" = yes; then
darco 56a656
  exec 6>/dev/null
darco 56a656
else
darco 56a656
  exec 6>&1
darco 56a656
fi
darco 56a656
exec 5>>./config.log
darco 56a656
darco 56a656
# NLS nuisances.
darco 56a656
# Only set LANG and LC_ALL to C if already set.
darco 56a656
# These must not be set unconditionally because not all systems understand
darco 56a656
# e.g. LANG=C (notably SCO).
darco 56a656
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
darco 56a656
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
darco 56a656
darco 56a656
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
darco 56a656
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
darco 56a656
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
darco 56a656
    ac_n= ac_c='
darco 56a656
' ac_t='	'
darco 56a656
  else
darco 56a656
    ac_n=-n ac_c= ac_t=
darco 56a656
  fi
darco 56a656
else
darco 56a656
  ac_n= ac_c='\c' ac_t=
darco 56a656
fi
darco 56a656
darco 56a656
if test -z "$srcdir"; then
darco 56a656
  # Assume the source directory is the same one as the path to ltmain.sh.
darco 56a656
  srcdir=`$echo "$ltmain" | $Xsed -e 's%/[^/]*$%%'`
darco 56a656
  test "$srcdir" = "$ltmain" && srcdir=.
darco 56a656
fi
darco 56a656
darco 56a656
trap "$rm conftest*; exit 1" 1 2 15
darco 56a656
if test "$verify_host" = yes; then
darco 56a656
  # Check for config.guess and config.sub.
darco 56a656
  ac_aux_dir=
darco 56a656
  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
darco 56a656
    if test -f $ac_dir/config.guess; then
darco 56a656
      ac_aux_dir=$ac_dir
darco 56a656
      break
darco 56a656
    fi
darco 56a656
  done
darco 56a656
  if test -z "$ac_aux_dir"; then
darco 56a656
    echo "$progname: cannot find config.guess in $srcdir $srcdir/.. $srcdir/../.." 1>&2
darco 56a656
    echo "$help" 1>&2
darco 56a656
    exit 1
darco 56a656
  fi
darco 56a656
  ac_config_guess=$ac_aux_dir/config.guess
darco 56a656
  ac_config_sub=$ac_aux_dir/config.sub
darco 56a656
darco 56a656
  # Make sure we can run config.sub.
darco 56a656
  if $ac_config_sub sun4 >/dev/null 2>&1; then :
darco 56a656
  else
darco 56a656
    echo "$progname: cannot run $ac_config_sub" 1>&2
darco 56a656
    echo "$help" 1>&2
darco 56a656
    exit 1
darco 56a656
  fi
darco 56a656
darco 56a656
  echo $ac_n "checking host system type""... $ac_c" 1>&6
darco 56a656
darco 56a656
  host_alias=$host
darco 56a656
  case "$host_alias" in
darco 56a656
  "")
darco 56a656
    if host_alias=`$ac_config_guess`; then :
darco 56a656
    else
darco 56a656
      echo "$progname: cannot guess host type; you must specify one" 1>&2
darco 56a656
      echo "$help" 1>&2
darco 56a656
      exit 1
darco 56a656
    fi ;;
darco 56a656
  esac
darco 56a656
  host=`$ac_config_sub $host_alias`
darco 56a656
  echo "$ac_t$host" 1>&6
darco 56a656
darco 56a656
  # Make sure the host verified.
darco 56a656
  test -z "$host" && exit 1
darco 56a656
darco 56a656
elif test -z "$host"; then
darco 56a656
  echo "$progname: you must specify a host type if you use \`--no-verify'" 1>&2
darco 56a656
  echo "$help" 1>&2
darco 56a656
  exit 1
darco 56a656
else
darco 56a656
  host_alias=$host
darco 56a656
fi
darco 56a656
darco 56a656
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
darco 56a656
case "$host_os" in
darco 56a656
linux-gnu*) ;;
darco 56a656
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
darco 56a656
esac
darco 56a656
darco 56a656
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
darco 56a656
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
darco 56a656
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
darco 56a656
darco 56a656
case "$host_os" in
darco 56a656
aix3*)
darco 56a656
  # AIX sometimes has problems with the GCC collect2 program.  For some
darco 56a656
  # reason, if we set the COLLECT_NAMES environment variable, the problems
darco 56a656
  # vanish in a puff of smoke.
darco 56a656
  if test "${COLLECT_NAMES+set}" != set; then
darco 56a656
    COLLECT_NAMES=
darco 56a656
    export COLLECT_NAMES
darco 56a656
  fi
darco 56a656
  ;;
darco 56a656
esac
darco 56a656
darco 56a656
# Determine commands to create old-style static archives.
darco 56a656
old_archive_cmds='$AR cru $oldlib$oldobjs'
darco 56a656
old_postinstall_cmds='chmod 644 $oldlib'
darco 56a656
old_postuninstall_cmds=
darco 56a656
darco 56a656
# Set a sane default for `AR'.
darco 56a656
test -z "$AR" && AR=ar
darco 56a656
darco 56a656
# If RANLIB is not set, then run the test.
darco 56a656
if test "${RANLIB+set}" != "set"; then
darco 56a656
  result=no
darco 56a656
darco 56a656
  echo $ac_n "checking for ranlib... $ac_c" 1>&6
darco 56a656
  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}:"
darco 56a656
  for dir in $PATH; do
darco 56a656
    test -z "$dir" && dir=.
darco 56a656
    if test -f $dir/ranlib; then
darco 56a656
      RANLIB="ranlib"
darco 56a656
      result="ranlib"
darco 56a656
      break
darco 56a656
    fi
darco 56a656
  done
darco 56a656
  IFS="$save_ifs"
darco 56a656
darco 56a656
  echo "$ac_t$result" 1>&6
darco 56a656
fi
darco 56a656
darco 56a656
if test -n "$RANLIB"; then
darco 56a656
  old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib"
darco 56a656
  old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds"
darco 56a656
fi
darco 56a656
darco 56a656
# Check to see if we are using GCC.
darco 56a656
if test "$with_gcc" != yes || test -z "$CC"; then
darco 56a656
  # If CC is not set, then try to find GCC or a usable CC.
darco 56a656
  if test -z "$CC"; then
darco 56a656
    echo $ac_n "checking for gcc... $ac_c" 1>&6
darco 56a656
    IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}:"
darco 56a656
    for dir in $PATH; do
darco 56a656
      IFS="$save_ifs"
darco 56a656
      test -z "$dir" && dir=.
darco 56a656
      if test -f $dir/gcc; then
darco 56a656
	CC="gcc"
darco 56a656
	break
darco 56a656
      fi
darco 56a656
    done
darco 56a656
    IFS="$save_ifs"
darco 56a656
darco 56a656
    if test -n "$CC"; then
darco 56a656
      echo "$ac_t$CC" 1>&6
darco 56a656
    else
darco 56a656
      echo "$ac_t"no 1>&6
darco 56a656
    fi
darco 56a656
  fi
darco 56a656
darco 56a656
  # Not "gcc", so try "cc", rejecting "/usr/ucb/cc".
darco 56a656
  if test -z "$CC"; then
darco 56a656
    echo $ac_n "checking for cc... $ac_c" 1>&6
darco 56a656
    IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}:"
darco 56a656
    cc_rejected=no
darco 56a656
    for dir in $PATH; do
darco 56a656
      test -z "$dir" && dir=.
darco 56a656
      if test -f $dir/cc; then
darco 56a656
	if test "$dir/cc" = "/usr/ucb/cc"; then
darco 56a656
	  cc_rejected=yes
darco 56a656
	  continue
darco 56a656
	fi
darco 56a656
	CC="cc"
darco 56a656
	break
darco 56a656
      fi
darco 56a656
    done
darco 56a656
    IFS="$save_ifs"
darco 56a656
    if test $cc_rejected = yes; then
darco 56a656
      # We found a bogon in the path, so make sure we never use it.
darco 56a656
      set dummy $CC
darco 56a656
      shift
darco 56a656
      if test $# -gt 0; then
darco 56a656
	# We chose a different compiler from the bogus one.
darco 56a656
	# However, it has the same name, so the bogon will be chosen
darco 56a656
	# first if we set CC to just the name; use the full file name.
darco 56a656
	shift
darco 56a656
	set dummy "$dir/cc" "$@"
darco 56a656
	shift
darco 56a656
	CC="$@"
darco 56a656
      fi
darco 56a656
    fi
darco 56a656
darco 56a656
    if test -n "$CC"; then
darco 56a656
      echo "$ac_t$CC" 1>&6
darco 56a656
    else
darco 56a656
      echo "$ac_t"no 1>&6
darco 56a656
    fi
darco 56a656
darco 56a656
    if test -z "$CC"; then
darco 56a656
      echo "$progname: error: no acceptable cc found in \$PATH" 1>&2
darco 56a656
      exit 1
darco 56a656
    fi
darco 56a656
  fi
darco 56a656
darco 56a656
  # Now see if the compiler is really GCC.
darco 56a656
  with_gcc=no
darco 56a656
  echo $ac_n "checking whether we are using GNU C... $ac_c" 1>&6
darco 56a656
  echo "$progname:424: checking whether we are using GNU C" >&5
darco 56a656
darco 56a656
  $rm conftest.c
darco 56a656
  cat > conftest.c <
darco 56a656
#ifdef __GNUC__
darco 56a656
  yes;
darco 56a656
#endif
darco 56a656
EOF
darco 56a656
  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo $progname:432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
darco 56a656
    with_gcc=yes
darco 56a656
  fi
darco 56a656
  $rm conftest.c
darco 56a656
  echo "$ac_t$with_gcc" 1>&6
darco 56a656
fi
darco 56a656
darco 56a656
# Allow CC to be a program name with arguments.
darco 56a656
set dummy $CC
darco 56a656
compiler="$2"
darco 56a656
darco 56a656
echo $ac_n "checking for $compiler option to produce PIC... $ac_c" 1>&6
darco 56a656
pic_flag=
darco 56a656
special_shlib_compile_flags=
darco 56a656
wl=
darco 56a656
link_static_flag=
darco 56a656
no_builtin_flag=
darco 56a656
darco 56a656
if test "$with_gcc" = yes; then
darco 56a656
  wl='-Wl,'
darco 56a656
  link_static_flag='-static'
darco 56a656
  no_builtin_flag=' -fno-builtin'
darco 56a656
darco 56a656
  case "$host_os" in
darco 56a656
  aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
darco 56a656
    # PIC is the default for these OSes.
darco 56a656
    ;;
darco 56a656
  os2*)
darco 56a656
    # We can build DLLs from non-PIC.
darco 56a656
    ;;
darco 56a656
  amigaos*)
darco 56a656
    # FIXME: we need at least 68020 code to build shared libraries, but
darco 56a656
    # adding the `-m68020' flag to GCC prevents building anything better,
darco 56a656
    # like `-m68040'.
darco 56a656
    pic_flag='-m68020 -resident32 -malways-restore-a4'
darco 56a656
    ;;
darco 56a656
  *)
darco 56a656
    pic_flag='-fPIC'
darco 56a656
    ;;
darco 56a656
  esac
darco 56a656
else
darco 56a656
  # PORTME Check for PIC flags for the system compiler.
darco 56a656
  case "$host_os" in
darco 56a656
  aix3* | aix4*)
darco 56a656
    # All AIX code is PIC.
darco 56a656
    link_static_flag='-bnso -bI:/lib/syscalls.exp'
darco 56a656
    ;;
darco 56a656
darco 56a656
  hpux9* | hpux10*)
darco 56a656
    # Is there a better link_static_flag that works with the bundled CC?
darco 56a656
    wl='-Wl,'
darco 56a656
    link_static_flag="${wl}-a ${wl}archive"
darco 56a656
    pic_flag='+Z'
darco 56a656
    ;;
darco 56a656
darco 56a656
  irix5* | irix6*)
darco 56a656
    wl='-Wl,'
darco 56a656
    link_static_flag='-non_shared'
darco 56a656
    # PIC (with -KPIC) is the default.
darco 56a656
    ;;
darco 56a656
darco 56a656
  os2*)
darco 56a656
    # We can build DLLs from non-PIC.
darco 56a656
    ;;
darco 56a656
darco 56a656
  osf3* | osf4*)
darco 56a656
    # All OSF/1 code is PIC.
darco 56a656
    wl='-Wl,'
darco 56a656
    link_static_flag='-non_shared'
darco 56a656
    ;;
darco 56a656
darco 56a656
  sco3.2v5*)
darco 56a656
    pic_flag='-Kpic'
darco 56a656
    link_static_flag='-dn'
darco 56a656
    special_shlib_compile_flags='-belf'
darco 56a656
    ;;
darco 56a656
darco 56a656
  solaris2*)
darco 56a656
    pic_flag='-KPIC'
darco 56a656
    link_static_flag='-Bstatic'
darco 56a656
    wl='-Wl,'
darco 56a656
    ;;
darco 56a656
darco 56a656
  sunos4*)
darco 56a656
    pic_flag='-PIC'
darco 56a656
    link_static_flag='-Bstatic'
darco 56a656
    wl='-Qoption ld '
darco 56a656
    ;;
darco 56a656
darco 56a656
  sysv4.2uw2*)
darco 56a656
    pic_flag='-KPIC'
darco 56a656
    link_static_flag='-Bstatic'
darco 56a656
    wl='-Wl,'
darco 56a656
    ;;
darco 56a656
darco 56a656
  uts4*)
darco 56a656
    pic_flag='-pic'
darco 56a656
    link_static_flag='-Bstatic'
darco 56a656
    ;;
darco 56a656
darco 56a656
  *)
darco 56a656
    can_build_shared=no
darco 56a656
    ;;
darco 56a656
  esac
darco 56a656
fi
darco 56a656
darco 56a656
if test -n "$pic_flag"; then
darco 56a656
  echo "$ac_t$pic_flag" 1>&6
darco 56a656
darco 56a656
  # Check to make sure the pic_flag actually works.
darco 56a656
  echo $ac_n "checking if $compiler PIC flag $pic_flag works... $ac_c" 1>&6
darco 56a656
  $rm conftest*
darco 56a656
  echo > conftest.c
darco 56a656
  save_CFLAGS="$CFLAGS"
darco 56a656
  CFLAGS="$CFLAGS $pic_flag -DPIC"
darco 56a656
  echo "$progname:547: checking if $compiler PIC flag $pic_flag works" >&5
darco 56a656
  if { (eval echo $progname:548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.o; then
darco 56a656
    # Append any warnings to the config.log.
darco 56a656
    cat conftest.err 1>&5
darco 56a656
darco 56a656
    # On HP-UX, both CC and GCC only warn that PIC is supported... then they
darco 56a656
    # create non-PIC objects.  So, if there were any warnings, we assume that
darco 56a656
    # PIC is not supported.
darco 56a656
    if test -s conftest.err; then
darco 56a656
      echo "$ac_t"no 1>&6
darco 56a656
      can_build_shared=no
darco 56a656
      pic_flag=
darco 56a656
    else
darco 56a656
      echo "$ac_t"yes 1>&6
darco 56a656
      pic_flag=" $pic_flag"
darco 56a656
    fi
darco 56a656
  else
darco 56a656
    # Append any errors to the config.log.
darco 56a656
    cat conftest.err 1>&5
darco 56a656
    can_build_shared=no
darco 56a656
    pic_flag=
darco 56a656
    echo "$ac_t"no 1>&6
darco 56a656
  fi
darco 56a656
  CFLAGS="$save_CFLAGS"
darco 56a656
  $rm conftest*
darco 56a656
else
darco 56a656
  echo "$ac_t"none 1>&6
darco 56a656
fi
darco 56a656
darco 56a656
# Check for any special shared library compilation flags.
darco 56a656
if test -n "$special_shlib_compile_flags"; then
darco 56a656
  echo "$progname: warning: \`$CC' requires \`$special_shlib_compile_flags' to build shared libraries" 1>&2
darco 56a656
  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$special_shlib_compile_flags[ 	]" >/dev/null; then :
darco 56a656
  else
darco 56a656
    echo "$progname: add \`$special_shlib_compile_flags' to the CC or CFLAGS env variable and reconfigure" 1>&2
darco 56a656
    can_build_shared=no
darco 56a656
  fi
darco 56a656
fi
darco 56a656
darco 56a656
echo $ac_n "checking if $compiler static flag $link_static_flag works... $ac_c" 1>&6
darco 56a656
$rm conftest*
darco 56a656
echo 'main(){return(0);}' > conftest.c
darco 56a656
save_LDFLAGS="$LDFLAGS"
darco 56a656
LDFLAGS="$LDFLAGS $link_static_flag"
darco 56a656
echo "$progname:591: checking if $compiler static flag $link_static_flag works" >&5
darco 56a656
if { (eval echo $progname:592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
darco 56a656
  echo "$ac_t$link_static_flag" 1>&6
darco 56a656
else
darco 56a656
  echo "$ac_t"none 1>&6
darco 56a656
  link_static_flag=
darco 56a656
fi
darco 56a656
LDFLAGS="$save_LDFLAGS"
darco 56a656
$rm conftest*
darco 56a656
darco 56a656
if test -z "$LN_S"; then
darco 56a656
  # Check to see if we can use ln -s, or we need hard links.
darco 56a656
  echo $ac_n "checking whether ln -s works... $ac_c" 1>&6
darco 56a656
  $rm conftestdata
darco 56a656
  if ln -s X conftestdata 2>/dev/null; then
darco 56a656
    $rm conftestdata
darco 56a656
    LN_S="ln -s"
darco 56a656
  else
darco 56a656
    LN_S=ln
darco 56a656
  fi
darco 56a656
  if test "$LN_S" = "ln -s"; then
darco 56a656
    echo "$ac_t"yes 1>&6
darco 56a656
  else
darco 56a656
    echo "$ac_t"no 1>&6
darco 56a656
  fi
darco 56a656
fi
darco 56a656
darco 56a656
# Make sure LD is an absolute path.
darco 56a656
if test -z "$LD"; then
darco 56a656
  ac_prog=ld
darco 56a656
  if test "$with_gcc" = yes; then
darco 56a656
    # Check if gcc -print-prog-name=ld gives a path.
darco 56a656
    echo $ac_n "checking for ld used by GCC... $ac_c" 1>&6
darco 56a656
    echo "$progname:624: checking for ld used by GCC" >&5
darco 56a656
    ac_prog=`($CC -print-prog-name=ld) 2>&5`
darco 56a656
    case "$ac_prog" in
darco 56a656
    # Accept absolute paths.
darco 56a656
    /* | [A-Za-z]:\\*)
darco 56a656
      test -z "$LD" && LD="$ac_prog"
darco 56a656
      ;;
darco 56a656
    "")
darco 56a656
      # If it fails, then pretend we are not using GCC.
darco 56a656
      ac_prog=ld
darco 56a656
      ;;
darco 56a656
    *)
darco 56a656
      # If it is relative, then search for the first ld in PATH.
darco 56a656
      with_gnu_ld=unknown
darco 56a656
      ;;
darco 56a656
    esac
darco 56a656
  elif test "$with_gnu_ld" = yes; then
darco 56a656
    echo $ac_n "checking for GNU ld... $ac_c" 1>&6
darco 56a656
    echo "$progname:642: checking for GNU ld" >&5
darco 56a656
  else
darco 56a656
    echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
darco 56a656
    echo "$progname:645: checking for non-GNU ld" >&5
darco 56a656
  fi
darco 56a656
darco 56a656
  if test -z "$LD"; then
darco 56a656
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
darco 56a656
    for ac_dir in $PATH; do
darco 56a656
      test -z "$ac_dir" && ac_dir=.
darco 56a656
      if test -f "$ac_dir/$ac_prog"; then
darco 56a656
	LD="$ac_dir/$ac_prog"
darco 56a656
	# Check to see if the program is GNU ld.  I'd rather use --version,
darco 56a656
	# but apparently some GNU ld's only accept -v.
darco 56a656
	# Break only if it was the GNU/non-GNU ld that we prefer.
darco 56a656
	if "$LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
darco 56a656
	  test "$with_gnu_ld" != no && break
darco 56a656
	else
darco 56a656
	  test "$with_gnu_ld" != yes && break
darco 56a656
	fi
darco 56a656
      fi
darco 56a656
    done
darco 56a656
    IFS="$ac_save_ifs"
darco 56a656
  fi
darco 56a656
darco 56a656
  if test -n "$LD"; then
darco 56a656
    echo "$ac_t$LD" 1>&6
darco 56a656
  else
darco 56a656
    echo "$ac_t"no 1>&6
darco 56a656
  fi
darco 56a656
darco 56a656
  if test -z "$LD"; then
darco 56a656
    echo "$progname: error: no acceptable ld found in \$PATH" 1>&2
darco 56a656
    exit 1
darco 56a656
  fi
darco 56a656
fi
darco 56a656
darco 56a656
# Check to see if it really is or is not GNU ld.
darco 56a656
echo $ac_n "checking if the linker ($LD) is GNU ld... $ac_c" 1>&6
darco 56a656
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
darco 56a656
if $LD -v 2>&1 &5; then
darco 56a656
  with_gnu_ld=yes
darco 56a656
else
darco 56a656
  with_gnu_ld=no
darco 56a656
fi
darco 56a656
echo "$ac_t$with_gnu_ld" 1>&6
darco 56a656
darco 56a656
# See if the linker supports building shared libraries.
darco 56a656
echo $ac_n "checking whether the linker ($LD) supports shared libraries... $ac_c" 1>&6
darco 56a656
darco 56a656
allow_undefined_flag=
darco 56a656
no_undefined_flag=
darco 56a656
archive_cmds=
darco 56a656
old_archive_from_new_cmds=
darco 56a656
export_dynamic_flag_spec=
darco 56a656
hardcode_libdir_flag_spec=
darco 56a656
hardcode_libdir_separator=
darco 56a656
hardcode_direct=no
darco 56a656
hardcode_minus_L=no
darco 56a656
hardcode_shlibpath_var=unsupported
darco 56a656
runpath_var=
darco 56a656
darco 56a656
case "$host_os" in
darco 56a656
amigaos* | sunos4*)
darco 56a656
  # On these operating systems, we should treat GNU ld like the system ld.
darco 56a656
  gnu_ld_acts_native=yes
darco 56a656
  ;;
darco 56a656
*)
darco 56a656
  gnu_ld_acts_native=no
darco 56a656
  ;;
darco 56a656
esac
darco 56a656
darco 56a656
ld_shlibs=yes
darco 56a656
if test "$with_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
darco 56a656
darco 56a656
  # See if GNU ld supports shared libraries.
darco 56a656
  if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
darco 56a656
    archive_cmds='$CC -shared ${wl}-soname $wl$soname -o $lib$libobjs'
darco 56a656
    runpath_var=LD_RUN_PATH
darco 56a656
    ld_shlibs=yes
darco 56a656
  else
darco 56a656
    ld_shlibs=no
darco 56a656
  fi
darco 56a656
darco 56a656
  if test "$ld_shlibs" = yes; then
darco 56a656
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
darco 56a656
    export_dynamic_flag_spec='${wl}--export-dynamic'
darco 56a656
  fi
darco 56a656
else
darco 56a656
  # PORTME fill in a description of your system's linker (not GNU ld)
darco 56a656
  case "$host_os" in
darco 56a656
  aix3*)
darco 56a656
    allow_undefined_flag=unsupported
darco 56a656
    archive_cmds='$NM$libobjs | $global_symbol_pipe | sed '\''s/.* //'\'' > $lib.exp;$LD -o $objdir/$soname$libobjs -bE:$lib.exp -T512 -H512 -bM:SRE;$AR cru $lib $objdir/$soname'
darco 56a656
    # Note: this linker hardcodes the directories in LIBPATH if there
darco 56a656
    # are no directories specified by -L.
darco 56a656
    hardcode_minus_L=yes
darco 56a656
    if test "$with_gcc" = yes && test -z "$link_static_flag"; then
darco 56a656
      # Neither direct hardcoding nor static linking is supported with a
darco 56a656
      # broken collect2.
darco 56a656
      hardcode_direct=unsupported
darco 56a656
    fi
darco 56a656
    ;;
darco 56a656
darco 56a656
  aix4*)
darco 56a656
    allow_undefined_flag=unsupported
darco 56a656
    archive_cmds='$NM$libobjs | $global_symbol_pipe | sed '\''s/.* //'\'' > $lib.exp;$CC -o $objdir/$soname$libobjs ${wl}-bE:$lib.exp ${wl}-bM:SRE ${wl}-bnoentry;$AR cru $lib $objdir/$soname'
darco 56a656
    hardcode_direct=yes
darco 56a656
    hardcode_minus_L=yes
darco 56a656
    ;;
darco 56a656
darco 56a656
  amigaos*)
darco 56a656
    archive_cmds='$rm $objdir/a2ixlibrary.data;$echo "#define NAME $libname" > $objdir/a2ixlibrary.data;$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data;$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data;$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data;$AR cru $lib$libobjs;$RANLIB $lib;(cd $objdir && a2ixlibrary -32)'
darco 56a656
    hardcode_libdir_flag_spec='-L$libdir'
darco 56a656
    hardcode_minus_L=yes
darco 56a656
    ;;
darco 56a656
darco 56a656
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
darco 56a656
  # support.  Future versions do this automatically, but an explicit c++rt0.o
darco 56a656
  # does not break anything, and helps significantly (at the cost of a little
darco 56a656
  # extra space).
darco 56a656
  freebsd2.2*)
darco 56a656
    archive_cmds='$LD -Bshareable -o $lib$libobjs /usr/lib/c++rt0.o'
darco 56a656
    hardcode_libdir_flag_spec='-R$libdir'
darco 56a656
    hardcode_direct=yes
darco 56a656
    hardcode_minus_L=yes
darco 56a656
    hardcode_shlibpath_var=no
darco 56a656
    ;;
darco 56a656
darco 56a656
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
darco 56a656
  freebsd2*)
darco 56a656
    archive_cmds='$LD -Bshareable -o $lib$libobjs'
darco 56a656
    hardcode_direct=yes
darco 56a656
    hardcode_minus_L=yes
darco 56a656
    hardcode_shlibpath_var=no
darco 56a656
    ;;
darco 56a656
darco 56a656
  # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
darco 56a656
  freebsd3*)
darco 56a656
    archive_cmds='$CC -shared -o $lib$libobjs'
darco 56a656
    hardcode_libdir_flag_spec='-R$libdir'
darco 56a656
    hardcode_direct=yes
darco 56a656
    hardcode_minus_L=yes
darco 56a656
    hardcode_shlibpath_var=no
darco 56a656
    ;;
darco 56a656
darco 56a656
  hpux9*)
darco 56a656
    archive_cmds='$rm $objdir/$soname;$LD -b +s +b $install_libdir -o $objdir/$soname$libobjs;mv $objdir/$soname $lib'
darco 56a656
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
darco 56a656
    hardcode_direct=yes
darco 56a656
    hardcode_minus_L=yes
darco 56a656
    export_dynamic_flag_spec='${wl}-E'
darco 56a656
    ;;
darco 56a656
darco 56a656
  hpux10*)
darco 56a656
    archive_cmds='$LD -b +h $soname +s +b $install_libdir -o $lib$libobjs'
darco 56a656
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
darco 56a656
    hardcode_direct=yes
darco 56a656
    hardcode_minus_L=yes
darco 56a656
    export_dynamic_flag_spec='${wl}-E'
darco 56a656
    ;;
darco 56a656
darco 56a656
  irix5* | irix6*)
darco 56a656
    archive_cmds='$LD -shared -o $lib -soname $soname -set_version $verstring$libobjs'
darco 56a656
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
darco 56a656
    ;;
darco 56a656
darco 56a656
  netbsd*)
darco 56a656
    # Tested with NetBSD 1.2 ld
darco 56a656
    archive_cmds='$LD -Bshareable -o $lib$libobjs'
darco 56a656
    hardcode_libdir_flag_spec='-R$libdir'
darco 56a656
    hardcode_direct=yes
darco 56a656
    hardcode_shlibpath_var=no
darco 56a656
    ;;
darco 56a656
darco 56a656
  openbsd*)
darco 56a656
    archive_cmds='$LD -Bshareable -o $lib$libobjs'
darco 56a656
    hardcode_libdir_flag_spec='-R$libdir'
darco 56a656
    hardcode_direct=yes
darco 56a656
    hardcode_shlibpath_var=no
darco 56a656
    ;;
darco 56a656
darco 56a656
  os2*)
darco 56a656
    hardcode_libdir_flag_spec='-L$libdir'
darco 56a656
    hardcode_minus_L=yes
darco 56a656
    allow_undefined_flag=unsupported
darco 56a656
    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $objdir/$libname.def;$echo "DESCRIPTION \"$libname\"" >> $objdir/$libname.def;$echo DATA >> $objdir/$libname.def;$echo " SINGLE NONSHARED" >> $objdir/$libname.def;$echo EXPORTS >> $objdir/$libname.def;emxexp$libobjs >> $objdir/$libname.def;$CC -Zdll -Zcrtdll -o $lib$libobjs $objdir/$libname.def'
darco 56a656
    old_archive_from_new_cmds='emximp -o $objdir/$libname.a $objdir/$libname.def'
darco 56a656
    ;;
darco 56a656
darco 56a656
  osf3* | osf4*)
darco 56a656
    allow_undefined_flag=' -expect_unresolved \*'
darco 56a656
    archive_cmds='$LD -shared${allow_undefined_flag} -o $lib -soname $soname -set_version $verstring$libobjs$deplibs'
darco 56a656
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
darco 56a656
    hardcode_libdir_separator=:
darco 56a656
    ;;
darco 56a656
darco 56a656
  sco3.2v5*)
darco 56a656
    archive_cmds='$LD -G -o $lib$libobjs'
darco 56a656
    hardcode_direct=yes
darco 56a656
    ;;
darco 56a656
darco 56a656
  solaris2*)
darco 56a656
    no_undefined_flag=' -z text'
darco 56a656
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib$libobjs'
darco 56a656
    hardcode_libdir_flag_spec='-R$libdir'
darco 56a656
    hardcode_shlibpath_var=no
darco 56a656
darco 56a656
    # Solaris 2 before 2.5 hardcodes -L paths.
darco 56a656
    case "$host_os" in
darco 56a656
    solaris2.[0-4]*)
darco 56a656
      hardcode_minus_L=yes
darco 56a656
      ;;
darco 56a656
    esac
darco 56a656
    ;;
darco 56a656
darco 56a656
  sunos4*)
darco 56a656
    if test "$with_gcc" = yes; then
darco 56a656
      archive_cmds='$CC -shared -o $lib$libobjs'
darco 56a656
    else
darco 56a656
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib$libobjs'
darco 56a656
    fi
darco 56a656
darco 56a656
    if test "$with_gnu_ld" = yes; then
darco 56a656
      export_dynamic_flag_spec='${wl}-export-dynamic'
darco 56a656
    fi
darco 56a656
    hardcode_libdir_flag_spec='-L$libdir'
darco 56a656
    hardcode_direct=yes
darco 56a656
    hardcode_minus_L=yes
darco 56a656
    hardcode_shlibpath_var=no
darco 56a656
    ;;
darco 56a656
darco 56a656
  uts4*)
darco 56a656
    archive_cmds='$LD -G -h $soname -o $lib$libobjs'
darco 56a656
    hardcode_libdir_flag_spec='-L$libdir'
darco 56a656
    hardcode_direct=no
darco 56a656
    hardcode_minus_L=no
darco 56a656
    hardcode_shlibpath_var=no
darco 56a656
    ;;
darco 56a656
darco 56a656
  *)
darco 56a656
    ld_shlibs=no
darco 56a656
    can_build_shared=no
darco 56a656
    ;;
darco 56a656
  esac
darco 56a656
fi
darco 56a656
echo "$ac_t$ld_shlibs" 1>&6
darco 56a656
darco 56a656
if test -z "$NM"; then
darco 56a656
  echo $ac_n "checking for BSD-compatible nm... $ac_c" 1>&6
darco 56a656
  case "$NM" in
darco 56a656
  /* | [A-Za-z]:\\*) ;; # Let the user override the test with a path.
darco 56a656
  *)
darco 56a656
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
darco 56a656
    for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
darco 56a656
      test -z "$ac_dir" && ac_dir=.
darco 56a656
      if test -f $ac_dir/nm; then
darco 56a656
        # Check to see if the nm accepts a BSD-compat flag.
darco 56a656
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
darco 56a656
        #   nm: unknown option "B" ignored
darco 56a656
        if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
darco 56a656
          NM="$ac_dir/nm -B"
darco 56a656
        elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
darco 56a656
          NM="$ac_dir/nm -p"
darco 56a656
	else
darco 56a656
          NM="$ac_dir/nm"
darco 56a656
	fi
darco 56a656
        break
darco 56a656
      fi
darco 56a656
    done
darco 56a656
    IFS="$ac_save_ifs"
darco 56a656
    test -z "$NM" && NM=nm
darco 56a656
    ;;
darco 56a656
  esac
darco 56a656
  echo "$ac_t$NM" 1>&6
darco 56a656
fi
darco 56a656
darco 56a656
# Check for command to grab the raw symbol name followed by C symbol from nm.
darco 56a656
echo $ac_n "checking command to parse $NM output... $ac_c" 1>&6
darco 56a656
darco 56a656
# These are sane defaults that work on at least a few old systems.
darco 56a656
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
darco 56a656
darco 56a656
# Character class describing NM global symbol codes.
darco 56a656
symcode='[BCDEGRSTU]'
darco 56a656
darco 56a656
# Regexp to match symbols that can be accessed directly from C.
darco 56a656
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
darco 56a656
darco 56a656
# Transform the above into a raw symbol and a C symbol.
darco 56a656
symxfrm='\1 \1'
darco 56a656
darco 56a656
# Define system-specific variables.
darco 56a656
case "$host_os" in
darco 56a656
aix*)
darco 56a656
  symcode='[BCDTU]'
darco 56a656
  ;;
darco 56a656
irix*)
darco 56a656
  # Cannot use undefined symbols on IRIX because inlined functions mess us up.
darco 56a656
  symcode='[BCDEGRST]'
darco 56a656
  ;;
darco 56a656
solaris2*)
darco 56a656
  symcode='[BDTU]'
darco 56a656
  ;;
darco 56a656
esac
darco 56a656
darco 56a656
# If we're using GNU nm, then use its standard symbol codes.
darco 56a656
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
darco 56a656
  symcode='[ABCDGISTUW]'
darco 56a656
fi
darco 56a656
darco 56a656
# Write the raw and C identifiers.
darco 56a656
global_symbol_pipe="sed -n -e 's/^.* $symcode $sympat$/$symxfrm/p'"
darco 56a656
darco 56a656
# Check to see that the pipe works correctly.
darco 56a656
pipe_works=no
darco 56a656
$rm conftest*
darco 56a656
cat > conftest.c <
darco 56a656
#ifdef __cplusplus
darco 56a656
extern "C" {
darco 56a656
#endif
darco 56a656
char nm_test_var;
darco 56a656
void nm_test_func(){}
darco 56a656
#ifdef __cplusplus
darco 56a656
}
darco 56a656
#endif
darco 56a656
main(){nm_test_var='a';nm_test_func();return(0);}
darco 56a656
EOF
darco 56a656
darco 56a656
echo "$progname:971: checking if global_symbol_pipe works" >&5
darco 56a656
if { (eval echo $progname:972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.o; then
darco 56a656
  # Now try to grab the symbols.
darco 56a656
  nlist=conftest.nm
darco 56a656
  if { echo "$progname:975: eval \"$NM conftest.o | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.o | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then
darco 56a656
darco 56a656
    # Try sorting and uniquifying the output.
darco 56a656
    if sort "$nlist" | uniq > "$nlist"T; then
darco 56a656
      mv -f "$nlist"T "$nlist"
darco 56a656
      wcout=`wc "$nlist" 2>/dev/null`
darco 56a656
      count=`$echo "X$wcout" | $Xsed -e 's/^[ 	]*\([0-9][0-9]*\).*$/\1/'`
darco 56a656
      (test "$count" -ge 0) 2>/dev/null || count=-1
darco 56a656
    else
darco 56a656
      rm -f "$nlist"T
darco 56a656
      count=-1
darco 56a656
    fi
darco 56a656
darco 56a656
    # Make sure that we snagged all the symbols we need.
darco 56a656
    if egrep ' nm_test_var$' "$nlist" >/dev/null; then
darco 56a656
      if egrep ' nm_test_func$' "$nlist" >/dev/null; then
darco 56a656
	cat <<eof> conftest.c</eof>
darco 56a656
#ifdef __cplusplus
darco 56a656
extern "C" {
darco 56a656
#endif
darco 56a656
darco 56a656
EOF
darco 56a656
        # Now generate the symbol file.
darco 56a656
        sed 's/^.* \(.*\)$/extern char \1;/' < "$nlist" >> conftest.c
darco 56a656
darco 56a656
	cat <<eof>> conftest.c</eof>
darco 56a656
#if defined (__STDC__) && __STDC__
darco 56a656
# define __ptr_t void *
darco 56a656
#else
darco 56a656
# define __ptr_t char *
darco 56a656
#endif
darco 56a656
darco 56a656
/* The number of symbols in dld_preloaded_symbols, -1 if unsorted. */
darco 56a656
int dld_preloaded_symbol_count = $count;
darco 56a656
darco 56a656
/* The mapping between symbol names and symbols. */
darco 56a656
struct {
darco 56a656
  char *name;
darco 56a656
  __ptr_t address;
darco 56a656
}
darco 56a656
dld_preloaded_symbols[] =
darco 56a656
{
darco 56a656
EOF
darco 56a656
        sed 's/^\(.*\) \(.*\)$/  {"\1", (__ptr_t) \&\2},/' < "$nlist" >> conftest.c
darco 56a656
        cat <<\EOF >> conftest.c
darco 56a656
  {0, (__ptr_t) 0}
darco 56a656
};
darco 56a656
darco 56a656
#ifdef __cplusplus
darco 56a656
}
darco 56a656
#endif
darco 56a656
EOF
darco 56a656
        # Now try linking the two files.
darco 56a656
        mv conftest.o conftestm.o
darco 56a656
	save_LIBS="$LIBS"
darco 56a656
	save_CFLAGS="$CFLAGS"
darco 56a656
        LIBS='conftestm.o'
darco 56a656
	CFLAGS="$CFLAGS$no_builtin_flag"
darco 56a656
        if { (eval echo $progname:1033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
darco 56a656
          pipe_works=yes
darco 56a656
        else
darco 56a656
          echo "$progname: failed program was:" >&5
darco 56a656
          cat conftest.c >&5
darco 56a656
        fi
darco 56a656
        LIBS="$save_LIBS"
darco 56a656
      else
darco 56a656
        echo "cannot find nm_test_func in $nlist" >&5
darco 56a656
      fi
darco 56a656
    else
darco 56a656
      echo "cannot find nm_test_var in $nlist" >&5
darco 56a656
    fi
darco 56a656
  else
darco 56a656
    echo "cannot run $global_symbol_pipe" >&5
darco 56a656
  fi
darco 56a656
else
darco 56a656
  echo "$progname: failed program was:" >&5
darco 56a656
  cat conftest.c >&5
darco 56a656
fi
darco 56a656
$rm conftest*
darco 56a656
darco 56a656
# Do not use the global_symbol_pipe unless it works.
darco 56a656
echo "$ac_t$pipe_works" 1>&6
darco 56a656
test "$pipe_works" = yes || global_symbol_pipe=
darco 56a656
darco 56a656
# Check hardcoding attributes.
darco 56a656
echo $ac_n "checking how to hardcode library paths into programs... $ac_c" 1>&6
darco 56a656
hardcode_action=
darco 56a656
if test -n "$hardcode_libdir_flag_spec" || \
darco 56a656
   test -n "$runpath_var"; then
darco 56a656
darco 56a656
  # We can hardcode non-existant directories.
darco 56a656
  if test "$hardcode_direct" != no && \
darco 56a656
     test "$hardcode_minus_L" != no && \
darco 56a656
     test "$hardcode_shlibpath_var" != no; then
darco 56a656
darco 56a656
    # Linking always hardcodes the temporary library directory.
darco 56a656
    hardcode_action=relink
darco 56a656
  else
darco 56a656
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
darco 56a656
    hardcode_action=immediate
darco 56a656
  fi
darco 56a656
elif test "$hardcode_direct" != yes && \
darco 56a656
     test "$hardcode_minus_L" != yes && \
darco 56a656
     test "$hardcode_shlibpath_var" != yes; then
darco 56a656
  # We cannot hardcode anything.
darco 56a656
  hardcode_action=unsupported
darco 56a656
else
darco 56a656
  # We can only hardcode existing directories.
darco 56a656
  hardcode_action=relink
darco 56a656
fi
darco 56a656
echo "$ac_t$hardcode_action" 1>&6
darco 56a656
test "$hardcode_action" = unsupported && can_build_shared=no
darco 56a656
darco 56a656
darco 56a656
reload_flag=
darco 56a656
reload_cmds='$LD$reload_flag -o $output$reload_objs'
darco 56a656
echo $ac_n "checking for $LD option to reload object files... $ac_c" 1>&6
darco 56a656
# PORTME Some linker may need a different reload flag.
darco 56a656
reload_flag='-r'
darco 56a656
echo "$ac_t$reload_flag"
darco 56a656
test -n "$reload_flag" && reload_flag=" $reload_flag"
darco 56a656
darco 56a656
# PORTME Fill in your ld.so characteristics
darco 56a656
library_names_spec=
darco 56a656
libname_spec='lib$name'
darco 56a656
soname_spec=
darco 56a656
postinstall_cmds=
darco 56a656
postuninstall_cmds=
darco 56a656
finish_cmds=
darco 56a656
finish_eval=
darco 56a656
shlibpath_var=
darco 56a656
version_type=none
darco 56a656
dynamic_linker="$host_os ld.so"
darco 56a656
darco 56a656
echo $ac_n "checking dynamic linker characteristics... $ac_c" 1>&6
darco 56a656
case "$host_os" in
darco 56a656
aix3* | aix4*)
darco 56a656
  version_type=linux
darco 56a656
  library_names_spec='${libname}${release}.so.$versuffix $libname.a'
darco 56a656
  shlibpath_var=LIBPATH
darco 56a656
darco 56a656
  # AIX has no versioning support, so we append a major version to the name.
darco 56a656
  soname_spec='${libname}${release}.so.$major'
darco 56a656
  ;;
darco 56a656
darco 56a656
amigaos*)
darco 56a656
  library_names_spec='$libname.ixlibrary $libname.a'
darco 56a656
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
darco 56a656
  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'
darco 56a656
  ;;
darco 56a656
darco 56a656
freebsd2* | freebsd3*)
darco 56a656
  version_type=sunos
darco 56a656
  library_names_spec='${libname}${release}.so.$versuffix $libname.so'
darco 56a656
  finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir'
darco 56a656
  shlibpath_var=LD_LIBRARY_PATH
darco 56a656
  ;;
darco 56a656
darco 56a656
gnu*)
darco 56a656
  version_type=sunos
darco 56a656
  library_names_spec='${libname}${release}.so.$versuffix'
darco 56a656
  shlibpath_var=LD_LIBRARY_PATH
darco 56a656
  ;;
darco 56a656
darco 56a656
hpux9* | hpux10*)
darco 56a656
  # Give a soname corresponding to the major version so that dld.sl refuses to
darco 56a656
  # link against other versions.
darco 56a656
  dynamic_linker="$host_os dld.sl"
darco 56a656
  version_type=sunos
darco 56a656
  shlibpath_var=SHLIB_PATH
darco 56a656
  library_names_spec='${libname}${release}.sl.$versuffix ${libname}${release}.sl.$major $libname.sl'
darco 56a656
  soname_spec='${libname}${release}.sl.$major'
darco 56a656
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
darco 56a656
  postinstall_cmds='chmod 555 $lib'
darco 56a656
  ;;
darco 56a656
darco 56a656
irix5* | irix6*)
darco 56a656
  version_type=osf
darco 56a656
  soname_spec='${libname}${release}.so'
darco 56a656
  library_names_spec='${libname}${release}.so.$versuffix $libname.so'
darco 56a656
  shlibpath_var=LD_LIBRARY_PATH
darco 56a656
  ;;
darco 56a656
darco 56a656
# No shared lib support for Linux oldld, aout, or coff.
darco 56a656
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
darco 56a656
  dynamic_linker=no
darco 56a656
  ;;
darco 56a656
darco 56a656
# This must be Linux ELF.
darco 56a656
linux-gnu*)
darco 56a656
  version_type=linux
darco 56a656
  library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major $libname.so'
darco 56a656
  soname_spec='${libname}${release}.so.$major'
darco 56a656
  finish_cmds='PATH="$PATH:/sbin" ldconfig -n $libdir'
darco 56a656
  shlibpath_var=LD_LIBRARY_PATH
darco 56a656
darco 56a656
  if test -f /lib/ld.so.1; then
darco 56a656
    dynamic_linker='GNU ld.so'
darco 56a656
  else
darco 56a656
    # Only the GNU ld.so supports shared libraries on MkLinux.
darco 56a656
    case "$host_cpu" in
darco 56a656
    powerpc*) dynamic_linker=no ;;
darco 56a656
    *) dynamic_linker='Linux ld.so' ;;
darco 56a656
    esac
darco 56a656
  fi
darco 56a656
  ;;
darco 56a656
darco 56a656
netbsd* | openbsd*)
darco 56a656
  version_type=sunos
darco 56a656
  library_names_spec='${libname}${release}.so.$versuffix'
darco 56a656
  finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir'
darco 56a656
  shlibpath_var=LD_LIBRARY_PATH
darco 56a656
  ;;
darco 56a656
darco 56a656
os2*)
darco 56a656
  libname_spec='$name'
darco 56a656
  library_names_spec='$libname.dll $libname.a'
darco 56a656
  dynamic_linker='OS/2 ld.exe'
darco 56a656
  shlibpath_var=LIBPATH
darco 56a656
  ;;
darco 56a656
darco 56a656
osf3* | osf4*)
darco 56a656
  version_type=osf
darco 56a656
  soname_spec='${libname}${release}.so'
darco 56a656
  library_names_spec='${libname}${release}.so.$versuffix $libname.so'
darco 56a656
  shlibpath_var=LD_LIBRARY_PATH
darco 56a656
  ;;
darco 56a656
darco 56a656
sco3.2v5*)
darco 56a656
  version_type=osf
darco 56a656
  soname_spec='${libname}${release}.so.$major'
darco 56a656
  library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major $libname.so'
darco 56a656
  shlibpath_var=LD_LIBRARY_PATH
darco 56a656
  ;;
darco 56a656
darco 56a656
solaris2*)
darco 56a656
  version_type=linux
darco 56a656
  library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major $libname.so'
darco 56a656
  soname_spec='${libname}${release}.so.$major'
darco 56a656
  shlibpath_var=LD_LIBRARY_PATH
darco 56a656
  ;;
darco 56a656
darco 56a656
sunos4*)
darco 56a656
  version_type=sunos
darco 56a656
  library_names_spec='${libname}${release}.so.$versuffix'
darco 56a656
  finish_cmds='PATH="$PATH:/usr/etc" ldconfig $libdir'
darco 56a656
  shlibpath_var=LD_LIBRARY_PATH
darco 56a656
  ;;
darco 56a656
darco 56a656
sysv4.2uw2*)
darco 56a656
  version_type=linux
darco 56a656
  library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major $libname.so'
darco 56a656
  soname_spec='${libname}${release}.so.$major'
darco 56a656
  shlibpath_var=LD_LIBRARY_PATH
darco 56a656
  ;;
darco 56a656
darco 56a656
uts4*)
darco 56a656
  version_type=linux
darco 56a656
  library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major $libname.so'
darco 56a656
  soname_spec='${libname}${release}.so.$major'
darco 56a656
  shlibpath_var=LD_LIBRARY_PATH
darco 56a656
  ;;
darco 56a656
darco 56a656
*)
darco 56a656
  dynamic_linker=no
darco 56a656
  ;;
darco 56a656
esac
darco 56a656
echo "$ac_t$dynamic_linker"
darco 56a656
test "$dynamic_linker" = no && can_build_shared=no
darco 56a656
darco 56a656
# Report the final consequences.
darco 56a656
echo "checking if libtool supports shared libraries... $can_build_shared" 1>&6
darco 56a656
darco 56a656
echo $ac_n "checking whether to build shared libraries... $ac_c" 1>&6
darco 56a656
test "$can_build_shared" = "no" && enable_shared=no
darco 56a656
darco 56a656
# On AIX, shared libraries and static libraries use the same namespace, and
darco 56a656
# are all built from PIC.
darco 56a656
case "$host_os" in
darco 56a656
aix*)
darco 56a656
  test "$enable_shared" = yes && enable_static=no
darco 56a656
  if test -n "$RANLIB"; then
darco 56a656
    archive_cmds="$archive_cmds;\$RANLIB \$lib"
darco 56a656
    postinstall_cmds='$RANLIB $lib'
darco 56a656
  fi
darco 56a656
  ;;
darco 56a656
esac
darco 56a656
darco 56a656
echo "$ac_t$enable_shared" 1>&6
darco 56a656
darco 56a656
# Make sure either enable_shared or enable_static is yes.
darco 56a656
test "$enable_shared" = yes || enable_static=yes
darco 56a656
darco 56a656
echo "checking whether to build static libraries... $enable_static" 1>&6
darco 56a656
darco 56a656
echo $ac_n "checking for objdir... $ac_c" 1>&6
darco 56a656
rm -f .libs 2>/dev/null
darco 56a656
mkdir .libs 2>/dev/null
darco 56a656
if test -d .libs; then
darco 56a656
  objdir=.libs
darco 56a656
else
darco 56a656
  # MS-DOS does not allow filenames that begin with a dot.
darco 56a656
  objdir=_libs
darco 56a656
fi
darco 56a656
rmdir .libs 2>/dev/null
darco 56a656
echo "$ac_t$objdir" 1>&6
darco 56a656
darco 56a656
# Copy echo and quote the copy, instead of the original, because it is
darco 56a656
# used later.
darco 56a656
ltecho="$echo"
darco 56a656
darco 56a656
# Now quote all the things that may contain metacharacters.
darco 56a656
for var in ltecho old_CC old_CFLAGS old_CPPFLAGS old_LD old_NM old_RANLIB \
darco 56a656
  old_LN_S AR CC LD LN_S NM reload_flag reload_cmds wl pic_flag \
darco 56a656
  link_static_flag no_builtin_flag export_dynamic_flag_spec \
darco 56a656
  libname_spec library_names_spec soname_spec RANLIB \
darco 56a656
  old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
darco 56a656
  old_postuninstall_cmds archive_cmds postinstall_cmds postuninstall_cmds \
darco 56a656
  allow_undefined_flag no_undefined_flag \
darco 56a656
  finish_cmds finish_eval global_symbol_pipe \
darco 56a656
  hardcode_libdir_flag_spec hardcode_libdir_separator; do
darco 56a656
darco 56a656
  case "$var" in
darco 56a656
  reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
darco 56a656
  old_postinstall_cmds | old_postuninstall_cmds | archive_cmds | \
darco 56a656
  postinstall_cmds | postuninstall_cmds | finish_cmds)
darco 56a656
    # Double-quote double-evaled strings.
darco 56a656
    eval "$var=\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\"\`"
darco 56a656
    ;;
darco 56a656
  *)
darco 56a656
    eval "$var=\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`"
darco 56a656
    ;;
darco 56a656
  esac
darco 56a656
done
darco 56a656
darco 56a656
ofile=libtool
darco 56a656
trap "$rm $ofile; exit 1" 1 2 15
darco 56a656
echo creating $ofile
darco 56a656
$rm $ofile
darco 56a656
cat <<eof> $ofile</eof>
darco 56a656
#! /bin/sh
darco 56a656
darco 56a656
# libtool - Provide generalized library-building support services.
darco 56a656
# Generated automatically by $PROGRAM - GNU $PACKAGE $VERSION
darco 56a656
# NOTE: Changes made to this file will be lost: look at ltconfig or ltmain.sh.
darco 56a656
#
darco 56a656
# Copyright (C) 1996-1998 Free Software Foundation, Inc.
darco 56a656
# Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996</gord@gnu.ai.mit.edu>
darco 56a656
#
darco 56a656
# This program is free software; you can redistribute it and/or modify
darco 56a656
# it under the terms of the GNU General Public License as published by
darco 56a656
# the Free Software Foundation; either version 2 of the License, or
darco 56a656
# (at your option) any later version.
darco 56a656
#
darco 56a656
# This program is distributed in the hope that it will be useful, but
darco 56a656
# WITHOUT ANY WARRANTY; without even the implied warranty of
darco 56a656
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
darco 56a656
# General Public License for more details.
darco 56a656
#
darco 56a656
# You should have received a copy of the GNU General Public License
darco 56a656
# along with this program; if not, write to the Free Software
darco 56a656
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
darco 56a656
#
darco 56a656
# As a special exception to the GNU General Public License, if you
darco 56a656
# distribute this file as part of a program that contains a
darco 56a656
# configuration script generated by Autoconf, you may include it under
darco 56a656
# the same distribution terms that you use for the rest of that program.
darco 56a656
darco 56a656
# This program was configured as follows,
darco 56a656
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
darco 56a656
#
darco 56a656
# CC="$old_CC" CFLAGS="$old_CFLAGS" CPPFLAGS="$old_CPPFLAGS" \\
darco 56a656
# LD="$old_LD" NM="$old_NM" RANLIB="$old_RANLIB" LN_S="$old_LN_S" \\
darco 56a656
#   $0$ltconfig_args
darco 56a656
#
darco 56a656
# Compiler and other test output produced by $progname, useful for
darco 56a656
# debugging $progname, is in ./config.log if it exists.
darco 56a656
darco 56a656
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
darco 56a656
Xsed="sed -e s/^X//"
darco 56a656
darco 56a656
# The HP-UX ksh and POSIX shell print the target directory to stdout
darco 56a656
# if CDPATH is set.
darco 56a656
if test "\${CDPATH+set}" = set; then CDPATH=; export CDPATH; fi
darco 56a656
darco 56a656
# An echo program that does not interpret backslashes.
darco 56a656
echo="$ltecho"
darco 56a656
darco 56a656
# The version of $progname that generated this script.
darco 56a656
LTCONFIG_VERSION="$VERSION"
darco 56a656
darco 56a656
# Shell to use when invoking shell scripts.
darco 56a656
SHELL=${CONFIG_SHELL-/bin/sh}
darco 56a656
darco 56a656
# Whether or not to build libtool libraries.
darco 56a656
build_libtool_libs=$enable_shared
darco 56a656
darco 56a656
# Whether or not to build old-style libraries.
darco 56a656
build_old_libs=$enable_static
darco 56a656
darco 56a656
# The host system.
darco 56a656
host_alias="$host_alias"
darco 56a656
host="$host"
darco 56a656
darco 56a656
# The archiver.
darco 56a656
AR="$AR"
darco 56a656
darco 56a656
# The default C compiler.
darco 56a656
CC="$CC"
darco 56a656
darco 56a656
# The linker used to build libraries.
darco 56a656
LD="$LD"
darco 56a656
darco 56a656
# Whether we need hard or soft links.
darco 56a656
LN_S="$LN_S"
darco 56a656
darco 56a656
# A BSD-compatible nm program.
darco 56a656
NM="$NM"
darco 56a656
darco 56a656
# The name of the directory that contains temporary libtool files.
darco 56a656
objdir="$objdir"
darco 56a656
darco 56a656
# How to create reloadable object files.
darco 56a656
reload_flag="$reload_flag"
darco 56a656
reload_cmds="$reload_cmds"
darco 56a656
darco 56a656
# How to pass a linker flag through the compiler.
darco 56a656
wl="$wl"
darco 56a656
darco 56a656
# Additional compiler flags for building library objects.
darco 56a656
pic_flag="$pic_flag"
darco 56a656
darco 56a656
# Compiler flag to prevent dynamic linking.
darco 56a656
link_static_flag="$link_static_flag"
darco 56a656
darco 56a656
# Compiler flag to turn off builtin functions.
darco 56a656
no_builtin_flag="$no_builtin_flag"
darco 56a656
darco 56a656
# Compiler flag to allow reflexive dlopens.
darco 56a656
export_dynamic_flag_spec="$export_dynamic_flag_spec"
darco 56a656
darco 56a656
# Library versioning type.
darco 56a656
version_type=$version_type
darco 56a656
darco 56a656
# Format of library name prefix.
darco 56a656
libname_spec="$libname_spec"
darco 56a656
darco 56a656
# List of archive names.  First name is the real one, the rest are links.
darco 56a656
# The last name is the one that the linker finds with -lNAME.
darco 56a656
library_names_spec="$library_names_spec"
darco 56a656
darco 56a656
# The coded name of the library, if different from the real name.
darco 56a656
soname_spec="$soname_spec"
darco 56a656
darco 56a656
# Commands used to build and install an old-style archive.
darco 56a656
RANLIB="$RANLIB"
darco 56a656
old_archive_cmds="$old_archive_cmds"
darco 56a656
old_postinstall_cmds="$old_postinstall_cmds"
darco 56a656
old_postuninstall_cmds="$old_postuninstall_cmds"
darco 56a656
darco 56a656
# Create an old-style archive from a shared archive.
darco 56a656
old_archive_from_new_cmds="$old_archive_from_new_cmds"
darco 56a656
darco 56a656
# Commands used to build and install a shared archive.
darco 56a656
archive_cmds="$archive_cmds"
darco 56a656
postinstall_cmds="$postinstall_cmds"
darco 56a656
postuninstall_cmds="$postuninstall_cmds"
darco 56a656
darco 56a656
# Flag that allows shared libraries with undefined symbols to be built.
darco 56a656
allow_undefined_flag="$allow_undefined_flag"
darco 56a656
darco 56a656
# Flag that forces no undefined symbols.
darco 56a656
no_undefined_flag="$no_undefined_flag"
darco 56a656
darco 56a656
# Commands used to finish a libtool library installation in a directory.
darco 56a656
finish_cmds="$finish_cmds"
darco 56a656
darco 56a656
# Same as above, but a single script fragment to be evaled but not shown.
darco 56a656
finish_eval="$finish_eval"
darco 56a656
darco 56a656
# Take the output of nm and produce a listing of raw symbols and C names.
darco 56a656
global_symbol_pipe="$global_symbol_pipe"
darco 56a656
darco 56a656
# This is the shared library runtime path variable.
darco 56a656
runpath_var=$runpath_var
darco 56a656
darco 56a656
# This is the shared library path variable.
darco 56a656
shlibpath_var=$shlibpath_var
darco 56a656
darco 56a656
# How to hardcode a shared library path into an executable.
darco 56a656
hardcode_action=$hardcode_action
darco 56a656
darco 56a656
# Flag to hardcode \$libdir into a binary during linking.
darco 56a656
# This must work even if \$libdir does not exist.
darco 56a656
hardcode_libdir_flag_spec="$hardcode_libdir_flag_spec"
darco 56a656
darco 56a656
# Whether we need a single -rpath flag with a separated argument.
darco 56a656
hardcode_libdir_separator="$hardcode_libdir_separator"
darco 56a656
darco 56a656
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
darco 56a656
# resulting binary.
darco 56a656
hardcode_direct=$hardcode_direct
darco 56a656
darco 56a656
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
darco 56a656
# resulting binary.
darco 56a656
hardcode_minus_L=$hardcode_minus_L
darco 56a656
darco 56a656
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
darco 56a656
# the resulting binary.
darco 56a656
hardcode_shlibpath_var=$hardcode_shlibpath_var
darco 56a656
darco 56a656
EOF
darco 56a656
darco 56a656
case "$host_os" in
darco 56a656
aix3*)
darco 56a656
  cat <<\EOF >> $ofile
darco 56a656
# AIX sometimes has problems with the GCC collect2 program.  For some
darco 56a656
# reason, if we set the COLLECT_NAMES environment variable, the problems
darco 56a656
# vanish in a puff of smoke.
darco 56a656
if test "${COLLECT_NAMES+set}" != set; then
darco 56a656
  COLLECT_NAMES=
darco 56a656
  export COLLECT_NAMES
darco 56a656
fi
darco 56a656
darco 56a656
EOF
darco 56a656
  ;;
darco 56a656
esac
darco 56a656
darco 56a656
# Append the ltmain.sh script.
darco 56a656
cat "$ltmain" >> $ofile || (rm -f $ofile; exit 1)
darco 56a656
darco 56a656
chmod +x $ofile
darco 56a656
exit 0
darco 56a656
darco 56a656
# Local Variables:
darco 56a656
# mode:shell-script
darco 56a656
# sh-indentation:2
darco 56a656
# End: