1 |
# Process this file with autoconf to produce a configure script. |
# Process this file with autoconf to produce a configure script. |
2 |
AC_INIT(Qsampler, 0.1.2.16, rncbc@rncbc.org, qsampler) |
AC_INIT(Qsampler, 0.1.3.20, rncbc@rncbc.org, qsampler) |
3 |
AC_CONFIG_SRCDIR(src/qsamplerMainForm.ui.h) |
AC_CONFIG_SRCDIR(src/qsamplerMainForm.ui.h) |
4 |
AC_CONFIG_HEADERS(config.h) |
AC_CONFIG_HEADERS(config.h) |
5 |
AC_CONFIG_FILES(Makefile qsampler.pro qsampler.spec) |
AC_CONFIG_FILES(Makefile qsampler.pro qsampler.spec) |
58 |
CPPFLAGS="$CPPFLAGS -I$X/include" |
CPPFLAGS="$CPPFLAGS -I$X/include" |
59 |
ac_incpath="$X/include $ac_incpath" |
ac_incpath="$X/include $ac_incpath" |
60 |
fi |
fi |
61 |
|
if test -d $X/lib64; then |
62 |
|
LIBS="$LIBS -L$X/lib64" |
63 |
|
ac_libs="$ac_libs -L$X/lib64" |
64 |
|
fi |
65 |
if test -d $X/lib; then |
if test -d $X/lib; then |
66 |
LIBS="$LIBS -L$X/lib" |
LIBS="$LIBS -L$X/lib" |
67 |
ac_libs="-L$X/lib $ac_libs" |
ac_libs="-L$X/lib $ac_libs" |
79 |
|
|
80 |
CFLAGS="$CFLAGS -I$QTDIR/include" |
CFLAGS="$CFLAGS -I$QTDIR/include" |
81 |
CPPFLAGS="$CPPFLAGS -I$QTDIR/include" |
CPPFLAGS="$CPPFLAGS -I$QTDIR/include" |
82 |
LIBS="$LIBS -L$QTDIR/lib" |
if test -d $QTDIR/lib64; then |
83 |
|
LIBS="$LIBS -L$QTDIR/lib64" |
84 |
|
else |
85 |
|
LIBS="$LIBS -L$QTDIR/lib" |
86 |
|
fi |
87 |
for X in qt qt3; do |
for X in qt qt3; do |
88 |
if test -d $QTDIR/include/$X; then |
if test -d $QTDIR/include/$X; then |
89 |
CFLAGS="$CFLAGS -I$QTDIR/include/$X" |
CFLAGS="$CFLAGS -I$QTDIR/include/$X" |
193 |
AC_DEFINE(CONFIG_MUTE_SOLO, 1, [Define if mute/solo is available.]) |
AC_DEFINE(CONFIG_MUTE_SOLO, 1, [Define if mute/solo is available.]) |
194 |
fi |
fi |
195 |
|
|
196 |
|
AC_CHECK_LIB(lscp, lscp_map_midi_instrument, [ac_midi_instrument="yes"], [ac_midi_instrument="no"]) |
197 |
|
if test "x$ac_midi_instrument" = "xyes"; then |
198 |
|
AC_DEFINE(CONFIG_MIDI_INSTRUMENT, 1, [Define if MIDI instrument mapping is available.]) |
199 |
|
fi |
200 |
|
|
201 |
|
AC_CHECK_LIB(lscp, lscp_create_fxsend, [ac_fxsend="yes"], [ac_fxsend="no"]) |
202 |
|
if test "x$ac_fxsend" = "xyes"; then |
203 |
|
AC_DEFINE(CONFIG_FXSEND, 1, [Define if FX sends is available.]) |
204 |
|
fi |
205 |
|
|
206 |
|
AC_CACHE_CHECK([for audio_routing array type], |
207 |
|
ac_audio_routing, [ |
208 |
|
AC_TRY_COMPILE([#include "lscp/client.h"], [ |
209 |
|
lscp_channel_info_t info; |
210 |
|
char ch = info.audio_routing[0][0]; |
211 |
|
], ac_audio_routing="no", ac_audio_routing="yes") |
212 |
|
]) |
213 |
|
if test "x$ac_audio_routing" = "xyes"; then |
214 |
|
AC_DEFINE(CONFIG_AUDIO_ROUTING, 1, [Define if audio_routing is an integer array.]) |
215 |
|
fi |
216 |
|
|
217 |
# Check for optional libraries. |
# Check for optional libraries. |
218 |
if test "x$ac_libgig" = "xyes"; then |
if test "x$ac_libgig" = "xyes"; then |
219 |
AC_CHECK_LIB(gig, main, [ac_libgig="yes"], [ac_libgig="no"]) |
AC_CHECK_LIB(gig, main, [ac_libgig="yes"], [ac_libgig="no"]) |
223 |
fi |
fi |
224 |
fi |
fi |
225 |
|
|
226 |
|
# Check for round math function. |
227 |
|
AC_CHECK_LIB(m, lroundf, [ac_round="yes"], [ac_round="no"]) |
228 |
|
if test "x$ac_round" = "xyes"; then |
229 |
|
AC_DEFINE(CONFIG_ROUND, 1, [Define if round is available.]) |
230 |
|
fi |
231 |
|
|
232 |
AC_SUBST(ac_libs) |
AC_SUBST(ac_libs) |
233 |
AC_SUBST(ac_incpath) |
AC_SUBST(ac_incpath) |
234 |
|
|