/[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 1049 by schoenebeck, Wed Feb 28 06:53:42 2007 UTC revision 1259 by schoenebeck, Tue Jun 26 21:41:09 2007 UTC
# Line 5  AC_INIT(configure.in) Line 5  AC_INIT(configure.in)
5    
6  LINUXSAMPLER_RELEASE_MAJOR=0  LINUXSAMPLER_RELEASE_MAJOR=0
7  LINUXSAMPLER_RELEASE_MINOR=4  LINUXSAMPLER_RELEASE_MINOR=4
8  LINUXSAMPLER_RELEASE_BUILD=0.4cvs  LINUXSAMPLER_RELEASE_BUILD=0.6cvs
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 296  AM_CONDITIONAL(HAVE_COREMIDI, test $have Line 296  AM_CONDITIONAL(HAVE_COREMIDI, test $have
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="3.1.0"  libgig_version="3.1.1"
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 308  fi Line 308  fi
308  AC_SUBST(GIG_CFLAGS)  AC_SUBST(GIG_CFLAGS)
309  AC_SUBST(GIG_LIBS)  AC_SUBST(GIG_LIBS)
310    
311  # SQLITE3  # Check presence of sqlite3
312  PKG_CHECK_MODULES(SQLITE3, sqlite3, HAVE_SQLITE3=true, HAVE_SQLITE3=false)  sqlite_version="3.3"
313    PKG_CHECK_MODULES(SQLITE3, sqlite3 >= $sqlite_version, HAVE_SQLITE3=true, HAVE_SQLITE3=false)
314  AC_SUBST(SQLITE3_LIBS)  AC_SUBST(SQLITE3_LIBS)
315  AC_SUBST(SQLITE3_CFLAGS)  AC_SUBST(SQLITE3_CFLAGS)
316  if test $HAVE_SQLITE3 = false; then  if test $HAVE_SQLITE3 = false; then
317      HAVE_SQLITE3=0;      HAVE_SQLITE3=0;
318      echo "no, support for instrument DB will be disabled!"      instruments_db_support="no"
319        echo "*** Required sqlite version not found!"
320        echo "*** You need to have sqlite version ${sqlite_version} or higher"
321        echo "*** for instruments database support to be enabled."
322        echo "*** Support for instruments DB will be disabled!"
323  else  else
324      HAVE_SQLITE3=1      HAVE_SQLITE3=1
325      echo "yes"      instruments_db_support="yes"
326  fi  fi
327  AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)  AM_CONDITIONAL(HAVE_SQLITE3, test $HAVE_SQLITE3 = 1)
328  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 have SQLITE3 installed.])
# Line 343  fi Line 348  fi
348  # TODO: should we use AC_ARG_VAR(variable, description) instead?  # TODO: should we use AC_ARG_VAR(variable, description) instead?
349    
350  AC_ARG_ENABLE(asm,  AC_ARG_ENABLE(asm,
351    [  --enable-asm    [  --disable-asm
352                            Enable hand-crafted assembly optimizations                            Enable hand-crafted assembly optimizations
353                            (default=off). LinuxSampler provides CPU specific                            (default=on). LinuxSampler provides CPU specific
354                            assembly optimizations for the most important                            assembly optimizations. This is currently limited
355                            synthesis algorithms. This is currently disabled                            to just enter a fast (denormal) FPU mode on x86
356                            by default since current asm code is broken.],                            platforms. There are currently no synthesis core
357    [config_asm="yes"],                            assembly optimizations anymore since LS 0.4.0],
358    [config_asm="no"]    [config_asm="no"],
359      [config_asm="yes"]
360  )  )
361  if test "$config_asm" = "yes"; then  if test "$config_asm" = "yes"; then
362    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.])
363  fi  fi
364    
365  AC_ARG_ENABLE(dev-mode,  AC_ARG_ENABLE(dev-mode,
# Line 822  if test "$config_interpolate_volume" = " Line 828  if test "$config_interpolate_volume" = "
828    AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.])    AC_DEFINE_UNQUOTED(CONFIG_INTERPOLATE_VOLUME, 1, [Define to 1 if you want to enable interpolation of volume modulation.])
829  fi  fi
830    
831    AC_ARG_ENABLE(plugin-dir,
832      [  --enable-plugin-dir
833                              Directory where the sampler shall look for potential plugins,
834                              that is 3rd party shared libraries that should be loaded by
835                              the sampler on startup. By default the sampler will search
836                              for plugins in the subdirectory "plugins" below its own
837                              library directory.
838                              (i.e. /usr/local/lib/linuxsampler/plugins)],
839      [config_plugin_dir="${enableval}"],
840      [config_plugin_dir="${libdir}/linuxsampler/plugins"]
841    )
842    AC_SUBST(config_plugin_dir)
843    
844    
845  ###########################################################################  ###########################################################################
846  # Automatic Benchmarks (to detect the best algorithms for the system)  # Automatic Benchmarks (to detect the best algorithms for the system)
# Line 856  if test "$config_signed_triang_algo" = " Line 875  if test "$config_signed_triang_algo" = "
875          echo "Call './configure --help' for further information or read configure.in."          echo "Call './configure --help' for further information or read configure.in."
876          exit -1;          exit -1;
877      fi      fi
878    else
879        case "$config_signed_triang_algo" in
880            intmath)
881                triang_signed=2 ;;
882            diharmonic)
883                triang_signed=3 ;;
884            intmathabs)
885                triang_signed=5 ;;
886        esac
887  fi  fi
888  AC_DEFINE_UNQUOTED(CONFIG_SIGNED_TRIANG_ALGO, ${triang_signed}, [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.])
889    
# Line 887  if test "$config_unsigned_triang_algo" = Line 915  if test "$config_unsigned_triang_algo" =
915          echo "Call './configure --help' for further information or read configure.in."          echo "Call './configure --help' for further information or read configure.in."
916          exit -1;          exit -1;
917      fi      fi
918    else
919        case "$config_unsigned_triang_algo" in
920            intmath)
921                triang_unsigned=2 ;;
922            diharmonic)
923                triang_unsigned=3 ;;
924            intmathabs)
925                triang_unsigned=5 ;;
926        esac
927  fi  fi
928  AC_DEFINE_UNQUOTED(CONFIG_UNSIGNED_TRIANG_ALGO, ${triang_unsigned}, [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.])
929    
# Line 918  AC_OUTPUT( \ Line 955  AC_OUTPUT( \
955      man/Makefile \      man/Makefile \
956      man/linuxsampler.1 \      man/linuxsampler.1 \
957      src/Makefile \      src/Makefile \
958        src/db/Makefile \
959      src/network/Makefile \      src/network/Makefile \
960      src/engines/Makefile \      src/engines/Makefile \
961      src/engines/gig/Makefile \      src/engines/gig/Makefile \
# Line 934  AC_OUTPUT( \ Line 972  AC_OUTPUT( \
972      Artwork/Makefile \      Artwork/Makefile \
973      scripts/Makefile \      scripts/Makefile \
974      osx/Makefile \      osx/Makefile \
975      osx/LinuxSampler.xcode/Makefile \      osx/linuxsampler.xcodeproj/Makefile \
976      Documentation/Makefile \      Documentation/Makefile \
977      Documentation/Engines/Makefile \      Documentation/Engines/Makefile \
978      Documentation/Engines/gig/Makefile \      Documentation/Engines/gig/Makefile \
# Line 942  AC_OUTPUT( \ Line 980  AC_OUTPUT( \
980      Doxyfile \      Doxyfile \
981  )  )
982    
983    # resolve all nested variables in '${config_plugin_dir}'
984    # (merely for providing a human readable summary below)
985    while test $config_plugin_dir != `eval echo ${config_plugin_dir}` ; do
986            config_plugin_dir=`eval echo ${config_plugin_dir}`
987    done
988    
989    
990  ###########################################################################  ###########################################################################
991  # Output All Configuration Options  # Output All Configuration Options
# Line 984  echo "# Assert GS SysEx Checksum: ${conf Line 1028  echo "# Assert GS SysEx Checksum: ${conf
1028  echo "# Process Muted Channels: ${config_process_muted_channels}"  echo "# Process Muted Channels: ${config_process_muted_channels}"
1029  echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"  echo "# Process All-Notes-Off MIDI message: ${config_process_all_notes_off}"
1030  echo "# Interpolate Volume: ${config_interpolate_volume}"  echo "# Interpolate Volume: ${config_interpolate_volume}"
1031    echo "# Instruments database support: ${instruments_db_support}"
1032    echo "# Plugin Path: ${config_plugin_dir}"
1033  echo "#-------------------------------------------------------------------#"  echo "#-------------------------------------------------------------------#"
1034  echo "# Read './configure --help' or file 'configure.in' for details.     #"  echo "# Read './configure --help' or file 'configure.in' for details.     #"
1035  echo "#####################################################################"  echo "#####################################################################"

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

  ViewVC Help
Powered by ViewVC