dnl Process this file with autoconf to produce a configure script. AC_INIT(src/main.cc) VERSION=`cat ./VERSION` AM_INIT_AUTOMAKE(xanalyser, $VERSION) AM_CONFIG_HEADER(config.h) AC_SUBST(VERSION) AC_PROG_CXX CXXFLAGS="$CXXFLAGS -Wall" AC_PATH_X if test -n "$x_includes"; then CXXFLAGS="$CXXFLAGS -I$x_includes" fi if test -n "$x_libraries"; then LDFLAGS="$LDFLAGS -L$x_libraries" fi dnl FFTW stuff AM_CONDITIONAL(HAVE_FFTW, false) dnl ALSA stuff AC_MSG_CHECKING(for alsa) AC_EGREP_CPP([AP_maGiC_VALUE], [ #include #if defined(SND_LIB_MAJOR) && defined(SND_LIB_MINOR) #if SND_LIB_MAJOR>0 || (SND_LIB_MAJOR==0 && SND_LIB_MINOR>=6) AP_maGiC_VALUE #endif #endif ], have_alsa=yes AC_MSG_RESULT([yes]), have_alsa=no AC_MSG_RESULT([no])) AM_CONDITIONAL(HAVE_ALSA, test "x$have_alsa" = xyes) AC_OUTPUT( Makefile src/Makefile doc/Makefile xanalyser.spec:xanalyser.spec.in )