# -*- sh -*-# Defines for Libtool testing environment.# Gord Matzigkeit <gord@gnu.ai.mit.edu>, 1996# See if we are running on zsh, and set the options which allow our# commands through without removal of \ escapes.if test -n "${ZSH_VERSION+set}" ; thensetopt NO_GLOB_SUBSTfi# Check that srcdir is set to an absolute path.case "$srcdir" in/* | [A-Za-z]:\\*) ;;*) srcdir=`cd $srcdir && pwd` ;;esacprogname=`echo "$0" | sed 's%^.*/%%'`libtool="../libtool"make="${MAKE-make}"SHELL="${CONFIG_SHELL-/bin/sh}": ${SED=sed}if echo a | (grep -E '(a|b)') >/dev/null 2>&1; thenEGREP='grep -E'elseEGREP='egrep'fiif echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1; thenFGREP='grep -F'elseFGREP='fgrep'fiprefix="./_inst"if test "$need_prefix" = yes; then# An absolute path to a test installation directory.test -d $prefix || mkdir $prefixprefix=`cd $prefix && pwd`elsetest -d $prefix && rm -rf $prefixprefix=NONEfi# Extract CC from the libtool configurationeval `$libtool --config | grep '^CC='`# Extract host from the libtool configurationeval `$libtool --config | grep '^host='`# Extract build from the libtool configurationeval `$libtool --config | grep '^build='`# Disable usage of config.site for autoconf, unless DJGPP is present.# The DJGPP port of autoconf requires config.site, to work correctly.if test -z "$DJGPP"; thenCONFIG_SITE=/nonexistentfi# See how redirections should work.case "$VERBOSE" inNO | no | 0 | "")exec > /dev/null 2>&1;;esacecho "=== Running $progname"