1 1.1 christos # Common portion of all rpath-1* tests. 2 1.1 christos 3 1.1 christos tmpfiles="" 4 1.1 christos trap 'rm -fr $tmpfiles' 1 2 3 15 5 1.1 christos 6 1.1 christos builddir=`pwd` 7 1.1 christos global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd` 8 1.1 christos export global_top_auxdir 9 1.1 christos 10 1.1 christos test -d tstdir || mkdir tstdir 11 1.1 christos 12 1.1 christos tmpfiles="$tmpfiles $rp-prefix" 13 1.1 christos rm -rf $rp-prefix 14 1.1 christos mkdir $rp-prefix 15 1.1 christos 16 1.1 christos tmpfiles="$tmpfiles tstdir/$rp-build1" 17 1.1 christos rm -rf tstdir/$rp-build1 18 1.1 christos mkdir tstdir/$rp-build1 19 1.1 christos (cd $srcdir/rpathx && tar cf - *) | (cd tstdir/$rp-build1 && tar xf -) 20 1.1 christos (cd tstdir/$rp-build1 21 1.1 christos ${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1 22 1.1 christos make > make.log 2>&1 23 1.1 christos make install > install.log 2>&1 24 1.1 christos ) 25 1.1 christos 26 1.1 christos tmpfiles="$tmpfiles tstdir/$rp-build2" 27 1.1 christos rm -rf tstdir/$rp-build2 28 1.1 christos mkdir tstdir/$rp-build2 29 1.1 christos (cd $srcdir/rpathlx && tar cf - *) | (cd tstdir/$rp-build2 && tar xf -) 30 1.1 christos (cd tstdir/$rp-build2 31 1.1 christos ${CONFIG_SHELL-/bin/sh} ./configure --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1 32 1.1 christos make > make.log 2>&1 33 1.1 christos make check >> make.log 34 1.1 christos ) 35 1.1 christos result=$? 36 1.1 christos 37 1.1 christos rm -rf $tmpfiles 38 1.1 christos 39 1.1 christos exit $result 40