--- qsampler/trunk/configure.ac 2010/03/12 16:02:32 2064 +++ qsampler/trunk/configure.ac 2010/03/13 12:44:15 2065 @@ -1,5 +1,5 @@ # Process this file with autoconf to produce a configure script. -AC_INIT(Qsampler, 0.2.2.11, rncbc@rncbc.org, qsampler) +AC_INIT(Qsampler, 0.2.2.13, rncbc@rncbc.org, qsampler) AC_CONFIG_SRCDIR(src/qsamplerMainForm.ui) AC_CONFIG_HEADERS(config.h) @@ -21,8 +21,10 @@ if test "x$ac_debug" = "xyes"; then AC_DEFINE(CONFIG_DEBUG, 1, [Define if debugging is enabled.]) + ac_stacktrace="yes" ac_debug="debug" else + ac_stacktrace="no" ac_debug="release" fi AC_SUBST(ac_debug) @@ -33,6 +35,12 @@ [ac_libgig="$enableval"], [ac_libgig="yes"]) +# Enable debugger stack-trace option (assumes --enable-debug). +AC_ARG_ENABLE(stacktrace, + AC_HELP_STRING([--enable-stacktrace], [enable debugger stack-trace (default=no)]), + [ac_stacktrace="$enableval"]) + + # Standard installation base dirs. ac_with_paths="/usr /usr/local" @@ -321,6 +329,11 @@ AC_DEFINE(CONFIG_ROUND, 1, [Define if round is available.]) fi +# Check for debugging stack-trace. +if test "x$ac_stacktrace" = "xyes"; then + AC_DEFINE(CONFIG_STACKTRACE, 1, [Define if debugger stack-trace is enabled.]) +fi + AC_SUBST(ac_libs) AC_SUBST(ac_incpath) @@ -369,6 +382,8 @@ echo " LSCP device MIDI event support . . . . . . . . . .: $ac_device_midi_event" echo " LSCP runtime max. voices / disk streams support .: $ac_max_voices" echo +echo " Debugger stack-trace (gdb) . . . . . . . . . . . .: $ac_stacktrace" +echo echo " Install prefix . . . . . . . . . . . . . . . . . .: $ac_prefix" echo echo "Now type 'make', followed by 'make install' as root."