From 107ab16bf6f0bb912aab2d72e019f20e11a03aba Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 19 Oct 2013 15:39:15 -0400 Subject: [SV 40240] Use configure info to build load test shared libs * tests/config-flags.pm.in: A new file containing variable assignments for the test suite; these variables are set by configure to contain the values detected there for compilers, flags, etc. * tests/run_make_tests.pl: Require the config-flags.pm file * tests/scripts/features/load, tests/scripts/features/loadapi: Use the configure-provided values when building the shared test library. * configure.ac: Replace tests/config-flags.pm.in * Makefile.am: Make sure tests/config-flags.pm is up to date --- tests/config-flags.pm.in | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/config-flags.pm.in (limited to 'tests/config-flags.pm.in') diff --git a/tests/config-flags.pm.in b/tests/config-flags.pm.in new file mode 100644 index 0000000..a26b8dc --- /dev/null +++ b/tests/config-flags.pm.in @@ -0,0 +1,18 @@ +# This is a -*-perl-*- script +# +# Set variables that were defined by configure, in case we need them +# during the tests. + +%CONFIG_FLAGS = ( + AM_LDFLAGS => '@AM_LDFLAGS@', + CC => '@CC@', + CFLAGS => '@CFLAGS@', + CPP => '@CPP@', + CPPFLAGS => '@CPPFLAGS@', + GUILE_CFLAGS => '@GUILE_CFLAGS@', + GUILE_LIBS => '@GUILE_LIBS@', + LDFLAGS => '@LDFLAGS@', + LIBS => '@LIBS@' +); + +1; -- cgit v1.2.3