Make sure we're running dejagnu tests with the right compiler.
authorAnthony Green <green@moxielogic.com>
Tue, 8 Jan 2013 20:14:21 +0000 (15:14 -0500)
committerAnthony Green <green@moxielogic.com>
Tue, 8 Jan 2013 20:14:21 +0000 (15:14 -0500)
ChangeLog
configure
configure.ac
testsuite/Makefile.am
testsuite/Makefile.in

index 7719a488fe245430778239542113bfffd16b2131..289d195e3ca6c22bd9fd9e90bef36a058247ccfa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2013-01-08  Anthony Green  <green@moxielogic.com>
 
+       * configure.ac: Generate local.exp.  This sets CC_FOR_TARGET
+       when we are using the vendor compiler.
+       * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): Point to
+       ../local.exp.
+       * configure, testsuite/Makefile.in: Rebuilt.
+
        * testsuite/libffi.call/call.exp: Run tests with different
        options, depending on whether or not we are using gcc or the
        vendor compiler.
index a79b540e16ac75c65e4b505e369df9443060b40d..5876eb7a54f7abb66d8e045b9949b582fdd7debd 100755 (executable)
--- a/configure
+++ b/configure
@@ -13068,6 +13068,11 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 if test "x$GCC" = "xyes"; then
   CFLAGS="$CFLAGS -fexceptions"
+  touch testsuite/local.exp
+else
+  cat > local.exp <<EOF
+set CC_FOR_TARGET $CC
+EOF
 fi
 
 
index e320b3c3b370f2d58c4ac1b53625b8edd4ece7cf..7ffb36ce4eb655a3e8c2024a2dd7af8f8e54de72 100644 (file)
@@ -40,6 +40,11 @@ AX_CC_MAXOPT
 AX_CFLAGS_WARN_ALL
 if test "x$GCC" = "xyes"; then
   CFLAGS="$CFLAGS -fexceptions"
+  touch testsuite/local.exp
+else
+  cat > local.exp <<EOF
+set CC_FOR_TARGET $CC  
+EOF
 fi
 
 AM_MAINTAINER_MODE
index 146fdf9ed4a8a3eae6cb8c993b6c3eaf0ccf540f..d0dd112b87ec3b087288fd114d863ac186c56219 100644 (file)
@@ -13,6 +13,8 @@ RUNTEST = `if [ -f $(top_srcdir)/../dejagnu/runtest ] ; then \
 
 AM_RUNTESTFLAGS =
 
+EXTRA_DEJAGNU_SITE_CONFIG=../local.exp
+
 CLEANFILES = *.exe core* *.log *.sum
 
 EXTRA_DIST = config/default.exp libffi.call/cls_19byte.c \
index 52e1df517f613da14c13cab342d681a2842f94e5..a1758acb996b442cacd8b109e860eee31151ff52 100644 (file)
@@ -227,6 +227,7 @@ RUNTEST = `if [ -f $(top_srcdir)/../dejagnu/runtest ] ; then \
               echo $(top_srcdir)/../dejagnu/runtest ; \
            else echo runtest; fi`
 
+EXTRA_DEJAGNU_SITE_CONFIG = ../local.exp
 CLEANFILES = *.exe core* *.log *.sum
 EXTRA_DIST = config/default.exp libffi.call/cls_19byte.c \
 libffi.call/cls_align_longdouble_split.c libffi.call/closure_loc_fn0.c \