1#! /bin/sh
2# depdemo-conf.test - try configuring the ../depdemo subdirectory
3
4# Test script header.
5need_prefix=yes
6if test -z "$srcdir"; then
7  srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
8  test "$srcdir" = "$0" && srcdir=.
9  test "${VERBOSE+set}" != "set" && VERBOSE=yes
10fi
11. $srcdir/defs || exit 1
12
13# Maybe we have a VPATH build, in which case, create a new subdir.
14test -d ../depdemo || mkdir ../depdemo
15
16# Change to our build directory.
17cd ../depdemo || exit 1
18
19# Possibly clean up the distribution.
20if test -f Makefile; then
21  echo "= Running $make distclean in ../depdemo"
22  $make distclean
23fi
24rm -f config.cache
25
26# Configure the demonstration.
27echo "= Configuring in ../depdemo (prefix=$prefix) with --disable-shared"
28${CONFIG_SHELL-/bin/sh} $srcdir/../depdemo/configure --srcdir=$srcdir/../depdemo --prefix=$prefix --build=$host --disable-shared || exit 1
29
30if grep '^build_old_libs=yes' libtool > /dev/null &&
31   grep '^build_libtool_libs=no' libtool > /dev/null; then :
32else rm -f Makefile && exit 77
33fi
34
35exit 0
36