/[svn]/qsampler/trunk/configure.ac
ViewVC logotype

Diff of /qsampler/trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1691 by schoenebeck, Thu Feb 14 22:31:26 2008 UTC revision 1890 by capela, Tue Apr 28 09:06:43 2009 UTC
# Line 1  Line 1 
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.2.1.6, rncbc@rncbc.org, qsampler)  AC_INIT(Qsampler, 0.2.1.26, rncbc@rncbc.org, qsampler)
3    
4  AC_CONFIG_SRCDIR(src/qsamplerMainForm.ui)  AC_CONFIG_SRCDIR(src/qsamplerMainForm.ui)
5  AC_CONFIG_HEADERS(config.h)  AC_CONFIG_HEADERS(config.h)
# Line 37  AC_ARG_ENABLE(libgig, Line 37  AC_ARG_ENABLE(libgig,
37  ac_with_paths="/usr /usr/local"  ac_with_paths="/usr /usr/local"
38    
39  # Some a-la-debian alternatives...  # Some a-la-debian alternatives...
40  for X in /usr/lib /usr/share; do  for X in /usr/lib /usr/lib64 /usr/share; do
41    for Y in qt qt4; do    for Y in qt qt4; do
42      if test -d $X/$Y/bin; then      if test -d $X/$Y/bin; then
43        ac_with_paths="$ac_with_paths $X/$Y"        ac_with_paths="$ac_with_paths $X/$Y"
# Line 104  done Line 104  done
104    
105  # Check for proper Qt version.  # Check for proper Qt version.
106  AC_CACHE_CHECK([for Qt library version >= 4.1],  AC_CACHE_CHECK([for Qt library version >= 4.1],
107    ac_qtlib_version, [    ac_cv_qtversion, [
108    AC_TRY_LINK([#include "Qt/qglobal.h"], [    AC_TRY_LINK([#include "Qt/qglobal.h"], [
109  #if QT_VERSION < 0x040100  #if QT_VERSION < 0x040100
110  #error Qt library 4.1 or greater required.  #error Qt library 4.1 or greater required.
111  #endif  #endif
112      ],      ], ac_cv_qtversion="yes", [
     ac_qtlib_version="yes", [  
113        echo "no; Qt 4.1 or greater is required"        echo "no; Qt 4.1 or greater is required"
114        exit        exit
115      ])      ])
# Line 140  if test "x$ac_uic" = "xno"; then Line 139  if test "x$ac_uic" = "xno"; then
139  fi  fi
140  AC_SUBST(ac_uic)  AC_SUBST(ac_uic)
141    
142    # Check for Qt lupdate utility.
143    AC_PATH_PROG(ac_lupdate, lupdate, [no], $ac_path)
144    if test "x$ac_lupdate" = "xno"; then
145       AC_MSG_ERROR([lupdate $ac_errmsg])
146    fi
147    AC_SUBST(ac_lupdate)
148    
149    # Check for Qt lrelease utility.
150    AC_PATH_PROG(ac_lrelease, lrelease, [no], $ac_path)
151    if test "x$ac_release" = "xno"; then
152       AC_MSG_ERROR([lrelease $ac_errmsg])
153    fi
154    AC_SUBST(ac_lrelease)
155    
156  # Checks for libraries.  # Checks for libraries.
157  AC_CHECK_LIB(m, main)  AC_CHECK_LIB(m, main)
158  AC_CHECK_LIB(X11, main)  AC_CHECK_LIB(X11, main)
# Line 159  fi Line 172  fi
172  ac_libs="$ac_libs -llscp"  ac_libs="$ac_libs -llscp"
173    
174  AC_CACHE_CHECK([for instrument_name in lscp_channel_info_t],  AC_CACHE_CHECK([for instrument_name in lscp_channel_info_t],
175    ac_instrument_name, [    ac_cv_instrument_name, [
176    AC_TRY_COMPILE([#include "lscp/client.h"], [    AC_TRY_COMPILE([#include "lscp/client.h"], [
177          lscp_channel_info_t info;          lscp_channel_info_t info;
178          info.instrument_name = 0;          info.instrument_name = 0;
179      ], ac_instrument_name="yes", ac_instrument_name="no")      ], ac_cv_instrument_name="yes", ac_cv_instrument_name="no")
180  ])  ])
181    ac_instrument_name=$ac_cv_instrument_name
182  if test "x$ac_instrument_name" = "xyes"; then  if test "x$ac_instrument_name" = "xyes"; then
183     AC_DEFINE(CONFIG_INSTRUMENT_NAME, 1, [Define if instrument_name is available.])     AC_DEFINE(CONFIG_INSTRUMENT_NAME, 1, [Define if instrument_name is available.])
184  fi  fi
185    
186  AC_CACHE_CHECK([for mute/solo in lscp_channel_info_t],  AC_CACHE_CHECK([for mute/solo in lscp_channel_info_t],
187    ac_mute_solo, [    ac_cv_mute_solo, [
188    AC_TRY_COMPILE([#include "lscp/client.h"], [    AC_TRY_COMPILE([#include "lscp/client.h"], [
189          lscp_channel_info_t info;          lscp_channel_info_t info;
190          info.mute = 0;          info.mute = 0;
191          info.solo = 0;          info.solo = 0;
192      ], ac_mute_solo="yes", ac_mute_solo="no")      ], ac_cv_mute_solo="yes", ac_cv_mute_solo="no")
193  ])  ])
194    ac_mute_solo=$ac_cv_mute_solo
195  if test "x$ac_mute_solo" = "xyes"; then  if test "x$ac_mute_solo" = "xyes"; then
196     AC_CHECK_LIB(lscp, lscp_set_channel_mute, [ac_mute_solo="yes"], [ac_mute_solo="no"])     AC_CHECK_LIB(lscp, lscp_set_channel_mute, [ac_mute_solo="yes"], [ac_mute_solo="no"])
197  fi  fi
# Line 196  AC_CHECK_LIB(lscp, lscp_create_fxsend, [ Line 211  AC_CHECK_LIB(lscp, lscp_create_fxsend, [
211  if test "x$ac_fxsend" = "xyes"; then  if test "x$ac_fxsend" = "xyes"; then
212    AC_DEFINE(CONFIG_FXSEND, 1, [Define if FX sends is available.])    AC_DEFINE(CONFIG_FXSEND, 1, [Define if FX sends is available.])
213    AC_CACHE_CHECK([for FX send level in lscp_fxsend_info_t],    AC_CACHE_CHECK([for FX send level in lscp_fxsend_info_t],
214      ac_fxsend_level, [      ac_cv_fxsend_level, [
215      AC_TRY_COMPILE([#include "lscp/client.h"], [      AC_TRY_COMPILE([#include "lscp/client.h"], [
216            lscp_fxsend_info_t info;            lscp_fxsend_info_t info;
217            info.level = 0.0f;            info.level = 0.0f;
218        ], ac_fxsend_level="yes", ac_fxsend_level="no")        ], ac_cv_fxsend_level="yes", ac_cv_fxsend_level="no")
219    ])    ])
220      ac_fxsend_level=$ac_cv_fxsend_level
221    if test "x$ac_fxsend_level" = "xyes"; then    if test "x$ac_fxsend_level" = "xyes"; then
222            AC_DEFINE(CONFIG_FXSEND_LEVEL, 1, [Define if FX send level is available.])            AC_DEFINE(CONFIG_FXSEND_LEVEL, 1, [Define if FX send level is available.])
223    fi    fi
# Line 212  if test "x$ac_fxsend" = "xyes"; then Line 228  if test "x$ac_fxsend" = "xyes"; then
228  fi  fi
229    
230  AC_CACHE_CHECK([for audio_routing array type],  AC_CACHE_CHECK([for audio_routing array type],
231    ac_audio_routing, [    ac_cv_audio_routing, [
232    AC_TRY_COMPILE([#include "lscp/client.h"], [    AC_TRY_COMPILE([#include "lscp/client.h"], [
233      lscp_channel_info_t info;      lscp_channel_info_t info;
234      char ch = info.audio_routing[0][0];      char ch = info.audio_routing[0][0];
235      ], ac_audio_routing="no", ac_audio_routing="yes")      ], ac_cv_audio_routing="no", ac_cv_audio_routing="yes")
236  ])  ])
237    ac_audio_routing=$ac_cv_audio_routing
238  if test "x$ac_audio_routing" = "xyes"; then  if test "x$ac_audio_routing" = "xyes"; then
239     AC_DEFINE(CONFIG_AUDIO_ROUTING, 1, [Define if audio_routing is an integer array.])     AC_DEFINE(CONFIG_AUDIO_ROUTING, 1, [Define if audio_routing is an integer array.])
240  fi  fi
# Line 233  if test "x$ac_edit_instrument" = "xyes"; Line 250  if test "x$ac_edit_instrument" = "xyes";
250  fi  fi
251    
252  AC_CACHE_CHECK([for CHANNEL_MIDI LSCP event support in liblscp],  AC_CACHE_CHECK([for CHANNEL_MIDI LSCP event support in liblscp],
253    ac_lscp_channel_midi_event, [    ac_cv_channel_midi_event, [
254    AC_TRY_COMPILE([    AC_TRY_COMPILE([
255          #include "lscp/client.h"          #include "lscp/client.h"
256          #include "lscp/event.h"          #include "lscp/event.h"
257          ], [          ], [
258          lscp_event_t ev;          lscp_event_t ev;
259          ev = LSCP_EVENT_CHANNEL_MIDI;          ev = LSCP_EVENT_CHANNEL_MIDI;
260      ], ac_lscp_channel_midi_event="yes", ac_lscp_channel_midi_event="no")      ], ac_cv_channel_midi_event="yes", ac_cv_channel_midi_event="no")
261    ])
262    ac_channel_midi_event=$ac_cv_channel_midi_event
263    if test "x$ac_channel_midi_event" = "xyes"; then
264       AC_DEFINE(CONFIG_EVENT_CHANNEL_MIDI, 1, [Define if LSCP CHANNEL_MIDI event support is available.])
265    fi
266    
267    AC_CACHE_CHECK([for DEVICE_MIDI LSCP event support in liblscp],
268      ac_cv_device_midi_event, [
269      AC_TRY_COMPILE([
270            #include "lscp/client.h"
271            #include "lscp/event.h"
272            ], [
273            lscp_event_t ev;
274            ev = LSCP_EVENT_DEVICE_MIDI;
275        ], ac_cv_device_midi_event="yes", ac_cv_device_midi_event="no")
276  ])  ])
277  if test "x$ac_lscp_channel_midi_event" = "xyes"; then  ac_device_midi_event=$ac_cv_device_midi_event
278     AC_DEFINE(CONFIG_LSCP_CHANNEL_MIDI, 1, [Define if LSCP CHANNEL_MIDI event support is available.])  if test "x$ac_device_midi_event" = "xyes"; then
279       AC_DEFINE(CONFIG_EVENT_DEVICE_MIDI, 1, [Define if LSCP DEVICE_MIDI event support is available.])
280    fi
281    
282    AC_CHECK_LIB(lscp, lscp_get_voices, [ac_max_voices="yes"], [ac_max_voices="no"])
283    if test "x$ac_max_voices" = "xyes"; then
284      AC_DEFINE(CONFIG_MAX_VOICES, 1, [Define if max. voices / streams is available.])
285  fi  fi
286    
287  # Check for optional libraries.  # Check for optional libraries.
# Line 327  echo "  GigaSampler instrument file supp Line 365  echo "  GigaSampler instrument file supp
365  if test "x$ac_libgig" = "xyes"; then  if test "x$ac_libgig" = "xyes"; then
366  echo "  libgig supports fast information retrieval . . . .: $have_libgig_setautoload"  echo "  libgig supports fast information retrieval . . . .: $have_libgig_setautoload"
367  fi  fi
368  echo "  LSCP channel MIDI event support  . . . . . . . . .: $ac_lscp_channel_midi_event"  echo "  LSCP channel MIDI event support  . . . . . . . . .: $ac_channel_midi_event"
369    echo "  LSCP device MIDI event support . . . . . . . . . .: $ac_device_midi_event"
370    echo "  LSCP runtime max. voices / disk streams support  .: $ac_max_voices"
371  echo  echo
372  echo "  Install prefix . . . . . . . . . . . . . . . . . .: $ac_prefix"  echo "  Install prefix . . . . . . . . . . . . . . . . . .: $ac_prefix"
373  echo  echo

Legend:
Removed from v.1691  
changed lines
  Added in v.1890

  ViewVC Help
Powered by ViewVC