mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
#2278 configure.ac: remove AC_DEFINEs of TR_*_RELEASE
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user