mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-12-27 07:09:26 +08:00
cbc1402596
* libtool.m4 (AC_PROG_LIBTOOL): added --with-pic flag * ltconfig.in: new pic_mode variable and --prefer[-non]-pic flags, fixed the strip check (reported by Keith Bostic <bostic@bostic.com>) * ltmain.in (compile mode): build only PIC/non-PIC code depending on pic_mode * libltdl/README: document the supported dlopen interfaces * doc/libtool.texi (tests): documented new tests * tests/Makefile.am: added new tests * tests/demo-pic.test: new test to test --with-pic * tests/demo-nopic.test: new test to test --without-pic * tests/build-relink2.test: variant of build-relink.test that uses depdemo
31 lines
843 B
Bash
Executable File
31 lines
843 B
Bash
Executable File
#! /bin/sh
|
|
# demo-nopic.test - try configuring the ../demo subdirectory
|
|
|
|
# Test script header.
|
|
need_prefix=no
|
|
if test -z "$srcdir"; then
|
|
srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
|
|
test "$srcdir" = "$0" && srcdir=.
|
|
test "${VERBOSE+set}" != "set" && VERBOSE=yes
|
|
fi
|
|
. $srcdir/defs || exit 1
|
|
|
|
# Maybe we have a VPATH build, in which case, create a new subdir.
|
|
test -d ../demo || mkdir ../demo
|
|
|
|
# Change to our build directory.
|
|
cd ../demo || exit 1
|
|
|
|
# Possibly clean up the distribution.
|
|
if test -f Makefile; then
|
|
echo "= Running $make distclean in ../demo"
|
|
$make distclean
|
|
fi
|
|
rm -f config.cache
|
|
|
|
# Configure the demonstration.
|
|
echo "= Configuring in ../demo (prefix=$prefix) with --without-pic"
|
|
CONFIG_SITE=/dev/null ${CONFIG_SHELL-/bin/sh} $srcdir/../demo/configure --srcdir=$srcdir/../demo --prefix=$prefix --with-pic=no || exit 1
|
|
|
|
exit 0
|