/[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 716 by iliev, Sun Jul 24 06:57:30 2005 UTC revision 1364 by schoenebeck, Mon Oct 1 13:38:37 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=3  LINUXSAMPLER_RELEASE_BUILD=0.7cvs
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 59  esac Line 68  esac
68  AC_DEFINE_UNQUOTED(ARCH_X86,$def_arch_x86,[Define to 1 if you build for x86 architecture.])  AC_DEFINE_UNQUOTED(ARCH_X86,$def_arch_x86,[Define to 1 if you build for x86 architecture.])
69    
70  # determine the right gcc switch for CPU specific optimizations  # determine the right gcc switch for CPU specific optimizations
71    # (only if the user did not provide one)
72  CXX_CPU_SWITCH=  CXX_CPU_SWITCH=
73  if test "$def_arch_x86" = 1; then  if ! echo "X $CXXFLAGS " | grep -q -- " \(-march=\|-mcpu=\|-mtune=\|-arch=\)" ; then
74    CXX_CPU_SWITCH="-march=$target_cpu"    if test "$def_arch_x86" = 1; then
75  elif test "$target_cpu" = "powerpc"; then      CXX_CPU_SWITCH="-march=$target_cpu"
76    CXX_CPU_SWITCH="-arch=$target_cpu"    elif test "$target_cpu" = "ppc"; then
77        CXX_CPU_SWITCH="-arch=$target_cpu"
78      fi
79  fi  fi
80  AC_SUBST([CXX_CPU_SWITCH])  AC_SUBST([CXX_CPU_SWITCH])
81    
# Line 99  if test "$have_unix98" = "no"; then Line 111  if test "$have_unix98" = "no"; then
111      fi      fi
112  fi  fi
113    
114    # check for <features.h>
115    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="$enableval"],
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="$enableval"],
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
223        echo "JACK support disabled by configure script parameter"
224    fi
225    AM_CONDITIONAL(HAVE_JACK, test $have_jack = "1")
226    AC_DEFINE_UNQUOTED(HAVE_JACK,$have_jack,[Define to 1 if you have JACK installed.])
227    
228    # ARTS
229    AC_ARG_ENABLE(arts-driver,
230      [  --disable-arts-driver
231                              Disable support for the Analogue Realtime System
232                              (aRts).],
233      [config_arts_driver="$enableval"],
234      [config_arts_driver="yes"]
235    )
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  else
245      HAVE_JACK=1      echo "ARTS 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)  
246  fi  fi
247  AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1)  AM_CONDITIONAL(HAVE_ARTS, test "$have_arts" = "1")
248  AC_DEFINE_UNQUOTED(HAVE_JACK,$HAVE_JACK,[Define to 1 if you have JACK 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="$enableval"],
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="$enableval"],
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    # have we found at least one MIDI input and one audio output driver ?
299    if test "$have_midi_input_driver" = "false"; then
300        echo "No supported MIDI input system found!"
301        echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"
302        echo "ALSA, MIDIShare, CoreMIDI."
303        echo "If you think you have one of those available on your system, make sure you"
304        echo "also have the respective development (header) files installed."
305        exit -1;
306    fi
307    if test "$have_audio_output_driver" = "false"; then
308        echo "No supported audio output system found!"
309        echo "Sorry, LinuxSampler only supports ALSA, JACK and ARTS as audio output"
310        echo "driver at the moment!"
311        exit -1;
312    fi
313    
314    
315    
316    ###########################################################################
317    # Checks for various DLL libraries
318    
319  # Check presence of libgig  # Check presence of libgig
320  libgig_version="2.0.1"  libgig_version="3.1.1"
321  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)
322  if test "$HAVE_GIG" = "false"; then  if test "$HAVE_GIG" = "false"; then
323      echo "Required libgig version not found!"      echo "Required libgig version not found!"
# Line 224  fi Line 329  fi
329  AC_SUBST(GIG_CFLAGS)  AC_SUBST(GIG_CFLAGS)
330  AC_SUBST(GIG_LIBS)  AC_SUBST(GIG_LIBS)
331    
332  # SQLITE3  # Instruments DB feature (requires SQLite 3.3)
333  PKG_CHECK_MODULES(SQLITE3, sqlite3, HAVE_SQLITE3=true, HAVE_SQLITE3=false)  AC_ARG_ENABLE(instruments-db,
334  AC_SUBST(SQLITE3_LIBS)    [  --disable-instruments-db
335  AC_SUBST(SQLITE3_CFLAGS)                            Disable compilation of the sampler's instruments
336  if test $HAVE_SQLITE3 = false; then                            database feature. You need to have SQLite 3.3
337      HAVE_SQLITE3=0;                            or younger installed for this feature.],
338      echo "no, support for instrument DB will be disabled!"    [config_instruments_db="$enableval"],
339      [config_instruments_db="yes"]
340    )
341    HAVE_SQLITE3=0;
342    if test "$config_instruments_db" = "yes"; then
343        # Check presence of sqlite3
344        sqlite_version="3.3"
345        PKG_CHECK_MODULES(SQLITE3, sqlite3 >= $sqlite_version, HAVE_SQLITE3=true, HAVE_SQLITE3=false)
346        AC_SUBST(SQLITE3_LIBS)
347        AC_SUBST(SQLITE3_CFLAGS)
348        if test $HAVE_SQLITE3 = false; then
349            HAVE_SQLITE3=0
350            config_instruments_db="no"
351            echo "*** Required sqlite version not found!"
352            echo "*** You need to have sqlite version ${sqlite_version} or higher"
353            echo "*** for instruments database support to be enabled."
354            echo "*** Support for instruments DB will be disabled!"
355        else
356            HAVE_SQLITE3=1
357        fi
358  else  else
359      HAVE_SQLITE3=1      echo "Instruments DB feature disabled by configure script parameter"
     echo "yes"  
360  fi  fi
361  AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)  AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)
362  AC_DEFINE_UNQUOTED(HAVE_SQLITE3,$HAVE_SQLITE3,[Define to 1 if you have SQLITE3 installed.])  AC_DEFINE_UNQUOTED(HAVE_SQLITE3,$HAVE_SQLITE3,[Define to 1 if you want the instruments DB feature and have SQLITE3 installed.])
363    
 if test "$have_midi_input_driver" = "false"; then  
     echo "No supported MIDI input system found!"  
     echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:"  
     echo "ALSA, MIDIShare, CoreMIDI."  
     echo "If you think you have one of those available on your system, make sure you"  
     echo "also have the respective development (header) files installed."  
     exit -1;  
 fi  
 if test "$have_audio_output_driver" = "false"; then  
     echo "No supported audio output system found!"  
     echo "Sorry, LinuxSampler only supports ALSA and JACK as audio output driver at the moment!"  
     exit -1;  
 fi  
364    
365    
366  ###########################################################################  ###########################################################################
# Line 260  fi Line 370  fi
370    
371  AC_ARG_ENABLE(asm,  AC_ARG_ENABLE(asm,
372    [  --disable-asm    [  --disable-asm
373                            Disable hand-crafted assembly optimizations                            Enable hand-crafted assembly optimizations
374                            (default=on). LinuxSampler provides CPU specific                            (default=on). LinuxSampler provides CPU specific
375                            assembly optimizations for the most important                            assembly optimizations. This is currently limited
376                            synthesis algorithms. You usually don't want to                            to just enter a fast (denormal) FPU mode on x86
377                            disable that.],                            platforms. There are currently no synthesis core
378    [config_asm="no"],                            assembly optimizations anymore since LS 0.4.0],
379      [config_asm="$enableval"],
380    [config_asm="yes"]    [config_asm="yes"]
381  )  )
382  if test "$config_asm" = "yes"; then  if test "$config_asm" = "yes"; then
383    AC_DEFINE_UNQUOTED(CONFIG_ASM, 1, [Define to 1 if you want to enable hand-crafted asm optimizations.])    AC_DEFINE_UNQUOTED(CONFIG_ASM, 1, [Define to 1 if you want to enable asm optimizations.])
384  fi  fi
385    
386  AC_ARG_ENABLE(dev-mode,  AC_ARG_ENABLE(dev-mode,
387    [  --enable-dev-mode    [  --disable-dev-mode
388                            Enable development mode (default=no). In that mode                            Disable development mode (default=on). In that mode
389                            we do some extra sanity checks here and there.                            we do some extra sanity checks here and there.
390                            This helps to spot possible problems, but reduces                            This helps to spot possible problems, but reduces
391                            efficiency a bit],                            efficiency a bit],
392    [config_dev_mode="yes"],    [config_dev_mode="$enableval"],
393    [config_dev_mode="no"]    [config_dev_mode="yes"]
394  )  )
395  if test "$config_dev_mode" = "yes"; then  if test "$config_dev_mode" = "yes"; then
396    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 306  AC_ARG_ENABLE(rt-exceptions, Line 417  AC_ARG_ENABLE(rt-exceptions,
417                            context as well. Otherwise if disabled                            context as well. Otherwise if disabled
418                            segmentation faults will be forced by the                            segmentation faults will be forced by the
419                            application on critical errors.],                            application on critical errors.],
420    [config_rt_exceptions="yes"],    [config_rt_exceptions="$enableval"],
421    [config_rt_exceptions="no"]    [config_rt_exceptions="no"]
422  )  )
423  if test "$config_rt_exceptions" = "yes"; then  if test "$config_rt_exceptions" = "yes"; then
# Line 436  AC_ARG_ENABLE(max-voices, Line 547  AC_ARG_ENABLE(max-voices,
547  )  )
548  AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.])  AC_DEFINE_UNQUOTED(CONFIG_MAX_VOICES, $config_max_voices, [Define max. voices.])
549    
550    AC_ARG_ENABLE(subfragment-size,
551      [  --enable-subfragment-size
552                              Every audio fragment will be splitted into
553                              subfragments. Where each subfragment renders
554                              audio with constant synthesis parameters. This is
555                              done for efficiency reasons. This parameter
556                              defines the default size of a subfragment in
557                              sample points. A large value means less CPU time
558                              whereas a low value means better audio quality
559                              (default=32).],
560      [config_subfragment_size="${enableval}"],
561      [config_subfragment_size="32"]
562    )
563    AC_DEFINE_UNQUOTED(CONFIG_DEFAULT_SUBFRAGMENT_SIZE, $config_subfragment_size, [Define default subfragment size (in sample points).])
564    
565    AC_ARG_ENABLE(global-attenuation-default,
566      [  --enable-global-attenuation-default
567                              To prevent clipping all samples will be lowered
568                              in amplitude by this given default factor (can
569                              be overridden at runtime).
570                              (default=0.35)],
571      [config_global_attenuation_default="${enableval}"],
572      [config_global_attenuation_default="0.35"]
573    )
574    AC_DEFINE_UNQUOTED(CONFIG_GLOBAL_ATTENUATION_DEFAULT, $config_global_attenuation_default, [Define default global volume attenuation (as floating point factor).])
575    
576  AC_ARG_ENABLE(voice-steal-algo,  AC_ARG_ENABLE(voice-steal-algo,
577    [  --enable-voice-steal-algo    [  --enable-voice-steal-algo
578                            Voice stealing algorithm to be used. Currently                            Voice stealing algorithm to be used. Currently
# Line 469  AC_ARG_ENABLE(sysex-buffer-size, Line 606  AC_ARG_ENABLE(sysex-buffer-size,
606  )  )
607  AC_DEFINE_UNQUOTED(CONFIG_SYSEX_BUFFER_SIZE, $config_sysex_buffer_size, [Define SysEx buffer size.])  AC_DEFINE_UNQUOTED(CONFIG_SYSEX_BUFFER_SIZE, $config_sysex_buffer_size, [Define SysEx buffer size.])
608    
 AC_ARG_ENABLE(filter-update-steps,  
   [  --enable-filter-update-steps  
                           Amount of sample points after which filter  
                           parameters (cutoff, resonance) are going to be  
                           updated (default=64). Higher value means less CPU  
                           load, but also worse parameter resolution, this  
                           value will be aligned to a power of two.],  
   [config_filter_update_steps="${enableval}"],  
   [config_filter_update_steps="64"]  
 )  
 AC_DEFINE_UNQUOTED(CONFIG_FILTER_UPDATE_STEPS, $config_filter_update_steps, [Define amount of steps to refresh filter coefficients.])  
   
609  AC_ARG_ENABLE(force-filter,  AC_ARG_ENABLE(force-filter,
610    [  --enable-force-filter    [  --enable-force-filter
611                            If enabled will force filter to be used even if                            If enabled will force filter to be used even if
612                            no usage was define in instrument patch files.                            no usage was define in instrument patch files.
613                            (default=no).],                            (default=no).],
614    [config_force_filter="yes"],    [config_force_filter="$enableval"],
615    [config_force_filter="no"]    [config_force_filter="no"]
616  )  )
617  if test "$config_force_filter" = "yes"; then  if test "$config_force_filter" = "yes"; then
# Line 576  AC_ARG_ENABLE(gs-checksum, Line 701  AC_ARG_ENABLE(gs-checksum,
701                            messages which do not provide a correct checksum                            messages which do not provide a correct checksum
702                            will be ignored. This is disabled by default as                            will be ignored. This is disabled by default as
703                            not all devices honor GS checksums.],                            not all devices honor GS checksums.],
704    [config_assert_gs_sysex_checksum="yes"],    [config_assert_gs_sysex_checksum="$enableval"],
705    [config_assert_gs_sysex_checksum="no"]    [config_assert_gs_sysex_checksum="no"]
706  )  )
707  if test "config_assert_gs_sysex_checksum" = "yes"; then  if test "config_assert_gs_sysex_checksum" = "yes"; then
708    AC_DEFINE_UNQUOTED(CONFIG_ASSERT_GS_SYSEX_CHECKSUM, 1, [Define to 1 if you want to enable GS SysEx check.])    AC_DEFINE_UNQUOTED(CONFIG_ASSERT_GS_SYSEX_CHECKSUM, 1, [Define to 1 if you want to enable GS SysEx check.])
709  fi  fi
710    
711    AC_ARG_ENABLE(portamento-time-min,
712      [  --enable-portamento-time-min
713                              Minimum Portamento time in seconds
714                              (default=0.1).],
715      [config_portamento_time_min="${enableval}"],
716      [config_portamento_time_min="0.1"]
717    )
718    AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_MIN, $config_portamento_time_min, [Define min. portamento time.])
719    
720    AC_ARG_ENABLE(portamento-time-max,
721      [  --enable-portamento-time-max
722                              Maximum Portamento time in seconds
723                              (default=32).],
724      [config_portamento_time_max="${enableval}"],
725      [config_portamento_time_max="32"]
726    )
727    AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_MAX, $config_portamento_time_max, [Define max. portamento time.])
728    
729    AC_ARG_ENABLE(portamento-time-default,
730      [  --enable-portamento-time-default
731                              Default Portamento time in seconds
732                              (default=1).],
733      [config_portamento_time_default="${enableval}"],
734      [config_portamento_time_default="1"]
735    )
736    AC_DEFINE_UNQUOTED(CONFIG_PORTAMENTO_TIME_DEFAULT, $config_portamento_time_default, [Define default portamento time.])
737    
738  AC_ARG_ENABLE(signed-triang-algo,  AC_ARG_ENABLE(signed-triang-algo,
739    [  --enable-signed-triang-algo    [  --enable-signed-triang-algo
740                            Signed triangular wave algorithm to be used (e.g. for LFOs).                            Signed triangular wave algorithm to be used (e.g. for LFOs).
# Line 591  AC_ARG_ENABLE(signed-triang-algo, Line 743  AC_ARG_ENABLE(signed-triang-algo,
743                                Uses integer math without any branch will then be                                Uses integer math without any branch will then be
744                                converted to floating point value for each sample point.                                converted to floating point value for each sample point.
745                                This int->float conversion might hurt on some systems.                                This int->float conversion might hurt on some systems.
746                                intmathabs:
747                                  Similar to intmath but uses abs() function.
748                                  Depending on compiler and platrofm this could
749                                  perform better than integer math as it avoids
750                                  an extra integer multiply instruction.
751                              diharmonic:                              diharmonic:
752                                The triangular wave will be approximated by adding two                                The triangular wave will be approximated by adding two
753                                sinusoidials. This solution might especially hurt on                                sinusoidials. This solution might especially hurt on
# Line 602  AC_ARG_ENABLE(signed-triang-algo, Line 759  AC_ARG_ENABLE(signed-triang-algo,
759                                benchmark between the algorithms mentioned above.                                benchmark between the algorithms mentioned above.
760                                This will NOT work for cross compilation!],                                This will NOT work for cross compilation!],
761    [ if test ! "(" "${enableval}" = "intmath" \    [ if test ! "(" "${enableval}" = "intmath" \
762                  -o "${enableval}" = "intmathabs" \
763                -o "${enableval}" = "diharmonic" ")" ; then                -o "${enableval}" = "diharmonic" ")" ; then
764        AC_MSG_ERROR([Unknown triangular wave algorithm for parameter --enable-signed-triang-algo])        AC_MSG_ERROR([Unknown triangular wave algorithm for parameter --enable-signed-triang-algo])
765      else      else
# Line 619  AC_ARG_ENABLE(unsigned-triang-algo, Line 777  AC_ARG_ENABLE(unsigned-triang-algo,
777                                Uses integer math without any branch will then be                                Uses integer math without any branch will then be
778                                converted to floating point value for each sample point.                                converted to floating point value for each sample point.
779                                This int->float conversion might hurt on some systems.                                This int->float conversion might hurt on some systems.
780                                intmathabs:
781                                  Similar to intmath but uses abs() function.
782                                  Depending on compiler and platrofm this could
783                                  perform better than integer math as it avoids
784                                  an extra integer multiply instruction.
785                              diharmonic:                              diharmonic:
786                                The triangular wave will be approximated by adding two                                The triangular wave will be approximated by adding two
787                                sinusoidials. This solution might especially hurt on                                sinusoidials. This solution might especially hurt on
# Line 630  AC_ARG_ENABLE(unsigned-triang-algo, Line 793  AC_ARG_ENABLE(unsigned-triang-algo,
793                                benchmark between the algorithms mentioned above.                                benchmark between the algorithms mentioned above.
794                                This will NOT work for cross compilation!],                                This will NOT work for cross compilation!],
795    [ if test ! "(" "${enableval}" = "intmath" \    [ if test ! "(" "${enableval}" = "intmath" \
796                  -o "${enableval}" = "intmathabs" \
797                -o "${enableval}" = "diharmonic" ")" ; then                -o "${enableval}" = "diharmonic" ")" ; then
798        AC_MSG_ERROR([Unknown triangular wave algorithm for parameter --enable-unsigned-triang-algo])        AC_MSG_ERROR([Unknown triangular wave algorithm for parameter --enable-unsigned-triang-algo])
799      else      else
# Line 648  AC_ARG_ENABLE(process-muted-channels, Line 812  AC_ARG_ENABLE(process-muted-channels,
812                            will not discard notes, triggered in mute mode,                            will not discard notes, triggered in mute mode,
813                            when the channel is unmuted. But also will reduce                            when the channel is unmuted. But also will reduce
814                            the efficiency.],                            the efficiency.],
815    [config_process_muted_channels="yes"],    [config_process_muted_channels="$enableval"],
816    [config_process_muted_channels="no"]    [config_process_muted_channels="no"]
817  )  )
818  if test "$config_process_muted_channels" = "yes"; then  if test "$config_process_muted_channels" = "yes"; then
819    AC_DEFINE_UNQUOTED(CONFIG_PROCESS_MUTED_CHANNELS, 1, [Define to 1 if you want to enable processing of muted channels.])    AC_DEFINE_UNQUOTED(CONFIG_PROCESS_MUTED_CHANNELS, 1, [Define to 1 if you want to enable processing of muted channels.])
820  fi  fi
821    
822    AC_ARG_ENABLE(process-all-notes-off,
823      [  --disable-process-all-notes-off
824                              Disable interpretation of All-Notes-Off MIDI
825                              messages (default=on). By default LS will release
826                              all voices whenever it receives an All-Notes-Off
827                              MIDI message. You can disable this behavior, so
828                              that LS simply ignores such messages.],
829      [config_process_all_notes_off="$enableval"],
830      [config_process_all_notes_off="yes"]
831    )
832    if test "$config_process_all_notes_off" = "yes"; then
833      AC_DEFINE_UNQUOTED(CONFIG_PROCESS_ALL_NOTES_OFF, 1, [Define to 1 if you want to enable processing of All-Notes-Off MIDI messages.])
834    fi
835    
836    AC_ARG_ENABLE(interpolate-volume,
837      [  --disable-interpolate-volume
838                              Disable interpolation of volume modulation
839                              (default=on). With this enabled, the volume changes
840                              generated by for example the envelope generator
841                              will be smoother, minimizing the risk for audio
842                              clicks. Disable it to reduce CPU usage.],
843      [config_interpolate_volume="$enableval"],
844      [config_interpolate_volume="yes"]
845    )
846    if test "$config_interpolate_volume" = "yes"; then
847      AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.])
848    fi
849    
850    AC_ARG_ENABLE(plugin-dir,
851      [  --enable-plugin-dir
852                              Directory where the sampler shall look for potential plugins,
853                              that is 3rd party shared libraries that should be loaded by
854                              the sampler on startup. By default the sampler will search
855                              for plugins in the subdirectory "plugins" below its own
856                              library directory.
857                              (i.e. /usr/local/lib/linuxsampler/plugins)],
858      [config_plugin_dir="${enableval}"],
859      [config_plugin_dir="${libdir}/linuxsampler/plugins"]
860    )
861    AC_SUBST(config_plugin_dir)
862    
863    AC_ARG_ENABLE(default-instruments-db-location,
864      [  --enable-default-instruments-db-location
865                              Only when instruments DB feature is enabled: file name
866                              which shall be taken as default location of the
867                              instruments DB file. This location can still be
868                              overridden at runtime with a command line switch.
869                              (default: /var/lib/linuxsampler/instruments.db)],
870      [config_default_instruments_db_file="${enableval}"],
871      [config_default_instruments_db_file="/var/lib/linuxsampler/instruments.db"]
872    )
873    AC_DEFINE_UNQUOTED(
874        CONFIG_DEFAULT_INSTRUMENTS_DB_LOCATION,
875        "$config_default_instruments_db_file",
876        [Only when instruments DB feature is enabled: default location of the DB file.]
877    )
878    
879    
880    
881  ###########################################################################  ###########################################################################
882  # Automatic Benchmarks (to detect the best algorithms for the system)  # Automatic Benchmarks (to detect the best algorithms for the system)
# Line 667  if test "$config_signed_triang_algo" = " Line 889  if test "$config_signed_triang_algo" = "
889      AC_TRY_RUN([      AC_TRY_RUN([
890              #define SIGNED 1              #define SIGNED 1
891              #define SILENT 1              #define SILENT 1
892              #include "benchmarks/triang.cpp"              #include "${srcdir}/benchmarks/triang.cpp"
893          ],          ],
894          triang_signed=0,          triang_signed=0,
895          triang_signed=$?,          triang_signed=$?,
# Line 679  if test "$config_signed_triang_algo" = " Line 901  if test "$config_signed_triang_algo" = "
901      elif test "$triang_signed" = "3"; then      elif test "$triang_signed" = "3"; then
902          config_signed_triang_algo="diharmonic"          config_signed_triang_algo="diharmonic"
903          echo "di harmonics"          echo "di harmonics"
904        elif test "$triang_signed" = "5"; then
905            config_signed_triang_algo="intmathabs"
906            echo "integer math using abs()"
907      else      else
908          echo "Benchmark of signed triangular wave algorithms failed!"          echo "Benchmark of signed triangular wave algorithms failed!"
909          echo "Maybe you are doing cross compilation? In that case you have to select"          echo "Maybe you are doing cross compilation? In that case you have to select"
# Line 686  if test "$config_signed_triang_algo" = " Line 911  if test "$config_signed_triang_algo" = "
911          echo "Call './configure --help' for further information or read configure.in."          echo "Call './configure --help' for further information or read configure.in."
912          exit -1;          exit -1;
913      fi      fi
914    else
915        case "$config_signed_triang_algo" in
916            intmath)
917                triang_signed=2 ;;
918            diharmonic)
919                triang_signed=3 ;;
920            intmathabs)
921                triang_signed=5 ;;
922        esac
923  fi  fi
924  AC_DEFINE_UNQUOTED(CONFIG_SIGNED_TRIANG_ALGO, signed_triang_algo_${config_signed_triang_algo}, [Define signed triangular wave algorithm to be used.])  AC_DEFINE_UNQUOTED(CONFIG_SIGNED_TRIANG_ALGO, ${triang_signed}, [Define signed triangular wave algorithm to be used.])
925    
926  if test "$config_unsigned_triang_algo" = "benchmark"; then  if test "$config_unsigned_triang_algo" = "benchmark"; then
927      echo -n "benchmarking for the best (unsigned) triangular oscillator algorithm... "      echo -n "benchmarking for the best (unsigned) triangular oscillator algorithm... "
# Line 695  if test "$config_unsigned_triang_algo" = Line 929  if test "$config_unsigned_triang_algo" =
929      AC_TRY_RUN([      AC_TRY_RUN([
930              #define SIGNED 0              #define SIGNED 0
931              #define SILENT 1              #define SILENT 1
932              #include "benchmarks/triang.cpp"              #include "${srcdir}/benchmarks/triang.cpp"
933          ],          ],
934          triang_unsigned=0,          triang_unsigned=0,
935          triang_unsigned=$?,          triang_unsigned=$?,
# Line 707  if test "$config_unsigned_triang_algo" = Line 941  if test "$config_unsigned_triang_algo" =
941      elif test "$triang_unsigned" = "3"; then      elif test "$triang_unsigned" = "3"; then
942          config_unsigned_triang_algo="diharmonic"          config_unsigned_triang_algo="diharmonic"
943          echo "di harmonics"          echo "di harmonics"
944        elif test "$triang_unsigned" = "5"; then
945            config_unsigned_triang_algo="intmathabs"
946            echo "integer math using abs()"
947      else      else
948          echo "Benchmark of unsigned triangular wave algorithms failed!"          echo "Benchmark of unsigned triangular wave algorithms failed!"
949          echo "Maybe you are doing cross compilation? In that case you have to select"          echo "Maybe you are doing cross compilation? In that case you have to select"
# Line 714  if test "$config_unsigned_triang_algo" = Line 951  if test "$config_unsigned_triang_algo" =
951          echo "Call './configure --help' for further information or read configure.in."          echo "Call './configure --help' for further information or read configure.in."
952          exit -1;          exit -1;
953      fi      fi
954    else
955        case "$config_unsigned_triang_algo" in
956            intmath)
957                triang_unsigned=2 ;;
958            diharmonic)
959                triang_unsigned=3 ;;
960            intmathabs)
961                triang_unsigned=5 ;;
962        esac
963  fi  fi
964  AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIANG_ALGO, unsigned_triang_algo_${config_unsigned_triang_algo}, [Define unsigned triangular wave algorithm to be used.])  AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIANG_ALGO, ${triang_unsigned}, [Define unsigned triangular wave algorithm to be used.])
965    
966  AC_LANG_RESTORE  AC_LANG_RESTORE
967    
# Line 745  AC_OUTPUT( \ Line 991  AC_OUTPUT( \
991      man/Makefile \      man/Makefile \
992      man/linuxsampler.1 \      man/linuxsampler.1 \
993      src/Makefile \      src/Makefile \
994        src/db/Makefile \
995      src/network/Makefile \      src/network/Makefile \
996      src/engines/Makefile \      src/engines/Makefile \
997      src/engines/gig/Makefile \      src/engines/gig/Makefile \
998      src/engines/common/Makefile \      src/engines/common/Makefile \
999      src/common/Makefile src/lib/Makefile \      src/common/Makefile \
     src/lib/fileloader/Makefile \  
     src/lib/fileloader/libgig/Makefile \  
1000      src/testcases/Makefile \      src/testcases/Makefile \
1001      src/drivers/Makefile \      src/drivers/Makefile \
1002      src/drivers/audio/Makefile \      src/drivers/audio/Makefile \
# Line 761  AC_OUTPUT( \ Line 1006  AC_OUTPUT( \
1006      Artwork/Makefile \      Artwork/Makefile \
1007      scripts/Makefile \      scripts/Makefile \
1008      osx/Makefile \      osx/Makefile \
1009      osx/LinuxSampler.xcode/Makefile \      osx/linuxsampler.xcodeproj/Makefile \
1010      Documentation/Makefile \      Documentation/Makefile \
1011      Documentation/Engines/Makefile \      Documentation/Engines/Makefile \
1012      Documentation/Engines/gig/Makefile \      Documentation/Engines/gig/Makefile \
# Line 769  AC_OUTPUT( \ Line 1014  AC_OUTPUT( \
1014      Doxyfile \      Doxyfile \
1015  )  )
1016    
1017    # resolve all nested variables in '${config_plugin_dir}'
1018    # (merely for providing a human readable summary below)
1019    while test $config_plugin_dir != `eval echo ${config_plugin_dir}` ; do
1020            config_plugin_dir=`eval echo ${config_plugin_dir}`
1021    done
1022    
1023    
1024  ###########################################################################  ###########################################################################
1025  # Output All Configuration Options  # Output All Configuration Options
# Line 792  echo "# Maximum Stream Refill Size: ${co Line 1043  echo "# Maximum Stream Refill Size: ${co
1043  echo "# Stream Size: ${config_stream_size}"  echo "# Stream Size: ${config_stream_size}"
1044  echo "# Maximum Disk Streams: ${config_max_streams}"  echo "# Maximum Disk Streams: ${config_max_streams}"
1045  echo "# Maximum Voices: ${config_max_voices}"  echo "# Maximum Voices: ${config_max_voices}"
1046    echo "# Default Subfragment Size: ${config_subfragment_size}"
1047    echo "# Default Global Volume Attenuation: ${config_global_attenuation_default}"
1048  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"  echo "# Voice Stealing Algorithm: ${config_voice_steal_algo}"
1049  echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}"  echo "# Signed Triangular Oscillator Algorithm: ${config_signed_triang_algo}"
1050  echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}"  echo "# Unsigned Triangular Oscillator Algorithm: ${config_unsigned_triang_algo}"
1051  echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte"  echo "# SysEx Buffer Size: ${config_sysex_buffer_size} Byte"
1052  echo "# Filter Update Steps: ${config_filter_update_steps}"  echo "# Min. Portamento Time: ${config_portamento_time_min} s"
1053    echo "# Max. Portamento Time: ${config_portamento_time_max} s"
1054    echo "# Default Portamento Time: ${config_portamento_time_default} s"
1055  echo "# Force Filter Usage: ${config_force_filter}"  echo "# Force Filter Usage: ${config_force_filter}"
1056  echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz"  echo "# Filter Cutoff Minimum: ${config_filter_cutoff_min} Hz"
1057  echo "# Filter Cutoff Maximum: ${config_filter_cutoff_max} Hz"  echo "# Filter Cutoff Maximum: ${config_filter_cutoff_max} Hz"
# Line 805  echo "# Override Filter Resonance Contro Line 1060  echo "# Override Filter Resonance Contro
1060  echo "# Override Filter Type: ${config_override_filter_type}"  echo "# Override Filter Type: ${config_override_filter_type}"
1061  echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"  echo "# Assert GS SysEx Checksum: ${config_assert_gs_sysex_checksum}"
1062  echo "# Process Muted Channels: ${config_process_muted_channels}"  echo "# Process Muted Channels: ${config_process_muted_channels}"
1063    echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"
1064    echo "# Interpolate Volume: ${config_interpolate_volume}"
1065    echo "# Instruments database support: ${config_instruments_db}"
1066    if test "$config_instruments_db" = "yes"; then
1067    echo "# Instruments DB default location: ${config_default_instruments_db_file}"
1068    fi
1069    echo "# Plugin Path: ${config_plugin_dir}"
1070  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"
1071  echo "# Read './configure --help' or file 'configure.in' for details.     #"  echo "# Read './configure --help' or file 'configure.in' for details.     #"
1072  echo "#####################################################################"  echo "#####################################################################"

Legend:
Removed from v.716  
changed lines
  Added in v.1364

  ViewVC Help
Powered by ViewVC