pty: Activate the signature wrapper of forkpty.
[gnulib.git] / tests / havelib / rpath-3_a
1 # Common portion of all rpath-3?a? tests.
2
3 tmpfiles=""
4 trap 'rm -fr $tmpfiles' 1 2 3 15
5
6 builddir=`pwd`
7 global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd`
8 export global_top_auxdir
9
10 tstdir='tst/dir'
11 test -d $tstdir || { mkdir tst && mkdir $tstdir; }
12
13 tmpfiles="$tmpfiles $rp-prefix"
14 rm -rf $rp-prefix
15 mkdir $rp-prefix
16
17 tmpfiles="$tmpfiles $tstdir/$rp-build1"
18 rm -rf $tstdir/$rp-build1
19 mkdir $tstdir/$rp-build1
20 (cd $srcdir/rpathx && tar cf - *) | (cd $tstdir/$rp-build1 && tar xf -)
21 (cd $tstdir/$rp-build1
22  ${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1
23  make > make.log 2>&1
24  make install > install.log 2>&1
25 )
26 if test $remove_la = yes; then
27   rm -f $rp-prefix/lib/librpathx.la
28 fi
29
30 tmpfiles="$tmpfiles $tstdir/$rp-build2"
31 rm -rf $tstdir/$rp-build2
32 mkdir $tstdir/$rp-build2
33 (cd $srcdir/rpathy && tar cf - *) | (cd $tstdir/$rp-build2 && tar xf -)
34 (cd $tstdir/$rp-build2
35  ${CONFIG_SHELL-/bin/sh} ./configure $build2_configure_flags --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1
36  make > make.log 2>&1
37  make install > install.log 2>&1
38 )
39 if test $remove_la = yes; then
40   rm -f $rp-prefix/lib/librpathy.la
41 fi
42
43 tmpfiles="$tmpfiles $tstdir/$rp-build3"
44 rm -rf $tstdir/$rp-build3
45 mkdir $tstdir/$rp-build3
46 (cd $srcdir/rpathz && tar cf - *) | (cd $tstdir/$rp-build3 && tar xf -)
47 (cd $tstdir/$rp-build3
48  ${CONFIG_SHELL-/bin/sh} ./configure $build3_configure_flags --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1
49  make > make.log 2>&1
50  make install > install.log 2>&1
51 )
52 if test $remove_la = yes; then
53   rm -f $rp-prefix/lib/librpathz.la
54 fi
55
56 tmpfiles="$tmpfiles $tstdir/$rp-build4"
57 rm -rf $tstdir/$rp-build4
58 mkdir $tstdir/$rp-build4
59 (cd $srcdir/$build4_package && tar cf - *) | (cd $tstdir/$rp-build4 && tar xf -)
60 (cd $tstdir/$rp-build4
61  ${CONFIG_SHELL-/bin/sh} ./configure --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1
62  make > make.log 2>&1
63  make check >> make.log
64 )
65 result=$?
66
67 rm -rf $tmpfiles
68
69 exit $result