+04-09-23 Gary V. Vaughan <gary@gnu.org>
+
+ Since defs can change (path to grep for example) when it is made
+ for a different host, it can't be shipped. That also means that
+ defs will always be generated in the build tree, so each test case
+ can have the srcdir discovery factored away into tests/defs.in:
+
+ * Makefile.am (EXTRA_DIST): s/defs/defs.in/g
+ * tests/Makefile.am (defs): New rule to remake defs from the
+ parent directory's Makefile.
+ * tests/cdemo-conf.test, tests/cdemo-exec.test,
+ tests/cdemo-make.test, tests/cdemo-shared.test,
+ tests/cdemo-static.test, tests/demo-conf.test,
+ tests/demo-deplibs.test, tests/demo-exec.test,
+ tests/demo-hardcode.test, tests/demo-inst.test,
+ tests/demo-make.test, tests/demo-nofast.test,
+ tests/demo-noinst-link.test, tests/demo-nopic.test,
+ tests/demo-pic.test, tests/demo-relink.test,
+ tests/demo-shared.test, tests/demo-static.test,
+ tests/demo-unst.test, tests/depdemo-conf.test,
+ tests/depdemo-exec.test, tests/depdemo-inst.test,
+ tests/depdemo-make.test, tests/depdemo-nofast.test,
+ tests/depdemo-relink.test, tests/depdemo-shared.test,
+ tests/depdemo-static.test, tests/depdemo-unst.test,
+ tests/f77demo-conf.test, tests/f77demo-exec.test,
+ tests/f77demo-make.test, tests/f77demo-shared.test,
+ tests/f77demo-static.test, tests/link-2.test, tests/link.test,
+ tests/mdemo-conf.test, tests/mdemo-dryrun.test,
+ tests/mdemo-exec.test, tests/mdemo-inst.test,
+ tests/mdemo-make.test, tests/mdemo-shared.test,
+ tests/mdemo-static.test, tests/mdemo-unst.test,
+ tests/mdemo2-conf.test, tests/mdemo2-exec.test,
+ tests/mdemo2-make.test, tests/nomode.test, tests/pdemo-conf.test,
+ tests/pdemo-exec.test, tests/pdemo-inst.test,
+ tests/pdemo-make.test, tests/quote.test, tests/sh.test,
+ tests/suffix.test, tests/tagdemo-conf.test,
+ tests/tagdemo-exec.test, tests/tagdemo-make.test,
+ tests/tagdemo-shared.test, tests/tagdemo-static.test,
+ tests/tagtrace.test: Removed srcdir discovery boilerplate...
+ * tests/defs.in: ...and put it here.
+
2004-09-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): move symcode calculation
* doc/libtool.texi (libtool script contents): update description
of global_symbol_to_cdecl.
-04-09-23 Gary V. Vaughan <gary@gnu.org>
+2004-09-23 Gary V. Vaughan <gary@gnu.org>
* configure.ac (M4SH): AC_SUBST m4sh expander.
* config/general.m4sh, config/getopt.m4sh: New files with factored
chmod a-w libtoolize.tmp
mv -f libtoolize.tmp libtoolize
+# The defs script shouldn't be recreated whenever the Makefile is
+# regenerated since the source tree can be read-only.
check-recursive: tests/defs
-tests/defs: tests/defs.in Makefile
- cd $(top_srcdir); \
+tests/defs: tests/defs.in Makefile.am
rm -f tests/defs.m4sh tests/defs.tmp tests/defs; \
- $(M4SH) -B ./config tests/defs.in > tests/defs.m4sh; \
+ $(M4SH) -B $(top_srcdir)/config \
+ $(top_srcdir)/tests/defs.in > tests/defs.m4sh; \
input="defs.in"; \
$(edit) tests/defs.m4sh > tests/defs.tmp; \
rm -f tests/defs.m4sh; \
symcode='[[ABCDGIRSTW]]' ;;
esac
+# If we're using GNU nm, then use its standard symbol codes.
+case `$NM -V 2>&1` in
+*GNU* | *'with BFD'*)
+ symcode='[[ABCDGIRSTW]]' ;;
+esac
+
# Transform an extracted symbol line into a proper C declaration.
# Some systems (esp. on ia64) link data and code symols differently,
# so use this general approach.
## Process this file with automake to produce Makefile.in
+##
+## Copyright (C) 2003, 2004 Free Software Foundation
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; see the file COPYING. If not, write to
+## the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+## Boston, MA 02111-1307, USA.
+
+DISTCLEANFILES =
CXX_TESTS = \
tagdemo-static.test tagdemo-make.test tagdemo-exec.test \
OBJEXT="$(OBJEXT)" EXEEXT="$(EXEEXT)" F77="$(F77)" \
FFLAGS="$(FFLAGS)" CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" CPP="$(CPP)"
-EXTRA_DIST = defs $(COMMON_TESTS) $(CXX_TESTS) $(F77_TESTS)
+EXTRA_DIST = defs.in $(COMMON_TESTS) $(CXX_TESTS) $(F77_TESTS)
DIST_SUBDIRS = $(CONF_SUBDIRS)
# FIXME: Automake-1.7b (at least) only honours DIST_SUBDIRS if SUBDIRS is
## Test suite. ##
## ------------ ##
+$(TESTS): defs
+defs: defs.in ../Makefile.am
+ cd .. && $(MAKE) $(AM_MAKEFLAGS) tests/defs
+DISTCLEANFILES += defs
+
TESTSUITE_AT = \
testsuite.at \
demo.at fortran.at tools.at
#! /bin/sh
# cdemo-conf.test - try configuring the cdemo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "cdemo"
#! /bin/sh
# cdemo-exec.test - check that programs in the cdemo subdirectory are viable
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "cdemo-make" "cdemo/cdemo$EXEEXT"
#! /bin/sh
# cdemo-make.test - try building in the cdemo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "cdemo-conf" "cdemo/Makefile"
#! /bin/sh
# cdemo-shared.test - try configuring the cdemo subdirectory for shared libs
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "cdemo"
#! /bin/sh
# cdemo-static.test - try configuring the cdemo subdirectory for static libs
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "cdemo"
;;
esac
+if test -z "$srcdir"; then
+ srcdir=`$ECHO "$0" | $SED "$dirname"`
+ test "$srcdir" = "$0" && srcdir=.
+fi
# func_msg arg...
# Echo message with prefix.
#! /bin/sh
# demo-conf.test - try configuring the demo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "demo"
#! /bin/sh
# demo-deplibs.test - check whether the shared library check method is OK
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "demo-conf" "demo/libhello.la"
#! /bin/sh
# demo-exec.test - check that programs in the ../demo subdirectory are viable
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "demo-make" "demo/hell$EXEEXT"
#! /bin/sh
# demo-hardcode.test - check to see what the system linker hardcodes
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "demo-inst" "$prefix/lib/libhello.la"
#! /bin/sh
# demo-inst.test - try installing from the demo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "demo-make" "demo/hell$EXEEXT"
#! /bin/sh
# demo-make.test - try building in the demo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "demo-conf" "demo/Makefile"
#! /bin/sh
# demo-nofast.test - try configuring the ../demo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "demo"
# demo-noinst-link.test - make sure we do not link with an installed
# library when an uninstalled one is to be used
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_restore_files ()
{
#! /bin/sh
# demo-nopic.test - try configuring the ../demo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
case "$host" in
hppa*|x86_64*|s390*)
#! /bin/sh
# demo-pic.test - try configuring the ../demo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_rmprefixdir
func_cd "demo"
#! /bin/sh
# demo-relink.test - check to see whether shlibpath overrides runpath
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_restore_files ()
{
#! /bin/sh
# demo-shared.test - try configuring the demo subdirectory for shared libs
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "demo"
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-# Test script header.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "demo"
#! /bin/sh
# demo-unst.test - try uninstalling in the demo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "demo-inst" "$prefix/bin/hell$EXEEXT" "demo/Makefile"
#! /bin/sh
# depdemo-conf.test - try configuring the depdemo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "depdemo"
#! /bin/sh
# depdemo-exec.test - check that programs in the depdemo subdirectory are viable
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "depdemo-make" "depdemo/depdemo$EXEEXT"
#! /bin/sh
# depdemo-inst.test - try installing from the depdemo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "depdemo-make" "depdemo/depdemo$EXEEXT"
#! /bin/sh
# depdemo-make.test - try building in the depdemo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "depdemo-conf" "depdemo/Makefile"
#! /bin/sh
# depdemo-nofast.test - try configuring the ./depdemo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "depdemo"
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_restore_files ()
{
#! /bin/sh
# depdemo-shared.test - try configuring the depdemo subdirectory for shared libs
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "depdemo"
#! /bin/sh
# depdemo-static.test - try configuring the depdemo subdirectory for static libs
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "depdemo"
#! /bin/sh
# depdemo-unst.test - try uninstalling in the depdemo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "depdemo-inst" "$prefix/bin/depdemo$EXEEXT" "depdemo/Makefile"
#! /bin/sh
# f77demo-conf.test - try configuring the f77demo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "f77demo"
#! /bin/sh
# f77demo-exec.test - check that programs in the f77demo subdirectory are viable
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "f77demo-make" "f77demo/fprogram$EXEEXT" "f77demo/cprogram$EXEEXT"
#! /bin/sh
# f77demo-make.test - try building in the f77demo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "f77demo-conf" "f77demo/Makefile"
#! /bin/sh
# f77demo-shared.test - try configuring the f77demo subdirectory for shared libs
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "f77demo"
#! /bin/sh
# f77demo-static.test - try configuring the f77demo subdirectory for static libs
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "f77demo"
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
rm -f hell.lo
cat > hell.lo <<EOF
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
# Try a sample link command.
linkresult=`$LIBTOOL -n --mode=link $CC -o gettext ../lib/libnlsut.a`
#! /bin/sh
# mdemo-conf.test - try configuring the mdemo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "mdemo"
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "mdemo-conf" "mdemo/Makefile"
#! /bin/sh
# mdemo-exec.test - check that programs in the mdemo subdirectory are viable
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "mdemo-make" "mdemo/mdemo$EXEEXT"
#! /bin/sh
# mdemo-inst.test - try installing from the mdemo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "mdemo-make" "mdemo/mdemo$EXEEXT"
#! /bin/sh
# mdemo-make.test - try building in the mdemo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "mdemo-conf" "mdemo/Makefile"
#! /bin/sh
# mdemo-shared.test - try configuring the mdemo subdirectory for shared libs
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "mdemo"
#! /bin/sh
# mdemo-static.test - try configuring the mdemo subdirectory for static libs
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "mdemo"
#! /bin/sh
# mdemo-unst.test - try uninstalling in the mdemo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "mdemo-inst" "$prefix/bin/mdemo$EXEEXT" "mdemo/Makefile"
#! /bin/sh
# mdemo2-conf.test - try configuring the mdemo2 subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "mdemo2"
#! /bin/sh
# mdemo2-exec.test - check that programs in the mdemo2 subdirectory are viable
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "mdemo2-make" "mdemo2/mdemo2$EXEEXT"
#! /bin/sh
# mdemo2-make.test - try building in the mdemo2 subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "mdemo2-conf" "mdemo2/Makefile"
func_require "mdemo-make" "mdemo/libmlib.la"
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
status=$EXIT_SUCCESS
if $LIBTOOL --help 2>&1 | grep '^Usage:' >/dev/null; then :
#! /bin/sh
# pdemo-conf.test - try configuring the pdemo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "pdemo"
#! /bin/sh
# pdemo-exec.test - check that programs in the pdemo subdirectory are viable
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "pdemo-make" "pdemo/hell$EXEEXT"
#! /bin/sh
# demo-inst.test - try installing from the demo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "demo-make" "demo/hell$EXEEXT"
#! /bin/sh
# pdemo-make.test - try building in the pdemo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "pdemo-conf" "pdemo/Makefile"
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
# Do the torture test.
status=$EXIT_SUCCESS
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
# Check all the "portable" shell scripts.
status=$EXIT_SUCCESS
extensions="C F S ada adb ads asm c c++ cc cpp cxx f f90 for m s"
bad_names="foo."
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
status=$EXIT_SUCCESS
for ext in $extensions; do
#! /bin/sh
# tagdemo-conf.test - try configuring the tagdemo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "tagdemo"
#! /bin/sh
# tagdemo-exec.test - check that programs in the tagdemo subdirectory are viable
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "tagdemo-make" "tagdemo/tagdemo$EXEEXT"
#! /bin/sh
# tagdemo-make.test - try building in the tagdemo subdirectory
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_require "tagdemo-conf" "tagdemo/Makefile"
#! /bin/sh
# tagdemo-shared.test - try configuring the tagdemo subdirectory for shared libs
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "tagdemo"
#! /bin/sh
# tagdemo-static.test - try configuring tagdemo subdirectory for static libs
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
func_mkprefixdir
func_cd "tagdemo"
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.
-if test -z "$srcdir"; then
- srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
- test "$srcdir" = "$0" && srcdir=.
-fi
-. $srcdir/defs || exit 1
+. defs || exit 1
: ${fnord=$srcdir/../fnord$$}