2011-05-20 17:16:52 +02:00
|
|
|
dnl
|
|
|
|
dnl configure.ac Generated by project-setup
|
|
|
|
dnl
|
|
|
|
|
|
|
|
AC_DEFUN([PKG_NAME], [minimodem])
|
2013-09-18 18:11:36 +02:00
|
|
|
AC_DEFUN([PKG_VERSION], [0.19])
|
2011-05-20 17:16:52 +02:00
|
|
|
AC_DEFUN([PKG_AUTHOR], [Kamal Mostafa <kamal@whence.com>])
|
|
|
|
AC_DEFUN([PKG_BUGS_TO], [kamal@whence.com])
|
|
|
|
|
|
|
|
|
|
|
|
AC_PREREQ([2.64])
|
|
|
|
|
|
|
|
AC_INIT(PKG_NAME, PKG_VERSION, PKG_BUGS_TO)
|
|
|
|
|
|
|
|
dnl Release versioning info
|
|
|
|
VERSION=PKG_VERSION
|
|
|
|
AC_SUBST(VERSION)
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE
|
|
|
|
AC_CONFIG_SRCDIR([src/Makefile.in])
|
|
|
|
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC
|
|
|
|
# AC_PROG_RANLIB
|
|
|
|
|
2012-08-06 22:14:26 +02:00
|
|
|
|
|
|
|
# Configure dependency libs
|
|
|
|
|
2013-03-21 21:04:35 +01:00
|
|
|
AC_CHECK_LIB([m],[lroundf])
|
|
|
|
|
2012-08-06 22:14:26 +02:00
|
|
|
# fftw3f
|
|
|
|
deps_packages+=" fftw3f"
|
|
|
|
|
2012-08-08 23:26:39 +02:00
|
|
|
# ALSA
|
|
|
|
AC_ARG_WITH([alsa],
|
|
|
|
AS_HELP_STRING([--without-alsa], [build without ALSA support]))
|
2012-08-09 05:10:55 +02:00
|
|
|
AS_IF([test "x$with_alsa" == "xno"],
|
2012-08-08 23:26:39 +02:00
|
|
|
# then
|
|
|
|
use_alsa=0,
|
|
|
|
# else
|
|
|
|
use_alsa=1
|
|
|
|
deps_packages+=" alsa")
|
|
|
|
AC_DEFINE_UNQUOTED(USE_ALSA, $use_alsa,
|
|
|
|
[Define to 1 to enable ALSA support])
|
|
|
|
|
2012-08-06 22:14:26 +02:00
|
|
|
# pulseaudio
|
|
|
|
AC_ARG_WITH([pulseaudio],
|
|
|
|
AS_HELP_STRING([--without-pulseaudio], [build without pulseaudio support]))
|
|
|
|
AS_IF([test "x$with_pulseaudio" == "xno"],
|
|
|
|
# then
|
|
|
|
use_pulseaudio=0,
|
|
|
|
# else
|
|
|
|
use_pulseaudio=1
|
|
|
|
deps_packages+=" libpulse-simple")
|
|
|
|
AC_DEFINE_UNQUOTED(USE_PULSEAUDIO, $use_pulseaudio,
|
|
|
|
[Define to 1 to enable pulseaudio support])
|
|
|
|
|
|
|
|
# sndfile
|
|
|
|
AC_ARG_WITH([sndfile],
|
|
|
|
AS_HELP_STRING([--without-sndfile], [build without sndfile support]))
|
|
|
|
AS_IF([test "x$with_sndfile" == "xno"],
|
|
|
|
# then
|
|
|
|
use_sndfile=0,
|
|
|
|
# else
|
|
|
|
use_sndfile=1
|
|
|
|
deps_packages+=" sndfile")
|
|
|
|
AC_DEFINE_UNQUOTED(USE_SNDFILE, $use_sndfile,
|
|
|
|
[Define to 1 to enable sndfile support])
|
|
|
|
|
2012-08-14 00:50:04 +02:00
|
|
|
# benchmarks
|
|
|
|
AC_ARG_WITH([benchmarks],
|
|
|
|
AS_HELP_STRING([--disable-benchmarks], [build without internal benchmarks]))
|
|
|
|
AS_IF([test "x$with_benchmarks" == "xno"],
|
|
|
|
# then
|
|
|
|
use_benchmarks=0,
|
|
|
|
# else
|
|
|
|
use_benchmarks=1)
|
|
|
|
AC_DEFINE_UNQUOTED(USE_BENCHMARKS, $use_benchmarks,
|
|
|
|
[Define to 1 to enable internal benchmarks])
|
|
|
|
|
2012-08-19 22:16:13 +02:00
|
|
|
|
|
|
|
AC_MSG_RESULT([
|
|
|
|
PKG_NAME PKG_VERSION configuration summary:
|
|
|
|
--with-pulseaudio $with_pulseaudio ($use_pulseaudio)
|
|
|
|
--with-alsa $with_alsa ($use_alsa)
|
|
|
|
--with-sndfile $with_sndfile ($use_sndfile)
|
|
|
|
--with-benchmarks $with_benchmarks ($use_benchmarks)
|
|
|
|
deps_packages: $deps_packages
|
|
|
|
])
|
|
|
|
|
|
|
|
|
2011-05-20 17:16:52 +02:00
|
|
|
# Checks for libraries.
|
2012-08-06 22:14:26 +02:00
|
|
|
PKG_CHECK_MODULES(DEPS, [ $deps_packages ])
|
|
|
|
|
2011-05-20 17:16:52 +02:00
|
|
|
AC_SUBST(DEPS_CFLAGS)
|
|
|
|
AC_SUBST(DEPS_LIBS)
|
|
|
|
|
|
|
|
# Checks for header files.
|
|
|
|
# AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
|
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
# AC_HEADER_STDBOOL
|
|
|
|
# AC_TYPE_PID_T
|
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
# AC_FUNC_FORK
|
|
|
|
|
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
|
|
|
src/Makefile
|
2011-07-16 04:17:31 +02:00
|
|
|
src/minimodem.1
|
2012-08-15 20:44:26 +02:00
|
|
|
tests/Makefile
|
2011-05-20 17:16:52 +02:00
|
|
|
])
|
2011-06-20 19:34:37 +02:00
|
|
|
# testdata/Makefile
|
2011-05-20 17:16:52 +02:00
|
|
|
AC_OUTPUT
|