Changeset 5215c01
- Timestamp:
- Aug 9, 2005, 4:21:02 AM (19 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- ccfafb2
- Parents:
- cad8783
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
rcad8783 r5215c01 1 dnl Process this file with autoconf to p orduce a configure script1 dnl Process this file with autoconf to produce a configure script 2 2 3 3 AC_INIT(src/aubio.h) … … 9 9 10 10 AM_INIT_AUTOMAKE(${PACKAGE}, ${VERSION}) 11 AM_MAINTAINER_MODE 11 12 12 13 AC_PREFIX_DEFAULT(/usr) … … 81 82 AC_CHECK_HEADERS(complex.h,,AC_MSG_ERROR([Ouch! missing complex.h header])) 82 83 AC_CHECK_HEADERS(fftw3.h ,,AC_MSG_ERROR([Ouch! missing fftw3.h headeri])) 84 85 AC_CACHE_CHECK(for C99 __VA_ARGS__ macro, 86 ac_cv_varargs_macros, 87 AC_TRY_COMPILE([ 88 #include <stdio.h> 89 #define AUBIO_ERR(...) fprintf(stderr, __VA_ARGS__) 90 ], 91 [ 92 AUBIO_ERR("%s\n", "ERR"); 93 ], 94 ac_cv_varargs_macros=yes, 95 ac_cv_varargs_macros=no) 96 ) 97 if test "$ac_cv_varargs_macros" = "yes"; then 98 AC_DEFINE(HAVE_C99_VARARGS_MACROS, 1, 99 [Defined when c99 style varargs macros are supported]) 100 fi 101 83 102 84 103 dnl check for pkg-config … … 154 173 fi 155 174 175 AC_ARG_ENABLE(testprogs, 176 AC_HELP_STRING([--enable-testprogs],[compile test programs [[default=no]]]), 177 [with_testprogs=$enableval], 178 with_testprogs="no") 179 AM_CONDITIONAL(COMPILE_TESTS,test "${with_testprogs}" != "no") 180 156 181 dnl Check for optional programs 157 182 … … 179 204 AM_CONDITIONAL(DOCBOOKFOUND, test "${DOCBOOK_TO_MAN}" != "no") 180 205 181 AC_CHECK_HEADER(m_pd.h,PUREDATA=y,AC_MSG_WARN([ Ouch! puredata header not found]))206 AC_CHECK_HEADER(m_pd.h,PUREDATA=y,AC_MSG_WARN([Puredata header not found.])) 182 207 AM_CONDITIONAL(PUREDATAFOUND, test "${PUREDATA}" = "y") 183 208 … … 187 212 ext/Makefile 188 213 examples/Makefile 214 examples/tests/Makefile 189 215 sounds/Makefile 190 216 swig/Makefile 191 217 python/Makefile 192 218 python/aubio/Makefile -
src/aubio_priv.h
rcad8783 r5215c01 117 117 } aubio_status; 118 118 119 #define AUBIO_ERR(...) fprintf(stderr,__VA_ARGS__) 120 #define AUBIO_MSG(...) fprintf(stdout,__VA_ARGS__) 121 #define AUBIO_DBG(...) fprintf(stderr,__VA_ARGS__) 122 #define AUBIO_QUIT(_s) exit(_s) 123 #define AUBIO_SPRINTF sprintf 119 #ifdef HAVE_C99_VARARGS_MACROS 120 #define AUBIO_ERR(...) fprintf(stderr,__VA_ARGS__) 121 #define AUBIO_MSG(...) fprintf(stdout,__VA_ARGS__) 122 #define AUBIO_DBG(...) fprintf(stderr,__VA_ARGS__) 123 #else 124 #define AUBIO_ERR(format, args...) fprintf(stderr, format , ##args) 125 #define AUBIO_MSG(format, args...) fprintf(stdout, format , ##args) 126 #define AUBIO_DBG(format, args...) fprintf(stderr, format , ##args) 127 #endif 128 129 #define AUBIO_QUIT(_s) exit(_s) 130 #define AUBIO_SPRINTF sprintf 124 131 125 132 #endif/*_AUBIO_PRIV_H*/ -
src/config.h.in
rcad8783 r5215c01 12 12 /* Define to enable fftw3 support */ 13 13 #undef FFTW3_SUPPORT 14 15 /* Defined when c99 style varargs macros are supported */ 16 #undef HAVE_C99_VARARGS_MACROS 14 17 15 18 /* Define to 1 if you have the <complex.h> header file. */
Note: See TracChangeset
for help on using the changeset viewer.