diff options
author | Tony Theodore <tonyt@logyst.com> | 2015-09-13 13:08:31 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2015-09-13 13:08:31 (GMT) |
commit | 989f09ca99a56cdb68f5f4b2dc65e9390b29289f (patch) | |
tree | 0ef34f5f694110d6d96e0e7c339e45a38a7afc8b /src/mxe-conf.mk | |
parent | 9829f6cccb157e6f31f23b32e326a2b5c6e0f743 (diff) | |
download | mxe-989f09ca99a56cdb68f5f4b2dc65e9390b29289f.zip mxe-989f09ca99a56cdb68f5f4b2dc65e9390b29289f.tar.gz mxe-989f09ca99a56cdb68f5f4b2dc65e9390b29289f.tar.bz2 |
mxe-conf: basic sanity checking of autotools
in the spirit of ./configure, detect capabilities instead of versions
Diffstat (limited to 'src/mxe-conf.mk')
-rw-r--r-- | src/mxe-conf.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mxe-conf.mk b/src/mxe-conf.mk index f1af447..3e10a16 100644 --- a/src/mxe-conf.mk +++ b/src/mxe-conf.mk @@ -69,6 +69,18 @@ define $(PKG)_BUILD echo 'Description: OpenGL'; \ echo 'Libs: -lglu32';) \ > '$(PREFIX)/$(TARGET)/lib/pkgconfig/glu.pc' + + # fail early if autotools can't autoreconf + # 1. detect mismatches in installation locations + # 2. ??? + (echo 'AC_INIT([mxe.cc], [1])'; \ + $(foreach PROG, autoconf automake libtool, \ + echo 'AC_PATH_PROG([$(call uc,$(PROG))], [$(PROG)])';) \ + echo 'PKG_PROG_PKG_CONFIG(0.16)'; \ + echo 'AC_OUTPUT') \ + > '$(1)/configure.ac' + cd '$(1)' && autoreconf -fiv + cd '$(1)' && ./configure endef $(PKG)_BUILD_$(BUILD) = $($(PKG)_BUILD_COMMON) |