-I$(top_srcdir)/lib/graph \
-I$(top_srcdir)/lib/cdt
+if ENABLE_STATIC
+bin_PROGRAMS = dot dot_static
+else
bin_PROGRAMS = dot
-noinst_PROGRAMS = dot_static
+endif
man_MANS = dot.1
pdf_DATA = dot.pdf
dnl -----------------------------------
# Static binaries
-# Always enable static as dot_static makes it so much easier to debug
-
-#AC_ARG_ENABLE(static,
-# [AC_HELP_STRING([--enable-codegens], [build static executable])])
-#if test "x$enable_static" = "xyes"; then
-# AC_DEFINE(ENABLE_STATIC,1,[Define if you want statically linked executables])
-#else
-# AC_DISABLE_STATIC
-#fi
-#AM_CONDITIONAL(ENABLE_STATIC, [test "x$enable_static" = "xyes"])
+AC_ARG_ENABLE(static,
+ [AC_HELP_STRING([--enable-static], [build static executable])])
+if test "x$enable_static" != "xno"; then
+ AC_DEFINE(ENABLE_STATIC,1,[Define if you want statically linked executables])
+else
+ AC_DISABLE_STATIC
+fi
+AM_CONDITIONAL(ENABLE_STATIC, [test "x$enable_static" != "xno"])
dnl -----------------------------------
dnl checks for compilers