Make sure dist is only run --with-internal-glib

Since there's no DIST_CONFIGURE_FLAGS, the best we can do to not require
glib's configure to always be run is to error on dist when we haven't
configured --with-internal-glib. This is a hack, but I think it's
slightly nicer than overriding dist and re-running configure with
different options than were specified by the user.
This commit is contained in:
Dan Nicholson 2012-05-10 08:40:11 -07:00
parent 64647b10a9
commit c34906923f

View file

@ -51,4 +51,13 @@ pkg_config_SOURCES= \
parse.h \
parse.c \
main.c
# Since we can't always have glib in DIST_SUBDIRS, we need to make sure
# glib is configured when we want to run dist. Unfortunately, there's no
# DIST_CONFIGURE_FLAGS.
DISTCHECK_CONFIGURE_FLAGS = --with-installed-popt --with-internal-glib
if !INTERNAL_GLIB
dist-hook:
@echo "error: --with-internal-glib is required to include glib in dist"
@exit 1
endif