Don't build examples/calc++ if no C++ compiler is available.

-- 
albert chin ([EMAIL PROTECTED])

-- snip snip
2005-11-09  Albert Chin-A-Young  <[EMAIL PROTECTED]>

        * m4/cxx.m4, examples/Makefile.am: Don't build
        examples/calc++ if no C++ compiler is available.

Index: m4/cxx.m4
===================================================================
--- m4/cxx.m4.orig      2005-05-14 01:49:47.000000000 -0500
+++ m4/cxx.m4   2005-11-09 17:06:49.907390000 -0600
@@ -44,4 +44,5 @@
  esac
 
  AC_SUBST([BISON_CXX_WORKS])
+ AM_CONDITIONAL(BISON_CXX_WORKS, test $bison_cv_cxx_works = yes)
 ])
Index: examples/Makefile.am
===================================================================
--- examples/Makefile.am.orig   2005-07-06 02:49:25.000000000 -0500
+++ examples/Makefile.am        2005-11-09 17:06:10.023845000 -0600
@@ -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


Reply via email to