Build ovs-wdt or nlmon utilities only on Linux.
authorBen Pfaff <blp@nicira.com>
Wed, 26 May 2010 17:25:19 +0000 (10:25 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 26 May 2010 22:36:58 +0000 (15:36 -0700)
These utilities are Linux-specific.

utilities/automake.mk

index 5feb01cda9d37d7769cee393dc793643b0e23986..c5bf98f5d57dc0f9462becc8e2f02cbb00113b91 100644 (file)
@@ -6,9 +6,7 @@ bin_PROGRAMS += \
        utilities/ovs-kill \
        utilities/ovs-ofctl \
        utilities/ovs-openflowd \
-       utilities/ovs-vsctl \
-       utilities/ovs-wdt
-noinst_PROGRAMS += utilities/nlmon
+       utilities/ovs-vsctl
 bin_SCRIPTS += utilities/ovs-pki utilities/ovs-vsctl
 noinst_SCRIPTS += utilities/ovs-pki-cgi utilities/ovs-parse-leaks
 dist_sbin_SCRIPTS += utilities/ovs-monitor 
@@ -79,7 +77,11 @@ utilities_ovs_openflowd_LDADD = \
 utilities_ovs_vsctl_SOURCES = utilities/ovs-vsctl.c vswitchd/vswitch-idl.c
 utilities_ovs_vsctl_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
 
+if HAVE_NETLINK
+bin_PROGRAMS += utilities/ovs-wdt
 utilities_ovs_wdt_SOURCES = utilities/ovs-wdt.c
 
+noinst_PROGRAMS += utilities/nlmon
 utilities_nlmon_SOURCES = utilities/nlmon.c
 utilities_nlmon_LDADD = lib/libopenvswitch.a
+endif