diff options
author | Jamie Bullock <jamie@postlude.co.uk> | 2006-10-02 14:18:15 +0000 |
---|---|---|
committer | Jamie Bullock <jamie@postlude.co.uk> | 2006-10-02 14:18:15 +0000 |
commit | 6d00829a8ccef20c0ce7eeecc54cd3bb5f94b3bd (patch) | |
tree | 60022374029d12df117e549132637968e7dcca43 /configure.in | |
parent | 0e94c12896dde9bb525a617ed680c6da82b2ed52 (diff) | |
download | LibXtract-6d00829a8ccef20c0ce7eeecc54cd3bb5f94b3bd.tar.gz LibXtract-6d00829a8ccef20c0ce7eeecc54cd3bb5f94b3bd.tar.bz2 LibXtract-6d00829a8ccef20c0ce7eeecc54cd3bb5f94b3bd.zip |
Initial import
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/configure.in b/configure.in new file mode 100644 index 0000000..4729c3f --- /dev/null +++ b/configure.in @@ -0,0 +1,41 @@ +AC_PREREQ(2.13) +AC_INIT(src/libxtract.c) + +PACKAGE=libxtract +VERSION=0.1.0 + +AM_INIT_AUTOMAKE($PACKAGE, $VERSION) +AM_CONFIG_HEADER(config.h) +AC_PROG_CC +AC_PROG_INSTALL +AC_ENABLE_STATIC(no) +AC_ENABLE_SHARED(yes) +AC_PROG_LIBTOOL +#AC_ARG_WITH(fftw, AC_HELP_STRING([--with-vector], [build vector features]), +# [ if test $withval = "yes"; then with_vector=yes ; +# else with_vector=no ; fi ], with_vector=no) + +AC_CHECK_HEADERS([math.h]) + +AC_ARG_ENABLE(vector, + [ --enable-vector Turn fft-based vector processing on], + [case "${enableval}" in + yes) vector=true ;; + no) vector=false ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-vector) ;; + esac],[vector=false]) + +XTRACT_SO_VERSION=0:0:0 +CFLAGS="-pedantic -ansi" +LDFLAGS="-lm" + +dnl Are we building with fftw? +#if [[ "$with_vector" = "yes" ]] ; then +if [[ "$vector" = "true" ]] ; then + LDFLAGS="$LDFLAGS -lfftw3f" + AC_DEFINE([BUILD_VECTOR], [1], [Build the vector functions]) +fi + +AM_CONDITIONAL(BUILD_VECTOR, test "x${vector}" = 'xtrue') + +AC_OUTPUT(Makefile src/Makefile xtract/Makefile) |