summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Toorop <willem@nlnetlabs.nl>2017-05-01 10:06:28 +0200
committerWillem Toorop <willem@nlnetlabs.nl>2017-05-01 10:06:28 +0200
commitb13246616b7209887eb54166930849549c05346a (patch)
tree03ea76159cb1f984ac17e5b4e4fb1fd586c4f3b7
parent3bdeed02505c9bbacb3b64a97ddcb1de967153b7 (diff)
downloadldns-b13246616b7209887eb54166930849549c05346a.tar.gz
Remove historical configure.ac's
-rw-r--r--drill/Makefile.in119
-rw-r--r--drill/configure.ac276
-rw-r--r--examples/Makefile.in207
-rw-r--r--examples/configure.ac477
-rwxr-xr-xmakedist.sh20
5 files changed, 2 insertions, 1097 deletions
diff --git a/drill/Makefile.in b/drill/Makefile.in
deleted file mode 100644
index ac555fa1..00000000
--- a/drill/Makefile.in
+++ /dev/null
@@ -1,119 +0,0 @@
-# Standard installation pathnames
-# See the file LICENSE for the license
-SHELL = @SHELL@
-VERSION = @PACKAGE_VERSION@
-basesrcdir = $(shell basename `pwd`)
-srcdir = @srcdir@
-prefix = @prefix@
-exec_prefix = @exec_prefix@
-bindir = @bindir@
-mandir = @mandir@
-includedir = @includedir@
-datarootdir = @datarootdir@
-
-CC = @CC@
-CFLAGS = -I. @CFLAGS@
-CPPFLAGS = @CPPFLAGS@
-LDFLAGS = @LDFLAGS@
-LIBS = @LIBS@
-INSTALL = $(srcdir)/install-sh -c
-INSTALL_PROGRAM = $(INSTALL)
-LDNSDIR = @LDNSDIR@
-LIBS_STC = @LIBS_STC@
-
-COMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) -I. -I$(srcdir)
-LINK = $(CC) $(CFLAGS) $(LDFLAGS)
-
-LINT = splint
-LINTFLAGS=+quiet -weak -warnposix -unrecog -Din_addr_t=uint32_t -Du_int=unsigned -Du_char=uint8_t -preproc -Drlimit=rlimit64 -D__gnuc_va_list=va_list
-#-Dglob64=glob -Dglobfree64=globfree
-# compat with openssl linux edition.
-LINTFLAGS+="-DBN_ULONG=unsigned long" -Dkrb5_int32=int "-Dkrb5_ui_4=unsigned int" -DPQ_64BIT=uint64_t -DRC4_INT=unsigned -fixedformalarray -D"ENGINE=unsigned" -D"RSA=unsigned" -D"DSA=unsigned" -D"EVP_PKEY=unsigned" -D"EVP_MD=unsigned" -D"SSL=unsigned" -D"SSL_CTX=unsigned" -D"X509=unsigned" -D"RC4_KEY=unsigned" -D"EVP_MD_CTX=unsigned"
-# compat with NetBSD
-ifeq "$(shell uname)" "NetBSD"
-LINTFLAGS+="-D__RENAME(x)=" -D_NETINET_IN_H_
-endif
-# compat with OpenBSD
-LINTFLAGS+="-Dsigset_t=long"
-# FreeBSD8
-LINTFLAGS+="-D__uint16_t=uint16_t"
-LINTFLAGS+=-D__signed__=signed "-D__packed=" "-D__aligned(x)="
-# Ubuntu Linux 11.04
-LINTFLAGS+="-D__u16=struct __u16" "-D__u32=struct __u32" "-D__u64=struct __u64"
-
-OBJ=drill.o drill_util.o error.o root.o work.o chasetrace.o dnssec.o securetrace.o
-SRC=$(OBJ:.o=.c)
-
-HEADER=drill.h $(srcdir)/drill_util.h
-
-.PHONY: all clean realclean docclean doc release tags install all-static
-
-all: drill
-all-static: drill-stc
-
-tags:
- ctags *.[ch]
-
-drill: $(OBJ)
- $(LINK) -o drill $(OBJ) $(LIBS)
-
-drill-stc: $(OBJ)
- $(LINK) -o drill $(OBJ) $(LIBS_STC)
-
-## implicit rule
-%.o: $(srcdir)/%.c
- $(COMPILE) -c $<
-
-clean:
- rm -f ${OBJ}
- rm -f drill
- rm -f *core
- rm -f config.h.in~
- rm -f config.log
- rm -f config.guess
- rm -f config.status
-
-docclean:
- rm -rf doxydoc
-
-distclean: clean docclean
- rm -f config.h
-
-realclean: clean docclean
- rm -f tags
- rm -f config.log
- rm -f config.sub
- rm -f ltmain.sh
- rm -f config.status
- rm -rf autom4te.cache
- rm -f config.h
- rm -f config.h.in
- rm -f configure
- rm -f Makefile
- rm -f drill.1
- rm -f aclocal.m4
-
-doc:
- doxygen drill.doxygen
-
-install: all
- $(INSTALL) -d $(DESTDIR)$(bindir)
- $(INSTALL) drill $(DESTDIR)$(bindir)/drill
- $(INSTALL) -m 644 drill.1 $(DESTDIR)$(mandir)/man1/drill.1
-
-uninstall:
- @echo
- rm -f -- $(DESTDIR)$(bindir)/drill
- rm -f -- $(DESTDIR)$(mandir)/man1/drill.1
- rmdir -p $(DESTDIR)$(bindir)
- rmdir -p $(DESTDIR)$(mandir)/man1
- @echo
-
-lint:
- @for i in $(SRC) ; do \
- $(LINT) $(LINTFLAGS) $(CPPFLAGS) -I$(srcdir) $(srcdir)/$$i ; \
- if [ $$? -ne 0 ] ; then exit 1 ; fi ; \
- done
-
-confclean: clean
- rm -rf config.log config.status config.h Makefile drill.1
diff --git a/drill/configure.ac b/drill/configure.ac
deleted file mode 100644
index 7a726da2..00000000
--- a/drill/configure.ac
+++ /dev/null
@@ -1,276 +0,0 @@
-# -*- Autoconf -*-
-# Process this file with autoconf to produce a configure script.
-
-AC_PREREQ(2.56)
-AC_INIT(ldns, 1.7.0, libdns@nlnetlabs.nl,libdns)
-AC_CONFIG_SRCDIR([drill.c])
-sinclude(../acx_nlnetlabs.m4)
-
-OURCPPFLAGS=''
-CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}}
-OURCFLAGS='-g'
-CFLAGS=${CFLAGS:-${OURCFLAGS}}
-AC_DEFINE(WINVER, 0x0502, [the version of the windows API enabled])
-
-AC_AIX
-# Checks for programs.
-AC_PROG_CC
-AC_PROG_MAKE_SET
-AC_CHECK_PROGS(libtool, [glibtool libtool15 libtool], [../libtool])
-
-# add option to disable the evil rpath
-dnl Check whether to use rpath or not
-AC_ARG_ENABLE(rpath,
- [ --disable-rpath disable hardcoded rpath (default=enabled)],
- enable_rpath=$enableval, enable_rpath=yes)
-
-if test "x$enable_rpath" = xyes; then
- RPATH_VAL="-Wl,-rpath=\${libdir}"
-fi
-
-
-ACX_CHECK_COMPILER_FLAG(std=c99, [C99FLAG="-std=c99"])
-ACX_CHECK_COMPILER_FLAG(xc99, [C99FLAG="-xc99"])
-
-AC_TYPE_SIZE_T
-ACX_CHECK_COMPILER_FLAG(O2, [CFLAGS="$CFLAGS -O2"])
-
-ACX_CHECK_COMPILER_FLAG_NEEDED($C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600,
-[
-#include "confdefs.h"
-#include <stdlib.h>
-#include <ctype.h>
-#include <sys/time.h>
-#ifdef HAVE_TIME_H
-#include <time.h>
-#endif
-#include <unistd.h>
-#ifdef HAVE_GETOPT_H
-#include <getopt.h>
-#endif
-
-int test() {
- int a;
- char **opts = NULL;
- struct timeval tv;
- char *t;
- time_t time = 0;
- char *buf = NULL;
- t = ctime_r(&time, buf);
- tv.tv_usec = 10;
- srandom(32);
- a = getopt(2, opts, "a");
- a = isascii(32);
- return a;
-}
-], [CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600"])
-
-
-ACX_CHECK_COMPILER_FLAG_NEEDED($C99FLAG, [#include <stdbool.h>], [CFLAGS="$CFLAGS $C99FLAG"])
-
-AC_C_INLINE
-AC_CHECK_TYPE(int8_t, char)
-AC_CHECK_TYPE(int16_t, short)
-AC_CHECK_TYPE(int32_t, int)
-AC_CHECK_TYPE(int64_t, long long)
-AC_CHECK_TYPE(uint8_t, unsigned char)
-AC_CHECK_TYPE(uint16_t, unsigned short)
-AC_CHECK_TYPE(uint32_t, unsigned int)
-AC_CHECK_TYPE(uint64_t, unsigned long long)
-AC_CHECK_TYPE(ssize_t, int)
-
-AC_CHECK_HEADERS([sys/types.h getopt.h stdlib.h stdio.h assert.h netinet/in.h ctype.h time.h arpa/inet.h sys/time.h sys/socket.h sys/select.h],,, [AC_INCLUDES_DEFAULT])
-AC_CHECK_HEADERS([netinet/in_systm.h net/if.h netinet/ip.h netinet/udp.h netinet/if_ether.h netinet/ip6.h],,, [
-AC_INCLUDES_DEFAULT
-#ifdef HAVE_NETINET_IN_SYSTM_H
-#include <netinet/in_systm.h>
-#endif
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#ifdef HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
-#endif
-#ifdef HAVE_NET_IF_H
-#include <net/if.h>
-#endif])
-# MinGW32 tests
-AC_CHECK_HEADERS([winsock2.h ws2tcpip.h],,, [AC_INCLUDES_DEFAULT])
-
-ACX_TYPE_SOCKLEN_T
-AC_CHECK_HEADERS([sys/param.h sys/mount.h],,,
-[AC_INCLUDES_DEFAULT]
-[
- [
- #if HAVE_SYS_PARAM_H
- # include <sys/param.h>
- #endif
- ]
-])
-AC_CHECK_TYPE(in_addr_t, [], [AC_DEFINE([in_addr_t], [uint32_t], [in_addr_t])], [
-#if HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-#if HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif])
-AC_CHECK_TYPE(in_port_t, [], [AC_DEFINE([in_port_t], [uint16_t], [in_port_t])], [
-#if HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-#if HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif])
-
-# check to see if libraries are needed for these functions.
-AC_SEARCH_LIBS(socket, socket)
-AC_SEARCH_LIBS([inet_pton], [nsl])
-
-ACX_WITH_SSL_OPTIONAL
-
-ACX_CHECK_GETADDRINFO_WITH_INCLUDES
-
-LIBS_STC="$LIBS"
-AC_SUBST(LIBS_STC)
-
-# check for ldns
-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="-L$withval -L$withval/lib $LDFLAGS"
- LDNSDIR="$withval"
- LIBS="-lldns $LIBS"
- LIBS_STC="$withval/lib/libldns.a $LIBS_STC"
- ]
-)
-
-#AC_CHECK_HEADER(ldns/ldns.h,, [
-# AC_MSG_ERROR([Can't find ldns headers (make copy-headers in devel source.)])
-# ], [AC_INCLUDES_DEFAULT]
-#)
-
-AC_CHECK_FUNCS(isblank)
-
-# check for ldns development source tree
-AC_MSG_CHECKING([for ldns devel source])
-ldns_dev_dir=..
-if test -f $ldns_dev_dir/ldns/util.h && \
- grep LDNS_VERSION $ldns_dev_dir/ldns/util.h >/dev/null; then
- ldns_version=`grep LDNS_VERSION $ldns_dev_dir/ldns/util.h | sed -e 's/^.*"\(.*\)".*$/\1/'`
- AC_MSG_RESULT([using $ldns_dev_dir with $ldns_version])
- CPPFLAGS="$CPPFLAGS -I$ldns_dev_dir/include"
- LDFLAGS="-L$ldns_dev_dir -L$ldns_dev_dir/lib $LDFLAGS"
- LIBS="-lldns $LIBS"
- AC_DEFINE(HAVE_LIBLDNS, 1, [If the ldns library is available.])
- LDNSDIR="$ldns_dev_dir"
- LIBS_STC="$ldns_dev_dir/lib/libldns.a $LIBS_STC"
-else
- AC_MSG_RESULT([no])
- AC_CHECK_LIB(ldns, ldns_rr_new, , [
- AC_MSG_ERROR([Can't find ldns library])dnl '
- ]
- )
-fi
-
-AC_SUBST(LDNSDIR)
-
-AC_ARG_WITH(trust-anchor, AC_HELP_STRING([--with-trust-anchor=KEYFILE],
-[Default location of the trust anchor file. [default=SYSCONFDIR/unbound/root.key]]), [
- LDNS_TRUST_ANCHOR_FILE="$withval"
-],[
- if test "x$LDNS_TRUST_ANCHOR_FILE" = "x"; then
- if test "x$sysconfdir" = 'x${prefix}/etc' ; then
- if test "x$prefix" = 'xNONE' ; then
- LDNS_TRUST_ANCHOR_FILE="/etc/unbound/root.key"
- else
- LDNS_TRUST_ANCHOR_FILE="${prefix}/etc/unbound/root.key"
- fi
- else
- LDNS_TRUST_ANCHOR_FILE="${sysconfdir}/unbound/root.key"
- fi
- fi
-])
-AC_DEFINE_UNQUOTED([LDNS_TRUST_ANCHOR_FILE], ["$LDNS_TRUST_ANCHOR_FILE"], [Default trust anchor file])
-AC_SUBST(LDNS_TRUST_ANCHOR_FILE)
-AC_MSG_NOTICE([Default trust anchor: $LDNS_TRUST_ANCHOR_FILE])
-
-AH_BOTTOM([
-
-#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
-#include <assert.h>
-
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
-#endif
-
-#ifdef HAVE_STDINT_H
-#include <stdint.h>
-#endif
-
-#ifdef HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
-#endif
-
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
-
-#ifdef HAVE_NETINET_UDP_H
-#include <netinet/udp.h>
-#endif
-
-#ifdef HAVE_TIME_H
-#include <time.h>
-#endif
-
-#ifdef HAVE_NETINET_IN_SYSTM_H
-#include <netinet/in_systm.h>
-#endif
-
-#ifdef HAVE_NETINET_IP_H
-#include <netinet/ip.h>
-#endif
-
-#ifdef HAVE_NET_IF_H
-#include <net/if.h>
-#endif
-
-#ifdef HAVE_NETINET_IF_ETHER_H
-#include <netinet/if_ether.h>
-#endif
-
-#ifdef HAVE_WINSOCK2_H
-#define USE_WINSOCK 1
-#include <winsock2.h>
-#endif
-
-#ifdef HAVE_WS2TCPIP_H
-#include <ws2tcpip.h>
-#endif
-
-#ifndef EXIT_FAILURE
-#define EXIT_FAILURE 1
-#endif
-#ifndef EXIT_SUCCESS
-#define EXIT_SUCCESS 0
-#endif
-
-#ifdef S_SPLINT_S
-#define FD_ZERO(a) /* a */
-#define FD_SET(a,b) /* a, b */
-#endif
-])
-
-AC_CONFIG_FILES([Makefile drill.1])
-AC_CONFIG_HEADER([config.h])
-AC_OUTPUT
diff --git a/examples/Makefile.in b/examples/Makefile.in
deleted file mode 100644
index 876a4e5e..00000000
--- a/examples/Makefile.in
+++ /dev/null
@@ -1,207 +0,0 @@
-# Standard installation pathnames
-# See the file LICENSE for the license
-SHELL = @SHELL@
-VERSION = @PACKAGE_VERSION@
-basesrcdir = $(shell basename `pwd`)
-srcdir = @srcdir@
-prefix = @prefix@
-exec_prefix = @exec_prefix@
-bindir = @bindir@
-mandir = @mandir@
-libtool = @libtool@
-datarootdir = @datarootdir@
-
-CC = @CC@
-CFLAGS = -I. -I${srcdir} @CFLAGS@
-CPPFLAGS = @CPPFLAGS@
-LDFLAGS = @LDFLAGS@
-LIBNSL_LIBS = @LIBNSL_LIBS@
-LIBSSL_CPPFLAGS = @LIBSSL_CPPFLAGS@
-LIBSSL_LDFLAGS = @LIBSSL_LDFLAGS@
-LIBSSL_LIBS = @LIBSSL_LIBS@
-LIBSSL_SSL_LIBS = @LIBSSL_SSL_LIBS@
-LIBS = @LIBS@
-RUNTIME_PATH = @RUNTIME_PATH@
-LDNSDIR = @LDNSDIR@
-
-INSTALL = $(srcdir)/../install-sh
-
-COMPILE = $(CC) $(CPPFLAGS) $(LIBSSL_CPPFLAGS) $(CFLAGS)
-LINK = $(libtool) --tag=CC --quiet --mode=link $(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) $(RUNTIME_PATH)
-LINK_STATIC = $(libtool) --tag=CC --quiet --mode=link $(CC) $(CFLAGS) -static $(LDFLAGS) $(LIBS) $(RUNTIME_PATH)
-
-LINT = splint
-LINTFLAGS=+quiet -weak -warnposix -unrecog -Din_addr_t=uint32_t -Du_int=unsigned -Du_char=uint8_t -preproc -Drlimit=rlimit64 -D__gnuc_va_list=va_list
-#-Dglob64=glob -Dglobfree64=globfree
-# compat with openssl linux edition.
-LINTFLAGS+="-DBN_ULONG=unsigned long" -Dkrb5_int32=int "-Dkrb5_ui_4=unsigned int" -DPQ_64BIT=uint64_t -DRC4_INT=unsigned -fixedformalarray -D"ENGINE=unsigned" -D"RSA=unsigned" -D"DSA=unsigned" -D"EVP_PKEY=unsigned" -D"EVP_MD=unsigned" -D"SSL=unsigned" -D"SSL_CTX=unsigned" -D"X509=unsigned" -D"RC4_KEY=unsigned" -D"EVP_MD_CTX=unsigned"
-# compat with NetBSD
-ifeq "$(shell uname)" "NetBSD"
-LINTFLAGS+="-D__RENAME(x)=" -D_NETINET_IN_H_
-endif
-# compat with OpenBSD
-LINTFLAGS+="-Dsigset_t=long"
-# FreeBSD8
-LINTFLAGS+="-D__uint16_t=uint16_t"
-LINTFLAGS+=-D__signed__=signed "-D__packed=" "-D__aligned(x)="
-# Ubuntu 11.04
-LINTFLAGS+="-D__u16=struct __u16" "-D__u32=struct __u32" "-D__u64=struct __u64"
-
-HEADER = config.h
-MAIN_SOURCES = ldns-read-zone.c \
- ldns-mx.c \
- ldns-chaos.c \
- ldns-update.c \
- ldns-keygen.c \
- ldns-key2ds.c \
- ldns-version.c \
- ldns-rrsig.c \
- ldns-walk.c \
- ldns-zsplit.c \
- ldns-zcat.c \
- ldns-dpa.c \
- ldns-resolver.c \
- ldns-test-edns.c \
- ldns-keyfetcher.c \
- ldns-notify.c \
- ldns-testns.c \
- ldns-compare-zones.c \
- ldns-gen-zone.c \
- ldnsd.c
-
-MAIN_SSL_SOURCES = ldns-signzone.c \
- ldns-verify-zone.c \
- ldns-revoke.c \
- ldns-nsec3-hash.c \
- ldns-dane.c
-
-OTHER_SOURCES = ldns-testpkts.c
-
-PROGRAMS=$(MAIN_SOURCES:.c=)
-SSL_PROGRAMS=$(MAIN_SSL_SOURCES:.c=)
-
-.PHONY: all clean realclean all-static
-.SECONDARY: $(MAIN_SOURCES:.c=.o) $(OTHER_SOURCES:.c=.o) $(MAIN_SSL_SOURCES:.c=.o)
-
-all: $(addsuffix .prg,$(PROGRAMS)) $(addsuffix .prg-ssl,$(SSL_PROGRAMS))
-
-all-static: $(addsuffix .stc,$(PROGRAMS)) $(addsuffix .stc-ssl,$(SSL_PROGRAMS))
-
-%.o: $(srcdir)/%.c
- $(COMPILE) -o $@ -c $<
-
-# ldns-testns uses more sources.
-ldns-testns.o: $(srcdir)/ldns-testns.c $(srcdir)/ldns-testpkts.c $(srcdir)/ldns-testpkts.h
-ldns-testns.prg: ldns-testpkts.o
-ldns-testns.stc: ldns-testpkts.o
-
-ldnsd.prg: ldnsd.o
- @if test ! -f $(@:.prg=) -o $< -nt $(@:.prg=); then \
- echo $(LINK) $(LIBNSL_LIBS) -o $(@:.prg=) $^ ; \
- $(LINK) $(LIBNSL_LIBS) -o $(@:.prg=) $^ ; \
- fi
-
-ldnsd.stc: ldnsd.o
- @if test ! -f $@ -o $< -nt $@; then \
- echo $(LINK_STATIC) $(LIBNSL_LDFLAGS) -o $@ $^ ; \
- $(LINK_STATIC) $(LIBNSL_LDFLAGS) -o $@ $^ ; \
- fi
-
-ldns-dane.prg-ssl: ldns-dane.o
- @if test ! -f $(@:.prg-ssl=) -o $< -nt $(@:.prg-ssl=); then \
- echo $(LINK) $(LIBNSL_LIBS) $(LIBSSL_LDFLAGS) $(LIBSSL_SSL_LIBS) -o $(@:.prg-ssl=) $^ ; \
- $(LINK) $(LIBNSL_LIBS) $(LIBSSL_LDFLAGS) $(LIBSSL_SSL_LIBS) -o $(@:.prg-ssl=) $^ ; \
- fi
-
-ldns-dane.stc-ssl: ldns-dane.o
- @if test ! -f $@ -o $< -nt $@; then \
- echo $(LINK_STATIC) $(LIBNSL_LIBS) $(LIBSSL_LDFLAGS) $(LIBSSL_SSL_LIBS) -o $@ $^ ; \
- $(LINK_STATIC) $(LIBNSL_LIBS) $(LIBSSL_LDFLAGS) $(LIBSSL_SSL_LIBS) -o $@ $^ ; \
- fi
-
-%.prg-ssl: %.o
- @if test ! -f $(@:.prg-ssl=) -o $< -nt $(@:.prg-ssl=); then \
- echo $(LINK) $(LIBNSL_LIBS) $(LIBSSL_LDFLAGS) $(LIBSSL_LIBS) -o $(@:.prg-ssl=) $^ ; \
- $(LINK) $(LIBNSL_LIBS) $(LIBSSL_LDFLAGS) $(LIBSSL_LIBS) -o $(@:.prg-ssl=) $^ ; \
- fi
-
-%.stc-ssl: %.o
- @if test ! -f $@ -o $< -nt $@; then \
- echo $(LINK_STATIC) $(LIBNSL_LIBS) $(LIBSSL_LDFLAGS) $(LIBSSL_LIBS) -o $@ $^ ; \
- $(LINK_STATIC) $(LIBNSL_LIBS) $(LIBSSL_LDFLAGS) $(LIBSSL_LIBS) -o $@ $^ ; \
- fi
-
-%.prg: %.o
- @if test ! -f $(@:.prg=) -o $< -nt $(@:.prg=); then \
- echo $(LINK) -o $(@:.prg=) $^ ; \
- $(LINK) -o $(@:.prg=) $^ ; \
- fi
-
-%.stc: %.o
- @if test ! -f $@ -o $< -nt $@; then \
- echo $(LINK_STATIC) -o $@ $^ ; \
- $(LINK_STATIC) -o $@ $^ ; \
- fi
-
-lint:
- for i in $(MAIN_SOURCES) $(OTHER_SOURCES); do \
- $(LINT) $(LINTFLAGS) -I. -I$(srcdir) $(srcdir)/$$i $(CPPFLAGS); \
- if [ $$? -ne 0 ] ; then exit 1 ; fi ; \
- done
-
-clean:
- rm -f *.o *.lo
- rm -rf .libs
- rm -f $(PROGRAMS) $(SSL_PROGRAMS)
- rm -f $(addsuffix .stc,$(PROGRAMS)) $(addsuffix .stc-ssl,$(SSL_PROGRAMS))
-
-realclean: clean
- rm -rf autom4te.cache/
- rm -f config.log config.status aclocal.m4 config.h.in configure
- rm -f config.h ldns-dane.1 ldns-verify-zone.1 Makefile
-
-confclean: clean
- rm -rf config.log config.status
- rm -f config.h ldns-dane.1 ldns-verify-zone.1 Makefile
-
-install: $(PROGRAMS) $(SSL_PROGRAMS)
- $(INSTALL) -d -m 755 $(DESTDIR)$(bindir)
- $(INSTALL) -d -m 755 $(DESTDIR)$(mandir)
- $(INSTALL) -d -m 755 $(DESTDIR)$(mandir)/man1
- for i in $(PROGRAMS) $(SSL_PROGRAMS); do \
- $(libtool) --tag=CC --mode=install ${INSTALL} -c $$i $(DESTDIR)$(bindir) ; \
- if test -f $$i.1 ; \
- then $(INSTALL) -c -m 644 $$i.1 $(DESTDIR)$(mandir)/man1/$$i.1 ; \
- else $(INSTALL) -c -m 644 $(srcdir)/$$i.1 $(DESTDIR)$(mandir)/man1/$$i.1 ; \
- fi ; \
- done
- exit 0
-
-install-static: all-static
- $(INSTALL) -d -m 755 $(DESTDIR)$(bindir)
- $(INSTALL) -d -m 755 $(DESTDIR)$(mandir)
- $(INSTALL) -d -m 755 $(DESTDIR)$(mandir)/man1
- for i in $(PROGRAMS); do \
- $(libtool) --tag=CC --mode=install ${INSTALL} -c $$i.stc $(DESTDIR)$(bindir) ; \
- if test -f $$i.1 ; \
- then $(INSTALL) -c -m 644 $$i.1 $(DESTDIR)$(mandir)/man1/$$i.1 ; \
- else $(INSTALL) -c -m 644 $(srcdir)/$$i.1 $(DESTDIR)$(mandir)/man1/$$i.1 ; \
- fi ; \
- done
- for i in $(SSL_PROGRAMS); do \
- $(libtool) --tag=CC --mode=install ${INSTALL} -c $$i.stc-ssl $(DESTDIR)$(bindir) ; \
- if test -f $$i.1 ; \
- then $(INSTALL) -c -m 644 $$i.1 $(DESTDIR)$(mandir)/man1/$$i.1 ; \
- else $(INSTALL) -c -m 644 $(srcdir)/$$i.1 $(DESTDIR)$(mandir)/man1/$$i.1 ; \
- fi ; \
- done
- exit 0
-
-uninstall:
- for i in $(PROGRAMS) $(SSL_PROGRAMS); do \
- rm -f $(DESTDIR)$(bindir)/$$i ; \
- rm -f $(DESTDIR)$(mandir)/man1/$$i.1 ; \
- done
- exit 0
- rmdir -p $(DESTDIR)$(bindir)
- rmdir -p $(DESTDIR)$(mandir)
diff --git a/examples/configure.ac b/examples/configure.ac
deleted file mode 100644
index f692a4dc..00000000
--- a/examples/configure.ac
+++ /dev/null
@@ -1,477 +0,0 @@
-# -*- Autoconf -*-
-# Process this file with autoconf to produce a configure script.
-
-AC_PREREQ(2.56)
-AC_INIT(ldns, 1.7.0, libdns@nlnetlabs.nl,libdns)
-AC_CONFIG_SRCDIR([ldns-read-zone.c])
-sinclude(../acx_nlnetlabs.m4)
-
-OURCPPFLAGS=''
-CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}}
-OURCFLAGS='-g'
-CFLAGS=${CFLAGS:-${OURCFLAGS}}
-AC_DEFINE(WINVER, 0x0502, [the version of the windows API enabled])
-
-AC_AIX
-# Checks for programs.
-AC_PROG_CC
-AC_PROG_MAKE_SET
-AC_CHECK_PROGS(libtool, [glibtool libtool15 libtool], [../libtool])
-
-ACX_CHECK_COMPILER_FLAG(std=c99, [C99FLAG="-std=c99"])
-ACX_CHECK_COMPILER_FLAG(xc99, [C99FLAG="-xc99"])
-
-AC_ARG_ENABLE(rpath,
- [AC_HELP_STRING([--disable-rpath], [Disable hardcoded rpath (default=enabled)])],
- enable_rpath=$enableval, enable_rpath=yes)
-
-if test "x$enable_rpath" = xyes; then
- RPATH_VAL="-Wl,-rpath=\${libdir}"
-fi
-
-
-AC_TYPE_SIZE_T
-ACX_CHECK_COMPILER_FLAG(O2, [CFLAGS="$CFLAGS -O2"])
-
-ACX_CHECK_COMPILER_FLAG_NEEDED($C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600,
-[
-#include "confdefs.h"
-#include <stdlib.h>
-#include <ctype.h>
-#include <sys/time.h>
-#ifdef HAVE_TIME_H
-#include <time.h>
-#endif
-#include <unistd.h>
-#ifdef HAVE_GETOPT_H
-#include <getopt.h>
-#endif
-
-int test() {
- int a;
- char **opts = NULL;
- struct timeval tv;
- char *t;
- time_t time = 0;
- char *buf = NULL;
- t = ctime_r(&time, buf);
- tv.tv_usec = 10;
- srandom(32);
- a = getopt(2, opts, "a");
- a = isascii(32);
- return a;
-}
-], [CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600"])
-
-
-ACX_CHECK_COMPILER_FLAG_NEEDED($C99FLAG, [#include <stdbool.h>], [CFLAGS="$CFLAGS $C99FLAG"])
-
-AC_C_INLINE
-AC_CHECK_TYPE(int8_t, char)
-AC_CHECK_TYPE(int16_t, short)
-AC_CHECK_TYPE(int32_t, int)
-AC_CHECK_TYPE(int64_t, long long)
-AC_CHECK_TYPE(uint8_t, unsigned char)
-AC_CHECK_TYPE(uint16_t, unsigned short)
-AC_CHECK_TYPE(uint32_t, unsigned int)
-AC_CHECK_TYPE(uint64_t, unsigned long long)
-AC_CHECK_TYPE(ssize_t, int)
-
-AC_CHECK_HEADERS([sys/types.h getopt.h stdlib.h stdio.h assert.h netinet/in.h ctype.h time.h pcap.h arpa/inet.h sys/time.h sys/socket.h sys/select.h netdb.h],,, [AC_INCLUDES_DEFAULT])
-AC_CHECK_HEADERS([winsock2.h ws2tcpip.h],,, [AC_INCLUDES_DEFAULT])
-AC_CHECK_HEADERS([netinet/in_systm.h net/if.h netinet/ip.h netinet/udp.h netinet/igmp.h netinet/if_ether.h netinet/ip6.h],,, [
-AC_INCLUDES_DEFAULT
-#ifdef HAVE_NETINET_IN_SYSTM_H
-#include <netinet/in_systm.h>
-#endif
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#ifdef HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
-#endif
-#ifdef HAVE_NET_IF_H
-#include <net/if.h>
-#endif])
-
-ACX_TYPE_SOCKLEN_T
-AC_CHECK_HEADERS([sys/param.h sys/mount.h],,,
-[AC_INCLUDES_DEFAULT]
-[
- [
- #if HAVE_SYS_PARAM_H
- # include <sys/param.h>
- #endif
- ]
-])
-AC_CHECK_TYPE(in_addr_t, [], [AC_DEFINE([in_addr_t], [uint32_t], [in_addr_t])], [
-#if HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-#if HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif])
-AC_CHECK_TYPE(in_port_t, [], [AC_DEFINE([in_port_t], [uint16_t], [in_port_t])], [
-#if HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-#if HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif])
-
-# check to see if libraries are needed for these functions.
-AC_SEARCH_LIBS(socket, socket)
-tmp_LIBS="$LIBS"
-LIBS=
-AC_SEARCH_LIBS(inet_pton, nsl)
-AC_SUBST(LIBNSL_LIBS,$LIBS)
-LIBS="$tmp_LIBS"
-
-tmp_CPPFLAGS="$CPPFLAGS"
-tmp_LDFLAGS="$LDFLAGS"
-tmp_LIBS="$LIBS"
-
-ACX_WITH_SSL_OPTIONAL
-
-AC_SUBST(LIBSSL_CPPFLAGS)
-AC_SUBST(LIBSSL_LDFLAGS)
-AC_SUBST(LIBSSL_LIBS)
-if test "x$HAVE_SSL" = "xyes"; then
-AC_SUBST(LIBSSL_SSL_LIBS, ["-lssl $LIBSSL_LIBS"])
-fi
-CPPFLAGS="$tmp_CPPFLAGS"
-LDFLAGS="$tmp_LDFLAGS"
-LIBS="$tmp_LIBS"
-
-# use libcrypto to check the following:
-tmp_LDFLAGS="$LDFLAGS"
-tmp_LIBS="$LIBS"
-LDFLAGS="$LDFLAGS $LIBSSL_LDFLAGS"
-LIBS="$LIBS $LIBSSL_LIBS"
-AC_ARG_ENABLE(sha2, AC_HELP_STRING([--disable-sha2], [Disable SHA256 and SHA512 RRSIG support]))
-case "$enable_sha2" in
- no)
- ;;
- *)
- AC_MSG_CHECKING(for SHA256 and SHA512)
- AC_CHECK_FUNC(SHA256_Init,, [
- AC_MSG_ERROR([SHA2 enabled, but no SHA2 functions found in OpenSSL])
- ])
- AC_DEFINE_UNQUOTED([USE_SHA2], [1], [Define this to enable SHA256 and SHA512 support.])
- ;;
-esac
-
-AC_ARG_ENABLE(gost, AC_HELP_STRING([--disable-gost], [Disable GOST support]))
-case "$enable_gost" in
- no)
- ;;
- *)
- if test "x$HAVE_SSL" != "xyes"; then
- AC_MSG_ERROR([GOST enabled, but no SSL support])
- fi
- AC_MSG_CHECKING(for GOST)
- AC_CHECK_FUNC(EVP_PKEY_set_type_str, [],[AC_MSG_ERROR([OpenSSL >= 1.0.0 is needed for GOST support or rerun with --disable-gost])])
- AC_CHECK_FUNC(EC_KEY_new, [], [AC_MSG_ERROR([No ECC functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-gost])])
- AC_DEFINE_UNQUOTED([USE_GOST], [1], [Define this to enable GOST support.])
- ;;
-esac
-
-AC_ARG_ENABLE(ecdsa, AC_HELP_STRING([--disable-ecdsa], [Disable ECDSA support]))
-case "$enable_ecdsa" in
- no)
- ;;
- *) dnl default
- if test "x$HAVE_SSL" != "xyes"; then
- AC_MSG_ERROR([ECDSA enabled, but no SSL support])
- fi
- AC_CHECK_FUNC(ECDSA_sign, [], [AC_MSG_ERROR([OpenSSL does not support ECDSA: please upgrade OpenSSL or rerun with --disable-ecdsa])])
- AC_CHECK_FUNC(SHA384_Init, [], [AC_MSG_ERROR([OpenSSL does not support SHA384: please upgrade OpenSSL or rerun with --disable-ecdsa])])
- AC_CHECK_DECLS([NID_X9_62_prime256v1, NID_secp384r1], [], [AC_MSG_ERROR([OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa])], [AC_INCLUDES_DEFAULT
-#include <openssl/evp.h>
- ])
- # we now know we have ECDSA and the required curves.
- AC_DEFINE_UNQUOTED([USE_ECDSA], [1], [Define this to enable ECDSA support.])
- ;;
-esac
-
-AC_ARG_ENABLE(dane, AC_HELP_STRING([--disable-dane], [Disable DANE support]))
-case "$enable_dane" in
- no)
- ;;
- *) dnl default
- if test "x$HAVE_SSL" != "xyes"; then
- AC_MSG_ERROR([DANE enabled, but no SSL support])
- fi
- AC_CHECK_FUNC(X509_check_ca, [], [AC_MSG_ERROR([OpenSSL does not support DANE: please upgrade OpenSSL or rerun with --disable-dane])])
- AC_DEFINE_UNQUOTED([USE_DANE], [1], [Define this to enable DANE support.])
- ;;
-esac
-
-LDFLAGS="$tmp_LDFLAGS"
-LIBS="$tmp_LIBS"
-
-#AC_CHECK_HEADER(ldns/ldns.h,, [
-# AC_MSG_ERROR([Can't find ldns headers (make copy-headers in devel source.)])
-# ], [AC_INCLUDES_DEFAULT]
-#)
-
-AC_CHECK_LIB(pcap, pcap_open_offline,, [
- AC_MSG_WARN([Can't find pcap library (needed for ldns-dpa, will not build dpa now.)])
- ]
-)
-
-
-AC_DEFUN([AC_CHECK_GETADDRINFO_WITH_INCLUDES],
-[AC_REQUIRE([AC_PROG_CC])
-AC_MSG_CHECKING(for getaddrinfo)
-AC_CACHE_VAL(ac_cv_func_getaddrinfo,
-[ac_cv_func_getaddrinfo=no
-AC_LINK_IFELSE(
-[
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-char* getaddrinfo();
-char* (*f) () = getaddrinfo;
-#ifdef __cplusplus
-}
-#endif
-int main() {
- ;
- return 0;
-}
-],
-dnl this case on linux, solaris, bsd
-[ac_cv_func_getaddrinfo="yes"],
-dnl no quick getaddrinfo, try mingw32 and winsock2 library.
-ORIGLIBS="$LIBS"
-LIBS="$LIBS -lws2_32"
-AC_LINK_IFELSE(
-AC_LANG_PROGRAM(
-[
-#ifdef HAVE_WS2TCPIP_H
-#include <ws2tcpip.h>
-#endif
-],
-[
- (void)getaddrinfo(NULL, NULL, NULL, NULL);
-]
-),
-[ac_cv_func_getaddrinfo="yes"
-LDFLAGS="$LDFLAGS -lws2_32"
-],
-[ac_cv_func_getaddrinfo="no"
-LIBS="$ORIGLIBS"
-])
-)
-])
-
-AC_MSG_RESULT($ac_cv_func_getaddrinfo)
-if test $ac_cv_func_getaddrinfo = yes; then
- AC_DEFINE(HAVE_GETADDRINFO, 1, [Whether getaddrinfo is available])
-fi
-])dnl
-
-AC_CHECK_GETADDRINFO_WITH_INCLUDES
-
-AC_FUNC_FORK
-AC_CHECK_FUNCS(isblank srandom random sleep)
-AC_CHECK_DECLS([in6addr_any],,,[AC_INCLUDES_DEFAULT
-#ifdef HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
-#endif
-#ifdef HAVE_TIME_H
-#include <time.h>
-#endif
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
-#ifdef HAVE_SYS_SELECT_H
-#include <sys/select.h>
-#endif
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#ifdef HAVE_NETINET_UDP_H
-#include <netinet/udp.h>
-#endif
-#ifdef HAVE_NETINET_IGMP_H
-#include <netinet/igmp.h>
-#endif
-])
-
-# check for ldns
-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="-L$withval -L$withval/lib $LDFLAGS"
- LDNSDIR="$withval"
- ]
-)
-
-# check for ldns development source tree
-AC_MSG_CHECKING([for ldns devel source])
-ldns_dev_dir=..
-if test -f $ldns_dev_dir/ldns/util.h && \
- grep LDNS_VERSION $ldns_dev_dir/ldns/util.h >/dev/null; then
- ldns_version=`grep LDNS_VERSION $ldns_dev_dir/ldns/util.h | sed -e 's/^.*"\(.*\)".*$/\1/'`
- AC_MSG_RESULT([using $ldns_dev_dir with $ldns_version])
- CPPFLAGS="$CPPFLAGS -I$ldns_dev_dir/include"
- LDFLAGS="-L$ldns_dev_dir -L$ldns_dev_dir/lib $LDFLAGS"
- LIBS="$LIBS -lldns"
- AC_DEFINE(HAVE_LIBLDNS, 1, [If the ldns library is available.])
- LDNSDIR="$ldns_dev_dir"
-else
- AC_MSG_RESULT([no])
- AC_CHECK_LIB(ldns, ldns_rr_new,, [
- AC_MSG_ERROR([Can't find ldns library])dnl'
- ]
- )
-fi
-
-AC_SUBST(LDNSDIR)
-
-AC_ARG_WITH(trust-anchor, AC_HELP_STRING([--with-trust-anchor=KEYFILE], [Default location of the trust anchor file for drill and ldns-dane. [default=SYSCONFDIR/unbound/root.key]]), [
- LDNS_TRUST_ANCHOR_FILE="$withval"
-],[
- if test "x$LDNS_TRUST_ANCHOR_FILE" = "x"; then
- if test "x$sysconfdir" = 'x${prefix}/etc' ; then
- if test "x$prefix" = 'xNONE' ; then
- LDNS_TRUST_ANCHOR_FILE="/etc/unbound/root.key"
- else
- LDNS_TRUST_ANCHOR_FILE="${prefix}/etc/unbound/root.key"
- fi
- else
- LDNS_TRUST_ANCHOR_FILE="${sysconfdir}/unbound/root.key"
- fi
- fi
-])
-AC_DEFINE_UNQUOTED([LDNS_TRUST_ANCHOR_FILE], ["$LDNS_TRUST_ANCHOR_FILE"], [Default trust anchor file])
-AC_SUBST(LDNS_TRUST_ANCHOR_FILE)
-AC_MSG_NOTICE([Default trust anchor: $LDNS_TRUST_ANCHOR_FILE])
-
-AC_ARG_WITH(ca-file, AC_HELP_STRING([--with-ca-file=CAFILE], [File containing CA certificates for ldns-dane]), [
- AC_DEFINE([HAVE_DANE_CA_FILE], [1], [Is a CAFILE given at configure time])
- AC_DEFINE_UNQUOTED([LDNS_DANE_CA_FILE], ["$withval"], [Is a CAFILE given at configure time])
- AC_MSG_NOTICE([Using CAfile: $withval])
- AC_SUBST(DEFAULT_CAFILE, ["Default is $withval"])
-],[
- AC_DEFINE([HAVE_DANE_CA_FILE], [0], [Is a CAFILE given at configure time])
- AC_SUBST(DEFAULT_CAFILE, [])
-])
-
-AC_ARG_WITH(ca-path, AC_HELP_STRING([--with-ca-path=CAPATH], [Directory containing CA certificate files for ldns-dane]), [
- AC_DEFINE([HAVE_DANE_CA_PATH], [1], [Is a CAPATH given at configure time])
- AC_DEFINE_UNQUOTED([LDNS_DANE_CA_PATH], ["$withval"], [Is a CAPATH given at configure time])
- AC_MSG_NOTICE([Using CApath: $withval])
- AC_SUBST(DEFAULT_CAPATH, ["Default is $withval"])
-],[
- AC_DEFINE([HAVE_DANE_CA_PATH], [0], [Is a CAPATH given at configure time])
- AC_SUBST(DEFAULT_CAPATH, [])
-])
-
-AH_BOTTOM([
-
-#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
-#include <assert.h>
-
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
-#endif
-
-#ifdef HAVE_STDINT_H
-#include <stdint.h>
-#endif
-
-#ifdef HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
-#endif
-
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
-
-#ifdef HAVE_NETINET_UDP_H
-#include <netinet/udp.h>
-#endif
-
-#ifdef HAVE_TIME_H
-#include <time.h>
-#endif
-
-#ifdef HAVE_PCAP_H
-#include <pcap.h>
-#endif
-
-#ifdef HAVE_NETINET_IN_SYSTM_H
-#include <netinet/in_systm.h>
-#endif
-
-#ifdef HAVE_NETINET_IP_H
-#include <netinet/ip.h>
-#endif
-
-#ifdef HAVE_NET_IF_H
-#include <net/if.h>
-#endif
-
-#ifdef HAVE_NETINET_IF_ETHER_H
-#include <netinet/if_ether.h>
-#endif
-
-#ifdef HAVE_WINSOCK2_H
-#define USE_WINSOCK 1
-#include <winsock2.h>
-#endif
-
-#ifdef HAVE_WS2TCPIP_H
-#include <ws2tcpip.h>
-#endif
-
-#ifndef HAVE_GETADDRINFO
-#include <fake-rfc2553.h>
-#endif
-
-#ifndef HAVE_RANDOM
-/* random can be replaced by rand for ldnsexamples */
-#define random rand
-#endif
-
-#ifndef HAVE_SRANDOM
-/* srandom can be replaced by srand for ldnsexamples */
-#define srandom srand
-#endif
-
-extern char *optarg;
-extern int optind, opterr;
-
-#ifndef EXIT_FAILURE
-#define EXIT_FAILURE 1
-#endif
-#ifndef EXIT_SUCCESS
-#define EXIT_SUCCESS 0
-#endif
-
-#ifdef S_SPLINT_S
-#define FD_ZERO(a) /* a */
-#define FD_SET(a,b) /* a, b */
-#endif
-])
-
-AC_CONFIG_FILES([Makefile ldns-dane.1 ldns-verify-zone.1])
-AC_CONFIG_HEADER([config.h])
-AC_OUTPUT
diff --git a/makedist.sh b/makedist.sh
index 2cb55851..5528b437 100755
--- a/makedist.sh
+++ b/makedist.sh
@@ -140,13 +140,7 @@ libtoolize -c --install || libtoolize -c || error_cleanup "Libtoolize failed."
info "Building configure script (autoconf)."
autoreconf || error_cleanup "Autoconf failed."
-info "Building configure script for examples (autoconf)."
-cd examples && autoreconf && cd .. || error_cleanup "Autoconf failed."
-
-info "Building configure script for drill (autoconf)."
-cd drill && autoreconf && cd .. || error_cleanup "Autoconf failed."
-
-rm -r autom4te* drill/autom4te* examples/autom4te* || error_cleanup "Failed to remove autoconf cache directory."
+rm -r autom4te* || error_cleanup "Failed to remove autoconf cache directory."
# custom removes
find . -name .c-mode-rc.el -exec rm {} \;
@@ -171,8 +165,6 @@ if [ "$RC" != "no" ]; then
info "Version number: $version2"
replace_text "configure.ac" "AC_INIT(ldns, $version" "AC_INIT(ldns, $version2"
- replace_text "drill/configure.ac" "AC_INIT(ldns, $version" "AC_INIT(ldns, $version2"
- replace_text "examples/configure.ac" "AC_INIT(ldns, $version" "AC_INIT(ldns, $version2"
version="$version2"
RECONFIGURE="yes"
fi
@@ -183,8 +175,6 @@ if [ "$SNAPSHOT" = "yes" ]; then
info "Snapshot version number: $version2"
replace_text "configure.ac" "AC_INIT(ldns, $version" "AC_INIT(ldns, $version2"
- replace_text "drill/configure.ac" "AC_INIT(ldns, $version" "AC_INIT(ldns, $version2"
- replace_text "examples/configure.ac" "AC_INIT(ldns, $version" "AC_INIT(ldns, $version2"
version="$version2"
RECONFIGURE="yes"
fi
@@ -193,13 +183,7 @@ if [ "$RECONFIGURE" = "yes" ]; then
info "Rebuilding configure script (autoconf)."
autoreconf || error_cleanup "Autoconf failed."
- info "Rebuilding configure script for examples (autoconf)."
- cd examples && autoreconf && cd .. || error_cleanup "Autoconf failed."
-
- info "Rebuilding configure script for drill (autoconf)."
- cd drill && autoreconf && cd .. || error_cleanup "Autoconf failed."
-
- rm -r autom4te* drill/autom4te* examples/autom4te* || error_cleanup "Failed to remove autoconf cache directory."
+ rm -r autom4te* || error_cleanup "Failed to remove autoconf cache directory."
fi