Changeset 7739


Ignore:
Timestamp:
Jan 17, 2009, 11:12:35 PM (12 years ago)
Author:
charles
Message:

(trunk) in configure.ac, make debugging support automatic for nightly & beta builds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r7726 r7739  
    2020AC_PROG_LIBTOOL
    2121
    22 if test m4_substr(peer_id_prefix,6,1) = "X"; then
    23   AC_DEFINE(TR_BETA_RELEASE, 1, [Define to 1 if this is a beta release of Transmission])
     22if test m4_substr(peer_id_prefix,6,1) = "0"; then
     23  supported_build=yes
     24  CFLAGS="$CFLAGS -g -O3 -funroll-loops "
     25  CXXFLAGS="$CXXFLAGS -g -O3 -funroll-loops "
     26  AC_DEFINE(TR_STABLE_RELEASE, 1, [Define to 1 if this is a stable release of Transmission])
     27else
    2428  supported_build=no
    25 elif test m4_substr(peer_id_prefix,6,1) = "Z"; then
    26   AC_DEFINE(TR_NIGHTLY_RELEASE, 1, [Define to 1 if this is a nightly release of Transmission])
    27   supported_build=no
    28 else
    29   AC_DEFINE(TR_STABLE_RELEASE, 1, [Define to 1 if this is a stable release of Transmission])
    30   supported_build=yes
     29  CFLAGS="$CFLAGS -g -O0"
     30  CXXFLAGS="$CXXFLAGS -g -O0"
     31  if test m4_substr(peer_id_prefix,6,1) = "X"; then
     32    AC_DEFINE(TR_BETA_RELEASE, 1, [Define to 1 if this is a beta release of Transmission])
     33  else
     34    AC_DEFINE(TR_NIGHTLY_RELEASE, 1, [Define to 1 if this is a nightly release of Transmission])
     35  fi
    3136fi
    3237AM_CONDITIONAL(TR_UNSTABLE, test "x$supported_build" = "xno")
     
    9499    )
    95100])
    96 
    97 
    98 dnl ----------------------------------------------------------------------------
    99 dnl
    100 dnl  debugging support
    101 AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug],[build with debugging support]),,,)
    102 if test "x$enable_debug" = "xyes" ; then
    103         CFLAGS="$CFLAGS -g -O0"
    104         CXXFLAGS="$CXXFLAGS -g -O0"
    105 else
    106         CFLAGS="$CFLAGS -g -O3 -funroll-loops -DNDEBUG "
    107         CXXFLAGS="$CXXFLAGS -g -O3 -funroll-loops -DNDEBUG "
    108 fi
    109 
    110101
    111102dnl ----------------------------------------------------------------------------
     
    336327        Source code location:       ${srcdir}
    337328        Compiler:                   ${CXX}
    338         Debugging support           ${enable_debug}
    339329        Build Command-Line client:  ${build_cli}
    340330        Build Daemon:               ${build_daemon}
Note: See TracChangeset for help on using the changeset viewer.