Add skeleton for testing tools directory
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 28 Mar 2009 21:01:41 +0000 (14:01 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 28 Mar 2009 21:01:41 +0000 (14:01 -0700)
Makefile.am
bootstrap-configure
configure.ac
tools/Makefile.am [new file with mode: 0644]

index 8651e97..a949a55 100644 (file)
@@ -1,5 +1,5 @@
 
-SUBDIRS = gdbus include src plugins client scripts test doc
+SUBDIRS = gdbus include src plugins client tools scripts test doc
 
 pkgconfigdir = $(libdir)/pkgconfig
 
index 265d881..ac7d8bd 100755 (executable)
@@ -33,4 +33,5 @@ fi
                --enable-iospm \
                --enable-iwmxsdk \
                --enable-polkit \
-               --enable-client $*
+               --enable-client \
+               --enable-tools $*
index 69f028a..16025ac 100644 (file)
@@ -235,6 +235,16 @@ AC_ARG_ENABLE(client, AC_HELP_STRING([--enable-client],
                [enable command line client]), [enable_client=${enableval}])
 AM_CONDITIONAL(CLIENT, test "${enable_client}" = "yes")
 
+AC_ARG_ENABLE(tools, AC_HELP_STRING([--enable-tools],
+                [enable testing tools]), [enable_tools=${enableval}])
+if (test "${enable_tools}" = "yes"); then
+       PKG_CHECK_MODULES(NETLINK, libnl-1, enable_netlink=yes,
+                               AC_MSG_ERROR(Netlink library is required))
+       AC_SUBST(NETLINK_CFLAGS)
+       AC_SUBST(NETLINK_LIBS)
+fi
+AM_CONDITIONAL(TOOLS, test "${enable_tools}" = "yes")
+
 AC_ARG_ENABLE(fake, AC_HELP_STRING([--enable-fake],
                [enable fake device support]), [enable_fake=${enableval}])
 AM_CONDITIONAL(FAKE, test "${enable_fake}" = "yes")
@@ -247,6 +257,8 @@ AM_CONDITIONAL(DATAFILES, test "${enable_datafiles}" != "no")
 SHAVE_INIT
 
 AC_OUTPUT(Makefile gdbus/Makefile include/Makefile include/version.h
-               src/Makefile src/connman.service scripts/connman
-               scripts/Makefile plugins/Makefile client/Makefile
-               test/Makefile doc/Makefile doc/version.xml connman.pc)
+                               src/Makefile src/connman.service
+                               scripts/connman scripts/Makefile
+                               plugins/Makefile client/Makefile
+                               tools/Makefile test/Makefile
+                               doc/Makefile doc/version.xml connman.pc)
diff --git a/tools/Makefile.am b/tools/Makefile.am
new file mode 100644 (file)
index 0000000..0274292
--- /dev/null
@@ -0,0 +1,2 @@
+
+MAINTAINERCLEANFILES = Makefile.in