mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
(trunk) in configure.ac, make debugging support automatic for nightly & beta builds
This commit is contained in:
parent
4f95edf647
commit
04d392535b
1 changed files with 13 additions and 23 deletions
36
configure.ac
36
configure.ac
|
@ -19,15 +19,20 @@ AC_CONFIG_SRCDIR(libtransmission/transmission.h)
|
|||
AM_INIT_AUTOMAKE([1.9 tar-ustar])
|
||||
AC_PROG_LIBTOOL
|
||||
|
||||
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])
|
||||
supported_build=no
|
||||
elif test m4_substr(peer_id_prefix,6,1) = "Z"; then
|
||||
AC_DEFINE(TR_NIGHTLY_RELEASE, 1, [Define to 1 if this is a nightly release of Transmission])
|
||||
supported_build=no
|
||||
else
|
||||
AC_DEFINE(TR_STABLE_RELEASE, 1, [Define to 1 if this is a stable release of Transmission])
|
||||
if test m4_substr(peer_id_prefix,6,1) = "0"; then
|
||||
supported_build=yes
|
||||
CFLAGS="$CFLAGS -g -O3 -funroll-loops "
|
||||
CXXFLAGS="$CXXFLAGS -g -O3 -funroll-loops "
|
||||
AC_DEFINE(TR_STABLE_RELEASE, 1, [Define to 1 if this is a stable release of Transmission])
|
||||
else
|
||||
supported_build=no
|
||||
CFLAGS="$CFLAGS -g -O0"
|
||||
CXXFLAGS="$CXXFLAGS -g -O0"
|
||||
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")
|
||||
|
||||
|
@ -94,20 +99,6 @@ AC_TRY_LINK([#include <stdarg.h>], [va_list ap1, ap2; va_copy(ap1, ap2);],
|
|||
)
|
||||
])
|
||||
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl
|
||||
dnl debugging support
|
||||
AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug],[build with debugging support]),,,)
|
||||
if test "x$enable_debug" = "xyes" ; then
|
||||
CFLAGS="$CFLAGS -g -O0"
|
||||
CXXFLAGS="$CXXFLAGS -g -O0"
|
||||
else
|
||||
CFLAGS="$CFLAGS -g -O3 -funroll-loops -DNDEBUG "
|
||||
CXXFLAGS="$CXXFLAGS -g -O3 -funroll-loops -DNDEBUG "
|
||||
fi
|
||||
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl
|
||||
dnl libevent fun
|
||||
|
@ -335,7 +326,6 @@ Configuration:
|
|||
|
||||
Source code location: ${srcdir}
|
||||
Compiler: ${CXX}
|
||||
Debugging support ${enable_debug}
|
||||
Build Command-Line client: ${build_cli}
|
||||
Build Daemon: ${build_daemon}
|
||||
Build GTK+ client: ${build_gtk}
|
||||
|
|
Loading…
Reference in a new issue