From 16a2175d4c9131647e3ee1874434a3ad74801bfe Mon Sep 17 00:00:00 2001 From: Melinda Shore Date: Mon, 24 Jun 2013 12:17:15 -0800 Subject: [PATCH] Added ldns support --- src/src/Makefile.in | 6 +++--- src/src/configure.ac | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/src/Makefile.in b/src/src/Makefile.in index 3c7cac18..ac4ebe2e 100644 --- a/src/src/Makefile.in +++ b/src/src/Makefile.in @@ -17,7 +17,7 @@ VPATH = @srcdir@ CC=gcc CFLAGS=-g -I. -std=c99 LDFLAGS=-L. -LDLIBS=-levent_core -lgetdns +LDLIBS=-levent_core -lldns -lgetdns PROGRAMS=example-simple-answers example-tree example-all-functions example-synchronous # example-simple-answers.c example-tree.c @@ -28,8 +28,8 @@ all: libgetdns example-simple-answers example-tree example-all-functions example getdns_core_only.o: getdns_core_only.c $(CC) -c -Wall -fPIC $(CFLAGS) $^ -libgetdns: getdns_core_only.o - $(CC) -shared -o libgetdns.so $^ +libgetdns: getdns_core_only.c + $(CC) $(CFLAGS) -shared -o libgetdns.so $^ clean: rm -f *.o $(PROGRAMS) libgetdns.so diff --git a/src/src/configure.ac b/src/src/configure.ac index 18efae44..f11e08e9 100644 --- a/src/src/configure.ac +++ b/src/src/configure.ac @@ -15,6 +15,7 @@ AC_PROG_CC # Checks for libraries. AC_CHECK_LIB([event_core], [event_base_new]) AC_CHECK_LIB([getdns], [getdns_context_create]) +AC_CHECK_LIB([ldns], [ldns_dname_new_frm_str]) # Checks for header files. AC_CHECK_HEADERS([inttypes.h netinet/in.h stdint.h stdlib.h string.h])