mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-12-27 07:09:26 +08:00
6f5427b530
* tests/defs: Find and set the value of CC probed by libtool.m4 * tests/link-2.test: Use a .lo wrapper script, and the value of CC set by defs instead of hardcoding gcc. * tests/link.test: Use the value of CC set by defs instead of hardcoding gcc. * tests/quote.test: Ditto. * tests/suffix.test: Ditto.
38 lines
794 B
Bash
38 lines
794 B
Bash
# -*- sh -*-
|
|
# Defines for Libtool testing environment.
|
|
# Gord Matzigkeit <gord@gnu.ai.mit.edu>, 1996
|
|
|
|
# Check that srcdir is set to an absolute path.
|
|
case "$srcdir" in
|
|
/* | [A-Za-z]:\\*) ;;
|
|
*) srcdir=`cd $srcdir && pwd` ;;
|
|
esac
|
|
|
|
progname=`echo "$0" | sed 's%^.*/%%'`
|
|
|
|
libtool="../libtool"
|
|
make="${MAKE-make}"
|
|
SHELL="${CONFIG_SHELL-/bin/sh}"
|
|
|
|
prefix="./_inst"
|
|
if test "$need_prefix" = yes; then
|
|
# An absolute path to a test installation directory.
|
|
test -d $prefix || mkdir $prefix
|
|
prefix=`cd $prefix && pwd`
|
|
else
|
|
test -d $prefix && rm -rf $prefix
|
|
prefix=NONE
|
|
fi
|
|
|
|
# Extract CC from the libtool configuration
|
|
eval `$libtool --config | grep '^CC='`
|
|
|
|
# See how redirections should work.
|
|
case "$VERBOSE" in
|
|
NO | no | 0 | "")
|
|
exec > /dev/null 2>&1
|
|
;;
|
|
esac
|
|
|
|
echo "=== Running $progname"
|