From: Wouter Wijngaards Date: Fri, 11 Nov 2011 10:54:45 +0000 (+0000) Subject: better test for SunOS make. X-Git-Tag: release-1.4.14rc1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29ce27f3006a00b4656251f8b92824e1fecafc06;p=thirdparty%2Funbound.git better test for SunOS make. git-svn-id: file:///svn/unbound/trunk@2549 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/Makefile.in b/Makefile.in index dd378fd03..ee5eaf2be 100644 --- a/Makefile.in +++ b/Makefile.in @@ -337,7 +337,7 @@ harvest$(EXEEXT): $(HARVEST_OBJ_LINK) libunbound.la $(LINK) -o $@ $(HARVEST_OBJ_LINK) $(LIBS) -L. -L.libs -lunbound unbound-control-setup: $(srcdir)/smallapp/unbound-control-setup.sh - sed -e 's:^DESTDIR=.*$$:DESTDIR=$(UNBOUND_RUN_DIR):' < $< > $@ + sed -e 's:^DESTDIR=.*$$:DESTDIR=$(UNBOUND_RUN_DIR):' < $(srcdir)/smallapp/unbound-control-setup.sh > $@ -chmod +x $@ #testcode/ldns-testpkts.c: $(ldnsdir)/examples/ldns-testpkts.c \ @@ -360,17 +360,17 @@ pythonmod.lo pythonmod.o: $(srcdir)/pythonmod/pythonmod.c config.h \ pythonmod/interface.h: $(srcdir)/pythonmod/interface.i $(srcdir)/config.h @-if test ! -d pythonmod; then $(INSTALL) -d pythonmod; fi - $(SWIG) $(CPPFLAGS) -o $@ -python $< + $(SWIG) $(CPPFLAGS) -o $@ -python $(srcdir)/pythonmod/interface.i libunbound_wrap.lo libunbound_wrap.o: libunbound/python/libunbound_wrap.c \ $(srcdir)/libunbound/unbound.h libunbound/python/libunbound_wrap.c: $(srcdir)/libunbound/python/libunbound.i $(srcdir)/libunbound/unbound.h @-if test ! -d libunbound/python; then $(INSTALL) -d libunbound/python; fi - $(SWIG) -python -o $@ $(CPPFLAGS) $< + $(SWIG) -python -o $@ $(CPPFLAGS) $(srcdir)/libunbound/python/libunbound.i # Pyunbound python unbound wrapper _unbound.la: libunbound_wrap.lo libunbound.la - $(LIBTOOL) --tag=CC --mode=link $(CC) $(RUNTIME_PATH) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -module -version-number @LIBUNBOUND_CURRENT@:@LIBUNBOUND_REVISION@:@LIBUNBOUND_AGE@ -no-undefined -o $@ $< -rpath $(PYTHON_SITE_PKG) L. -L.libs -lunbound $(LIBS) + $(LIBTOOL) --tag=CC --mode=link $(CC) $(RUNTIME_PATH) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -module -version-number @LIBUNBOUND_CURRENT@:@LIBUNBOUND_REVISION@:@LIBUNBOUND_AGE@ -no-undefined -o $@ libunbound_wrap.lo -rpath $(PYTHON_SITE_PKG) L. -L.libs -lunbound $(LIBS) util/config_file.c: util/configparser.h util/configlexer.c: $(srcdir)/util/configlexer.lex util/configparser.h diff --git a/configure b/configure index 53505c0ac..8ed82e360 100755 --- a/configure +++ b/configure @@ -16923,9 +16923,30 @@ if test x_$enable_lock_checks = x_yes; then echo checklock_thrjoin >> clubsyms.def fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if make supports $<" >&5 -$as_echo_n "checking if make supports $<... " >&6; } -if test "`uname`" = "SunOS"; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5 +$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; } +# on openBSD, the implicit rule make $< work. +# on Solaris, it does not work (but $? does). +# gmake works. +cat >conftest.make <&5 $as_echo "no" >&6; } SOURCEDETERMINE='echo "$?" | awk "-F " "{print \$$1;}" > .source' @@ -16936,6 +16957,7 @@ $as_echo "yes" >&6; } SOURCEDETERMINE=':' SOURCEFILE='$<' fi +rm -f conftest.lo diff --git a/configure.ac b/configure.ac index fd19375cf..f2486bf94 100644 --- a/configure.ac +++ b/configure.ac @@ -878,8 +878,29 @@ if test x_$enable_lock_checks = x_yes; then echo checklock_thrjoin >> clubsyms.def fi -AC_MSG_CHECKING([if make supports $<]) -if test "`uname`" = "SunOS"; then +AC_MSG_CHECKING([if ${MAKE:-make} supports $< with implicit rule in scope]) +# on openBSD, the implicit rule make $< work. +# on Solaris, it does not work (but $? does). +# gmake works. +cat >conftest.make <