Changeset 160


Ignore:
Timestamp:
Aug 19, 2006, 11:19:06 PM (17 years ago)
Author:
Jari Häkkinen
Message:

Fixes #55. Added --enable-debug option to configure. This will turn on
debug stuff (off by default, developers note this).

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r153 r160  
    2424
    2525version pre0.5:
     26  - Added a --enable-debug option to autoconf. The project is
     27    compiled without debug code by default. Use './configure
     28    --enable-debug' to turn on debug options and code.
    2629  - Improved permission checks on directories.
    2730
  • trunk/INSTALL

    r149 r160  
    1717svndigest is distributed in the hope that it will be useful, but
    1818WITHOUT ANY WARRANTY; without even the implied warranty of
    19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     19MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    2020General Public License for more details.
    2121
     
    3939# make check
    4040
    41 The 'configure' script accepts two options of interest for
    42 svndigest. You can provide 'configure' with APR and subversion API
     41The './configure' script accepts a few options of interest for
     42svndigest. You can provide './configure' with APR and subversion API
    4343location information with --with-apr=DIR and --with-svn=DIR,
    44 respectively.
     44respectively. --enable-debug turns on debug options and code, which
     45may be useful for developers.
    4546
    4647If you grabbed the source from the subversion repository you need to
    47 run 'bootstrap' to setup autoconf files.
     48run './bootstrap' to setup autoconf files.
    4849
    4950
  • trunk/configure.ac

    r157 r160  
    4646# using extension beyond the C++ standard (usage of non C++ standard
    4747# 'long long' types).
    48 CXXFLAGS="-g -O -Wall -pedantic -Wno-long-long"
     48CXXFLAGS="-Wall -pedantic -Wno-long-long"
     49# The have HAVE_INLINE should probably be checked for.
    4950CPPFLAGS="-DHAVE_INLINE=1"
    50 # Use these flags when compiling a production library
    51 #CXXFLAGS="-O3 -Wall -pedantic -Wno-long-long"
    52 #CPPFLAGS="-DNDEBUG -DGSL_RANGE_CHECK_OFF -DHAVE_INLINE=1"
     51
     52AC_ARG_ENABLE(debug,[  --enable-debug          turn on debug options and code])
     53if test "${enable_debug}" = "yes" ; then
     54  CXXFLAGS="$CXXFLAGS -g -O"
     55else
     56  CPPFLAGS="$CPPFLAGS -DNDEBUG"
     57  CXXFLAGS="$CXXFLAGS -O3"
     58fi
    5359
    5460AC_ARG_WITH(apr,
     
    7278AC_OUTPUT
    7379
     80echo ""
     81echo "   Ready to compile the executables of svndiget"
     82echo "   The following compilers and flags will be used:"
     83echo "   +++++++++++++++++++++++++++++++++++++++++++++++"
     84echo "    Preprocessor flags: CPPFLAGS=\"$CPPFLAGS\""
     85echo "    C++ flags:          CXXFLAGS=\"$CXXFLAGS\""
     86echo "    Linker flags:       LDFLAGS=\"$LDFLAGS\""
     87echo "   +++++++++++++++++++++++++++++++++++++++++++++++"
     88echo ""
     89
    7490test "$GNUPLOT" = "ok" || \
    7591     AC_MSG_WARN([Gnuplot was not found. svndigest will compile
     
    7793     install gnuplot (available for a wide range of operating systems
    7894     at http://www.gnuplot.info).])
     95
     96echo ""
     97echo "      Now type 'make ; make check'."
     98echo ""
Note: See TracChangeset for help on using the changeset viewer.