The client test program is the only one to be built so far. --- Makefile.am | 15 +++++++++++++++ configure.ac | 9 +++++++++ src/dhcp/Makefile | 1 + 3 files changed, 25 insertions(+) create mode 120000 src/dhcp/Makefile
diff --git a/Makefile.am b/Makefile.am index 06d4fcf..64d4b34 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3748,6 +3748,21 @@ lib_LTLIBRARIES += \ endif # ------------------------------------------------------------------------------ +if ENABLE_DHCP +test_dhcp_client_SOURCES = \ + src/dhcp/protocol.h \ + src/systemd/sd-dhcp-client.h \ + src/dhcp/client.c \ + src/dhcp/test-dhcp-client.c + +test_dhcp_client_LDADD = \ + libsystemd-shared.la + +tests += \ + test-dhcp-client +endif + +# ------------------------------------------------------------------------------ if ENABLE_MACHINED systemd_machined_SOURCES = \ src/machine/machined.c \ diff --git a/configure.ac b/configure.ac index c0656f4..0b305b3 100644 --- a/configure.ac +++ b/configure.ac @@ -719,6 +719,14 @@ fi AM_CONDITIONAL(ENABLE_RFKILL, [test "$have_rfkill" = "yes"]) # ------------------------------------------------------------------------------ +have_dhcp=no +AC_ARG_ENABLE(dhcp, AS_HELP_STRING([--disable-dhcp], [disable dhcp])) +if test "x$enable_dhcp" != "xno"; then + have_dhcp=yes +fi +AM_CONDITIONAL(ENABLE_DHCP, [test "$have_dhcp" = "yes"]) + +# ------------------------------------------------------------------------------ have_logind=no AC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon])) if test "x$enable_logind" != "xno"; then @@ -1065,6 +1073,7 @@ AC_MSG_RESULT([ randomseed: ${have_randomseed} backlight: ${have_backlight} rfkill: ${have_rfkill} + dhcp: ${have_dhcp} logind: ${have_logind} machined: ${have_machined} hostnamed: ${have_hostnamed} diff --git a/src/dhcp/Makefile b/src/dhcp/Makefile new file mode 120000 index 0000000..d0b0e8e --- /dev/null +++ b/src/dhcp/Makefile @@ -0,0 +1 @@ +../Makefile \ No newline at end of file -- 1.7.10.4 _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel