# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.68]) AC_INIT(ffts, 0.7, amb@anthonix.com) AM_INIT_AUTOMAKE(ffts, 0.7) # AC_CONFIG_SRCDIR([include/common.h]) AC_CONFIG_HEADERS([config.h]) # Checks for programs. AC_PROG_CXX AC_PROG_CC #AX_COMPILER_VENDOR LT_INIT([disable-shared]) AM_PROG_AS #CXX="clang++" #CXXFLAGS="$CXXFLAGS -stdlib=libc++" #SFFT_AR="/usr/bin/ar" #SFFT_CFLAGS="$CFLAGS" #SFFT_CC="$CC" AC_ARG_ENABLE(dynamic-code, [AC_HELP_STRING([--enable-dynamic-code],[dynamically generate code])], sfft_dynamic=$enableval, sfft_dynamic=yes) if test "$sfft_dynamic" = "no"; then AC_DEFINE(DYNAMIC_DISABLED,1,[Define to disable dynamic code generation.]) fi AM_CONDITIONAL(DYNAMIC_DISABLED, test "$sfft_dynamic" = "no") AC_ARG_ENABLE(single, [AC_HELP_STRING([--enable-single],[compile single-precision library])], sfft_single=$enableval, sfft_single=no) if test "$sfft_single" = "yes"; then AC_DEFINE(FFTS_PREC_SINGLE,1,[Define to FFT in single precision.]) fi if test "$sfft_single" = "no"; then AC_DEFINE(FFTS_PREC_SINGLE,0,[Define to FFT in single precision.]) fi AC_ARG_ENABLE(sse, [AC_HELP_STRING([--enable-sse],[enable SSE extensions])], have_sse=$enableval, have_sse=yes) if test "$have_sse" = "yes"; then SIMD=sse fi AM_CONDITIONAL(HAVE_SSE, test "$have_sse" = "yes") AC_ARG_ENABLE(neon, [AC_HELP_STRING([--enable-neon],[enable NEON extensions])], have_neon=$enableval, have_neon=no) if test "$have_neon" = "yes"; then if test "$SIMD" != "sse"; then AC_MSG_ERROR([conflicting SIMD extensisons specified]) fi AC_DEFINE(HAVE_NEON,1,[Define to FFT with ARM NEON.]) fi AM_CONDITIONAL(HAVE_NEON, test "$have_neon" = "yes") #AC_CANONICAL_HOST AC_MSG_NOTICE([host is "${host}"]) case "${host}" in arm* ) CFLAGS="$CFLAGS -mfloat-abi=softfp -mfpu=neon -std=c99" CCASFLAGS="$CCASFLAGS -mfloat-abi=softfp -mfpu=neon " ;; *) ;; esac #if test "$ord_sr" = "no"; then # AC_DEFINE(SFFT_ORD_SR,0,[Define to enable ordinary split radix.]) #fi # Checks for libraries. # FIXME: Replace `main' with a function in `-lm': AC_CHECK_LIB([m], [main]) # Checks for header files. AC_CHECK_HEADERS([stdint.h stdlib.h string.h sys/socket.h sys/time.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL AC_C_INLINE AC_TYPE_INT32_T AC_C_RESTRICT AC_TYPE_SIZE_T AC_TYPE_UINT64_T AC_PROG_CC_STDC AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_LIBTOOL # Checks for library functions. #AC_FUNC_MALLOC AC_CHECK_FUNCS([gettimeofday pow]) AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile ffts.pc ]) AC_OUTPUT