--- gigedit/trunk/configure.ac 2007/08/26 09:29:52 1303 +++ gigedit/trunk/configure.ac 2007/10/12 17:46:29 1411 @@ -1,5 +1,13 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(gigedit,0.0.3) +AC_INIT(configure.ac) +AC_CONFIG_AUX_DIR([.]) + +#------------------------------------------------------------------------------------ +# The following is the current, official release version of gigedit: + +GIGEDIT_VER_MAJOR=0 +GIGEDIT_VER_MINOR=0 +GIGEDIT_VER_RELEASE=3 #------------------------------------------------------------------------------------ # The following is the libtool / shared library version. This doesn't have to @@ -21,10 +29,16 @@ LIBGIGEDIT_LT_CURRENT=0 LIBGIGEDIT_LT_REVISION=0 LIBGIGEDIT_LT_AGE=0 + SHARED_VERSION_INFO="$LIBGIGEDIT_LT_CURRENT:$LIBGIGEDIT_LT_REVISION:$LIBGIGEDIT_LT_AGE" +AC_LANG_CPLUSPLUS +AC_PROG_CXX AC_PROG_LIBTOOL AC_SUBST(SHLIB_VERSION_ARG) AC_SUBST(SHARED_VERSION_INFO) +AC_SUBST(GIGEDIT_VER_MAJOR) +AC_SUBST(GIGEDIT_VER_MINOR) +AC_SUBST(GIGEDIT_VER_RELEASE) # configure checks for the following file's existence to make sure that # the directory that it is told contains the source code in fact does. @@ -32,19 +46,19 @@ # `--srcdir'; this is a safety check. AC_CONFIG_SRCDIR(src/gigedit/main.cpp) -AC_CONFIG_HEADERS(config.h) -AM_INIT_AUTOMAKE - GETTEXT_PACKAGE=gigedit AC_SUBST([GETTEXT_PACKAGE]) AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package]) +# the libgig header files need this +AC_C_BIGENDIAN + AC_PROG_CXX IT_PROG_INTLTOOL(0.35.0) AM_GLIB_GNU_GETTEXT -PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 >= 2.4.11 gthread-2.0) +PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 >= 2.4.10 gthread-2.0) PKG_CHECK_MODULES(GIG, gig >= 3.1.1) # check for presence of libsndfile @@ -85,6 +99,11 @@ echo "for on-the-fly editing with LinuxSampler will be disabled." else echo "${LINUXSAMPLER_PLUGIN_DIR} " + # convert absolute LS plugin dir into relative dir + # (see ch 27.10 of the automake manual, + # "Installing to Hard-Coded Locations") + LINUXSAMPLER_PLUGIN_DIR=`echo "${LINUXSAMPLER_PLUGIN_DIR}" | sed 's/^.*\/lib\//\${libdir}\//g'` + echo "Relative plugin dir: ${LINUXSAMPLER_PLUGIN_DIR}" fi fi AC_SUBST(LINUXSAMPLER_CFLAGS) @@ -96,14 +115,21 @@ [Define to 1 if you have LinuxSampler installed.] ) +AC_CONFIG_HEADERS(config.h) +AM_INIT_AUTOMAKE(gigedit, "$GIGEDIT_VER_MAJOR.$GIGEDIT_VER_MINOR.$GIGEDIT_VER_RELEASE") + AC_CONFIG_FILES([ Makefile src/Makefile src/gigedit/Makefile src/plugin/Makefile + gfx/Makefile po/Makefile.in debian/Makefile - doc/Makefile - doc/quickstart/Makefile + doc/Makefile + doc/quickstart/Makefile + win32/libgigedit.dev + win32/gigedit.dev + win32/Makefile ]) AC_OUTPUT