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

Diff of /linuxsampler/trunk/configure.ac

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

revision 849 by schoenebeck, Sat Mar 25 13:05:59 2006 UTC revision 1049 by schoenebeck, Wed Feb 28 06:53:42 2007 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=3  LINUXSAMPLER_RELEASE_MINOR=4
8  LINUXSAMPLER_RELEASE_BUILD=3cvs  LINUXSAMPLER_RELEASE_BUILD=0.4cvs
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 29  LIBLINUXSAMPLER_LT_REVISION=0 Line 29  LIBLINUXSAMPLER_LT_REVISION=0
29  LIBLINUXSAMPLER_LT_AGE=0  LIBLINUXSAMPLER_LT_AGE=0
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:
34    
35    LSCP_RELEASE_MAJOR=1
36    LSCP_RELEASE_MINOR=2
37    
38    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.])
40    
41  AM_PROG_LIBTOOL  AM_PROG_LIBTOOL
42    
43  AC_SUBST(SHLIB_VERSION_ARG)  AC_SUBST(SHLIB_VERSION_ARG)
# Line 64  CXX_CPU_SWITCH= Line 73  CXX_CPU_SWITCH=
73  if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then  if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then
74    if test "$def_arch_x86" = 1; then    if test "$def_arch_x86" = 1; then
75      CXX_CPU_SWITCH="-march=$target_cpu"      CXX_CPU_SWITCH="-march=$target_cpu"
76    elif test "$target_cpu" = "powerpc"; then    elif test "$target_cpu" = "ppc"; then
77      CXX_CPU_SWITCH="-arch=$target_cpu"      CXX_CPU_SWITCH="-arch=$target_cpu"
78    fi    fi
79  fi  fi
# Line 105  fi Line 114  fi
114  # check for <features.h>  # check for <features.h>
115  AC_CHECK_HEADERS(features.h)  AC_CHECK_HEADERS(features.h)
116    
117    
118    ###########################################################################
119  # Checks for available audio and MIDI systems / drivers  # Checks for available audio and MIDI systems / drivers
120  # (we throw an error if there's not at least one system for audio output and MIDI input available)  # (we throw an error if there's not at least one system for audio output and MIDI input available)
121    
122  have_midi_input_driver="false"  have_midi_input_driver="false"
123  have_audio_output_driver="false"  have_audio_output_driver="false"
124    
125  AC_CHECK_HEADER(alsa/asoundlib.h,  # ALSA
126      AC_CHECK_LIB(asound, main,  AC_ARG_ENABLE(alsa-driver,
127                               have_alsa=1    [  --disable-alsa-driver
128                               ,                            Disable support for the Advanced Linux Sound
129                               have_alsa=0                            Architecture (ALSA).],
130                  )    [config_alsa_driver="no"],
131                  ,    [config_alsa_driver="yes"]
132                  have_alsa=0  )
133  )  have_alsa=0
134  if test "$have_alsa" = "1"; then  if test "$config_alsa_driver" = "yes"; then
135      have_midi_input_driver="true"      AC_CHECK_HEADER(alsa/asoundlib.h,
136      have_audio_output_driver="true";          AC_CHECK_LIB(asound, main,
137                                     have_alsa=1
138                                     ,
139                                     have_alsa=0
140                        )
141                        ,
142                        have_alsa=0
143        )
144        if test "$have_alsa" = "1"; then
145            have_midi_input_driver="true"
146            have_audio_output_driver="true";
147        fi
148    
149        echo -n "checking Alsa version... "
150        AC_LANG_SAVE
151        AC_LANG_C
152        AC_TRY_RUN([
153            #include <alsa/asoundlib.h>
154            void main(void) {
155                /* ensure backward compatibility */
156                #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
157                #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
158                #endif
159                exit(SND_LIB_MAJOR);
160            }
161        ],
162        alsa_major=0,
163        alsa_major=$?,
164        alsa_major=0
165        )
166        AC_TRY_RUN([
167            #include <alsa/asoundlib.h>
168            void main(void) {
169                /* ensure backward compatibility */
170                #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
171                #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
172                #endif
173                exit(SND_LIB_MINOR);
174            }
175        ],
176        alsa_minor=0,
177        alsa_minor=$?,
178        alsa_minor=0
179        )
180        AC_TRY_RUN([
181            #include <alsa/asoundlib.h>
182            void main(void) {
183                /* ensure backward compatibility */
184                #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
185                #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
186                #endif
187                exit(SND_LIB_SUBMINOR);
188            }
189        ],
190        alsa_subminor=0,
191        alsa_subminor=$?,
192        alsa_subminor=0
193        )
194        AC_LANG_RESTORE
195        echo "$alsa_major.$alsa_minor.$alsa_subminor";
196        AC_DEFINE_UNQUOTED(ALSA_MAJOR,$alsa_major,[Define to the major version number of your Alsa installation.])
197        AC_DEFINE_UNQUOTED(ALSA_MINOR,$alsa_minor,[Define to the minor version number of your Alsa installation.])
198        AC_DEFINE_UNQUOTED(ALSA_SUBMINOR,$alsa_subminor,[Define to the subminor version number of your Alsa installation.])
199    else
200        echo "ALSA support disabled by configure script parameter"
201  fi  fi
202  AM_CONDITIONAL(HAVE_ALSA, test $have_alsa = "1")  AM_CONDITIONAL(HAVE_ALSA, test $have_alsa = "1")
203  AC_DEFINE_UNQUOTED(HAVE_ALSA,$have_alsa,[Define to 1 if you have ALSA installed.])  AC_DEFINE_UNQUOTED(HAVE_ALSA,$have_alsa,[Define to 1 if you have ALSA installed.])
204    
 echo -n "checking Alsa version... "  
 AC_LANG_SAVE  
 AC_LANG_C  
 AC_TRY_RUN([  
 #include <alsa/asoundlib.h>  
 void main(void) {  
 /* ensure backward compatibility */  
 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)  
 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR  
 #endif  
 exit(SND_LIB_MAJOR);  
 }  
 ],  
 alsa_major=0,  
 alsa_major=$?,  
 alsa_major=0  
 )  
 AC_TRY_RUN([  
 #include <alsa/asoundlib.h>  
 void main(void) {  
 /* ensure backward compatibility */  
 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)  
 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR  
 #endif  
 exit(SND_LIB_MINOR);  
 }  
 ],  
 alsa_minor=0,  
 alsa_minor=$?,  
 alsa_minor=0  
 )  
 AC_TRY_RUN([  
 #include <alsa/asoundlib.h>  
 void main(void) {  
 /* ensure backward compatibility */  
 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)  
 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR  
 #endif  
 exit(SND_LIB_SUBMINOR);  
 }  
 ],  
 alsa_subminor=0,  
 alsa_subminor=$?,  
 alsa_subminor=0  
 )  
 AC_LANG_RESTORE  
 echo "$alsa_major.$alsa_minor.$alsa_subminor";  
 AC_DEFINE_UNQUOTED(ALSA_MAJOR,$alsa_major,[Define to the major version number of your Alsa installation.])  
 AC_DEFINE_UNQUOTED(ALSA_MINOR,$alsa_minor,[Define to the minor version number of your Alsa installation.])  
 AC_DEFINE_UNQUOTED(ALSA_SUBMINOR,$alsa_subminor,[Define to the subminor version number of your Alsa installation.])  
   
205  # JACK  # JACK
206  PKG_CHECK_MODULES(JACK, jack, HAVE_JACK=true, HAVE_JACK=false)  AC_ARG_ENABLE(jack-driver,
207  AC_SUBST(JACK_LIBS)    [  --disable-jack-driver
208  AC_SUBST(JACK_CFLAGS)                            Disable support for the Jack Audio Connection Kit
209  if test $HAVE_JACK = false; then                            (JACK).],
210      HAVE_JACK=0;    [config_jack_driver="no"],
211      [config_jack_driver="yes"]
212    )
213    have_jack=0
214    if test "$config_jack_driver" = "yes"; then
215        PKG_CHECK_MODULES(JACK, jack, have_jack=1, have_jack=0)
216        if test $have_jack = "1"; then
217            AC_SUBST(JACK_LIBS)
218            AC_SUBST(JACK_CFLAGS)
219            AC_CHECK_LIB(jack, jack_client_name_size, [AC_DEFINE(HAVE_JACK_CLIENT_NAME_SIZE, 1, [Define to 1 if you have the `jack_client_name_size' function.])], , $JACK_LIBS)
220            have_audio_output_driver="true";
221        fi
222  else  else
223      HAVE_JACK=1      echo "JACK support disabled by configure script parameter"
     have_audio_output_driver="true";  
     AC_CHECK_LIB(jack, jack_client_name_size, [AC_DEFINE(HAVE_JACK_CLIENT_NAME_SIZE, 1, [Define to 1 if you have the `jack_client_name_size' function.])], , $JACK_LIBS)  
224  fi  fi
225  AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1)  AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1")
226  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.])
227    
228  # ARTS  # ARTS
229    AC_ARG_ENABLE(arts-driver,
230  m4_ifdef([m4_include(m4/arts.m4)],,    [  --disable-arts-driver
231          [sinclude([m4/arts.m4])])                            Disable support for the Analogue Realtime System
232                              (aRts).],
233  AM_PATH_ARTS(0.9.5, have_arts=1, have_arts=0)    [config_arts_driver="no"],
234  if test "$have_arts" = "1"; then    [config_arts_driver="yes"]
235      have_audio_output_driver="true"  )
236    have_arts=0
237    if test "$config_arts_driver" = "yes"; then
238        m4_ifdef([m4_include(m4/arts.m4)],,
239                 [sinclude([m4/arts.m4])])
240        AM_PATH_ARTS(0.9.5, have_arts=1, have_arts=0)
241        if test "$have_arts" = "1"; then
242            have_audio_output_driver="true"
243        fi
244    else
245        echo "ARTS support disabled by configure script parameter"
246  fi  fi
247  AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")  AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")
248  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.])
249    
250  # MidiShare (Linux, OS X, Windows)  # MidiShare (Linux, OS X, Windows)
251  AC_CHECK_HEADER(MidiShare.h,  AC_ARG_ENABLE(midishare-driver,
252      AC_CHECK_LIB(MidiShare, MidiCountEvs,    [  --disable-midishare-driver
253                              have_midishare=1,                            Disable support for the MidiShare system.],
254                              have_midishare=0    [config_midishare_driver="no"],
255                  )    [config_midishare_driver="yes"]
256                  ,  )
257                  have_midishare=0  have_midishare=0
258  )  if test "$config_midishare_driver" = "yes"; then
259  if test "$have_midishare" = "1"; then      AC_CHECK_HEADER(MidiShare.h,
260      have_midi_input_driver="true"          AC_CHECK_LIB(MidiShare, MidiCountEvs,
261                                    have_midishare=1,
262                                    have_midishare=0
263                        )
264                        ,
265                        have_midishare=0
266        )
267        if test "$have_midishare" = "1"; then
268            have_midi_input_driver="true"
269        fi
270    else
271        echo "MidiShare support disabled by configure script parameter"
272  fi  fi
273  AM_CONDITIONAL(HAVE_MIDISHARE, test $have_midishare = "1")  AM_CONDITIONAL(HAVE_MIDISHARE, test $have_midishare = "1")
274  AC_DEFINE_UNQUOTED(HAVE_MIDISHARE,$have_midishare,[Define to 1 if you have MidiShare installed.])  AC_DEFINE_UNQUOTED(HAVE_MIDISHARE,$have_midishare,[Define to 1 if you have MidiShare installed.])
275    
276  # CoreMIDI (OS X)  # CoreMIDI (OS X)
277  AC_CHECK_HEADER(CoreMIDI/CoreMIDI.h,  AC_ARG_ENABLE(coremidi-driver,
278                  have_coremidi=1,    [  --disable-coremidi-driver
279                  have_coremidi=0                            Disable support for the Apple CoreMIDI system.],
280  )    [config_coremidi_driver="no"],
281  if test "$have_coremidi" = "1"; then    [config_coremidi_driver="yes"]
282      have_midi_input_driver="true"  )
283    have_coremidi=0
284    if test "$config_coremidi_driver" = "yes"; then
285        AC_CHECK_HEADER(CoreMIDI/CoreMIDI.h,
286            have_coremidi=1,
287            have_coremidi=0
288        )
289        if test "$have_coremidi" = "1"; then
290            have_midi_input_driver="true"
291        fi
292    else
293        echo "CoreMIDI support disabled by configure script parameter"
294  fi  fi
295  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")  AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1")
296  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.])
297    
298  # Check presence of libgig  # Check presence of libgig
299  libgig_version="2.0.2"  libgig_version="3.1.0"
300  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)
301  if test "$HAVE_GIG" = "false"; then  if test "$HAVE_GIG" = "false"; then
302      echo "Required libgig version not found!"      echo "Required libgig version not found!"
# Line 469  AC_ARG_ENABLE(subfragment-size, Line 535  AC_ARG_ENABLE(subfragment-size,
535  )  )
536  AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_SUBFRAGMENT_SIZE, $config_subfragment_size, [Define default subfragment size (in sample points).])  AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_SUBFRAGMENT_SIZE, $config_subfragment_size, [Define default subfragment size (in sample points).])
537    
538  AC_ARG_ENABLE(global-attenuation,  AC_ARG_ENABLE(global-attenuation-default,
539    [  --enable-global-attenuation    [  --enable-global-attenuation-default
540                            To prevent clipping all samples will be lowered                            To prevent clipping all samples will be lowered
541                            in amplitude by this given factor.                            in amplitude by this given default factor (can
542                              be overridden at runtime).
543                            (default=0.35)],                            (default=0.35)],
544    [config_global_attenuation="${enableval}"],    [config_global_attenuation_default="${enableval}"],
545    [config_global_attenuation="0.35"]    [config_global_attenuation_default="0.35"]
546  )  )
547  AC_DEFINE_UNQUOTED(CONFIG_GLOBAL_ATTENUATION, $config_global_attenuation, [Define global volume attenuation (as floating point factor).])  AC_DEFINE_UNQUOTED(CONFIG_GLOBAL_ATTENUATION_DEFAULT, $config_global_attenuation_default, [Define default global volume attenuation (as floating point factor).])
548    
549  AC_ARG_ENABLE(voice-steal-algo,  AC_ARG_ENABLE(voice-steal-algo,
550    [  --enable-voice-steal-algo    [  --enable-voice-steal-algo
# Line 899  echo "# Stream Size: ${config_stream_siz Line 966  echo "# Stream Size: ${config_stream_siz
966  echo "# Maximum Disk Streams: ${config_max_streams}"  echo "# Maximum Disk Streams: ${config_max_streams}"
967  echo "# Maximum Voices: ${config_max_voices}"  echo "# Maximum Voices: ${config_max_voices}"
968  echo "# Default Subfragment Size: ${config_subfragment_size}"  echo "# Default Subfragment Size: ${config_subfragment_size}"
969  echo "# Global Volume Attenuation: ${config_global_attenuation}"  echo "# Default Global Volume Attenuation: ${config_global_attenuation_default}"
970  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"
971  echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}"  echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}"
972  echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}"  echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}"

Legend:
Removed from v.849  
changed lines
  Added in v.1049

  ViewVC Help
Powered by ViewVC