From: msweet Date: Tue, 14 Jul 2015 18:07:49 +0000 (+0000) Subject: Updated autoconf sources to use newer form of AC_INIT (STR #4664) X-Git-Tag: v2.2b1~235 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fe0e36094869da2904a9567d1ab74ad09a5195d;p=thirdparty%2Fcups.git Updated autoconf sources to use newer form of AC_INIT (STR #4664) git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12785 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/CHANGES.txt b/CHANGES.txt index 117126d7ce..e05faab3a9 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -7,6 +7,7 @@ CHANGES IN CUPS V2.1rc1 based on PWG white paper. - Fixed bugs in the new journald support (STR #4655, STR #4658) - Configure script changes for systemd support (STR #4669) + - Updated autoconf sources to use newer form of AC_INIT (STR #4664) CHANGES IN CUPS V2.1b1 diff --git a/config-scripts/cups-common.m4 b/config-scripts/cups-common.m4 index e03d03ade1..bac0957eb9 100644 --- a/config-scripts/cups-common.m4 +++ b/config-scripts/cups-common.m4 @@ -13,18 +13,26 @@ dnl which should have been included with this file. If this file is dnl file is missing or damaged, see the license at "http://www.cups.org/". dnl -dnl We need at least autoconf 2.60... -AC_PREREQ(2.60) - dnl Set the name of the config header file... AC_CONFIG_HEADER(config.h) dnl Version number information... -CUPS_VERSION="2.1rc1" -CUPS_REVISION="" -#if test -z "$CUPS_REVISION" -a -d .svn; then -# CUPS_REVISION="-r`svnversion . | awk -F: '{print $NF}' | sed -e '1,$s/[[a-zA-Z]]*//g'`" -#fi +CUPS_VERSION="AC_PACKAGE_VERSION" + +case "$CUPS_VERSION" in + *svn) + if test -z "$CUPS_REVISION" -a -d .svn; then + CUPS_REVISION="-r`svnversion . | awk -F: '{print $NF}' | sed -e '1,$s/[[a-zA-Z]]*//g'`" + else + CUPS_REVISION="" + fi + ;; + + *) + CUPS_REVISION="" + ;; +esac + CUPS_BUILD="cups-$CUPS_VERSION" AC_ARG_WITH(cups_build, [ --with-cups-build set "cups-config --build" string ], @@ -33,8 +41,8 @@ AC_ARG_WITH(cups_build, [ --with-cups-build set "cups-config --build" str AC_SUBST(CUPS_VERSION) AC_SUBST(CUPS_REVISION) AC_SUBST(CUPS_BUILD) -AC_DEFINE_UNQUOTED(CUPS_SVERSION, "CUPS v$CUPS_VERSION$CUPS_REVISION") -AC_DEFINE_UNQUOTED(CUPS_MINIMAL, "CUPS/$CUPS_VERSION$CUPS_REVISION") +AC_DEFINE_UNQUOTED(CUPS_SVERSION, "AC_PACKAGE_NAME v$CUPS_VERSION$CUPS_REVISION") +AC_DEFINE_UNQUOTED(CUPS_MINIMAL, "AC_PACKAGE_NAME/$CUPS_VERSION$CUPS_REVISION") dnl Default compiler flags... CFLAGS="${CFLAGS:=}" diff --git a/configure.ac b/configure.ac index 3bc86bf105..f52e08aad2 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ dnl "$Id$" dnl dnl Configuration script for CUPS. dnl -dnl Copyright 2007-2014 by Apple Inc. +dnl Copyright 2007-2015 by Apple Inc. dnl Copyright 1997-2007 by Easy Software Products, all rights reserved. dnl dnl These coded instructions, statements, and computer programs are the @@ -13,7 +13,11 @@ dnl which should have been included with this file. If this file is dnl file is missing or damaged, see the license at "http://www.cups.org/". dnl -AC_INIT(cups/cups.h) +dnl We need at least autoconf 2.60... +AC_PREREQ(2.60) + +dnl Package name and version... +AC_INIT([CUPS], [2.1rc1]) sinclude(config-scripts/cups-opsys.m4) sinclude(config-scripts/cups-common.m4)