summaryrefslogtreecommitdiff
path: root/buildlib/configure.mak
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2012-06-29 15:34:12 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2012-06-29 15:34:12 +0200
commit7ac4503f3e0ccf0fbad592179331c0f1bba427a5 (patch)
tree67930f70476dfc80d85e228d1f8efa3dc276947a /buildlib/configure.mak
parent7cb48e888df3f4a7156d39515e6573aed66acd39 (diff)
parent545ba6bdd8cb77ceca6b9fdc935db2accbea3493 (diff)
merged from the debian-sid branch
Diffstat (limited to 'buildlib/configure.mak')
-rw-r--r--buildlib/configure.mak29
1 files changed, 28 insertions, 1 deletions
diff --git a/buildlib/configure.mak b/buildlib/configure.mak
index c0d8e3c76..68d0535b4 100644
--- a/buildlib/configure.mak
+++ b/buildlib/configure.mak
@@ -12,15 +12,42 @@
# It would be a fairly good idea to run this after a cvs checkout.
BUILDDIR=build
-.PHONY: startup
+.PHONY: startup missing-config-files
startup: configure $(BUILDDIR)/config.status $(addprefix $(BUILDDIR)/,$(CONVERTED))
# use the files provided from the system instead of carry around
# and use (most of the time outdated) copycats
+ifeq (file-okay,$(shell test -r buildlib/config.sub && echo 'file-okay'))
+buildlib/config.sub:
+else
+ ifeq (file-okay,$(shell test -r /usr/share/misc/config.sub && echo 'file-okay'))
buildlib/config.sub:
ln -sf /usr/share/misc/config.sub buildlib/config.sub
+ else
+buildlib/config.sub: missing-config-files
+ endif
+endif
+
+ifeq (file-okay,$(shell test -r buildlib/config.guess && echo 'file-okay'))
+buildlib/config.guess:
+else
+ ifeq (file-okay,$(shell test -r /usr/share/misc/config.guess && echo 'file-okay'))
buildlib/config.guess:
ln -sf /usr/share/misc/config.guess buildlib/config.guess
+ else
+buildlib/config.guess: missing-config-files
+ endif
+endif
+
+missing-config-files:
+ @echo "APT needs 'config.guess' and 'config.sub' in buildlib/ for configuration."
+ @echo "On Debian systems these are available in the 'autotools-dev' package."
+ @echo
+ @echo "The latest versions can be acquired from the upstream git repository:"
+ @echo "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD"
+ @echo "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD"
+ exit 100
+
configure: aclocal.m4 configure.in buildlib/config.guess buildlib/config.sub
autoconf