summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaul <paul>2003-10-24 04:24:39 +0000
committerpaul <paul>2003-10-24 04:24:39 +0000
commit04bd484bf272dd580349c832f84cf5ffa27003bb (patch)
tree9f9c50fda664e0ce62d43af14ec7ec546f801547
parente92fbaf27ea028d4def1246b7fadb2096bfa4d8d (diff)
2003-10-24 Paul Jakma <paul@dishone.st>
* configure.ac: Check for fcntl() * {bgpd,ospf,ospf6d,ripd,ripngd}/Makefile.am: Install conf file via regular automake means, not magic install incantations, see bug #38. * lib/Makefile.am: install the headers, needed to link libzebra.a (and hence libospf.a, OSPF-API, etc.)
-rw-r--r--bgpd/Makefile.am20
-rwxr-xr-xconfigure.ac3
-rw-r--r--lib/Makefile.am2
-rw-r--r--ospf6d/Makefile.am17
-rw-r--r--ospfd/Makefile.am20
-rw-r--r--ripd/Makefile.am20
-rw-r--r--ripngd/Makefile.am18
-rw-r--r--zebra/Makefile.am18
8 files changed, 21 insertions, 97 deletions
diff --git a/bgpd/Makefile.am b/bgpd/Makefile.am
index 0e549cc0..3559652c 100644
--- a/bgpd/Makefile.am
+++ b/bgpd/Makefile.am
@@ -26,19 +26,7 @@ bgpd_SOURCES = \
bgpd_LDADD = ../lib/libzebra.a @LIBCAP@
-sysconf_DATA = bgpd.conf.sample bgpd.conf.sample2
-
-EXTRA_DIST = $(sysconf_DATA) BGP4-MIB.txt
-
-install-sysconfDATA: $(sysconf_DATA)
- @$(NORMAL_INSTALL)
- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
- @list='$(sysconf_DATA)'; for p in $$list; do \
- if test -f $(srcdir)/$$p; then \
- echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
- $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
- else if test -f $$p; then \
- echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
- $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
- fi; fi; \
- done
+dist_sysconf_DATA = bgpd.conf.sample bgpd.conf.sample2
+
+EXTRA_DIST = BGP4-MIB.txt
+
diff --git a/configure.ac b/configure.ac
index 807cf7c0..26079882 100755
--- a/configure.ac
+++ b/configure.ac
@@ -345,7 +345,8 @@ dnl ----------------------------
dnl check existance of functions
dnl ----------------------------
AC_CHECK_FUNCS(memset memcpy strerror inet_aton daemon snprintf vsnprintf \
- strlcat strlcpy if_nametoindex if_indextoname getifaddrs)
+ strlcat strlcpy if_nametoindex if_indextoname getifaddrs \
+ fcntl)
AC_CHECK_FUNCS(setproctitle, ,
[AC_CHECK_LIB(util, setproctitle,
[LIBS="$LIBS -lutil"
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 2aec295c..27981e52 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -16,7 +16,7 @@ libzebra_a_DEPENDENCIES = @LIB_REGEX@
libzebra_a_LIBADD = @LIB_REGEX@
-noinst_HEADERS = \
+include_HEADERS = \
buffer.h command.h filter.h getopt.h hash.h if.h linklist.h log.h \
memory.h network.h prefix.h routemap.h distribute.h sockunion.h \
str.h stream.h table.h thread.h vector.h version.h vty.h zebra.h \
diff --git a/ospf6d/Makefile.am b/ospf6d/Makefile.am
index e42814af..115b8196 100644
--- a/ospf6d/Makefile.am
+++ b/ospf6d/Makefile.am
@@ -30,19 +30,4 @@ ospf6d_SOURCES = \
ospf6d_LDADD = -L../lib -lzebra @LIBCAP@
-sysconf_DATA = ospf6d.conf.sample
-
-EXTRA_DIST = $(sysconf_DATA)
-
-install-sysconfDATA: $(sysconf_DATA)
- @$(NORMAL_INSTALL)
- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
- @list='$(sysconf_DATA)'; for p in $$list; do \
- if test -f $(srcdir)/$$p; then \
- echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
- $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
- else if test -f $$p; then \
- echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
- $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
- fi; fi; \
- done
+dist_sysconf_DATA = ospf6d.conf.sample
diff --git a/ospfd/Makefile.am b/ospfd/Makefile.am
index 81f212c4..93b80aed 100644
--- a/ospfd/Makefile.am
+++ b/ospfd/Makefile.am
@@ -30,19 +30,7 @@ ospfd_SOURCES = \
ospfd_LDADD = -L../lib -lzebra @LIBCAP@
-sysconf_DATA = ospfd.conf.sample
-
-EXTRA_DIST = $(sysconf_DATA) OSPF-MIB.txt OSPF-TRAP-MIB.txt ChangeLog.opaque.txt
-
-install-sysconfDATA: $(sysconf_DATA)
- @$(NORMAL_INSTALL)
- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
- @list='$(sysconf_DATA)'; for p in $$list; do \
- if test -f $(srcdir)/$$p; then \
- echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
- $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
- else if test -f $$p; then \
- echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
- $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
- fi; fi; \
- done
+EXTRA_DIST = OSPF-MIB.txt OSPF-TRAP-MIB.txt ChangeLog.opaque.txt
+
+dist_sysconf_DATA = ospfd.conf.sample
+
diff --git a/ripd/Makefile.am b/ripd/Makefile.am
index 2c187e84..ab631345 100644
--- a/ripd/Makefile.am
+++ b/ripd/Makefile.am
@@ -19,19 +19,7 @@ ripd_SOURCES = \
ripd_LDADD = -L../lib -lzebra @LIBCAP@
-sysconf_DATA = ripd.conf.sample
-
-EXTRA_DIST = $(sysconf_DATA) RIPv2-MIB.txt
-
-install-sysconfDATA: $(sysconf_DATA)
- @$(NORMAL_INSTALL)
- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
- @list='$(sysconf_DATA)'; for p in $$list; do \
- if test -f $(srcdir)/$$p; then \
- echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
- $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
- else if test -f $$p; then \
- echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
- $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
- fi; fi; \
- done
+dist_sysconf_DATA = ripd.conf.sample
+
+EXTRA_DIST = RIPv2-MIB.txt
+
diff --git a/ripngd/Makefile.am b/ripngd/Makefile.am
index d9db576e..2e6c6774 100644
--- a/ripngd/Makefile.am
+++ b/ripngd/Makefile.am
@@ -19,19 +19,5 @@ ripngd_SOURCES = \
ripngd_LDADD = -L../lib -lzebra @LIBCAP@
-sysconf_DATA = ripngd.conf.sample
-
-EXTRA_DIST = $(sysconf_DATA)
-
-install-sysconfDATA: $(sysconf_DATA)
- @$(NORMAL_INSTALL)
- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
- @list='$(sysconf_DATA)'; for p in $$list; do \
- if test -f $(srcdir)/$$p; then \
- echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
- $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
- else if test -f $$p; then \
- echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
- $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
- fi; fi; \
- done
+dist_sysconf_DATA = ripngd.conf.sample
+
diff --git a/zebra/Makefile.am b/zebra/Makefile.am
index 1df72d73..d449fe16 100644
--- a/zebra/Makefile.am
+++ b/zebra/Makefile.am
@@ -32,9 +32,7 @@ zebra_LDADD = ../lib/libzebra.a $(otherobj) $(LIBCAP) $(LIB_IPV6)
zebra_DEPENDENCIES = $(otherobj)
-sysconf_DATA = zebra.conf.sample
-
-EXTRA_DIST = $(sysconf_DATA) if_ioctl.c if_netlink.c if_proc.c if_sysctl.c \
+EXTRA_DIST = if_ioctl.c if_netlink.c if_proc.c if_sysctl.c \
ipforward_aix.c ipforward_ews.c ipforward_proc.c \
ipforward_solaris.c ipforward_sysctl.c rt_ioctl.c rt_netlink.c \
rt_socket.c rtread_netlink.c rtread_proc.c rtread_sysctl.c \
@@ -44,15 +42,5 @@ EXTRA_DIST = $(sysconf_DATA) if_ioctl.c if_netlink.c if_proc.c if_sysctl.c \
#client : client_main.o ../lib/libzebra.a
# $(CC) -g -o client client_main.o ../lib/libzebra.a $(LIBS) $(LIB_IPV6)
-install-sysconfDATA: $(sysconf_DATA)
- @$(NORMAL_INSTALL)
- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
- @list='$(sysconf_DATA)'; for p in $$list; do \
- if test -f $(srcdir)/$$p; then \
- echo " $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
- $(INSTALL_SDATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
- else if test -f $$p; then \
- echo " $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
- $(INSTALL_SDATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
- fi; fi; \
- done
+quaggaconfdir = $(sysconfdir)
+dist_quaggaconf_DATA = zebra.conf.sample