/[svn]/linuxsampler/trunk/configure.in
ViewVC logotype

Diff of /linuxsampler/trunk/configure.in

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

revision 1399 by schoenebeck, Thu Oct 11 18:53:29 2007 UTC revision 1741 by schoenebeck, Wed May 28 03:44:46 2008 UTC
# Line 4  AC_INIT(configure.in) Line 4  AC_INIT(configure.in)
4  # LinuxSampler's / liblinuxsampler's "official" release version:  # LinuxSampler's / liblinuxsampler's "official" release version:
5    
6  LINUXSAMPLER_RELEASE_MAJOR=0  LINUXSAMPLER_RELEASE_MAJOR=0
7  LINUXSAMPLER_RELEASE_MINOR=4  LINUXSAMPLER_RELEASE_MINOR=5
8  LINUXSAMPLER_RELEASE_BUILD=0.8cvs  LINUXSAMPLER_RELEASE_BUILD=1.5cvs
9    
10  #------------------------------------------------------------------------------------  #------------------------------------------------------------------------------------
11  # 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
# Line 24  LINUXSAMPLER_RELEASE_BUILD=0.8cvs Line 24  LINUXSAMPLER_RELEASE_BUILD=0.8cvs
24  #  6. If any interfaces have been removed since the last public release, then set age  #  6. If any interfaces have been removed since the last public release, then set age
25  #     to 0.  #     to 0.
26    
27  LIBLINUXSAMPLER_LT_CURRENT=0  LIBLINUXSAMPLER_LT_CURRENT=2
28  LIBLINUXSAMPLER_LT_REVISION=0  LIBLINUXSAMPLER_LT_REVISION=0
29  LIBLINUXSAMPLER_LT_AGE=0  LIBLINUXSAMPLER_LT_AGE=1
30  SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT_CURRENT:$LIBLINUXSAMPLER_LT_REVISION:$LIBLINUXSAMPLER_LT_AGE"  SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT_CURRENT:$LIBLINUXSAMPLER_LT_REVISION:$LIBLINUXSAMPLER_LT_AGE"
31    
32  #------------------------------------------------------------------------------------  #------------------------------------------------------------------------------------
33  # the LSCP specification version this LinuSampler release complies with:  # the LSCP specification version this LinuSampler release complies with:
34    
35  LSCP_RELEASE_MAJOR=1  LSCP_RELEASE_MAJOR=1
36  LSCP_RELEASE_MINOR=2  LSCP_RELEASE_MINOR=4
37    
38  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, ${LSCP_RELEASE_MAJOR}, [LSCP spec major version this release complies with.])  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, ${LSCP_RELEASE_MAJOR}, [LSCP spec major version this release complies with.])
39  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MINOR, ${LSCP_RELEASE_MINOR}, [LSCP spec minor version this release complies with.])  AC_DEFINE_UNQUOTED(LSCP_RELEASE_MINOR, ${LSCP_RELEASE_MINOR}, [LSCP spec minor version this release complies with.])
40    
41    AC_PROG_CXX
42  AM_PROG_LIBTOOL  AM_PROG_LIBTOOL
43    
44  AC_SUBST(SHLIB_VERSION_ARG)  AC_SUBST(SHLIB_VERSION_ARG)
# Line 52  AC_SUBST(target_cpu) Line 53  AC_SUBST(target_cpu)
53  AC_SUBST(target_os)  AC_SUBST(target_os)
54  AC_SUBST(target_vendor)  AC_SUBST(target_vendor)
55    
56    PKG_PROG_PKG_CONFIG
57    
58  ###########################################################################  ###########################################################################
59  # General Checks  # General Checks
# Line 79  if ! echo "X $CXXFLAGS " | grep -q -- " Line 81  if ! echo "X $CXXFLAGS " | grep -q -- "
81  fi  fi
82  AC_SUBST([CXX_CPU_SWITCH])  AC_SUBST([CXX_CPU_SWITCH])
83    
84    # check if we're on MS Windows
85    AC_CHECK_HEADERS(
86        mmsystem.h,
87        have_windows=1,
88        have_windows=0
89    )
90    AM_CONDITIONAL(HAVE_WINDOWS, test $have_windows = "1")
91    
92  AC_MSG_CHECKING([whether UNIX98 compatible])  AC_MSG_CHECKING([whether UNIX98 compatible])
93  AC_LANG_SAVE  AC_LANG_SAVE
94  AC_LANG_C  AC_LANG_C
# Line 101  have_unix98="no" Line 111  have_unix98="no"
111  )  )
112  AC_LANG_RESTORE  AC_LANG_RESTORE
113  AC_MSG_RESULT([$have_unix98])  AC_MSG_RESULT([$have_unix98])
114  if test "$have_unix98" = "no"; then  if test "$have_unix98" = "no" -a "have_windows" = "0"; then
115      if test "x$HAVE_UNIX98" = "x"; then      if test "x$HAVE_UNIX98" = "x"; then
116          echo "LinuxSampler only runs on UNIX98 compatible systems, which is mandatory for"          echo "LinuxSampler only runs on UNIX98 compatible systems, which is mandatory for"
117          echo "pthread_mutexattr_settype() call in Mutex.cpp. You may want to run          echo "pthread_mutexattr_settype() call in Mutex.cpp. You may want to run
# Line 114  fi Line 124  fi
124  # check for <features.h>  # check for <features.h>
125  AC_CHECK_HEADERS(features.h)  AC_CHECK_HEADERS(features.h)
126    
127    # test for POSIX thread library
128    m4_ifdef([m4_include(m4/pthread.m4)],,
129                 [sinclude([m4/pthread.m4])])
130    ACX_PTHREAD
131    LIBS="$PTHREAD_LIBS $LIBS"
132    CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
133    CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
134    CC="$PTHREAD_CC"
135    
136    # check for a bug in NPTL-enabled glibc
137    # (see Gentoo bug report #194076)
138    AC_ARG_ENABLE(nptl-bug-check,
139      [  --disable-nptl-bug-check
140                              Disable check for a bug in certain NPTL-enabled
141                              glibc versions that caused crashs.],
142      [config_check_nptl_bug="$enableval"],
143      [config_check_nptl_bug="yes"]
144    )
145    if test "$config_check_nptl_bug" = "yes"; then
146        m4_ifdef([m4_include(m4/nptl_bug.m4)],,
147                 [sinclude([m4/nptl_bug.m4])])
148        ACX_NPTL_GLIBC_BUG([
149            echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
150            echo "You seem to have a buggy PTHREAD library! LinuxSampler would"
151            echo "probably crash due to this. Please report us the system you are"
152            echo "using and/or file a bug report to the bug tracking system of"
153            echo "your distribution."
154            echo "If you have a NPTL-enabled glibc AND it was compiled for TLS as"
155            echo "well, you can try to circumvent this problem for now by setting"
156            echo "the environment variable LD_ASSUME_KERNEL=\"2.4.1\" , which"
157            echo "should cause this test to pass."
158            echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
159            AC_MSG_ERROR([possibly NPTL glibc bug detected])
160        ])
161    else
162        echo "NPTL glibc bug check disabled"
163    fi
164    
165    
166    
167  ###########################################################################  ###########################################################################
168  # Checks for available audio and MIDI systems / drivers  # Checks for available audio and MIDI systems / drivers
# Line 225  fi Line 274  fi
274  AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1")  AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1")
275  AC_DEFINE_UNQUOTED(HAVE_JACK,$have_jack,[Define to 1 if you have JACK installed.])  AC_DEFINE_UNQUOTED(HAVE_JACK,$have_jack,[Define to 1 if you have JACK installed.])
276    
277    # JACK MIDI
278    have_jack_midi=0
279    if test $have_jack = "1"; then
280        linuxsampler_save_CFLAGS=$CFLAGS
281        linuxsampler_save_LIBS=$LIBS
282        CFLAGS="$JACK_CFLAGS $CFLAGS"
283        LIBS="$JACK_LIBS $LIBS"
284        AC_CHECK_HEADER(jack/midiport.h, have_jack_midi=1, have_jack_midi=0)
285        if test $have_jack_midi = "1"; then
286            AC_CHECK_FUNCS(jack_midi_get_event_count)
287            AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <jack/midiport.h>]], [[
288                jack_midi_clear_buffer(0, 0);
289            ]])], [AC_DEFINE(JACK_MIDI_FUNCS_NEED_NFRAMES, 1,
290                      [Define to 1 if you have the old jack midi functions that need an nframes argument.])])
291            have_midi_input_driver="true"
292        fi
293        CFLAGS=$linuxsampler_save_CFLAGS
294        LIBS=$linuxsampler_save_LIBS
295    fi
296    AM_CONDITIONAL(HAVE_JACK_MIDI, test $have_jack_midi = "1")
297    AC_DEFINE_UNQUOTED(HAVE_JACK_MIDI, $have_jack_midi,
298                       [Define to 1 if you have JACK with MIDI support installed.])
299    
300  # ARTS  # ARTS
301  AC_ARG_ENABLE(arts-driver,  AC_ARG_ENABLE(arts-driver,
302    [  --disable-arts-driver    [  --disable-arts-driver
# Line 247  fi Line 319  fi
319  AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")  AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")
320  AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,[Define to 1 if you have aRts installed.])  AC_DEFINE_UNQUOTED(HAVE_ARTS,$have_arts,[Define to 1 if you have aRts installed.])
321    
322    # ASIO AUDIO (Win32)
323    AC_ARG_ENABLE(asiosdk-dir,
324      [  --enable-asiosdk-dir
325                              Directory where the ASIO SDK is located, this automatically
326                              enables the compilation of the ASIO audio output driver.],
327      [config_asiosdk_dir="${enableval}"],
328      [config_asiosdk_dir="."]
329    )
330    AC_SUBST(config_asiosdk_dir)
331    
332    AC_ARG_ENABLE(asio-driver,
333      [  --disable-asio-driver
334                              Disable support for the Windows ASIO driver.],
335      [config_asio_driver="$enableval"],
336      [config_asio_driver="yes"]
337    )
338    have_asio=0
339    ASIOSDK_BASEDIR=
340    if test "$config_asio_driver" = "yes"; then
341        asiosdk_headerfile=$config_asiosdk_dir/ASIOSDK2/common/asio.h
342        echo -n "checking for ASIO headerfile: $asiosdk_headerfile ...."
343        if test -e $asiosdk_headerfile ; then
344            echo yes
345            have_asio=1
346            ASIOSDK_BASEDIR="$config_asiosdk_dir"
347        else
348            echo no
349            have_asio=0
350        fi
351        if test "$have_asio" = "1"; then
352            have_audio_output_driver="true"
353        fi
354    else
355        echo "Windows ASIO support disabled by configure script parameter"
356    fi
357    AC_SUBST(ASIOSDK_BASEDIR)
358    AM_CONDITIONAL(HAVE_ASIO, test $have_asio = "1")
359    AC_DEFINE_UNQUOTED(HAVE_ASIO,$have_asio,[Define to 1 if you have ASIO installed.])
360    
361  # MidiShare (Linux, OS X, Windows)  # MidiShare (Linux, OS X, Windows)
362  AC_ARG_ENABLE(midishare-driver,  AC_ARG_ENABLE(midishare-driver,
363    [  --disable-midishare-driver    [  --disable-midishare-driver
# Line 295  fi Line 406  fi
406  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")
407  AC_DEFINE_UNQUOTED(HAVE_COREMIDI,$have_coremidi,[Define to 1 if you have CoreMIDI installed.])  AC_DEFINE_UNQUOTED(HAVE_COREMIDI,$have_coremidi,[Define to 1 if you have CoreMIDI installed.])
408    
409    # MME MIDI (Win32)
410    AC_ARG_ENABLE(mmemidi-driver,
411      [  --disable-mmemidi-driver
412                              Disable support for the Windows MME MIDI system.],
413      [config_mmemidi_driver="$enableval"],
414      [config_mmemidi_driver="yes"]
415    )
416    have_mmemidi=0
417    if test "$config_mmemidi_driver" = "yes"; then
418        AC_CHECK_HEADERS(mmsystem.h,
419            have_mmemidi=1,
420            have_mmemidi=0
421        )
422        if test "$have_mmemidi" = "1"; then
423            have_midi_input_driver="true"
424        fi
425    else
426        echo "MME MIDI support disabled by configure script parameter"
427    fi
428    AM_CONDITIONAL(HAVE_MME_MIDI, test $have_mmemidi = "1")
429    AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_mmemidi,[Define to 1 if you have MME MIDI installed.])
430    
431  # have we found at least one MIDI input and one audio output driver ?  # have we found at least one MIDI input and one audio output driver ?
432  if test "$have_midi_input_driver" = "false"; then  if test "$have_midi_input_driver" = "false"; then
433      echo "No supported MIDI input system found!"      echo "No supported MIDI input system found!"
434      echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"      echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"
435      echo "ALSA, MIDIShare, CoreMIDI."      echo "ALSA, JACK, MIDIShare, CoreMIDI, MME."
436      echo "If you think you have one of those available on your system, make sure you"      echo "If you think you have one of those available on your system, make sure you"
437      echo "also have the respective development (header) files installed."      echo "also have the respective development (header) files installed."
438      exit -1;      exit -1;
439  fi  fi
440  if test "$have_audio_output_driver" = "false"; then  if test "$have_audio_output_driver" = "false"; then
441      echo "No supported audio output system found!"      echo "No supported audio output system found!"
442      echo "Sorry, LinuxSampler only supports ALSA, JACK and ARTS as audio output"      echo "Sorry, LinuxSampler only supports ALSA, JACK, ARTS and ASIO as audio output"
443      echo "driver at the moment!"      echo "driver at the moment!"
444      exit -1;      exit -1;
445  fi  fi
# Line 317  fi Line 450  fi
450  # Checks for various DLL libraries  # Checks for various DLL libraries
451    
452  # Check presence of libgig  # Check presence of libgig
453  libgig_version="3.1.1"  libgig_version="3.2.1"
454  PKG_CHECK_MODULES(GIG, gig >= $libgig_version, HAVE_GIG=true, HAVE_GIG=false)  PKG_CHECK_MODULES(GIG, gig >= $libgig_version, HAVE_GIG=true, HAVE_GIG=false)
455  if test "$HAVE_GIG" = "false"; then  if test "$HAVE_GIG" = "false"; then
456      echo "Required libgig version not found!"      echo "Required libgig version not found!"
# Line 384  if test "$config_asm" = "yes"; then Line 517  if test "$config_asm" = "yes"; then
517  fi  fi
518    
519  AC_ARG_ENABLE(dev-mode,  AC_ARG_ENABLE(dev-mode,
520    [  --disable-dev-mode    [  --enable-dev-mode
521                            Disable development mode (default=on). In that mode                            Enable development mode (default=off). In that mode
522                            we do some extra sanity checks here and there.                            we do some extra sanity checks here and there.
523                            This helps to spot possible problems, but reduces                            This helps to spot possible problems, but reduces
524                            efficiency a bit],                            efficiency a bit],
525    [config_dev_mode="$enableval"],    [config_dev_mode="$enableval"],
526    [config_dev_mode="yes"]    [config_dev_mode="no"]
527  )  )
528  if test "$config_dev_mode" = "yes"; then  if test "$config_dev_mode" = "yes"; then
529    AC_DEFINE_UNQUOTED(CONFIG_DEVMODE, 1, [Define to 1 if you want to enable development mode.])    AC_DEFINE_UNQUOTED(CONFIG_DEVMODE, 1, [Define to 1 if you want to enable development mode.])
# Line 424  if test "$config_rt_exceptions" = "yes"; Line 557  if test "$config_rt_exceptions" = "yes";
557    AC_DEFINE_UNQUOTED(CONFIG_RT_EXCEPTIONS, 1, [Define to 1 to allow exceptions in the realtime context.])    AC_DEFINE_UNQUOTED(CONFIG_RT_EXCEPTIONS, 1, [Define to 1 to allow exceptions in the realtime context.])
558  fi  fi
559    
560    AC_ARG_ENABLE(pthread-testcancel,
561      [  --enable-pthread-testcancel
562                              Enable pthread_testcancel() calls and avoid asynchronous
563                              cancel of pthreads (default=no).],
564      [config_pthread_testcancel="$enableval"],
565      [config_pthread_testcancel="no"]
566    )
567    if test "$config_pthread_testcancel" = "yes"; then
568      AC_DEFINE_UNQUOTED(CONFIG_PTHREAD_TESTCANCEL, 1, [Define to 1 to enable pthread_testcancel() calls.])
569    fi
570    
571  AC_ARG_ENABLE(preload-samples,  AC_ARG_ENABLE(preload-samples,
572    [  --enable-preload-samples    [  --enable-preload-samples
573                            Due to seeking and latency issues with hard drives                            Due to seeking and latency issues with hard drives
# Line 875  AC_DEFINE_UNQUOTED( Line 1019  AC_DEFINE_UNQUOTED(
1019      "$config_default_instruments_db_file",      "$config_default_instruments_db_file",
1020      [Only when instruments DB feature is enabled: default location of the DB file.]      [Only when instruments DB feature is enabled: default location of the DB file.]
1021  )  )
1022    AC_SUBST(config_default_instruments_db_file)
1023    
1024    
1025  ###########################################################################  ###########################################################################
# Line 973  AM_CONFIG_HEADER(config.h) Line 1117  AM_CONFIG_HEADER(config.h)
1117  AM_INIT_AUTOMAKE(linuxsampler, "$LINUXSAMPLER_RELEASE_MAJOR.$LINUXSAMPLER_RELEASE_MINOR.$LINUXSAMPLER_RELEASE_BUILD")  AM_INIT_AUTOMAKE(linuxsampler, "$LINUXSAMPLER_RELEASE_MAJOR.$LINUXSAMPLER_RELEASE_MINOR.$LINUXSAMPLER_RELEASE_BUILD")
1118    
1119  AC_LANG_CPLUSPLUS  AC_LANG_CPLUSPLUS
 AC_PROG_CXX  
1120    
1121  # some gcc 4.0 versions need -msse for SSE register allocations  # some gcc 4.0 versions need -msse for SSE register allocations
1122  if test "$config_asm" = "yes"; then  if test "$config_asm" = "yes"; then
# Line 996  AC_OUTPUT( \ Line 1139  AC_OUTPUT( \
1139      src/engines/Makefile \      src/engines/Makefile \
1140      src/engines/gig/Makefile \      src/engines/gig/Makefile \
1141      src/engines/common/Makefile \      src/engines/common/Makefile \
1142        src/effects/Makefile \
1143      src/common/Makefile \      src/common/Makefile \
1144      src/testcases/Makefile \      src/testcases/Makefile \
1145      src/drivers/Makefile \      src/drivers/Makefile \

Legend:
Removed from v.1399  
changed lines
  Added in v.1741

  ViewVC Help
Powered by ViewVC