diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2017-01-23 20:18:31 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2017-01-23 20:18:31 +0900 |
commit | 0c8d7c868b37e908fb85be05ea7807588a602d76 (patch) | |
tree | 63329fb7e13f3d7d348b88c93f4b7e77e580cea6 /curses/configure.ac | |
parent | 346bb9092d12ae5d16ebb05b9fa7a7a8d63dbff7 (diff) |
add libsamplerate support for platforms not supporting 55khz
Diffstat (limited to 'curses/configure.ac')
-rw-r--r-- | curses/configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/curses/configure.ac b/curses/configure.ac index d4623ea..c397e03 100644 --- a/curses/configure.ac +++ b/curses/configure.ac @@ -1,8 +1,14 @@ AC_INIT([fmplayer], [0.1.0]) AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects]) +AM_SILENT_RULES([yes]) AC_PROG_CC_C99 PKG_CHECK_MODULES([PORTAUDIO], [portaudio-2.0]) +AC_ARG_WITH([samplerate], AS_HELP_STRING([--with-samplerate], [Use libsamplerate and output at native samplerate (needed on NetBSD)])) +AS_IF([test "x$with_samplerate" = "xyes"], [ + PKG_CHECK_MODULES([SAMPLERATE], [samplerate]) + AC_DEFINE([HAVE_SAMPLERATE]) +]) AX_WITH_CURSES AM_ICONV |