diff --git a/Makefile.am b/Makefile.am index 2949213..07b163d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,7 +12,7 @@ dist_man8_MANS=bgpq4.8 bgpq4_LDADD = $(PLATFORM_LDADD) $(PROG_LDADD) bgpq4_LDADD += $(top_builddir)/compat/libcompat.la -bgpq4_SOURCES=bgpq4.c extern.h bgpq4_printer.c bgpq_expander.c \ +bgpq4_SOURCES=main.c extern.h bgpq4_printer.c bgpq_expander.c \ expander_freeall.c sx_maxsockbuf.c \ sx_prefix.c sx_prefix.h sx_report.c sx_report.h \ sx_slentry.c sx_slentry.h diff --git a/configure.ac b/configure.ac index cae20cf..a737af2 100644 --- a/configure.ac +++ b/configure.ac @@ -107,6 +107,7 @@ AC_CHECK_LIB(nsl,getaddrinfo) AC_CHECK_HEADERS([sys/cdefs.h sys/queue.h sys/tree.h sys/select.h]) +AM_CONDITIONAL([HAVE_PLEDGE], [test "x$ac_cv_func_pledge" = xyes]) AM_CONDITIONAL([HAVE_STRLCPY], [test "x$ac_cv_func_strlcpy" = xyes]) AC_CONFIG_FILES([ diff --git a/bgpq4.c b/main.c similarity index 100% rename from bgpq4.c rename to main.c