From: Wouter Wijngaards Date: Fri, 16 Feb 2007 15:53:45 +0000 (+0000) Subject: improvements. X-Git-Tag: release-0.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c40c36605a12b767a9b3ea567f75509d9f7b3484;p=thirdparty%2Funbound.git improvements. git-svn-id: file:///svn/unbound/trunk@116 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/Makefile.in b/Makefile.in index 66b49c0db..b9f6ded11 100644 --- a/Makefile.in +++ b/Makefile.in @@ -49,15 +49,16 @@ LINTFLAGS+="-DBN_ULONG=unsigned long" -Dkrb5_int32=int "-Dkrb5_ui_4=unsigned int INSTALL=$(srcdir)/install-sh COMMON_SRC=$(wildcard services/*.c util/*.c) -COMMON_OBJ=$(addprefix $(BUILD),$(COMMON_SRC:.c=.o) $(LIBOBJS)) +COMMON_OBJ=$(addprefix $(BUILD),$(COMMON_SRC:.c=.o)) +COMPAT_OBJ=$(addprefix $(BUILD)compat/,$(LIBOBJS))) UNITTEST_SRC=testcode/unitmain.c $(COMMON_SRC) -UNITTEST_OBJ=$(addprefix $(BUILD),$(UNITTEST_SRC:.c=.o)) +UNITTEST_OBJ=$(addprefix $(BUILD),$(UNITTEST_SRC:.c=.o)) $(COMPAT_OBJ) DAEMON_SRC=$(wildcard daemon/*.c) $(COMMON_SRC) -DAEMON_OBJ=$(addprefix $(BUILD),$(DAEMON_SRC:.c=.o)) +DAEMON_OBJ=$(addprefix $(BUILD),$(DAEMON_SRC:.c=.o)) $(COMPAT_OBJ) TESTBOUND_SRC=testcode/testbound.c testcode/ldns-testpkts.c daemon/worker.c testcode/replay.c testcode/fake_event.c $(filter-out util/netevent.c services/listen_dnsport.c services/outside_network.c, $(COMMON_SRC)) -TESTBOUND_OBJ=$(addprefix $(BUILD),$(TESTBOUND_SRC:.c=.o)) +TESTBOUND_OBJ=$(addprefix $(BUILD),$(TESTBOUND_SRC:.c=.o)) $(COMPAT_OBJ) ALL_SRC=$(COMMON_SRC) $(UNITTEST_SRC) $(DAEMON_SRC) $(TESTBOUND_SRC) -ALL_OBJ=$(addprefix $(BUILD),$(ALL_SRC:.c=.o) $(LIBOBJS)) +ALL_OBJ=$(addprefix $(BUILD),$(ALL_SRC:.c=.o) $(addprefix compat/,$(LIBOBJS))) $(COMPAT_OBJ) COMPILE=$(LIBTOOL) --tag=CC --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) LINK=$(LIBTOOL) --tag=CC --mode=link $(CC) $(CFLAGS) $(LDFLAGS) diff --git a/configure.ac b/configure.ac index 8df00bff4..52524bb33 100644 --- a/configure.ac +++ b/configure.ac @@ -387,6 +387,17 @@ AC_SEARCH_LIBS(event_set, [event]) AC_CHECK_HEADERS([event.h],,, [AC_INCLUDES_DEFAULT]) AC_CHECK_FUNCS([event_base_free]) # only in libevent 1.2 and later +AC_ARG_WITH(ldns, + AC_HELP_STRING([--with-ldns=PATH specify prefix of path of ldns library to use]) + , [ specialldnsdir="$withval" + CPPFLAGS="$CPPFLAGS -I$withval/include" + LDFLAGS="$LDFLAGS -L$withval -L$withval/lib -lldns" + ldnsdir="$withval" + AC_SUBST(ldnsdir) +]) + +AC_CHECK_LIB(ldns, ldns_rr_new,, [AC_MSG_ERROR([Can't find ldns library])]) + # check to see if libraries are needed for these functions. AC_CHECK_LIB(socket, socket) AC_CHECK_LIB(nsl, inet_pton) @@ -407,17 +418,6 @@ if test $ac_cv_func_getaddrinfo = no; then AC_LIBOBJ([fake-rfc2553]) fi -AC_ARG_WITH(ldns, - AC_HELP_STRING([--with-ldns=PATH specify prefix of path of ldns library to use]) - , [ specialldnsdir="$withval" - CPPFLAGS="$CPPFLAGS -I$withval/include" - LDFLAGS="$LDFLAGS -L$withval -L$withval/lib -lldns" - ldnsdir="$withval" - AC_SUBST(ldnsdir) -]) - -AC_CHECK_LIB(ldns, ldns_rr_new,, [AC_MSG_ERROR([Can't find ldns library])]) - AC_DEFINE_UNQUOTED([MAXSYSLOGMSGLEN], [512], [Define to the maximum message length to pass to syslog.]) AH_BOTTOM([ @@ -497,6 +497,7 @@ void *memmove(void *dest, const void *src, size_t n); size_t strlcpy(char *dst, const char *src, size_t siz); #endif #ifndef HAVE_GETADDRINFO +struct sockaddr_storage; #include "compat/fake-rfc2553.h" #endif