mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 15:49:41 +02:00
Prepare for compiling with wxWidgets 3.1.1
- Upped version number to Audacity 2.3.0 in configure.ac - configure.ac now wants 3.1.1 but still accepts 3.0.0 (for top level, lib-widgets-extra and mod-nyq-bench) - .travis.yml now apt-gets autopoint. This allows us to do an autoreconf -ivf on Travis, IF we want to, but i snot used yet. - FileDialog MakeFile.am now has LDFLAGS to resolve libtools issue on Travis with missing --tags=CXX
This commit is contained in:
parent
8c15422211
commit
b7b367a165
@ -7,7 +7,7 @@ addons:
|
||||
- gcc-4.9
|
||||
before_install:
|
||||
- sudo apt-get update -qq
|
||||
- sudo apt-get install -y libwxgtk3.0-dev libgtk2.0-dev gettext libasound2-dev alsa-utils alsa-oss
|
||||
- sudo apt-get install -y libwxgtk3.0-dev libgtk2.0-dev gettext autopoint libasound2-dev alsa-utils alsa-oss
|
||||
- git show -s --format="#define REV_LONG \"%H\"%n#define REV_TIME \"%cd\"%n" | tee ./src/RevisionIdent.h
|
||||
- export CXX="g++-4.9" CC="gcc-4.9"
|
||||
- FLAGS="-w -std=gnu++11"
|
||||
@ -17,4 +17,4 @@ before_install:
|
||||
language:
|
||||
- cpp
|
||||
script:
|
||||
- time ./configure && time make -j2
|
||||
- time ./configure && time make -j2
|
||||
|
13
configure.ac
13
configure.ac
@ -34,7 +34,7 @@ dnl Require autoconf >= 2.59
|
||||
AC_PREREQ([2.59])
|
||||
|
||||
dnl Init autoconf
|
||||
AC_INIT([audacity], [2.2.2])
|
||||
AC_INIT([audacity], [2.3.0])
|
||||
dnl Check for existence of Audacity.h
|
||||
AC_CONFIG_SRCDIR([src/Audacity.h])
|
||||
AC_CONFIG_AUX_DIR([autotools])
|
||||
@ -186,7 +186,7 @@ AC_ARG_ENABLE(dynamic-loading,
|
||||
|
||||
AC_ARG_WITH(wx-version,
|
||||
[AS_HELP_STRING([--with-wx-version],
|
||||
[select wxWidgets version (if both installed) [3.0,]])],
|
||||
[select wxWidgets version (if both installed) [3.1,]])],
|
||||
wx_preference="--version=$withval",
|
||||
wx_preference="")
|
||||
|
||||
@ -288,7 +288,7 @@ dnl there isn't a way to turn them off.
|
||||
dnl-------------------------------------------------------------
|
||||
|
||||
dnl wxWidgets -- we assume that if wx-config is found, wxWidgets is successfully installed.
|
||||
AC_PATH_PROGS(WX_CONFIG, $WX_CONFIG wx-config wx-config-3.0, no, $PATH:/usr/local/bin )
|
||||
AC_PATH_PROGS(WX_CONFIG, $WX_CONFIG wx-config wx-config-3.1, no, $PATH:/usr/local/bin )
|
||||
if [[ "$WX_CONFIG" = "no" ]] ; then
|
||||
AC_MSG_ERROR([Could not find wx-config: is wxWidgets installed? is wx-config in your path?])
|
||||
fi
|
||||
@ -305,15 +305,16 @@ dnl more things we always pass to wx-config
|
||||
wxconfigargs="$static_wx_preference $unicode_preference $wxconfigargs $wx_preference"
|
||||
wx_version=`${WX_CONFIG} $wxconfigargs --version`
|
||||
|
||||
AC_MSG_NOTICE([Checking that the chosen version of wxWidgets is 3.0.x])
|
||||
AC_MSG_NOTICE([Checking that the chosen version of wxWidgets is 3.1.x (or 3.0.x)])
|
||||
|
||||
case "${wx_version}" in
|
||||
3.0.*)
|
||||
3.1.* | 3.0.*)
|
||||
echo "Great, you're using wxWidgets ${wx_version}!"
|
||||
;;
|
||||
*)
|
||||
wx_list=`${WX_CONFIG} --list`
|
||||
AC_MSG_ERROR([Unable to locate a suitable configuration of wxWidgets v3.0.x or higher.
|
||||
AC_MSG_ERROR([Unable to locate a suitable configuration of wxWidgets v3.1.x
|
||||
or higher (or even of 3.0.x). We recommend building with 3.1.x.
|
||||
The currently available configurations are listed below. If necessary, either
|
||||
install the package for your distribution or download the latest version of
|
||||
wxWidgets
|
||||
|
@ -2,6 +2,7 @@ ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
lib_LTLIBRARIES = libFileDialog.la
|
||||
|
||||
libFileDialog_la_LIBTOOLFLAGS = --tag=CXX
|
||||
libFileDialog_la_CPPFLAGS = $(WX_CXXFLAGS) -Wno-deprecated-declarations
|
||||
libFileDialog_la_LIBADD = $(WX_LIBS)
|
||||
libFileDialog_la_SOURCES = FileDialog.cpp FileDialog.h
|
||||
|
@ -53,10 +53,10 @@ AC_ARG_ENABLE(debug,
|
||||
|
||||
AC_ARG_WITH(wx-version,
|
||||
[AS_HELP_STRING([--with-wx-version],
|
||||
[select wxWidgets version (if both installed) [2.8,]])],
|
||||
[select wxWidgets version (if both installed) [3.1,]])],
|
||||
wx_preference="--version=$withval",
|
||||
wx_preference="")
|
||||
dnl Right now only support wx 3.0
|
||||
dnl Right now only support wx 3.1
|
||||
|
||||
dnl ----------------------------------------------------
|
||||
dnl If user asked for debug, put debug in compiler flags
|
||||
@ -99,12 +99,12 @@ fi
|
||||
dnl --- check for required libraries ---
|
||||
|
||||
dnl wxWidgets -- we assume that if wx-config is found, wxWidgets is successfully installed.
|
||||
AC_PATH_PROGS(WX_CONFIG, wx-config wx-config-3.0, no, $PATH:/usr/local/bin )
|
||||
AC_PATH_PROGS(WX_CONFIG, wx-config wx-config-3.1, no, $PATH:/usr/local/bin )
|
||||
if [[ "$WX_CONFIG" = "no" ]] ; then
|
||||
AC_MSG_ERROR("Could not find wx-config: is wxWidgets installed? is wx-config in your path?")
|
||||
fi
|
||||
|
||||
dnl --- Check that the wx version is at least 2.8.x ---
|
||||
dnl --- Check that the wx version is at least 3.1.x---
|
||||
|
||||
if test "x$debug_preference" = "xyes"; then
|
||||
dnl want debug wx as well
|
||||
@ -119,15 +119,15 @@ wxconfigargs="$static_wx_preference $unicode_preference $wxconfigargs $wx_prefer
|
||||
|
||||
wx_version=`${WX_CONFIG} $wxconfigargs --version`
|
||||
|
||||
AC_MSG_NOTICE([Checking that the chosen version of wxWidgets is 2.8.x])
|
||||
AC_MSG_NOTICE([Checking that the chosen version of wxWidgets is 3.1.x (or 3.0.x)])
|
||||
|
||||
case "${wx_version}" in
|
||||
2.8.* | 3.0.*)
|
||||
3.1.* | 3.0.*)
|
||||
echo "Great, you're using wxWidgets ${wx_version}!"
|
||||
;;
|
||||
*)
|
||||
wx_list=`${WX_CONFIG} --list`
|
||||
AC_MSG_ERROR([Unable to locate a suitable configuration of wxWidgets v2.8.x or higher.
|
||||
AC_MSG_ERROR([Unable to locate a suitable configuration of wxWidgets v3.0.x or higher.
|
||||
The currently available configurations are listed below. If necessary, either
|
||||
install the package for your distribution or download the latest version of
|
||||
wxWidgets
|
||||
|
@ -54,7 +54,7 @@ AC_ARG_WITH(wx-config,
|
||||
wx_config="")
|
||||
|
||||
dnl wxWidgets -- we assume that if wx-config is found, wxWidgets is successfully installed.
|
||||
AC_PATH_PROGS(WX_CONFIG, wx-config wx-config-3.0, no, $PATH:/usr/local/bin )
|
||||
AC_PATH_PROGS(WX_CONFIG, wx-config wx-config-3.1, no, $PATH:/usr/local/bin )
|
||||
if [[ "$WX_CONFIG" = "no" ]] ; then
|
||||
AC_MSG_ERROR("Could not find wx-config: is wxWidgets installed? is wx-config in your path?")
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user