aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorhristian Persch <chpe@cvs.gnome.org>2006-06-10 03:18:48 +0800
committerChristian Persch <chpe@src.gnome.org>2006-06-10 03:18:48 +0800
commit6e2a33c8c36c722eb1d257fa6ce329ac5045d9ed (patch)
treed8e9ad8ce020db42403e26bc44d6bca0e0ba0412 /configure.ac
parent6dc6a3ff5df86c2ae842e8493b37746fc4b27e28 (diff)
downloadgsoc2013-epiphany-6e2a33c8c36c722eb1d257fa6ce329ac5045d9ed.tar
gsoc2013-epiphany-6e2a33c8c36c722eb1d257fa6ce329ac5045d9ed.tar.gz
gsoc2013-epiphany-6e2a33c8c36c722eb1d257fa6ce329ac5045d9ed.tar.bz2
gsoc2013-epiphany-6e2a33c8c36c722eb1d257fa6ce329ac5045d9ed.tar.lz
gsoc2013-epiphany-6e2a33c8c36c722eb1d257fa6ce329ac5045d9ed.tar.xz
gsoc2013-epiphany-6e2a33c8c36c722eb1d257fa6ce329ac5045d9ed.tar.zst
gsoc2013-epiphany-6e2a33c8c36c722eb1d257fa6ce329ac5045d9ed.zip
Fix the build.
2006-06-09hristian Persch <chpe@cvs.gnome.org> * configure.ac: Fix the build.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac29
1 files changed, 29 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1740fde55..831614c89 100644
--- a/configure.ac
+++ b/configure.ac
@@ -95,6 +95,7 @@ PKG_CHECK_MODULES([DEPENDENCIES], [
libxslt >= $LIBXSLT_REQUIRED
libgnome-2.0 >= $LIBGNOME_REQUIRED
libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED
+ libgnomeprint-2.2 libgnomeprintui-2.2
libglade-2.0 >= $LIBGLADE_REQUIRED \
gnome-vfs-2.0 >= $LIBGNOMEVFS_REQUIRED
gnome-vfs-module-2.0
@@ -559,6 +560,33 @@ fi
AM_CONDITIONAL([ENABLE_SPELLCHECKER],[test "$enable_spell_checker" = "yes" -a "$have_gecko_spell_checker" = "yes"])
+# DSP wrapper
+
+AC_MSG_CHECKING([whether to enable the polypaudio DSP wrapper])
+AC_ARG_ENABLE([polypaudio],
+ AS_HELP_STRING([--enable-polypaudio],[Whether to wrap calls to /dev/dsp using polypaudio]),
+ [],[enable_polypaudio=no])
+AC_MSG_RESULT([$enable_polypaudio])
+
+POLYPDSP_LIBS=
+if test "$enable_polypaudio" = "yes"; then
+ PKG_CHECK_MODULES([POLYPDSP],[polyplib])
+
+ AC_LANG_PUSH([C])
+ _SAVE_LIBS=$LIBS
+ LIBS="$LIBS $POLYPDSP_LIBS"
+
+ AC_CHECK_LIB([polypdsp],[main],
+ [AC_DEFINE([HAVE_POLYPDSP],[1],[Define if libpolypdsp is available])
+ POLYPDSP_LIBS="$POLYPDSP_LIBS -lpolypdsp"],
+ [AC_MSG_ERROR([Polypaudio DSP wrapper was requested but libpolypdsp not found])])
+
+ LIBS="$_SAVE_LIBS"
+ AC_LANG_POP([C])
+fi
+
+AC_SUBST([POLYPDSP_LIBS])
+
# ************
# Misc defines
# ************
@@ -669,6 +697,7 @@ echo "NetworkManager support : $enable_network_manager"
echo "Certificate manager : $enable_certificate_manager (experimental)"
echo "Python support : $enable_python"
echo "Desktop file plugin : $enable_desktop_file_plugin"
+echo "Polypaudio DSP wrapper : $enable_polypaudio"
echo "Spellchecker : $enable_spell_checker"
echo "Debug mode : $enable_debug"
echo ""