change tests to "#if defined", since HAVE_TRIANGLE is not defined if not present.
fi
AC_SUBST(TKINT_INCLUDES)
+# ------------------------------------
+# triangle.[ch]
+
+if test -f "lib/sfdpgen/triangle.c"; then
+if test -f "lib/sfdpgen/triangle.h"; then
+ AC_DEFINE_UNQUOTED(HAVE_TRIANGLE,1,[Define if triangle.[ch] are available.])
+fi
+fi
+
# ----------------------------------
# tcl/tk pkgIndex.tcl generation
#include "heap.h"
#include "hedges.h"
#include "digcola.h"
-#if ((HAVE_GTS || HAVE_TRIANGLE) && SFDP)
+#if ((defined(HAVE_GTS) || defined(HAVE_TRIANGLE)) && defined(SFDP))
#include "sfdp.h"
#endif
#ifdef IPSEPCOLA