comparison configure.ac @ 810:0c2f8ee6be42

Make debug output compile-time configurable via --enable-debug. Disabled by default.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 07 Nov 2012 12:52:46 +0200
parents 9372ea9efcf1
children 81b3fe49ad54
comparison
equal deleted inserted replaced
809:8f155eca3612 810:0c2f8ee6be42
17 17
18 dnl *** 18 dnl ***
19 dnl *** Define some templates 19 dnl *** Define some templates
20 dnl *** 20 dnl ***
21 AH_TEMPLATE([HAVE_SONG_POSITION], [Define if you have XMMS patched with the songpos patch.]) 21 AH_TEMPLATE([HAVE_SONG_POSITION], [Define if you have XMMS patched with the songpos patch.])
22 AH_TEMPLATE([HAVE_SIDPLAY1], [Define if you have and want to use libSIDPlay 1]) 22 AH_TEMPLATE([HAVE_SIDPLAY1], [Define if you have and want to use libSIDPlay 1.])
23 AH_TEMPLATE([HAVE_SIDPLAY2], [Define if you have and want to use libSIDPlay 2]) 23 AH_TEMPLATE([HAVE_SIDPLAY2], [Define if you have and want to use libSIDPlay 2.])
24 AH_TEMPLATE([HAVE_SIDPLAY2_FP], [Define if you have and want to use libSIDPlay 2-FP http://sourceforge.net/projects/sidplay-residfp/]) 24 AH_TEMPLATE([HAVE_SIDPLAY2_FP], [Define if you have and want to use libSIDPlay 2-FP http://sourceforge.net/projects/sidplay-residfp/])
25 AH_TEMPLATE([HAVE_THEMETUNE], [Define if you want to build code to play XMMS-SID theme SID-tune. The tune needs to be installed too, though.]) 25 AH_TEMPLATE([HAVE_THEMETUNE], [Define if you want to build code to play XMMS-SID theme SID-tune. The tune needs to be installed too, though.])
26 AH_TEMPLATE([DEBUG], [Define if you wish to enable debug output to terminal.])
26 27
27 28
28 dnl *** 29 dnl ***
29 dnl *** Some general checks 30 dnl *** Some general checks
30 dnl *** 31 dnl ***
61 62
62 AC_TYPE_SIZE_T 63 AC_TYPE_SIZE_T
63 AC_C_CONST 64 AC_C_CONST
64 AC_C_INLINE 65 AC_C_INLINE
65 AC_CHECK_FUNCS([memset],[],[[*** memset function not found. Your libc has failed you.]]) 66 AC_CHECK_FUNCS([memset],[],[[*** memset function not found. Your libc has failed you.]])
67
68
69 dnl ***
70 dnl *** Enable debugging
71 dnl ***
72 AC_ARG_ENABLE([debug],
73 [AS_HELP_STRING([--enable-debug], [Enable debug output to terminal/console.])],
74 [
75 if test "x$enableval" = "xyes"; then
76 xs_enable_debug=yes
77 else
78 xs_enable_debug=no
79 fi
80 ], [xs_enable_debug=no])
81 if test "x$xs_enable_debug" = "xyes"; then
82 AC_DEFINE([DEBUG])
83 fi
66 84
67 85
68 dnl *** 86 dnl ***
69 dnl *** Enable or disable themetune support/installation 87 dnl *** Enable or disable themetune support/installation
70 dnl *** 88 dnl ***
190 libSIDPlay 1 support : $xs_have_sidplay1 208 libSIDPlay 1 support : $xs_have_sidplay1
191 libSIDPlay 2 support : $xs_have_sidplay2_lib $xs_have_sidplay2_api 209 libSIDPlay 2 support : $xs_have_sidplay2_lib $xs_have_sidplay2_api
192 Included builders : $xs_builders 210 Included builders : $xs_builders
193 XMMS-SID theme SID-tune : $xs_have_themetune 211 XMMS-SID theme SID-tune : $xs_have_themetune
194 Translations (i18n/nls) : $USE_NLS 212 Translations (i18n/nls) : $USE_NLS
195 ]) 213 Debugging enabled : $xs_enable_debug
214 ])