From 5210672f6b8c2b5e8c78dcf07919b56c8469164f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 10 Nov 2005 00:33:04 +0000 Subject: [PATCH] * m4/cxx.m4, examples/Makefile.am: Don't build examples/calc++ if no C++ compiler is available. --- ChangeLog | 5 +++++ examples/Makefile.am | 2 ++ m4/cxx.m4 | 1 + 3 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2712c547..450e30ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-09 Albert Chin-A-Young + + * m4/cxx.m4, examples/Makefile.am: Don't build + examples/calc++ if no C++ compiler is available. (trivial change) + 2005-11-09 Akim Demaille * src/scan-skel.l: Use a couple of asserts. diff --git a/examples/Makefile.am b/examples/Makefile.am index c997eb22..a51ba980 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -16,6 +16,8 @@ ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA ## 02110-1301 USA +if BISON_CXX_WORKS SUBDIRS = calc++ +endif dist_noinst_SCRIPTS = extexi diff --git a/m4/cxx.m4 b/m4/cxx.m4 index 210833f6..71bf8f96 100644 --- a/m4/cxx.m4 +++ b/m4/cxx.m4 @@ -44,4 +44,5 @@ AC_DEFUN([BISON_TEST_FOR_WORKING_CXX_COMPILER], esac AC_SUBST([BISON_CXX_WORKS]) + AM_CONDITIONAL(BISON_CXX_WORKS, test $bison_cv_cxx_works = yes) ]) -- 2.45.2