libtool/tests/defs

31 lines
648 B
Plaintext
Raw Normal View History

1997-04-02 03:18:28 +08:00
# -*- 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
/*) ;;
*) srcdir=`cd $srcdir && pwd` ;;
esac
1997-04-02 03:21:43 +08:00
# tlibtool needs to know what srcdir is.
export srcdir
libtool="$srcdir/tlibtool"
1997-04-02 03:18:28 +08:00
prefix="./=inst"
if test "$need_prefix" = yes; then
# An absolute path to a test installation directory.
1997-04-02 03:21:43 +08:00
test -d $prefix || mkdir $prefix
1997-04-02 03:18:28 +08:00
prefix=`cd $prefix && pwd`
else
1997-04-02 03:21:43 +08:00
test -d $prefix && rm -rf $prefix
1997-04-02 03:18:28 +08:00
prefix=NONE
fi
# See how redirections should work.
if test -z "$VERBOSE"; then
exec > /dev/null 2>&1
fi
echo "=== Running test $0"