diff configure.ac @ 252:b03f1aefcd6a

* Add configure script
author cannam
date Wed, 12 Nov 2008 09:30:26 +0000
parents
children 6d355f1b7eaf
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/configure.ac	Wed Nov 12 09:30:26 2008 +0000
@@ -0,0 +1,31 @@
+
+AC_INIT(vamp-plugin-sdk, 2.0, cannam@all-day-breakfast.com)
+
+AC_CONFIG_SRCDIR(vamp/vamp.h)
+AC_PROG_CXX
+AC_HEADER_STDC
+AC_C_BIGENDIAN
+
+if pkg-config --modversion vamp-sdk >/dev/null 2>&1; then
+  echo "WARNING: A version of the Vamp plugin SDK is already installed."
+  echo "         Expect worries and sorrows if you install a new version"
+  echo "         without removing the old one first.  (Continuing)"
+fi
+
+AC_SEARCH_LIBS([dlopen],[dl])
+
+PKG_CHECK_MODULES([SNDFILE],[sndfile])
+AC_SUBST(SNDFILE_CFLAGS)
+AC_SUBST(SNDFILE_LIBS)
+
+changequote(,)dnl
+if test "x$GCC" = "xyes"; then
+  case " $CXXFLAGS " in
+    *[\ \	]-fPIC\ -Wall[\ \	]*) ;;
+    *) CXXFLAGS="$CXXFLAGS -fPIC -Wall" ;;
+  esac
+fi
+changequote([,])dnl
+
+AC_OUTPUT([Makefile])
+