Changeset 779 for branches


Ignore:
Timestamp:
Feb 17, 2009, 1:08:49 PM (12 years ago)
Author:
Peter Johansson
Message:

fixes #383. --disable-debug and --disable-wctests now behave as expected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.6-stable/configure.ac

    r766 r779  
    5454CXXFLAGS="-Wall -pedantic -Wno-long-long"
    5555
    56 AC_ARG_ENABLE(debug,
    57   [AS_HELP_STRING([--enable-debug],[turn on debug options and code])],
    58   [CXXFLAGS="$CXXFLAGS -g -O"],
    59   [CPPFLAGS="$CPPFLAGS -DNDEBUG" CXXFLAGS="$CXXFLAGS -O3"])
    60 
    61 AC_ARG_ENABLE(wctests,
     56AC_ARG_ENABLE([debug],
     57              [AS_HELP_STRING([--enable-debug],
     58                              [turn on debug options and code])])
     59
     60AS_IF([test x$enable_debug = xyes], [CXXFLAGS="$CXXFLAGS -g -O"],
     61      [CPPFLAGS="$CPPFLAGS -DNDEBUG" CXXFLAGS="$CXXFLAGS -O3"])
     62
     63AC_ARG_ENABLE([wctests],
    6264  [AS_HELP_STRING([--enable-wctests],[turn on all tests, tests
    63   requiring a subversion WC are disabled by default])], [wctests=true])
    64 AM_CONDITIONAL(WCTESTS, test x$wctests = xtrue)
     65  requiring a subversion WC are disabled by default])])
     66AM_CONDITIONAL(WCTESTS, test x$enable_wctests = xyes)
    6567
    6668# optionally prepare for building static libraries.
     
    176178AC_MSG_NOTICE([])
    177179
    178 if (test "$wctests") ; then
     180if (test x$enable_wctests = xyes) ; then
    179181    AC_MSG_NOTICE([WC dependent tests are enabled])
    180182else
Note: See TracChangeset for help on using the changeset viewer.