1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.63])
5AC_INIT([libbs2b], [3.1.0], [boris_mikhaylov@users.sourceforge.net])
6AC_CONFIG_AUX_DIR([build-aux])
7AM_INIT_AUTOMAKE([1.10.1 -Wall foreign subdir-objects
8                  dist-zip dist-bzip2 dist-lzma])
9AC_CONFIG_SRCDIR([src/bs2b.h])
10
11# Checks for programs.
12AC_PROG_CXX
13AC_PROG_CC
14AC_PROG_LIBTOOL
15PKG_PROG_PKG_CONFIG
16
17# Checks for libraries.
18PKG_CHECK_EXISTS([sndfile], [], [
19    AC_MSG_ERROR(Please install libsndfile.)
20])
21
22# Checks for header files.
23AC_CHECK_HEADERS([fcntl.h malloc.h string.h])
24
25# Checks for typedefs, structures, and compiler characteristics.
26AC_HEADER_STDBOOL
27AC_TYPE_SIZE_T
28
29# Checks for library functions.
30AC_FUNC_MALLOC
31AC_CHECK_FUNCS([strrchr])
32
33AC_CONFIG_FILES([libbs2b.pc
34                 Makefile
35                 doc/Makefile
36                 src/Makefile
37                 win32/Makefile])
38AC_OUTPUT
39