]> granicus.if.org Git - graphviz/commitdiff
still need -DSWIGJAVA for swig-1.3.29 on EL5
authorJohn Ellson <ellson@research.att.com>
Wed, 6 Jan 2016 14:51:47 +0000 (09:51 -0500)
committerJohn Ellson <ellson@research.att.com>
Wed, 6 Jan 2016 14:51:47 +0000 (09:51 -0500)
configure.ac
tclpkg/gv/Makefile.am

index 413aa08ea6fe7593ce8b1188b5e68582a2119646..c8f23db52644bbb332bbd6ffb1e0b5575e195740 100644 (file)
@@ -604,8 +604,8 @@ else
        else
           # EL5 has swig-1.3.29 which does not define SWIGJAVA
          if test $SWIG_VERSION_MICRO -lt 40; then
-            SWIG_CPPFLAGS=-DSWIGJAVA
-            AC_SUBST([SWIG_CPPFLAGS])
+            SWIGJAVA_CPPFLAGS=-DSWIGJAVA
+            AC_SUBST([SWIGJAVA_CPPFLAGS])
          fi
         fi
       fi
index 5bf7fd6ef21bf014ce0b51fa6df07de9f9045c71..0b0b1f1347ff7ac5fd60dd72fd00a8ac03ab73eb 100644 (file)
@@ -19,7 +19,7 @@ BASESOURCES = gv.cpp gv.i gv_builtins.c
 BASELIBS = $(top_builddir)/lib/gvc/libgvc.la \
        $(top_builddir)/lib/cgraph/libcgraph.la \
        $(top_builddir)/lib/cdt/libcdt.la
-BASECPPFLAGS = $(AM_CPPFLAGS) $(SWIG_CPPFLAGS) -DDEMAND_LOADING=1
+BASECPPFLAGS = $(AM_CPPFLAGS) -DDEMAND_LOADING=1
 
 pkgsharpdir = $(pkglibdir)/sharp
 SHARP_data = gv.cs gvPINVOKE.cs SWIGTYPE_p_Agraph_t.cs SWIGTYPE_p_Agnode_t.cs SWIGTYPE_p_Agedge_t.cs SWIGTYPE_p_Agsym_t.cs SWIGTYPE_p_FILE.cs
@@ -101,7 +101,7 @@ nodist_libgv_java_la_SOURCES = gv_java.cpp
 libgv_java_la_SOURCES = $(BASESOURCES)  gv_java_init.c
 libgv_java_la_LIBADD = $(BASELIBS) $(JAVA_LIBS)
 libgv_java_la_LDFLAGS = -module -avoid-version $(JNI_EXTRA_LDFLAGS)
-libgv_java_la_CPPFLAGS = $(BASECPPFLAGS) $(JAVA_INCLUDES)
+libgv_java_la_CPPFLAGS = $(BASECPPFLAGS) $(SWIGJAVA_CPPFLAGS) $(JAVA_INCLUDES)
 $(JAVA_data): gv_java.cpp
 gv_java.cpp: gv.i
        $(SWIG) -package org.graphviz -java -c++ -o gv_java.cpp $(srcdir)/gv.i