HAVE_EXT=no
;;
(*)
- if test -e "$srcdir/ext/configure"; then
+ if test -e "$srcdir/ext/automake.mk"; then
HAVE_EXT=yes
else
HAVE_EXT=no
;;
esac
if test $HAVE_EXT = yes; then
- if test -e "$srcdir/ext/configure"; then
+ if test -e "$srcdir/ext/automake.mk"; then
:
else
AC_MSG_ERROR([cannot configure extensions without "ext" directory])
fi
- AC_CONFIG_SUBDIRS([ext])
AC_DEFINE([HAVE_EXT], [1],
[Whether the OpenFlow extensions submodule is available])
fi
- AC_SUBST([ofp_top_srcdir], ['$(top_srcdir)'])
AM_CONDITIONAL([HAVE_EXT], [test $HAVE_EXT = yes])])
+
+dnl Checks for dpkg-buildpackage. If this is available then we check
+dnl that the Debian packaging is functional at "make distcheck" time.
+AC_DEFUN([OFP_CHECK_DPKG_BUILDPACKAGE],
+ [AC_CHECK_PROG([HAVE_DPKG_BUILDPACKAGE], [dpkg-buildpackage], [yes], [no])
+ AM_CONDITIONAL([HAVE_DPKG_BUILDPACKAGE],
+ [test $HAVE_DPKG_BUILDPACKAGE = yes])])
+