File: defs

package info (click to toggle)
automake 1%3A1.4-p6-13.1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 2,360 kB
  • ctags: 26
  • sloc: perl: 5,527; sh: 5,269; ansic: 404; makefile: 167
file content (62 lines) | stat: -rw-r--r-- 1,519 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# -*- ksh -*-
# Defines for Automake testing environment.
# Tom Tromey <tromey@cygnus.com>

# Ensure $srcdir set correctly.
test -f $srcdir/defs || {
   echo "defs: installation error" 1>&2
   exit 1
}

# If srcdir is relative, we need to modify it.
case "$srcdir" in
 /*)
    ;;

 *)
    srcdir="../$srcdir"
    ;;
esac

rm -rf testSubDir > /dev/null 2>&1
mkdir testSubDir
cd testSubDir

# Build appropriate environment in test directory.  Eg create
# configure.in, touch all necessary files, etc.
cat > configure.in << 'END'
PACKAGE=nonesuch
VERSION=nonesuch
AC_ARG_PROGRAM
AC_PROG_INSTALL
AC_OUTPUT(Makefile)
END

: > install-sh
: > mkinstalldirs
: > missing

# See how redirections should work.  User can set VERBOSE to see all
# output.
test -z "$VERBOSE" && {
   exec > /dev/null 2>&1
}

# User can set PERL to change the perl interpreter used.
test -z "$PERL" && PERL=perl

# User can set MAKE to choose which make to use.  Must use GNU make.
test -z "$MAKE" && MAKE=make

echo "=== Running test $0"

# See how Automake should be run.  We put --foreign as the default
# strictness to avoid having to create lots and lots of files.  A test
# can override this by specifying a different strictness.
AUTOMAKE="$PERL ../../automake --amdir=$srcdir/.. --foreign"

# See how aclocal should be run.
# Most of the files are in $srcdir/../m4.  However amversion.m4 is
# generated in ../m4, so we include that directory in the search
# path too.
ACLOCAL="$PERL `pwd`/../../aclocal -I `pwd`/../../m4 --acdir=$srcdir/../m4"