/[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 1360 by schoenebeck, Sun Sep 30 20:04:11 2007 UTC revision 1364 by schoenebeck, Mon Oct 1 13:38:37 2007 UTC
# Line 295  fi Line 295  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="3.1.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)
# Line 308  fi Line 329  fi
329  AC_SUBST(GIG_CFLAGS)  AC_SUBST(GIG_CFLAGS)
330  AC_SUBST(GIG_LIBS)  AC_SUBST(GIG_LIBS)
331    
332  # Check presence of sqlite3  # Instruments DB feature (requires SQLite 3.3)
333  sqlite_version="3.3"  AC_ARG_ENABLE(instruments-db,
334  PKG_CHECK_MODULES(SQLITE3, sqlite3 >= $sqlite_version, HAVE_SQLITE3=true, HAVE_SQLITE3=false)    [  --disable-instruments-db
335  AC_SUBST(SQLITE3_LIBS)                            Disable compilation of the sampler's instruments
336  AC_SUBST(SQLITE3_CFLAGS)                            database feature. You need to have SQLite 3.3
337  if test $HAVE_SQLITE3 = false; then                            or younger installed for this feature.],
338      HAVE_SQLITE3=0;    [config_instruments_db="$enableval"],
339      instruments_db_support="no"    [config_instruments_db="yes"]
340      echo "*** Required sqlite version not found!"  )
341      echo "*** You need to have sqlite version ${sqlite_version} or higher"  HAVE_SQLITE3=0;
342      echo "*** for instruments database support to be enabled."  if test "$config_instruments_db" = "yes"; then
343      echo "*** Support for instruments DB will be disabled!"      # 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"
     instruments_db_support="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 839  AC_ARG_ENABLE(plugin-dir, Line 860  AC_ARG_ENABLE(plugin-dir,
860  )  )
861  AC_SUBST(config_plugin_dir)  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 1024  echo "# Assert GS SysEx Checksum: ${conf Line 1062  echo "# Assert GS SysEx Checksum: ${conf
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}"  echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"
1064  echo "# Interpolate Volume: ${config_interpolate_volume}"  echo "# Interpolate Volume: ${config_interpolate_volume}"
1065  echo "# Instruments database support: ${instruments_db_support}"  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}"  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.     #"

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

  ViewVC Help
Powered by ViewVC