From: Sebastian Harl Date: Fri, 27 Feb 2015 16:49:14 +0000 (+0100) Subject: configure: Make sure that PACKAGE_URL is defined. X-Git-Tag: sysdb-0.8.0~162^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bf736ee1b59b5bb0cfed79f0711394d8674d37d5;p=sysdb.git configure: Make sure that PACKAGE_URL is defined. autoconf < 2.64 don't support PACKAGE_URL. Thanks to @faxm0dem for reporting the resulting build error on RHEL6 in #1 --- diff --git a/configure.ac b/configure.ac index 31ec8de..f54868c 100644 --- a/configure.ac +++ b/configure.ac @@ -33,6 +33,12 @@ AC_INIT([System DataBase],[m4_esyscmd(./version-gen.sh)], PACKAGE_MAINTAINER="Sebastian 'tokkee' Harl " AC_DEFINE_UNQUOTED([PACKAGE_MAINTAINER], ["$PACKAGE_MAINTAINER"], [Define to the name of the maintainer of this package.]) +if test "x$PACKAGE_URL" = "x"; then + PACKAGE_URL="https://sysdb.io/" + AC_DEFINE_UNQUOTED([PACKAGE_URL], ["$PACKAGE_URL"], + [Define to the home page for this package.]) +fi + AC_CONFIG_SRCDIR([src/sysdb.c]) AC_CONFIG_HEADERS([src/config.h]) AC_PREFIX_DEFAULT([/opt/sysdb])