1 # Common portion of all rpath-3?b? tests.
4 trap 'rm -fr $tmpfiles' 1 2 3 15
7 global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd`
8 export global_top_auxdir
10 test -d tstdir || mkdir tstdir
12 tmpfiles="$tmpfiles $rp-prefix1"
16 tmpfiles="$tmpfiles $rp-prefix2"
20 tmpfiles="$tmpfiles $rp-prefix3"
24 tmpfiles="$tmpfiles $rp-prefix"
28 tmpfiles="$tmpfiles tstdir/$rp-build1"
29 rm -rf tstdir/$rp-build1
30 mkdir tstdir/$rp-build1
31 (cd $srcdir/rpathx && tar cf - *) | (cd tstdir/$rp-build1 && tar xf -)
33 ${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix1 > configure.log 2>&1
35 make install > install.log 2>&1
37 if test $remove_la = yes; then
38 rm -f $rp-prefix1/lib/librpathx.la
41 tmpfiles="$tmpfiles tstdir/$rp-build2"
42 rm -rf tstdir/$rp-build2
43 mkdir tstdir/$rp-build2
44 (cd $srcdir/rpathy && tar cf - *) | (cd tstdir/$rp-build2 && tar xf -)
46 ${CONFIG_SHELL-/bin/sh} ./configure $build2_configure_flags --prefix=$builddir/$rp-prefix2 --with-librpathx-prefix=$builddir/$rp-prefix1 > configure.log 2>&1
48 make install > install.log 2>&1
50 if test $remove_la = yes; then
51 rm -f $rp-prefix2/lib/librpathy.la
54 tmpfiles="$tmpfiles tstdir/$rp-build3"
55 rm -rf tstdir/$rp-build3
56 mkdir tstdir/$rp-build3
57 (cd $srcdir/rpathz && tar cf - *) | (cd tstdir/$rp-build3 && tar xf -)
59 ${CONFIG_SHELL-/bin/sh} ./configure $build3_configure_flags --prefix=$builddir/$rp-prefix3 --with-librpathx-prefix=$builddir/$rp-prefix1 --with-librpathy-prefix=$builddir/$rp-prefix2 > configure.log 2>&1
61 make install > install.log 2>&1
63 if test $remove_la = yes; then
64 rm -f $rp-prefix3/lib/librpathz.la
67 tmpfiles="$tmpfiles tstdir/$rp-build4"
68 rm -rf tstdir/$rp-build4
69 mkdir tstdir/$rp-build4
70 (cd $srcdir/$build4_package && tar cf - *) | (cd tstdir/$rp-build4 && tar xf -)
72 if test $remove_la = yes; then
73 build4_configure_flags="--with-librpathx-prefix=$builddir/$rp-prefix1 --with-librpathy-prefix=$builddir/$rp-prefix2"
75 build4_configure_flags=
77 ${CONFIG_SHELL-/bin/sh} ./configure --prefix=$builddir/$rp-prefix --with-librpathz-prefix=$builddir/$rp-prefix3 $build4_configure_flags > configure.log 2>&1
79 make check >> make.log