From 8041b5bada31db152de80e45b3047ed32cef6880 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 9 May 2011 14:57:15 +0200 Subject: return any locally configured IP address if they exist Fall back to 127.0.0.2/::1 only if there is no proper IP address configured on any interface. --- Makefile.am | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 9b1dcab..7f2f3a3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -23,6 +23,8 @@ lib_LTLIBRARIES = libnss_myhostname.la EXTRA_DIST=bootstrap.sh README LICENSE SUBDIRS=doc +AM_CPPFLAGS = -include $(top_builddir)/config.h + MAINTAINERCLEANFILES=README noinst_DATA = README @@ -39,8 +41,16 @@ homepage: all dist .PHONY: homepage -libnss_myhostname_la_SOURCES = nss-myhostname.c -libnss_myhostname_la_LDFLAGS = -avoid-version -module -export-dynamic -shrext .so.2 +libnss_myhostname_la_SOURCES = \ + nss-myhostname.c \ + netlink.c \ + netlink.h + +libnss_myhostname_la_LDFLAGS = \ + -avoid-version \ + -module \ + -export-dynamic \ + -shrext .so.2 install-exec-hook: rm -f $(DESTDIR)$(libdir)/libnss_myhostname.la -- cgit