Skip to content
Snippets Groups Projects
Commit 4177a29e authored by Jan Kadlec's avatar Jan Kadlec
Browse files

Fixed conditional compilation of ldns.

Fixes #1104 @1h
parent 073e7c80
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,8 @@ AC_PROG_CC_C99
AC_ARG_ENABLE([ldns],
[ --enable-ldns Enable tests with ldns],
[case "${enableval}" in
yes) AC_SEARCH_LIBS([ldns_rr_list_pop_rrset], [ldns], [], AC_MSG_ERROR([ldns not found])) ;;
yes) AC_SEARCH_LIBS([ldns_rr_list_pop_rrset], [ldns], [AC_DEFINE([HAVE_LDNS], [1], [ldns present])],
AC_MSG_ERROR([ldns not found])) ;;
no) ldns=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-ldns]) ;;
esac],[ldns=false])
......
......@@ -14,7 +14,7 @@
#include <signal.h>
#include <stdint.h>
#include "config.h"
#include <config.h>
/*
* Common types and constants.
......@@ -56,7 +56,7 @@ typedef unsigned int uint; /*!< \brief Unsigned. */
//#define STAT_COMPILE
#ifdef HAVE_LIBLDNS
#ifdef HAVE_LDNS
#define TEST_WITH_LDNS
#endif
......
......@@ -3,6 +3,7 @@
#include <assert.h>
#include <config.h>
#include "knot/common.h"
#include "packet_tests_realdata.h"
#include "libknot/util/error.h"
#include "libknot/packet/packet.h"
......
......@@ -3,6 +3,7 @@
#include <assert.h>
#include "packet_tests_realdata.h"
#include "knot/common.h"
#include "libknot/util/error.h"
#include "libknot/packet/packet.h"
#include "libknot/packet/response.h"
......
......@@ -2,6 +2,7 @@
#include "libknot/zone/zone.h"
#include "knot/zone/zone-load.h"
#include "knot/common.h"
#include "libknot/rrset.h"
#include "libknot/util/descriptor.h"
#include "zcompile/zcompile.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment