blob: 25fcb9e95f249fe4779890c954ec4732dfada4d3 (
plain)
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
|
# Common portion of all rpath-2?a? tests.
tmpfiles=""
trap 'rm -fr $tmpfiles' HUP INT QUIT TERM
builddir=`pwd`
global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd`
export global_top_auxdir
tstdir='tst/dir'
test -d $tstdir || { mkdir tst && mkdir $tstdir; }
tmpfiles="$tmpfiles $rp-prefix"
rm -rf $rp-prefix
mkdir $rp-prefix
tmpfiles="$tmpfiles $tstdir/$rp-build1"
rm -rf $tstdir/$rp-build1
mkdir $tstdir/$rp-build1
(cd $srcdir/rpathx && tar cf - *) | (cd $tstdir/$rp-build1 && tar xf -)
(cd $tstdir/$rp-build1
${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1
make > make.log 2>&1
make install > install.log 2>&1
)
if test $remove_la = yes; then
rm -f $rp-prefix/lib/librpathx.la
fi
tmpfiles="$tmpfiles $tstdir/$rp-build2"
rm -rf $tstdir/$rp-build2
mkdir $tstdir/$rp-build2
(cd $srcdir/rpathy && tar cf - *) | (cd $tstdir/$rp-build2 && tar xf -)
(cd $tstdir/$rp-build2
${CONFIG_SHELL-/bin/sh} ./configure $build2_configure_flags --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1
make > make.log 2>&1
make install > install.log 2>&1
)
if test $remove_la = yes; then
rm -f $rp-prefix/lib/librpathy.la
fi
tmpfiles="$tmpfiles $tstdir/$rp-build3"
rm -rf $tstdir/$rp-build3
mkdir $tstdir/$rp-build3
(cd $srcdir/$build3_package && tar cf - *) | (cd $tstdir/$rp-build3 && tar xf -)
(cd $tstdir/$rp-build3
${CONFIG_SHELL-/bin/sh} ./configure --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1
make > make.log 2>&1
make check >> make.log
)
result=$?
rm -rf $tmpfiles
exit $result
|