From: Wouter Wijngaards Date: Tue, 19 Jun 2012 12:20:11 +0000 (+0000) Subject: - --with-libunbound-only build option, only builds the library and X-Git-Tag: release-1.4.18rc1~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15c805677c6e2c46bbf9e30bded530116b282009;p=thirdparty%2Funbound.git - --with-libunbound-only build option, only builds the library and not the daemon and other tools. git-svn-id: file:///svn/unbound/trunk@2689 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/Makefile.in b/Makefile.in index af9fba806..2e682c1df 100644 --- a/Makefile.in +++ b/Makefile.in @@ -30,6 +30,7 @@ PYTHONMOD_INSTALL=@PYTHONMOD_INSTALL@ PYTHONMOD_UNINSTALL=@PYTHONMOD_UNINSTALL@ PYUNBOUND_INSTALL=@PYUNBOUND_INSTALL@ PYUNBOUND_UNINSTALL=@PYUNBOUND_UNINSTALL@ +ALLTARGET=@ALLTARGET@ # _unbound.la if pyunbound enabled. PYUNBOUND_TARGET=@PYUNBOUND_TARGET@ @@ -227,9 +228,11 @@ COMPILE=$(LIBTOOL) --tag=CC --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) LINK=$(LIBTOOL) --tag=CC --mode=link $(CC) $(staticexe) $(RUNTIME_PATH) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) LINK_LIB=$(LIBTOOL) --tag=CC --mode=link $(CC) $(RUNTIME_PATH) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(staticexe) -version-info @LIBUNBOUND_CURRENT@:@LIBUNBOUND_REVISION@:@LIBUNBOUND_AGE@ -no-undefined -.PHONY: clean realclean doc lint all install uninstall tests test strip lib longtest longcheck check +.PHONY: clean realclean doc lint all install uninstall tests test strip lib longtest longcheck check alltargets -all: $(COMMON_OBJ) unbound$(EXEEXT) unbound-checkconf$(EXEEXT) lib unbound-host$(EXEEXT) unbound-control$(EXEEXT) unbound-anchor$(EXEEXT) unbound-control-setup $(WINAPPS) $(PYUNBOUND_TARGET) +all: $(COMMON_OBJ) $(ALLTARGET) + +alltargets: unbound$(EXEEXT) unbound-checkconf$(EXEEXT) lib unbound-host$(EXEEXT) unbound-control$(EXEEXT) unbound-anchor$(EXEEXT) unbound-control-setup $(WINAPPS) $(PYUNBOUND_TARGET) # compat with BSD make, register suffix, and an implicit rule to actualise it. .SUFFIXES: .lo diff --git a/configure b/configure index a40f76bd3..fb8e7959e 100755 --- a/configure +++ b/configure @@ -613,6 +613,7 @@ ac_includes_default="\ ac_subst_vars='LTLIBOBJS ldnsdir +ALLTARGET SOURCEFILE SOURCEDETERMINE UBSYMS @@ -798,6 +799,7 @@ with_libexpat enable_static_exe enable_lock_checks enable_allsymbols +with_libunbound_only with_ldns ' ac_precious_vars='build_alias @@ -1498,6 +1500,7 @@ Optional Packages: an explicit path). Slower, but allows use of large outgoing port ranges. --with-libexpat=path specify explicit path for libexpat. + --with-libunbound-only do not build daemon and tool programs --with-ldns=PATH specify prefix of path of ldns library to use Some influential environment variables: @@ -17778,6 +17781,20 @@ rm -f conftest.lo +# see if we want to build the library or everything +ALLTARGET="alltargets" + +# Check whether --with-libunbound-only was given. +if test "${with_libunbound_only+set}" = set; then : + withval=$with_libunbound_only; + if test "$withval" = "yes"; then + ALLTARGET="lib" + fi + +fi + + + # check this after all other compilation checks, since the linking of the lib # may break checks after this. diff --git a/configure.ac b/configure.ac index 8552a1cfa..3bb273b19 100644 --- a/configure.ac +++ b/configure.ac @@ -970,6 +970,17 @@ rm -f conftest.lo AC_SUBST(SOURCEDETERMINE) AC_SUBST(SOURCEFILE) +# see if we want to build the library or everything +ALLTARGET="alltargets" +AC_ARG_WITH(libunbound-only, AC_HELP_STRING([--with-libunbound-only], + [do not build daemon and tool programs]), + [ + if test "$withval" = "yes"; then + ALLTARGET="lib" + fi +]) +AC_SUBST(ALLTARGET) + # check this after all other compilation checks, since the linking of the lib # may break checks after this. AC_ARG_WITH(ldns, AC_HELP_STRING([--with-ldns=PATH], diff --git a/doc/Changelog b/doc/Changelog index 71409d0b7..7dd354e6d 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,7 @@ +19 June 2012: Wouter + - --with-libunbound-only build option, only builds the library and + not the daemon and other tools. + 18 June 2012: Wouter - code review.