libtool/tests/defs

34 lines
678 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
1998-02-17 04:13:54 +08:00
/* | [A-Za-z]:\\*) ;;
1997-04-02 03:18:28 +08:00
*) srcdir=`cd $srcdir && pwd` ;;
esac
1997-04-02 03:53:01 +08:00
progname=`echo "$0" | sed 's%^.*/%%'`
1998-03-09 13:34:02 +08:00
libtool="../libtool"
1997-04-02 03:53:01 +08:00
make="${MAKE-make}"
1997-04-02 03:21:43 +08:00
1997-10-15 02:33:24 +08:00
prefix="./_inst"
1997-04-02 03:18:28 +08:00
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.
1997-04-02 03:53:01 +08:00
case "$VERBOSE" in
NO | no | 0 | "")
exec > /dev/null 2>&1
;;
esac
1997-04-02 03:18:28 +08:00
1997-04-02 03:53:01 +08:00
echo "=== Running $progname"