Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xiph/speex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon <ron@debian.org>2013-12-07 04:41:30 +0400
committerRon <ron@debian.org>2013-12-07 04:57:07 +0400
commit8aa51a2074b2dd272d9a7e3f164d8efdd6c229cc (patch)
tree1c691a3445e2a66731ec6d98242f11c0c012645d
parentc23a4ea0c838901d75f65792687357ad96a6086c (diff)
Make autotools a bit less whiny on modern systems
There's lots more that could and possibly should be done here, but this is a simple first pass. We could probably just replace SPEEX_VERSION with PACKAGE_VERSION everywhere, but that would tangle too many other things into this set. Use 'foreign' so the INSTALL file doesn't get stomped every time autogen is run.
-rw-r--r--.gitignore5
-rw-r--r--Makefile.am1
-rwxr-xr-xautogen.sh3
-rw-r--r--configure.ac40
-rw-r--r--libspeex/Makefile.am2
-rw-r--r--src/Makefile.am2
6 files changed, 32 insertions, 21 deletions
diff --git a/.gitignore b/.gitignore
index ce45b88..523fe65 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,6 +9,7 @@ Speex.kdevelop.pcs
Speex.kdevses
aclocal.m4
autom4te.cache
+compile
config.guess
config.h.in
config.sub
@@ -27,9 +28,7 @@ config.h
config.log
config.status
include/speex/speex_config_types.h
-*.swp
-testdenoise
-testecho
+*.sw[lmnop]
testenc
testenc_uwb
testenc_wb
diff --git a/Makefile.am b/Makefile.am
index 5908efb..7de02e7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,6 +3,7 @@
# To disable automatic dependency tracking if using other tools than
# gcc and gmake, add the option 'no-dependencies'
AUTOMAKE_OPTIONS = 1.8
+ACLOCAL_AMFLAGS = -I m4
m4datadir = $(datadir)/aclocal
m4data_DATA = speex.m4
diff --git a/autogen.sh b/autogen.sh
index dc6f711..b58da31 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -7,5 +7,8 @@ test -n "$srcdir" && cd "$srcdir"
echo "Updating build configuration files, please wait...."
+mkdir -p m4
+
+ACLOCAL_FLAGS="-I m4"
autoreconf -if
diff --git a/configure.ac b/configure.ac
index 0979deb..40606ea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,33 +1,30 @@
dnl Process this file with autoconf to produce a configure script. -*-m4-*-
-AC_INIT(libspeex/speex.c)
+AC_INIT([speex],[1.2rc1],[speex-dev@xiph.org])
+
+AC_CONFIG_SRCDIR([libspeex/speex.c])
+AC_CONFIG_MACRO_DIR([m4])
+
+dnl enable silent rules on automake 1.11 and later
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
-AM_CONFIG_HEADER([config.h])
SPEEX_MAJOR_VERSION=1
SPEEX_MINOR_VERSION=1
SPEEX_MICRO_VERSION=16
SPEEX_EXTRA_VERSION=
-#SPEEX_VERSION=
-#SPEEX_VERSION=$SPEEX_MAJOR_VERSION.$SPEEX_MINOR_VERSION.$SPEEX_MICRO_VERSION$SPEEX_EXTRA_VERSION
-SPEEX_VERSION="1.2rc1"
SPEEX_LT_CURRENT=6
SPEEX_LT_REVISION=0
SPEEX_LT_AGE=5
+
AC_SUBST(SPEEX_LT_CURRENT)
AC_SUBST(SPEEX_LT_REVISION)
AC_SUBST(SPEEX_LT_AGE)
-# For automake.
-VERSION=$SPEEX_VERSION
-PACKAGE=speex
-
-AC_SUBST(SPEEX_VERSION)
-
-AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
-AM_MAINTAINER_MODE
+AM_INIT_AUTOMAKE([foreign no-define])
+AM_MAINTAINER_MODE([enable])
AC_CANONICAL_HOST
AC_LIBTOOL_WIN32_DLL
@@ -126,7 +123,11 @@ AC_CHECK_FUNCS([getopt_long],,
AC_LIBOBJ(getopt)
AC_LIBOBJ(getopt1)])])
-AC_DEFINE_UNQUOTED(SPEEX_VERSION, "${SPEEX_VERSION}", [Complete version string])
+SPEEX_VERSION=$PACKAGE_VERSION
+
+AC_SUBST(SPEEX_VERSION)
+
+AC_DEFINE_UNQUOTED(SPEEX_VERSION, "${PACKAGE_VERSION}", [Complete version string])
AC_DEFINE_UNQUOTED(SPEEX_MAJOR_VERSION, ${SPEEX_MAJOR_VERSION}, [Version major])
AC_DEFINE_UNQUOTED(SPEEX_MINOR_VERSION, ${SPEEX_MINOR_VERSION}, [Version minor])
AC_DEFINE_UNQUOTED(SPEEX_MICRO_VERSION, ${SPEEX_MICRO_VERSION}, [Version micro])
@@ -282,7 +283,8 @@ fi
AC_SUBST(SIZE16)
AC_SUBST(SIZE32)
-AC_OUTPUT([Makefile libspeex/Makefile src/Makefile doc/Makefile Speex.spec
+AC_CONFIG_FILES([
+ Makefile libspeex/Makefile src/Makefile doc/Makefile Speex.spec
include/Makefile include/speex/Makefile speex.pc
win32/Makefile win32/libspeex/Makefile win32/speexenc/Makefile
win32/speexdec/Makefile symbian/Makefile
@@ -303,7 +305,13 @@ AC_OUTPUT([Makefile libspeex/Makefile src/Makefile doc/Makefile Speex.spec
win32/VS2008/speexenc/Makefile
include/speex/speex_config_types.h ti/Makefile
ti/speex_C54_test/Makefile ti/speex_C55_test/Makefile
- ti/speex_C64_test/Makefile ])
+ ti/speex_C64_test/Makefile
+])
+
+AC_CONFIG_HEADERS([config.h])
+
+AC_OUTPUT
+
if test "x$src" = "x"; then
echo "**IMPORTANT**"
diff --git a/libspeex/Makefile.am b/libspeex/Makefile.am
index e71173b..0052814 100644
--- a/libspeex/Makefile.am
+++ b/libspeex/Makefile.am
@@ -17,7 +17,7 @@ else
FFTSRC=
endif
-INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include/speex -I$(top_builddir) @OGG_CFLAGS@ @FFT_CFLAGS@
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include/speex -I$(top_builddir) @OGG_CFLAGS@ @FFT_CFLAGS@
lib_LTLIBRARIES = libspeex.la
diff --git a/src/Makefile.am b/src/Makefile.am
index bdb8936..ed4cece 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -5,7 +5,7 @@
# Disable automatic dependency tracking if using other tools than gcc and gmake
#AUTOMAKE_OPTIONS = no-dependencies
-INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include/speex -I$(top_builddir) @OGG_CFLAGS@ @SPEEXDSP_CFLAGS@
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include/speex -I$(top_builddir) @OGG_CFLAGS@ @SPEEXDSP_CFLAGS@
man_MANS = speexenc.1 speexdec.1