summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-10-03 01:32:43 +0000
committerDavid Robillard <d@drobilla.net>2008-10-03 01:32:43 +0000
commitaa97df1cb63bea5a635994ef758ac92b6bc8cfbf (patch)
tree16b5f9c8cdfc006b7cedfd0ddf1ea9ca0a7e742e /configure.ac
parentd8e1831406ab0da10025e3fa203d9d0ae5c31368 (diff)
downloadlilv-aa97df1cb63bea5a635994ef758ac92b6bc8cfbf.tar.gz
lilv-aa97df1cb63bea5a635994ef758ac92b6bc8cfbf.tar.bz2
lilv-aa97df1cb63bea5a635994ef758ac92b6bc8cfbf.zip
Good riddance.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@1602 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac219
1 files changed, 0 insertions, 219 deletions
diff --git a/configure.ac b/configure.ac
deleted file mode 100644
index 6aafb5c..0000000
--- a/configure.ac
+++ /dev/null
@@ -1,219 +0,0 @@
-AC_PREREQ(2.59)
-
-AC_INIT([slv2],0.6.0,[dave@drobilla.net])
-
-AC_CONFIG_AUX_DIR([config])
-
-AC_CONFIG_SRCDIR([src/plugin.c])
-AC_CONFIG_SRCDIR([slv2/plugin.h])
-AC_CONFIG_SRCDIR([utils/lv2_list.c])
-AC_CONFIG_SRCDIR([swig/slv2.i])
-AC_CONFIG_HEADER([config/config.h])
-AM_INIT_AUTOMAKE
-
-# SLV2 interface version (libtool shared library versioning)
-#
-# current = incremented whenever the public API is changed
-# revision = incremented when the implementation of current is changed
-# age = current library is both source and binary compatible with
-# interfaces: current,current-1,...,current-age
-#
-# See libtool documentation for detailed documentation
-#
-# Version history:
-# 0.0.1 = 0,0,0
-# 0.1.0 = 2,0,0
-# 0.2.0 = 3,0,0
-# 0.3.0 = 4,0,0
-# 0.3.1 = 4,0,0
-# 0.3.2 = 5,0,1
-# 0.4.0 = 6,0,0
-# 0.4.1 = 6,0,0 (oops, should have been 6,1,0)
-# 0.4.2 = 6,0,0 (oops, should have been 6,2,0)
-# 0.4.3 = 6,0,0 (oops, should have been 6,3,0)
-# 0.4.4 = 7,0,1
-# 0.4.5 = 7,0,1
-# 0.5.0 = 8,0,0
-# 0.6.0 = 9,0,0 (SVN r1282)
-
-SLV2_VERSION="0.6.0"
-SLV2_API_CURRENT="9"
-SLV2_API_REVISION="0"
-SLV2_API_AGE="0"
-
-AC_SUBST(SLV2_API_CURRENT)
-AC_SUBST(SLV2_API_REVISION)
-AC_SUBST(SLV2_API_AGE)
-SLV2_SO_VERSION="${SLV2_API_CURRENT}:${SLV2_API_REVISION}:${SLV2_API_AGE}"
-AC_SUBST(SLV2_SO_VERSION)
-AC_SUBST(SLV2_VERSION)
-
-# This is cute... autohell FTW
-builddir=`pwd`
-cd $srcdir
-abs_srcdir=`pwd`
-cd $builddir
-
-SLV2_CFLAGS="-I$abs_srcdir"
-SLV2_LIBS="$abs_srcdir/src/.libs/libslv2.la"
-SLV2_SRCDIR="$abs_srcdir"
-AC_SUBST(SLV2_CFLAGS)
-AC_SUBST(SLV2_LIBS)
-AC_SUBST(SLV2_SRCDIR)
-
-CONFIG_H_PATH="$builddir/config/config.h"
-
-# Checks for compiler
-AM_PROG_CC_C_O
-
-# Library building stuff
-AC_PROG_LIBTOOL
-
-# LV2 core package
-PKG_CHECK_MODULES(LV2CORE, lv2core >= 1, , [AC_ERROR([SLV2 Requires the LV2 core package (http://lv2plug.in/spec/)])])
-
-# Check for debugging flag
-debug="no"
-AC_ARG_ENABLE(debug,
- [AS_HELP_STRING(--enable-debug, [Enable debugging (false)])],
- [debug="$enableval"])
-if test "$debug" = "yes"; then
- CFLAGS="-O0 -g -DDEBUG -DLIBRDF_DEBUG"
- CXXFLAGS="-O0 -g -DDEBUG -DLIBRDF_DEBUG"
-else
- CFLAGS="$CFLAGS -DNDEBUG -DLIBRDF_DEBUG"
- CXXFLAGS="$CFLAGS -DNDEBUG -DLIBRDF_DEBUG"
-fi
-
-# Check for strict flag
-strict="no"
-AC_ARG_ENABLE(strict,
- [AS_HELP_STRING(--enable-strict, [Enable strict compiler warnings and errors (false)])],
- [strict="$enableval"])
-if test "$strict" = "yes"; then
- CFLAGS="$CFLAGS -std=c99 -pedantic -Wall -Wextra -Winit-self -Wno-unused-parameter"
- CXXFLAGS="$CFLAGS -ansi -pedantic -Wall -Wextra -Wconversion -Winit-self -Wno-unused-parameter"
-fi
-
-# SWIG bindings
-bindings="no"
-AC_ARG_ENABLE(bindings,
- [AS_HELP_STRING(--enable-bindings, [Build language bindings via SWIG (false)])],
- [bindings="$enableval"])
-if test "$bindings" = "yes"; then
- AC_CHECK_PROGS(SWIG, "swig swig-1.3")
- if test "$SWIG" = ""; then
- AC_MSG_WARN("SWIG not found, language bindings disabled")
- fi
-fi
-AM_CONDITIONAL(WITH_SWIG, [test "$bindings" = "yes"])
-
-# Check for binding languages
-mzscheme="no"
-chicken="no"
-if test "$bindings" = "yes"; then
- AC_PYTHON_DEVEL([>= '2.3.0'])
- AC_CHECK_HEADER([plt/escheme.h], [mzscheme="yes"], [mzscheme="no"])
- AC_CHECK_HEADER([chicken.h], [chicken="yes"], [chicken="no"])
-fi
-AM_CONDITIONAL(WITH_PYTHON, [test ! "$PYTHON_VERSION" = "yes"])
-AM_CONDITIONAL(WITH_MZSCHEME, [test "$mzscheme" = "yes"])
-AM_CONDITIONAL(WITH_CHICKEN, [test "$chicken" = "yes"])
-
-# Check for Redland
-build_redland="no"
-AC_CHECK_PROG(REDLAND_CONFIG, redland-config, redland-config)
-if test "X$REDLAND_CONFIG" = X; then
- AC_MSG_ERROR([SLV2 requires Redland (librdf), but redland-config not found.])
-else
- build_redland="yes"
- PKG_CHECK_MODULES(RAPTOR, raptor)
- PKG_CHECK_MODULES(RASQAL, rasqal >= 0.9.14)
- redland_major_version=`$REDLAND_CONFIG --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- redland_minor_version=`$REDLAND_CONFIG --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- redland_micro_version=`$REDLAND_CONFIG --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
- AC_MSG_CHECKING([for REDLAND version >= 1.0.6])
- version_ok="no"
- if test 1 -le $redland_major_version; then
- if test 0 -le $redland_minor_version; then
- if test 6 -le $redland_micro_version; then
- version_ok="yes"
- fi
- fi
- fi
- if test $version_ok = "no"; then
- act=`$REDLAND_CONFIG --version`
- AC_MSG_ERROR([REDLAND version >= 1.0.6 required; $act found])
- else
- AC_MSG_RESULT([yes])
- fi
- REDLAND_CFLAGS=`$REDLAND_CONFIG --cflags`
- REDLAND_LIBS=`$REDLAND_CONFIG --libs`
- AC_SUBST(REDLAND_CFLAGS)
- AC_SUBST(REDLAND_LIBS)
-fi
-AM_CONDITIONAL(WITH_REDLAND, [test "$build_redland" = "yes"])
-
-# Check for JACK
-build_jack="yes"
-AC_ARG_ENABLE(jack,
- [AS_HELP_STRING(--enable-jack, [Build JACK clients (true)])],
- [ if test x$enable_jack = xno ; then build_jack=no ; fi ])
-if test "$build_jack" = "yes"; then
- PKG_CHECK_MODULES(JACK, jack >= 0.102.29, build_jack="yes", build_jack="no")
- AC_DEFINE(HAVE_JACK, 1, [Has JACK])
- AC_JACK_MIDI_NFRAMES_CHECK()
- if test "$jackmidi_nframes" == "yes"; then
- AC_DEFINE([JACK_MIDI_NEEDS_NFRAMES], 1, [Defined if we JACK MIDI functions need nframes parameter.])
- fi
-else
- AC_MSG_WARN("Sufficiently recent JACK not found, JACK clients will not be built.")
-fi
-AM_CONDITIONAL(WITH_JACK, [test "$build_jack" = "yes"])
-
-# Build documentation
-build_documentation="yes"
-AC_ARG_ENABLE(documentation,
- [AS_HELP_STRING(--enable-documentation, [Build documentation (yes, if doxygen available)])],
- [build_documentation="$enableval"])
-if test "$build_documentation" = "yes"; then
- AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, true, false)
- if test $HAVE_DOXYGEN = "false"; then
- AC_MSG_WARN([*** Doxygen not found, API documentation will not be built])
- build_documentation="no"
- fi
-fi
-AM_CONDITIONAL(HAVE_DOXYGEN, [test "x$build_documentation" = "xyes"])
-
-# Bolt on a few specific flags to CFLAGS that should always be used
-CXXFLAGS="$CXXFLAGS -ansi -pipe -fmessage-length=999 -DCONFIG_H_PATH=\\\"$CONFIG_H_PATH\\\""
-CFLAGS="$CFLAGS -std=c99 -pipe -fmessage-length=999 -DCONFIG_H_PATH=\\\"$CONFIG_H_PATH\\\""
-
-# Write output files
-AC_CONFIG_FILES([Makefile])
-AC_CONFIG_FILES([debian-sid/Makefile])
-AC_CONFIG_FILES([doc/Makefile])
-AC_CONFIG_FILES([doc/reference.doxygen])
-AC_CONFIG_FILES([hosts/Makefile])
-AC_CONFIG_FILES([slv2.pc])
-AC_CONFIG_FILES([slv2/Makefile])
-AC_CONFIG_FILES([src/Makefile])
-AC_CONFIG_FILES([swig/Makefile])
-AC_CONFIG_FILES([swig/python/Makefile])
-AC_CONFIG_FILES([swig/mzscheme/Makefile])
-AC_CONFIG_FILES([swig/chicken/Makefile])
-AC_CONFIG_FILES([utils/Makefile])
-
-AC_OUTPUT
-
-AC_MSG_RESULT([])
-AC_MSG_RESULT([**********************************************************************])
-AC_MSG_RESULT([SLV2 build configuration:])
-AC_MSG_RESULT([])
-AC_MSG_RESULT([Building JACK clients: $build_jack])
-AC_MSG_RESULT([**********************************************************************])
-AC_MSG_RESULT([])
-