running configure depends on src/freeradius-devel
authorAlan T. DeKok <aland@freeradius.org>
Wed, 20 Mar 2013 15:24:56 +0000 (11:24 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 20 Mar 2013 15:24:56 +0000 (11:24 -0400)
Because IMACROS uses it, and IMACROS goes into CFLAGS,
and CFLAGS is used when running configure checks

Makefile
src/all.mk

index 10521e9..b26327b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -141,7 +141,7 @@ AUTOCONF_EXISTS := $(shell autoconf --version 2>/dev/null)
 ifneq "$(AUTOCONF_EXISTS)" ""
 # Configure files depend on "in" files, and on the top-level macro files
 # If there are headers, run auto-header, too.
-src/%configure: src/%configure.in acinclude.m4 aclocal.m4
+src/%configure: src/%configure.in acinclude.m4 aclocal.m4 | src/freeradius-devel
        @echo AUTOCONF $(dir $@)
        @cd $(dir $@) && $(AUTOCONF) -I $(top_builddir) -I $(top_builddir)/m4 -I ./m4
        @if grep AC_CONFIG_HEADERS $@ >/dev/null; then\
index a4c5be5..fc418c2 100644 (file)
@@ -7,7 +7,7 @@ ${BUILD_DIR}/make/include/freeradius-devel:
 
 .PHONY: src/freeradius-devel
 src/freeradius-devel:
-       @[ -e $@ ] || ln -s include $@
+       @[ -e $@ ] || echo LN-S $@ && ln -s include $@
 
 src/%c src/%h src/%mk: | src/freeradius-devel/ \
                        ${BUILD_DIR}/make/include/freeradius-devel