Changeset 16109b3
- Timestamp:
- Jun 3, 2006, 10:34:42 PM (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:
- cf34922
- Parents:
- 6ff2870
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r6ff2870 r16109b3 1 1 dnl Process this file with autoconf to produce a configure script 2 2 3 dnl Init autoconf 3 4 AC_INIT(src/aubio.h) 4 5 5 dnl package version 6 dnl Package name and version 7 PACKAGE=aubio 6 8 . $srcdir/VERSION 7 9 AUBIO_VERSION=${AUBIO_MAJOR_VERSION}.${AUBIO_MINOR_VERSION}.${AUBIO_PATCH_VERSION}${AUBIO_VERSION_STATUS} 8 10 VERSION=${AUBIO_VERSION} 9 PACKAGE=aubio 10 11 dnl shared library version 11 12 dnl Shared library version 12 13 LIBAUBIO_LT_CURRENT=2 13 14 LIBAUBIO_LT_REVISION=0 … … 16 17 AC_SUBST(SHARED_VERSION_INFO) 17 18 19 dnl Init automake 18 20 AM_INIT_AUTOMAKE(${PACKAGE}, ${VERSION}) 21 22 dnl Maintainer mode 19 23 AM_MAINTAINER_MODE 20 24 21 AC_PREFIX_DEFAULT(/usr) 22 23 dnl enable optimization 25 dnl Guess the host 26 AC_CANONICAL_HOST 27 28 dnl Default optimization 24 29 CFLAGS="$CFLAGS -O2" 25 30 26 dnl Check for debug31 dnl Enable debugging (no) 27 32 AC_ARG_ENABLE(debug, 28 33 [ --enable-debug[[=value]] compile with debug [[default=no]]], … … 35 40 fi 36 41 37 dnl 42 dnl Enable full warnings (yes) 38 43 AC_ARG_ENABLE(warnme, 39 44 [ --enable-warnme[[=value]] compile with all -W [[default=yes]]], … … 44 49 CFLAGS="$CFLAGS -Wall -Wextra -Werror -Wmissing-prototypes -Wmissing-declarations -Wno-unused-parameter" 45 50 fi 46 47 48 dnl Guess the host49 AC_CANONICAL_HOST50 51 51 52 dnl Check for programs … … 90 91 AC_CHECK_HEADERS(fftw3.h ,,AC_MSG_ERROR([Ouch! missing fftw3.h header])) 91 92 93 dnl Check for __VAR_ARGS__ support 92 94 AC_CACHE_CHECK(for C99 __VA_ARGS__ macro, 93 95 ac_cv_varargs_macros, … … 107 109 fi 108 110 109 110 dnl check for pkg-config 111 dnl Check for pkg-config 111 112 AC_PATH_PROG(PKG_CONFIG,pkg-config,no) 112 113 113 PKG_CHECK_MODULES(SNDLIB, sndfile >= 1.0.4, 114 PKG_CHECK_MODULES(SNDLIB, sndfile >= 1.0.4, SNDLIB_SUPPORT=1) 114 115 PKG_CHECK_MODULES(SAMPLERATE, samplerate >= 0.0.15, SAMPLERATE_SUPPORT=1) 115 116 … … 118 119 fi 119 120 120 121 dnl Check for optional libraries 121 dnl Check for fftw3 (required) 122 122 AC_ARG_ENABLE(fftw3f, 123 123 AC_HELP_STRING([--enable-fftw3f],[compile with fftw3f [[default=auto]]]), … … 125 125 with_fftw3f="yes") 126 126 if test "$with_fftw3f" = "yes"; then 127 PKG_CHECK_MODULES(FFTWLIB, fftw3f>= 3.0.0, FFTW3F_SUPPORT=1, FFTW3F_SUPPORT=0)128 else 129 PKG_CHECK_MODULES(FFTWLIB, fftw3 >= 3.0.0,FFTW3_SUPPORT=1)127 PKG_CHECK_MODULES(FFTWLIB, fftw3f >= 3.0.0, FFTW3F_SUPPORT=1, FFTW3F_SUPPORT=0) 128 else 129 PKG_CHECK_MODULES(FFTWLIB, fftw3 >= 3.0.0, FFTW3_SUPPORT=1) 130 130 fi 131 131 if test "${FFTW3F_SUPPORT}" = "0"; then 132 PKG_CHECK_MODULES(FFTWLIB, fftw3 >= 3.0.0,FFTW3_SUPPORT=1)132 PKG_CHECK_MODULES(FFTWLIB, fftw3 >= 3.0.0, FFTW3_SUPPORT=1) 133 133 fi 134 134 if test "${FFTW3_SUPPORT}" = "1"; then … … 139 139 fi 140 140 141 dnl Enable jack support (auto) 141 142 AC_ARG_ENABLE(jack, 142 143 AC_HELP_STRING([--enable-jack],[compile with jack [[default=auto]]]), … … 145 146 if test "$with_jack" = "yes" 146 147 then 147 PKG_CHECK_MODULES(JACK, jack >= 0.15.0, JACK_SUPPORT=1, JACK_SUPPORT=0) 148 if test "${JACK_SUPPORT}" = "1"; then 149 AC_DEFINE(JACK_SUPPORT,1,[Define to enable jack support]) 150 fi 151 fi 152 148 PKG_CHECK_MODULES(JACK, jack >= 0.15.0, JACK_SUPPORT=1, JACK_SUPPORT=0) 149 if test "${JACK_SUPPORT}" = "1"; then 150 AC_DEFINE(JACK_SUPPORT,1,[Define to enable jack support]) 151 fi 152 fi 153 154 dnl Enable alsa support (auto) 153 155 AC_ARG_ENABLE(alsa, 154 156 AC_HELP_STRING([--enable-alsa],[compile with alsa [[default=auto]]]), … … 157 159 if test "$with_alsa" = "yes" 158 160 then 159 if test "$with_jack" = "yes" 160 then 161 PKG_CHECK_MODULES(ALSA, alsa >= 0.0.9, ALSA_SUPPORT=1, ALSA_SUPPORT=0) 162 if test "${ALSA_SUPPORT}" = "1"; then 163 AC_DEFINE(ALSA_SUPPORT,1,[Define to enable alsa support]) 164 fi 165 else 166 AC_MSG_WARN([Disabling alsa as jack was not found]) 167 fi 168 fi 169 161 if test "$with_jack" = "yes" 162 then 163 PKG_CHECK_MODULES(ALSA, alsa >= 0.0.9, ALSA_SUPPORT=1, ALSA_SUPPORT=0) 164 if test "${ALSA_SUPPORT}" = "1"; then 165 AC_DEFINE(ALSA_SUPPORT,1,[Define to enable alsa support]) 166 fi 167 else 168 AC_MSG_WARN([Disabling alsa as jack was not found]) 169 fi 170 fi 171 172 dnl Enable ladcca support (obsolete) 170 173 AC_ARG_ENABLE(ladcca, 171 174 AC_HELP_STRING([--enable-ladcca],[compile with ladcca [[default=no]]]), … … 174 177 if test "$with_ladcca" = "yes" 175 178 then 176 PKG_CHECK_MODULES(LADCCA, ladcca-1.0 >= 0.4.0,LADCCA_SUPPORT=1)177 178 179 179 PKG_CHECK_MODULES(LADCCA, ladcca-1.0 >= 0.4.0, LADCCA_SUPPORT=1) 180 if test "${LADCCA_SUPPORT}" = "1"; then 181 AC_DEFINE(LADCCA_SUPPORT,1,[Define to enable ladcca support]) 182 fi 180 183 fi 181 184 185 dnl Enable unit tests 182 186 AC_ARG_ENABLE(testprogs, 183 187 AC_HELP_STRING([--enable-testprogs],[compile test programs [[default=no]]]), … … 186 190 AM_CONDITIONAL(COMPILE_TESTS,test "${with_testprogs}" != "no") 187 191 188 dnl Check for optional programs 189 192 dnl Check for swig and python 190 193 dnl should check for swig version and python headers 191 194 AC_PATH_PROG(SWIG,swig,no) … … 193 196 AM_PATH_PYTHON 194 197 AM_CONDITIONAL(PYTHONFOUND, test "${PYTHON}" != "no") 195 198 # 196 199 #if PYTHONFOUND 197 200 case "${host_os}" in … … 204 207 ;; 205 208 esac 206 209 # 207 210 AC_SUBST(SWCFLAGS) 208 211 AC_SUBST(SWLDFLAGS) 209 212 213 dnl Check for docbook-to-man 210 214 AC_PATH_PROG(DOCBOOK_TO_MAN,docbook-to-man,no) 211 215 AM_CONDITIONAL(DOCBOOKFOUND, test "${DOCBOOK_TO_MAN}" != "no") 212 216 217 dnl Check for Puredata 213 218 AC_CHECK_HEADER(m_pd.h,PUREDATA=y,AC_MSG_WARN([Puredata header not found.])) 214 219 AM_CONDITIONAL(PUREDATAFOUND, test "${PUREDATA}" = "y") 215 220 221 dnl Create Makefiles 216 222 AC_OUTPUT([ 217 Makefile 218 src/Makefile 219 ext/Makefile 220 examples/Makefile 221 examples/tests/Makefile 222 sounds/Makefile 223 swig/Makefile 224 python/Makefile 225 python/aubio/Makefile 226 plugins/Makefile 227 plugins/audacity/Makefile 228 plugins/audacity/plug-ins/Makefile 229 plugins/wavesurfer/Makefile 230 plugins/puredata/Makefile 231 doc/Makefile 232 ]) 233 223 Makefile 224 src/Makefile 225 ext/Makefile 226 examples/Makefile 227 examples/tests/Makefile 228 sounds/Makefile 229 swig/Makefile 230 python/Makefile 231 python/aubio/Makefile 232 plugins/Makefile 233 plugins/audacity/Makefile 234 plugins/audacity/plug-ins/Makefile 235 plugins/wavesurfer/Makefile 236 plugins/puredata/Makefile 237 doc/Makefile 238 ]) 239 240 dnl Print summary 234 241 echo 235 242 echo "**************************************************************"
Note: See TracChangeset
for help on using the changeset viewer.