2 # Process this file with autoconf to produce a configure script.
6 # This file is part of polypaudio.
8 # polypaudio is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # polypaudio is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with polypaudio; if not, write to the Free Software Foundation,
20 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
23 AC_INIT([polypaudio],[0.1],[mzcbylcnhqvb (at) 0pointer (dot) de])
24 AC_CONFIG_SRCDIR([polyp/main.c])
25 AC_CONFIG_HEADERS([config.h])
26 AM_INIT_AUTOMAKE([foreign -Wall])
28 AC_SUBST(PACKAGE_URL, [http://0pointer.de/lennart/projects/polypaudio/])
30 if type -p stow > /dev/null && test -d /usr/local/stow ; then
31 AC_MSG_NOTICE([*** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***])
32 ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
35 # Checks for programs.
37 AC_LIBLTDL_INSTALLABLE
45 PKG_CHECK_MODULES(LIBSAMPLERATE, [ samplerate >= 0.1.0 ])
46 AC_SUBST(LIBSAMPLERATE_CFLAGS)
47 AC_SUBST(LIBSAMPLERATE_LIBS)
49 PKG_CHECK_MODULES(LIBSNDFILE, [ sndfile >= 1.0.0 ])
50 AC_SUBST(LIBSNDFILE_CFLAGS)
51 AC_SUBST(LIBSNDFILE_LIBS)
53 PKG_CHECK_MODULES(ASOUNDLIB, [ alsa >= 1.0.0 ])
54 AC_SUBST(ASOUNDLIB_CFLAGS)
55 AC_SUBST(ASOUNDLIB_LIBS)
57 PKG_CHECK_MODULES(GLIB20, [ glib-2.0 >= 2.4.0 ])
58 AC_SUBST(GLIB20_CFLAGS)
61 # If using GCC specifiy some additional parameters
62 if test "x$GCC" = "xyes" ; then
63 CFLAGS="$CFLAGS -pipe -Wall -W -Wno-unused-parameter"
66 # LYNX documentation generation
68 AS_HELP_STRING(--disable-lynx,Turn off lynx usage for documentation generation),
69 [case "${enableval}" in
72 *) AC_MSG_ERROR(bad value ${enableval} for --disable-lynx) ;;
75 if test x$lynx = xyes ; then
76 AC_CHECK_PROG(have_lynx, lynx, yes, no)
78 if test x$have_lynx = xno ; then
79 AC_MSG_ERROR([*** Sorry, you have to install lynx or use --disable-lynx ***])
83 AM_CONDITIONAL([USE_LYNX], [test "x$lynx" = xyes])
85 AM_CONDITIONAL(BUILD_LIBPOLYPCORE, false)
87 AC_CONFIG_FILES([Makefile polyp/Makefile polyplib.pc polyplib-simple.pc polyplib-mainloop.pc polyplib-error.pc doc/Makefile doc/README.html doc/cli.html doc/daemon.html doc/modules.html])