/[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 1639 by schoenebeck, Sat Jan 12 14:13: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
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=3
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.])
# Line 52  AC_SUBST(target_cpu) Line 52  AC_SUBST(target_cpu)
52  AC_SUBST(target_os)  AC_SUBST(target_os)
53  AC_SUBST(target_vendor)  AC_SUBST(target_vendor)
54    
55    PKG_PROG_PKG_CONFIG
56    
57  ###########################################################################  ###########################################################################
58  # General Checks  # General Checks
# Line 79  if ! echo "X $CXXFLAGS " | grep -q -- " Line 80  if ! echo "X $CXXFLAGS " | grep -q -- "
80  fi  fi
81  AC_SUBST([CXX_CPU_SWITCH])  AC_SUBST([CXX_CPU_SWITCH])
82    
83    # check if we're on MS Windows
84    AC_CHECK_HEADERS(
85        mmsystem.h,
86        have_windows=1,
87        have_windows=0
88    )
89    AM_CONDITIONAL(HAVE_WINDOWS, test $have_windows = "1")
90    
91  AC_MSG_CHECKING([whether UNIX98 compatible])  AC_MSG_CHECKING([whether UNIX98 compatible])
92  AC_LANG_SAVE  AC_LANG_SAVE
93  AC_LANG_C  AC_LANG_C
# Line 101  have_unix98="no" Line 110  have_unix98="no"
110  )  )
111  AC_LANG_RESTORE  AC_LANG_RESTORE
112  AC_MSG_RESULT([$have_unix98])  AC_MSG_RESULT([$have_unix98])
113  if test "$have_unix98" = "no"; then  if test "$have_unix98" = "no" -a "have_windows" = "0"; then
114      if test "x$HAVE_UNIX98" = "x"; then      if test "x$HAVE_UNIX98" = "x"; then
115          echo "LinuxSampler only runs on UNIX98 compatible systems, which is mandatory for"          echo "LinuxSampler only runs on UNIX98 compatible systems, which is mandatory for"
116          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 123  fi
123  # check for <features.h>  # check for <features.h>
124  AC_CHECK_HEADERS(features.h)  AC_CHECK_HEADERS(features.h)
125    
126    # test for POSIX thread library
127    m4_ifdef([m4_include(m4/pthread.m4)],,
128                 [sinclude([m4/pthread.m4])])
129    ACX_PTHREAD
130    LIBS="$PTHREAD_LIBS $LIBS"
131    CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
132    CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
133    CC="$PTHREAD_CC"
134    
135    # check for a bug in NPTL-enabled glibc
136    # (see Gentoo bug report #194076)
137    AC_ARG_ENABLE(nptl-bug-check,
138      [  --disable-nptl-bug-check
139                              Disable check for a bug in certain NPTL-enabled
140                              glibc versions that caused crashs.],
141      [config_check_nptl_bug="$enableval"],
142      [config_check_nptl_bug="yes"]
143    )
144    if test "$config_check_nptl_bug" = "yes"; then
145        m4_ifdef([m4_include(m4/nptl_bug.m4)],,
146                 [sinclude([m4/nptl_bug.m4])])
147        ACX_NPTL_GLIBC_BUG([
148            echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
149            echo "You seem to have a buggy PTHREAD library! LinuxSampler would"
150            echo "probably crash due to this. Please report us the system you are"
151            echo "using and/or file a bug report to the bug tracking system of"
152            echo "your distribution."
153            echo "If you have a NPTL-enabled glibc AND it was compiled for TLS as"
154            echo "well, you can try to circumvent this problem for now by setting"
155            echo "the environment variable LD_ASSUME_KERNEL=\"2.4.1\" , which"
156            echo "should cause this test to pass."
157            echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
158            AC_MSG_ERROR([possibly NPTL glibc bug detected])
159        ])
160    else
161        echo "NPTL glibc bug check disabled"
162    fi
163    
164    
165    
166  ###########################################################################  ###########################################################################
167  # Checks for available audio and MIDI systems / drivers  # Checks for available audio and MIDI systems / drivers
# Line 247  fi Line 295  fi
295  AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")  AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")
296  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.])
297    
298    # ASIO AUDIO (Win32)
299    AC_ARG_ENABLE(asiosdk-dir,
300      [  --enable-asiosdk-dir
301                              Directory where the ASIO SDK is located, this automatically
302                              enables the compilation of the ASIO audio output driver.],
303      [config_asiosdk_dir="${enableval}"],
304      [config_asiosdk_dir="."]
305    )
306    AC_SUBST(config_asiosdk_dir)
307    
308    AC_ARG_ENABLE(asio-driver,
309      [  --disable-asio-driver
310                              Disable support for the Windows ASIO driver.],
311      [config_asio_driver="$enableval"],
312      [config_asio_driver="yes"]
313    )
314    have_asio=0
315    ASIOSDK_BASEDIR=
316    if test "$config_asio_driver" = "yes"; then
317        asiosdk_headerfile=$config_asiosdk_dir/ASIOSDK2/common/asio.h
318        echo -n "checking for ASIO headerfile: $asiosdk_headerfile ...."
319        if test -e $asiosdk_headerfile ; then
320            echo yes
321            have_asio=1
322            ASIOSDK_BASEDIR="$config_asiosdk_dir"
323        else
324            echo no
325            have_asio=0
326        fi
327        if test "$have_asio" = "1"; then
328            have_audio_output_driver="true"
329        fi
330    else
331        echo "Windows ASIO support disabled by configure script parameter"
332    fi
333    AC_SUBST(ASIOSDK_BASEDIR)
334    AM_CONDITIONAL(HAVE_ASIO, test $have_asio = "1")
335    AC_DEFINE_UNQUOTED(HAVE_ASIO,$have_asio,[Define to 1 if you have ASIO installed.])
336    
337  # MidiShare (Linux, OS X, Windows)  # MidiShare (Linux, OS X, Windows)
338  AC_ARG_ENABLE(midishare-driver,  AC_ARG_ENABLE(midishare-driver,
339    [  --disable-midishare-driver    [  --disable-midishare-driver
# Line 295  fi Line 382  fi
382  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")
383  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.])
384    
385    # MME MIDI (Win32)
386    AC_ARG_ENABLE(mmemidi-driver,
387      [  --disable-mmemidi-driver
388                              Disable support for the Windows MME MIDI system.],
389      [config_mmemidi_driver="$enableval"],
390      [config_mmemidi_driver="yes"]
391    )
392    have_mmemidi=0
393    if test "$config_mmemidi_driver" = "yes"; then
394        AC_CHECK_HEADERS(mmsystem.h,
395            have_mmemidi=1,
396            have_mmemidi=0
397        )
398        if test "$have_mmemidi" = "1"; then
399            have_midi_input_driver="true"
400        fi
401    else
402        echo "MME MIDI support disabled by configure script parameter"
403    fi
404    AM_CONDITIONAL(HAVE_MME_MIDI, test $have_mmemidi = "1")
405    AC_DEFINE_UNQUOTED(HAVE_MME_MIDI,$have_mmemidi,[Define to 1 if you have MME MIDI installed.])
406    
407  # 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 ?
408  if test "$have_midi_input_driver" = "false"; then  if test "$have_midi_input_driver" = "false"; then
409      echo "No supported MIDI input system found!"      echo "No supported MIDI input system found!"
# Line 317  fi Line 426  fi
426  # Checks for various DLL libraries  # Checks for various DLL libraries
427    
428  # Check presence of libgig  # Check presence of libgig
429  libgig_version="3.1.1"  libgig_version="3.2.1"
430  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)
431  if test "$HAVE_GIG" = "false"; then  if test "$HAVE_GIG" = "false"; then
432      echo "Required libgig version not found!"      echo "Required libgig version not found!"
# Line 384  if test "$config_asm" = "yes"; then Line 493  if test "$config_asm" = "yes"; then
493  fi  fi
494    
495  AC_ARG_ENABLE(dev-mode,  AC_ARG_ENABLE(dev-mode,
496    [  --disable-dev-mode    [  --enable-dev-mode
497                            Disable development mode (default=on). In that mode                            Enable development mode (default=off). In that mode
498                            we do some extra sanity checks here and there.                            we do some extra sanity checks here and there.
499                            This helps to spot possible problems, but reduces                            This helps to spot possible problems, but reduces
500                            efficiency a bit],                            efficiency a bit],
501    [config_dev_mode="$enableval"],    [config_dev_mode="$enableval"],
502    [config_dev_mode="yes"]    [config_dev_mode="no"]
503  )  )
504  if test "$config_dev_mode" = "yes"; then  if test "$config_dev_mode" = "yes"; then
505    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 875  AC_DEFINE_UNQUOTED( Line 984  AC_DEFINE_UNQUOTED(
984      "$config_default_instruments_db_file",      "$config_default_instruments_db_file",
985      [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.]
986  )  )
987    AC_SUBST(config_default_instruments_db_file)
988    
989    
990  ###########################################################################  ###########################################################################

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

  ViewVC Help
Powered by ViewVC