From 075ce46ba70141f8cd0dd0ba76b3cfe34b511e63 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 15 Jul 2009 00:42:22 +0000 Subject: [PATCH] #2278 configure.ac: remove AC_DEFINEs of TR_*_RELEASE --- configure.ac | 6 ------ update-version-h.sh | 6 +++--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index 06465da8a..05fb637d0 100644 --- a/configure.ac +++ b/configure.ac @@ -25,18 +25,12 @@ if test m4_substr(peer_id_prefix,6,1) = "0"; then CFLAGS="$CFLAGS -g -O3 " CXXFLAGS="$CXXFLAGS -g -O3 " fi - AC_DEFINE(TR_STABLE_RELEASE, 1, [Define to 1 if this is a stable release of Transmission]) else supported_build=no if test "x$GCC" = "xyes" ; then CFLAGS="$CFLAGS -g -O0" CXXFLAGS="$CXXFLAGS -g -O0" fi - if test m4_substr(peer_id_prefix,6,1) = "X"; then - AC_DEFINE(TR_BETA_RELEASE, 1, [Define to 1 if this is a beta release of Transmission]) - else - AC_DEFINE(TR_NIGHTLY_RELEASE, 1, [Define to 1 if this is a nightly release of Transmission]) - fi fi AM_CONDITIONAL(TR_UNSTABLE, test "x$supported_build" = "xno") diff --git a/update-version-h.sh b/update-version-h.sh index 4ca7447af..7d4b45114 100755 --- a/update-version-h.sh +++ b/update-version-h.sh @@ -38,9 +38,9 @@ EOF # Add a release definition case "${peer_id_prefix}" in - *X-) echo '#define TR_BETA_RELEASE "BETA"' ;; - *Z-) echo '#define TR_NIGHTLY_RELEASE "NIGHTLY"' ;; - *) echo '#define TR_STABLE_RELEASE "STABLE"' ;; + *X-) echo '#define TR_BETA_RELEASE 1' ;; + *Z-) echo '#define TR_NIGHTLY_RELEASE 1' ;; + *) echo '#define TR_STABLE_RELEASE 1' ;; esac >> "libtransmission/version.h.new" replace_if_differs libtransmission/version.h.new libtransmission/version.h -- 2.40.0