1 |
dnl Process this file with autoconf to produce a configure script. |
dnl Process this file with autoconf to produce a configure script. |
2 |
AC_INIT(gigedit,0.0.3) |
AC_INIT(configure.ac) |
3 |
AC_CONFIG_AUX_DIR([.]) |
AC_CONFIG_AUX_DIR([.]) |
4 |
|
|
5 |
#------------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------------ |
6 |
|
# The following is the current, official release version of gigedit: |
7 |
|
|
8 |
|
GIGEDIT_VER_MAJOR=0 |
9 |
|
GIGEDIT_VER_MINOR=1 |
10 |
|
GIGEDIT_VER_RELEASE=0 |
11 |
|
|
12 |
|
#------------------------------------------------------------------------------------ |
13 |
# The following is the libtool / shared library version. This doesn't have to |
# The following is the libtool / shared library version. This doesn't have to |
14 |
# do anything with the release version. It MUST conform to the following rules: |
# do anything with the release version. It MUST conform to the following rules: |
15 |
# |
# |
29 |
LIBGIGEDIT_LT_CURRENT=0 |
LIBGIGEDIT_LT_CURRENT=0 |
30 |
LIBGIGEDIT_LT_REVISION=0 |
LIBGIGEDIT_LT_REVISION=0 |
31 |
LIBGIGEDIT_LT_AGE=0 |
LIBGIGEDIT_LT_AGE=0 |
32 |
|
|
33 |
SHARED_VERSION_INFO="$LIBGIGEDIT_LT_CURRENT:$LIBGIGEDIT_LT_REVISION:$LIBGIGEDIT_LT_AGE" |
SHARED_VERSION_INFO="$LIBGIGEDIT_LT_CURRENT:$LIBGIGEDIT_LT_REVISION:$LIBGIGEDIT_LT_AGE" |
34 |
|
AC_LANG_CPLUSPLUS |
35 |
|
AC_PROG_CXX |
36 |
AC_PROG_LIBTOOL |
AC_PROG_LIBTOOL |
37 |
AC_SUBST(SHLIB_VERSION_ARG) |
AC_SUBST(SHLIB_VERSION_ARG) |
38 |
AC_SUBST(SHARED_VERSION_INFO) |
AC_SUBST(SHARED_VERSION_INFO) |
39 |
|
AC_SUBST(GIGEDIT_VER_MAJOR) |
40 |
|
AC_SUBST(GIGEDIT_VER_MINOR) |
41 |
|
AC_SUBST(GIGEDIT_VER_RELEASE) |
42 |
|
|
43 |
# configure checks for the following file's existence to make sure that |
# configure checks for the following file's existence to make sure that |
44 |
# the directory that it is told contains the source code in fact does. |
# the directory that it is told contains the source code in fact does. |
46 |
# `--srcdir'; this is a safety check. |
# `--srcdir'; this is a safety check. |
47 |
AC_CONFIG_SRCDIR(src/gigedit/main.cpp) |
AC_CONFIG_SRCDIR(src/gigedit/main.cpp) |
48 |
|
|
|
AC_CONFIG_HEADERS(config.h) |
|
|
AM_INIT_AUTOMAKE |
|
|
|
|
49 |
GETTEXT_PACKAGE=gigedit |
GETTEXT_PACKAGE=gigedit |
50 |
AC_SUBST([GETTEXT_PACKAGE]) |
AC_SUBST([GETTEXT_PACKAGE]) |
51 |
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package]) |
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package]) |
59 |
AM_GLIB_GNU_GETTEXT |
AM_GLIB_GNU_GETTEXT |
60 |
|
|
61 |
PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 >= 2.4.10 gthread-2.0) |
PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 >= 2.4.10 gthread-2.0) |
62 |
PKG_CHECK_MODULES(GIG, gig >= 3.1.1) |
PKG_CHECK_MODULES(GIG, gig >= 3.2.0) |
63 |
|
|
64 |
# check for presence of libsndfile |
# check for presence of libsndfile |
65 |
PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2) |
PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2) |
77 |
CFLAGS=$gigedit_save_CFLAGS |
CFLAGS=$gigedit_save_CFLAGS |
78 |
|
|
79 |
# check for (optional) presence of liblinuxsampler |
# check for (optional) presence of liblinuxsampler |
80 |
liblinuxsampler_version="0.4.0.5cvs" |
liblinuxsampler_version="0.5.0" |
81 |
PKG_CHECK_MODULES( |
PKG_CHECK_MODULES( |
82 |
LINUXSAMPLER, linuxsampler >= $liblinuxsampler_version, |
LINUXSAMPLER, linuxsampler >= $liblinuxsampler_version, |
83 |
have_linuxsampler=1, have_linuxsampler=0 |
have_linuxsampler=1, have_linuxsampler=0 |
115 |
[Define to 1 if you have LinuxSampler installed.] |
[Define to 1 if you have LinuxSampler installed.] |
116 |
) |
) |
117 |
|
|
118 |
|
AC_CONFIG_HEADERS(config.h) |
119 |
|
AM_INIT_AUTOMAKE(gigedit, "$GIGEDIT_VER_MAJOR.$GIGEDIT_VER_MINOR.$GIGEDIT_VER_RELEASE") |
120 |
|
|
121 |
AC_CONFIG_FILES([ |
AC_CONFIG_FILES([ |
122 |
Makefile |
Makefile |
123 |
src/Makefile |
src/Makefile |
124 |
src/gigedit/Makefile |
src/gigedit/Makefile |
125 |
src/plugin/Makefile |
src/plugin/Makefile |
126 |
|
gfx/Makefile |
127 |
po/Makefile.in |
po/Makefile.in |
128 |
debian/Makefile |
debian/Makefile |
129 |
doc/Makefile |
doc/Makefile |
130 |
doc/quickstart/Makefile |
doc/quickstart/Makefile |
131 |
|
win32/libgigedit.dev |
132 |
|
win32/gigedit.dev |
133 |
|
win32/gigedit.nsi |
134 |
|
win32/Makefile |
135 |
]) |
]) |
136 |
AC_OUTPUT |
AC_OUTPUT |