[GiNaC-devel] [PATCH] Install the ginac-excompiler script iff excompiler is supported and enabled.

Alexei Sheplyakov alexei.sheplyakov at gmail.com
Wed Jan 6 18:56:04 CET 2010


---
 configure.ac      |    1 +
 tools/Makefile.am |    5 ++++-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 373cd5c..0f40373 100644
--- a/configure.ac
+++ b/configure.ac
@@ -104,6 +104,7 @@ GINAC_READLINE
 
 dnl Check for dl library (needed for GiNaC::compile).
 GINAC_EXCOMPILER
+AM_CONDITIONAL(CONFIG_EXCOMPILER, [test "x${CONFIG_EXCOMPILER}" = "xyes"])
 
 dnl Check for utilities needed by the different kinds of documentation.
 dnl Documentation needs only be built when extending it, so never mind if it
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 824d1fe..a634102 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -4,7 +4,10 @@ bin_PROGRAMS = viewgar
 viewgar_SOURCES = viewgar.cpp
 viewgar_LDADD = ../ginac/libginac.la
 
-bin_SCRIPTS = ginac-excompiler
+bin_SCRIPTS = 
+if CONFIG_EXCOMPILER
+bin_SCRIPTS += ginac-excompiler
+endif
 
 AM_CPPFLAGS = -I$(srcdir)/../ginac -I../ginac -DIN_GINAC
 
-- 
1.6.5



More information about the GiNaC-devel mailing list