#2278 configure.ac: remove AC_DEFINEs of TR_*_RELEASE

This commit is contained in:
Mitchell Livingston
2009-07-15 00:42:22 +00:00
parent 8cf9ed2456
commit 075ce46ba7
2 changed files with 3 additions and 9 deletions
-6
View File
@@ -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")
+3 -3
View File
@@ -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