1dnl Process this file with autoconf to produce a configure script. 2 3AC_INIT(src/main.cc) 4 5VERSION=`cat ./VERSION` 6 7AM_INIT_AUTOMAKE(xanalyser, $VERSION) 8AM_CONFIG_HEADER(config.h) 9 10AC_SUBST(VERSION) 11 12AC_PROG_CXX 13 14CXXFLAGS="$CXXFLAGS -Wall" 15 16AC_PATH_X 17if test -n "$x_includes"; then 18 CXXFLAGS="$CXXFLAGS -I$x_includes" 19fi 20if test -n "$x_libraries"; then 21 LDFLAGS="$LDFLAGS -L$x_libraries" 22fi 23 24dnl FFTW stuff 25AM_CONDITIONAL(HAVE_FFTW, false) 26 27dnl ALSA stuff 28AC_MSG_CHECKING(for alsa) 29AC_EGREP_CPP([AP_maGiC_VALUE], 30[ 31#include <sys/asoundlib.h> 32#if defined(SND_LIB_MAJOR) && defined(SND_LIB_MINOR) 33#if SND_LIB_MAJOR>0 || (SND_LIB_MAJOR==0 && SND_LIB_MINOR>=6) 34AP_maGiC_VALUE 35#endif 36#endif 37], 38have_alsa=yes 39AC_MSG_RESULT([yes]), 40have_alsa=no 41AC_MSG_RESULT([no])) 42AM_CONDITIONAL(HAVE_ALSA, test "x$have_alsa" = xyes) 43 44AC_OUTPUT( 45 Makefile 46 src/Makefile 47 doc/Makefile 48 xanalyser.spec:xanalyser.spec.in 49) 50