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

Diff of /qsampler/trunk/configure.ac

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

revision 3634 by capela, Mon Oct 21 00:13:19 2019 UTC revision 3824 by capela, Sat Sep 26 18:49:03 2020 UTC
# Line 1  Line 1 
1  # Process this file with autoconf to produce a configure script.  # Process this file with autoconf to produce a configure script.
2  AC_INIT(Qsampler, 0.6.1, rncbc@rncbc.org, qsampler)  AC_INIT(Qsampler, 0.9.0, rncbc@rncbc.org, qsampler)
3    
4  AC_CONFIG_SRCDIR(src/qsampler.cpp)  AC_CONFIG_SRCDIR(src/qsampler.cpp)
5  AC_CONFIG_HEADERS(src/config.h)  AC_CONFIG_HEADERS(src/config.h)
# Line 9  AC_CONFIG_FILES(Makefile qsampler.spec s Line 9  AC_CONFIG_FILES(Makefile qsampler.spec s
9  AC_CACHE_VAL([ac_cv_build_version], [  AC_CACHE_VAL([ac_cv_build_version], [
10     ac_cv_build_version=$(git describe --tags --dirty --abbrev=6 2>/dev/null)     ac_cv_build_version=$(git describe --tags --dirty --abbrev=6 2>/dev/null)
11     if test -n "$ac_cv_build_version"; then     if test -n "$ac_cv_build_version"; then
12        ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/^[[^_]]*[[_v]]//i')        ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/^[[^0-9]]\+//')
13        ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/-g/git./')        ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/-g/git./')
14        ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/[[_|-]]\+/./g')        ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/[[_|-]]\+/./g')
15        ac_cv_build_version_extra=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)        ac_cv_build_version_extra=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
# Line 148  AC_CACHE_CHECK([for g++ major version], Line 148  AC_CACHE_CHECK([for g++ major version],
148  ])  ])
149  ac_gxx_version_major=$ac_cv_gxx_version_major  ac_gxx_version_major=$ac_cv_gxx_version_major
150  if test $ac_gxx_version_major -ge 4 -a $ac_gxx_version_major -lt 6; then  if test $ac_gxx_version_major -ge 4 -a $ac_gxx_version_major -lt 6; then
151     CPPFLAGS="-std=c++11 $CPPFLAGS"     CXXFLAGS="-std=c++11 $CXXFLAGS"
152     ac_cflags="-std=c++11 $ac_cflags"     ac_cflags="-std=c++11 $ac_cflags"
153    elif test $ac_gxx_version_major -ge 6 -a $ac_gxx_version_major -lt 11; then
154       CXXFLAGS="-std=c++17 $CXXFLAGS"
155       ac_cflags="-std=c++17 $ac_cflags"
156  fi  fi
157    
158  # Check for proper flags.  # Check for proper flags.
# Line 214  AC_CACHE_CHECK([for Qt major version], [ Line 217  AC_CACHE_CHECK([for Qt major version], [
217     ac_cv_qt_version_major=$(($ac_cv_qt_version_major + 0))     ac_cv_qt_version_major=$(($ac_cv_qt_version_major + 0))
218  ])  ])
219  ac_qt_version_major=$ac_cv_qt_version_major  ac_qt_version_major=$ac_cv_qt_version_major
220  if test $ac_qt_version_major -ne 5; then  if test $ac_qt_version_major -lt 5; then
221          AC_PATH_TOOL(ac_cv_qmake, qmake-qt5, [no], $ac_path)          AC_PATH_TOOL(ac_cv_qmake, qmake-qt5, [no], $ac_path)
222          ac_qmake=$ac_cv_qmake          ac_qmake=$ac_cv_qmake
223  fi  fi
# Line 457  if test "x$ac_max_voices" = "xyes"; then Line 460  if test "x$ac_max_voices" = "xyes"; then
460    AC_DEFINE(CONFIG_MAX_VOICES, 1, [Define if max. voices / streams is available.])    AC_DEFINE(CONFIG_MAX_VOICES, 1, [Define if max. voices / streams is available.])
461  fi  fi
462    
463    AC_CHECK_LIB(lscp, lscp_client_connection_lost, [ac_lscp_conn_lost="yes"], [ac_lscp_conn_lost="no"])
464    if test "x$ac_lscp_conn_lost" = "xyes"; then
465      AC_DEFINE(CONFIG_LSCP_CLIENT_CONNECTION_LOST, 1, [Define if liblscp function lscp_client_connection_lost() is available.])
466    fi
467    
468  # Check for optional libraries.  # Check for optional libraries.
469  if test "x$ac_libgig" = "xyes"; then  if test "x$ac_libgig" = "xyes"; then
470     PKG_CHECK_MODULES([GIG], [gig >= 3.3.0], [ac_libgig="yes"], [ac_libgig="no"])     PKG_CHECK_MODULES([GIG], [gig >= 3.3.0], [ac_libgig="yes"], [ac_libgig="no"])
# Line 549  fi Line 557  fi
557  echo "  LSCP channel MIDI event support  . . . . . . . . .: $ac_channel_midi_event"  echo "  LSCP channel MIDI event support  . . . . . . . . .: $ac_channel_midi_event"
558  echo "  LSCP device MIDI event support . . . . . . . . . .: $ac_device_midi_event"  echo "  LSCP device MIDI event support . . . . . . . . . .: $ac_device_midi_event"
559  echo "  LSCP runtime max. voices / disk streams support  .: $ac_max_voices"  echo "  LSCP runtime max. voices / disk streams support  .: $ac_max_voices"
560    echo "  LSCP connection loss support . . . . . . . . . . .: $ac_lscp_conn_lost"
561  echo  echo
562  echo "  Unique/Single instance support . . . . . . . . . .: $ac_xunique"  echo "  Unique/Single instance support . . . . . . . . . .: $ac_xunique"
563  echo "  Debugger stack-trace (gdb) . . . . . . . . . . . .: $ac_stacktrace"  echo "  Debugger stack-trace (gdb) . . . . . . . . . . . .: $ac_stacktrace"

Legend:
Removed from v.3634  
changed lines
  Added in v.3824

  ViewVC Help
Powered by ViewVC