1 # Common portion of all rpath-2?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-prefix"
24 tmpfiles="$tmpfiles tstdir/$rp-build1"
25 rm -rf tstdir/$rp-build1
26 mkdir tstdir/$rp-build1
27 (cd $srcdir/rpathx && tar cf - *) | (cd tstdir/$rp-build1 && tar xf -)
29 ${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix1 > configure.log 2>&1
31 make install > install.log 2>&1
33 if test $remove_la = yes; then
34 rm -f $rp-prefix1/lib/librpathx.la
37 tmpfiles="$tmpfiles tstdir/$rp-build2"
38 rm -rf tstdir/$rp-build2
39 mkdir tstdir/$rp-build2
40 (cd $srcdir/rpathy && tar cf - *) | (cd tstdir/$rp-build2 && tar xf -)
42 ${CONFIG_SHELL-/bin/sh} ./configure $build2_configure_flags --prefix=$builddir/$rp-prefix2 --with-librpathx-prefix=$builddir/$rp-prefix1 > configure.log 2>&1
44 make install > install.log 2>&1
46 if test $remove_la = yes; then
47 rm -f $rp-prefix2/lib/librpathy.la
50 tmpfiles="$tmpfiles tstdir/$rp-build3"
51 rm -rf tstdir/$rp-build3
52 mkdir tstdir/$rp-build3
53 (cd $srcdir/$build3_package && tar cf - *) | (cd tstdir/$rp-build3 && tar xf -)
55 if test $remove_la = yes; then
56 build3_configure_flags=--with-librpathx-prefix=$builddir/$rp-prefix1
58 build3_configure_flags=
60 ${CONFIG_SHELL-/bin/sh} ./configure --prefix=$builddir/$rp-prefix --with-librpathy-prefix=$builddir/$rp-prefix2 $build3_configure_flags > configure.log 2>&1
62 make check >> make.log