diff options
Diffstat (limited to 'src/dns-manager')
| -rw-r--r-- | src/dns-manager/Makefile.am | 24 | ||||
| -rw-r--r-- | src/dns-manager/Makefile.in | 24 | ||||
| -rw-r--r-- | src/dns-manager/nm-dns-dnsmasq.c | 3 |
3 files changed, 25 insertions, 26 deletions
diff --git a/src/dns-manager/Makefile.am b/src/dns-manager/Makefile.am index e6c2ff22..4aa20c72 100644 --- a/src/dns-manager/Makefile.am +++ b/src/dns-manager/Makefile.am @@ -1,13 +1,20 @@ -INCLUDES = \ +noinst_LTLIBRARIES = libdns-manager.la + +libdns_manager_la_CPPFLAGS = \ -I${top_srcdir}/src/logging \ -I${top_srcdir}/src/posix-signals \ -I${top_srcdir}/libnm-util \ -I${top_builddir}/libnm-util \ -I${top_srcdir}/src \ -I${top_srcdir}/include \ - -I${top_builddir}/include - -noinst_LTLIBRARIES = libdns-manager.la + -I${top_builddir}/include \ + $(LIBNL_CFLAGS) \ + $(DBUS_CFLAGS) \ + $(GLIB_CFLAGS) \ + -DLOCALSTATEDIR=\"$(localstatedir)\" \ + -DSYSCONFDIR=\"$(sysconfdir)\" \ + -DNMCONFDIR=\"$(nmconfdir)\" \ + -DNMRUNDIR=\"$(nmrundir)\" libdns_manager_la_SOURCES = \ nm-dns-manager.h \ @@ -19,15 +26,6 @@ libdns_manager_la_SOURCES = \ nm-dns-utils.h \ nm-dns-utils.c -libdns_manager_la_CPPFLAGS = \ - $(LIBNL_CFLAGS) \ - $(DBUS_CFLAGS) \ - $(GLIB_CFLAGS) \ - -DLOCALSTATEDIR=\"$(localstatedir)\" \ - -DSYSCONFDIR=\"$(sysconfdir)\" \ - -DNMCONFDIR=\"$(nmconfdir)\" \ - -DNMRUNDIR=\"$(nmrundir)\" - libdns_manager_la_LIBADD = \ $(top_builddir)/src/logging/libnm-logging.la \ $(top_builddir)/src/posix-signals/libnm-posix-signals.la \ diff --git a/src/dns-manager/Makefile.in b/src/dns-manager/Makefile.in index 63742c2a..a6116fb5 100644 --- a/src/dns-manager/Makefile.in +++ b/src/dns-manager/Makefile.in @@ -209,6 +209,7 @@ DEPDIR = @DEPDIR@ DHCLIENT_PATH = @DHCLIENT_PATH@ DHCPCD_PATH = @DHCPCD_PATH@ DLLTOOL = @DLLTOOL@ +DNSMASQ_PATH = @DNSMASQ_PATH@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -231,6 +232,7 @@ GNUTLS_CFLAGS = @GNUTLS_CFLAGS@ GNUTLS_LIBS = @GNUTLS_LIBS@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ @@ -415,16 +417,23 @@ with_dhclient = @with_dhclient@ with_dhcpcd = @with_dhcpcd@ with_netconfig = @with_netconfig@ with_resolvconf = @with_resolvconf@ -INCLUDES = \ +noinst_LTLIBRARIES = libdns-manager.la +libdns_manager_la_CPPFLAGS = \ -I${top_srcdir}/src/logging \ -I${top_srcdir}/src/posix-signals \ -I${top_srcdir}/libnm-util \ -I${top_builddir}/libnm-util \ -I${top_srcdir}/src \ -I${top_srcdir}/include \ - -I${top_builddir}/include + -I${top_builddir}/include \ + $(LIBNL_CFLAGS) \ + $(DBUS_CFLAGS) \ + $(GLIB_CFLAGS) \ + -DLOCALSTATEDIR=\"$(localstatedir)\" \ + -DSYSCONFDIR=\"$(sysconfdir)\" \ + -DNMCONFDIR=\"$(nmconfdir)\" \ + -DNMRUNDIR=\"$(nmrundir)\" -noinst_LTLIBRARIES = libdns-manager.la libdns_manager_la_SOURCES = \ nm-dns-manager.h \ nm-dns-manager.c \ @@ -435,15 +444,6 @@ libdns_manager_la_SOURCES = \ nm-dns-utils.h \ nm-dns-utils.c -libdns_manager_la_CPPFLAGS = \ - $(LIBNL_CFLAGS) \ - $(DBUS_CFLAGS) \ - $(GLIB_CFLAGS) \ - -DLOCALSTATEDIR=\"$(localstatedir)\" \ - -DSYSCONFDIR=\"$(sysconfdir)\" \ - -DNMCONFDIR=\"$(nmconfdir)\" \ - -DNMRUNDIR=\"$(nmrundir)\" - libdns_manager_la_LIBADD = \ $(top_builddir)/src/logging/libnm-logging.la \ $(top_builddir)/src/posix-signals/libnm-posix-signals.la \ diff --git a/src/dns-manager/nm-dns-dnsmasq.c b/src/dns-manager/nm-dns-dnsmasq.c index a41f87b2..1f6e5868 100644 --- a/src/dns-manager/nm-dns-dnsmasq.c +++ b/src/dns-manager/nm-dns-dnsmasq.c @@ -53,6 +53,7 @@ static inline const char * find_dnsmasq (void) { static const char *paths[] = { + DNSMASQ_PATH, "/usr/local/sbin/dnsmasq", "/usr/sbin/dnsmasq", "/sbin/dnsmasq", @@ -61,7 +62,7 @@ find_dnsmasq (void) const char **binary = paths; while (*binary != NULL) { - if (g_file_test (*binary, G_FILE_TEST_EXISTS)) + if (**binary && g_file_test (*binary, G_FILE_TEST_EXISTS)) return *binary; binary++; } |