Support building from directories other than the source directory.
Patch contributed by Mo DeJong -- thanks! This closes SF patch #431340.
This commit is contained in:
parent
517663ce07
commit
84ec06ca9c
@ -94,13 +94,13 @@ dnl in "embedded distributions", where only part of the Expat sources
|
|||||||
dnl are included in the sources for another project.
|
dnl are included in the sources for another project.
|
||||||
|
|
||||||
OUTPUT="Makefile lib/Makefile lib/expat.h"
|
OUTPUT="Makefile lib/Makefile lib/expat.h"
|
||||||
if test -d xmlwf; then
|
if test -d ${srcdir}/xmlwf; then
|
||||||
OUTPUT="$OUTPUT xmlwf/Makefile"
|
OUTPUT="$OUTPUT xmlwf/Makefile"
|
||||||
fi
|
fi
|
||||||
if test -d sample; then
|
if test -d ${srcdir}/sample; then
|
||||||
OUTPUT="$OUTPUT sample/Makefile"
|
OUTPUT="$OUTPUT sample/Makefile"
|
||||||
fi
|
fi
|
||||||
if test -d examples; then
|
if test -d ${srcdir}/examples; then
|
||||||
OUTPUT="$OUTPUT examples/Makefile"
|
OUTPUT="$OUTPUT examples/Makefile"
|
||||||
fi
|
fi
|
||||||
AC_OUTPUT($OUTPUT)
|
AC_OUTPUT($OUTPUT)
|
||||||
|
@ -77,7 +77,7 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/conftools/mkinstalldirs
|
|||||||
CONFIG_HEADER = ../config.h
|
CONFIG_HEADER = ../config.h
|
||||||
CONFIG_CLEAN_FILES =
|
CONFIG_CLEAN_FILES =
|
||||||
|
|
||||||
INCLUDES = -I$(srcdir) -I..
|
INCLUDES = -I$(srcdir) -I. -I..
|
||||||
DEFS = @DEFS@ -DPACKAGE='"$(PACKAGE)"' -DVERSION='"$(PACKAGE)_$(VERSION)"'
|
DEFS = @DEFS@ -DPACKAGE='"$(PACKAGE)"' -DVERSION='"$(PACKAGE)_$(VERSION)"'
|
||||||
|
|
||||||
CPPFLAGS = @CPPFLAGS@
|
CPPFLAGS = @CPPFLAGS@
|
||||||
|
Loading…
Reference in New Issue
Block a user