Skip to content

Commit

Permalink
update to automake stuff, make nedmalloc default to 'yes' on freebsd,…
Browse files Browse the repository at this point in the history
… update version

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@590 d19b8d6e-7fed-0310-83ef-9ca221ded41b
  • Loading branch information
ahupowerdns committed Mar 17, 2006
1 parent ac4c795 commit 7337e77
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bootstrap.freebsd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ echo

aclocal19
autoheader259
libtoolize15
libtoolize15 --force
automake19 --add-missing --copy --foreign
autoconf259

22 changes: 20 additions & 2 deletions configure.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dnl intro
AC_INIT(pdns/receiver.cc)
AM_INIT_AUTOMAKE(pdns, 2.9.20)
AM_INIT_AUTOMAKE(pdns, 2.9.21-svn)
AC_CANONICAL_HOST
AM_CONFIG_HEADER(config.h)
AC_C_BIGENDIAN
Expand All @@ -14,7 +14,7 @@ AC_PROG_YACC
AM_PROG_LEX
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AM_PROG_LIBTOOL
AC_PROG_LIBTOOL
AC_LANG_CPLUSPLUS

dnl Checks for header files.
Expand Down Expand Up @@ -59,6 +59,7 @@ LIBS=$ac_save_LIBS

DYNLINKFLAGS=""
THREADFLAGS=""
enable_nedmalloc="no"

case "$host_os" in
solaris2.8 | solaris2.9 )
Expand Down Expand Up @@ -87,6 +88,10 @@ openbsd*)
LDFLAGS="-lc_r $LDFLAGS"
CXXFLAGS="-pthread $CXXFLAGS"
;;
freebsd*)
AM_CONDITIONAL(NEDMALLOC, true)
enable_nedmalloc="yes"
;;
*)
AC_DEFINE(HAVE_IPV6,1,[If the host operating system understands IPv6])
DYNLINKFLAGS="-rdynamic"
Expand Down Expand Up @@ -182,6 +187,19 @@ AC_MSG_RESULT($enable_recursor)

AM_CONDITIONAL(RECURSOR,test x"$enable_recursor" = "xyes")


AC_MSG_CHECKING(whether we should use nedmalloc allocator)
AC_ARG_ENABLE(nedmalloc,
[ --enable-nedmalloc If we should use nedmalloc],
enable_nedmalloc=$enableval,

)

AC_MSG_RESULT($enable_nedmalloc)

AM_CONDITIONAL(NEDMALLOC,test x"$enable_nedmalloc" = "xyes")


for a in $modules $dynmodules
do
case "$a" in
Expand Down
5 changes: 5 additions & 0 deletions pdns/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ mtasker.hh sillyrecords.cc syncres.hh recursor_cache.cc recursor_cache.hh dnspar
dnswriter.cc dnswriter.hh dnsrecords.cc dnsrecords.hh rcpgenerator.cc rcpgenerator.hh \
base64.cc base64.hh zoneparser-tng.cc zoneparser-tng.hh

if NEDMALLOC
pdns_recursor_SOURCES += ext/nedmalloc/malloc.c
endif


#../modules/gmysqlbackend/smysql.cc

pdns_recursor_LDFLAGS=
Expand Down

0 comments on commit 7337e77

Please sign in to comment.