Pass --enable-snat to configure for datapath module also.
authorBen Pfaff <blp@nicira.com>
Tue, 4 Nov 2008 00:26:51 +0000 (16:26 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 4 Nov 2008 00:26:51 +0000 (16:26 -0800)
debian/rules

index 2ef865b9d495c25d3d03e36b15de39cd4a6a63e6..1c8dc246e41b455b568244d8663ca68f29cf9362 100755 (executable)
@@ -27,6 +27,8 @@ MA_DIR ?= /usr/share/modass
 
 -include debian/rules.ext
 
+DATAPATH_CONFIGURE_OPTS = --enable-snat
+
 configure: configure-stamp
 configure-stamp:
        dh_testdir
@@ -35,7 +37,7 @@ configure-stamp:
        cd _debian && ( \
                test -e Makefile || \
                ../configure --prefix=/usr --localstatedir=/var --enable-ssl \
-                       --enable-snat)
+                       $(DATAPATH_CONFIGURE_OPTS))
        $(ext_configure)
        touch configure-stamp
 
@@ -87,7 +89,7 @@ binary-modules: prep-deb-files
        dh_testroot
        dh_clean -k
        tar xzf openflow.tar.gz
-       cd openflow && ./configure --with-$(l2x)=$(KSRC)
+       cd openflow && ./configure --with-$(l2x)=$(KSRC) $(DATAPATH_CONFIGURE_OPTS)
        cd openflow && $(MAKE) -C $(dpdir)
        install -d -m755 $(DSTDIR)
        install -m644 openflow/$(dpdir)/*_mod.$(KO)o $(DSTDIR)/