Commit Graph

390 Commits

Author SHA1 Message Date
Jean Pierre Cimalando
a7e9fb5f7c List pkgconfig dependencies in Requires.private 2020-03-08 13:02:42 +11:00
Erik de Castro Lopo
6978654319 configure.ac: 1.0.29rc2 2019-06-13 19:19:10 +10:00
David Seifert
d5531723a0 Ignore -Wformat-truncation warnings
* These are spurious and pollute logs unnecessarily.
2019-04-08 11:06:01 +10:00
Erik de Castro Lopo
7c5da26b70 static-deps-build.mk: Add opus to build 2019-02-26 20:22:14 +11:00
Arthur Taylor
326e4533f3 Opus file support
Ogg: Introduce new functions ogg_sync_fseek(), ogg_ftell(), ogg_next_page(),
ogg_stream_next_page(), ogg_sync_last_page_before(), and
ogg_stream_unpack_page(). Use ogg_sync_* for ogg_read_first_page(). Bump libogg
version requirement from 1.1.3 to 1.3.0 as LibOgg 1.3.0 is required for
ogg_stream_pageout_fill() and ogg_stream_flush_fill().

Opus: Add opus support. Document added commands
SFC_(GET|SET)_ORIGINAL_SAMPLERATE. Added or extended tests ogg_opus_test,
compression_size_test, floating_point_test, lossy_comp_test, string_test,
external_libs_test. Change Opus to non-experimental.
2019-02-20 19:30:30 +11:00
evpobr
1e4e839008
Update configure.ac
We use C99, so no we don't need -Wdeclaration-after-statement warning

Related to: #357
2018-09-14 09:29:38 +05:00
Erik de Castro Lopo
adc0d425f9 configure.ac: Report whether building Octave interface 2018-01-07 12:14:46 +11:00
Jan Starý
d1c591aea2 configure.ac: Fix --enable-octave doc string
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2018-01-07 11:50:52 +11:00
Erik de Castro Lopo
5d4d1feca0 Remove redundant libsndfile.def.in 2017-10-31 18:42:40 +11:00
Erik de Castro Lopo
af9d26411b Scripts/build-test-tarball.mk.in: Updates 2017-10-28 16:17:55 +11:00
Erik de Castro Lopo
ac5b66a447 configure.ac: Add -mstackrealign to CFLAGS for mingw* 2017-10-27 19:35:21 +11:00
Ghabry
3f8d728f01 configure.ac: Fix configure for vitasdk
Closes: https://github.com/erikd/libsndfile/issues/310
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-09-30 20:28:14 +10:00
David Seifert
e6c42ff027 Make build system completely non-recursive 2017-09-26 19:35:56 +10:00
Erik de Castro Lopo
c144d78fd4 Fix sf_count_t detection on android
Closes: https://github.com/erikd/libsndfile/issues/295
2017-07-03 06:22:01 +10:00
David Seifert
7b099b2370 Remove echo-install-dirs script and inline echo statements
* Using AX_RECURSIVE_EVAL to determine the full absolute path
  and printing it inline in the configure script is less
  brittle than calling another script from configure.
2017-06-06 08:19:21 +10:00
David Seifert
7264aefd09 Use AM_PATH_PYTHON to handle python
* AM_PATH_PYTHON is more versatile and allows the
  user to specify the python interpreter to use.
2017-06-06 08:19:21 +10:00
David Seifert
d607b78f02 Produce bzip tarballs
* bzip tarballs are significantly smaller than gzip
  tarballs and preferred by distributions nowadays.
2017-06-06 08:19:21 +10:00
David Seifert
2e24132b84 Do not add Makefile.am in M4/ dir 2017-06-06 06:41:55 +10:00
David Seifert
ccbba1957d Replace some MN_* macros by AX_* macros 2017-06-06 06:41:55 +10:00
David Seifert
a274030cc0 Cleanup configure.ac to use modern Autoconf idioms 2017-06-06 06:41:55 +10:00
evpobr
3d8399dfde Fix broken ABI
Unfortunately ABI was broken when symbols files were removed
in favour of new visibility control of exported functions.

Visibility control with -fvisibility works fine, but symbol
scripts had another feature - versioned symbols. And we lost it.

Since we can not make our symbols to be versioned  with the new
approach, it's decided to return everything back.

* CMake: Restore symbol files generation
* CMake: Python is required to build shared libraries
* Autotools: Restore symbol files generation

Closes: https://github.com/erikd/libsndfile/issues/268
2017-05-26 06:16:42 +10:00
evpobr
5c6129fce6 Autotools: Implement symbols visibility control
* Use symbol file under Win32 with MinGW only
* Use unified visibility control for other platforms
* Add recommended win32-dll option to LT_INIT macro

Closes: https://github.com/erikd/libsndfile/issues/213
2017-04-28 18:01:09 +10:00
evpobr
356a8c8fe3 configure.ac: Remove useless LIBTOOL_DEPS macro
It is not required when using libtool with automake, as we do.

Proof: http://tinf2.vub.ac.be/~dvermeir/manual/autobook/autobook-1.2/autobook_87.html

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-04-05 19:35:27 +10:00
Erik de Castro Lopo
170a10ab8d configure.ac: Test if -Wvla is supported before adding it 2017-04-03 18:48:38 +10:00
Erik de Castro Lopo
1d928bffdb Version 1.0.28 2017-04-02 18:52:51 +10:00
evpobr
1bff04b3ae Add API exported functions visibility control
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-03-15 06:13:19 +11:00
David Seifert
a87b68ce3c Add AM_PROG_AR to configure.ac
Libtool requires AM_PROG_AR to be fully portable:

  warning: 'libsndfile.la': linking libtool libraries using a non-POSIX
  requires 'AM_PROG_AR' in 'configure.ac'

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Closes: https://github.com/erikd/libsndfile/pull/193
2017-01-28 21:24:23 +11:00
David Seifert
e1ac9d94c3 'rm -f' can be used on non-existent files.
Using test before running rm -f is unnecessary, as it
will lead to a non-zero exit code if the file does not
exist, in turn leading to 'make distcheck' failing.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-01-28 21:16:21 +11:00
David Seifert
88956f7ac2 Test whether -D_FORTIFY_SOURCE needs to be added at all
Some distributions unconditionally enable -D_FORTIFY_SOURCE, and
adding it to CFLAGS might cause a slew of warnings:

  <command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
  <built-in>: note: this is the location of the previous definition

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-01-28 21:16:21 +11:00
David Seifert
1bfb5a908f Refactor generation of test-suite
It's more preferable to generate the testsuite when running 'make dist'
or 'make distcheck' instead of running it from the configure script.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-01-28 21:16:21 +11:00
David Seifert
0fd257e432 Make programs optional
Some distributions build multiple ABIs (x86 and am64) to support
legacy platforms. For the non-native ABIs, building the programs
and examples is pointless and a waste of resources.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-01-28 21:16:21 +11:00
David Seifert
ae6a26c8d4 Replace AC_HELP_STRING by AS_HELP_STRING
AC_HELP_STRING has been deprecated years ago.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-01-28 21:16:21 +11:00
David Seifert
947af45028 Compile 'sndfile-regtest' only when sqlite3 is available
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-01-28 21:16:21 +11:00
Erik de Castro Lopo
e4572180c3 configure.ac: Fix detection of Large File Support
Support for files over 2 gigabytes has been broken for some time on
32 bit systems and no one noticed.
2016-11-14 08:28:44 +11:00
Erik de Castro Lopo
a547d06726 Revert "configure.ac: Fix out-of-tree builds"
This reverts commit 1015973005
because that commit messes up 'make distcheck'.
2016-09-11 09:02:27 +10:00
Erik de Castro Lopo
1015973005 configure.ac: Fix out-of-tree builds
The link stage was looking for the Symbol.* files in the source
tree rather than the build tree.
2016-09-11 08:23:40 +10:00
Erik de Castro Lopo
cf30d2d529 Don't force 'unsigned char'
The configure script had been forcing `-funsigned-char` which is not
supported by some compilers like Sun Studio.

Fixup one test which was failing on Sun Studio due to differences in
how that compiler handles undefined behaviour around assigning an
unsigned char value to a signed char.
2016-09-06 18:19:46 +10:00
evpobr
fdf75785dc configure.ac: Better checking for ssize_t
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Closes: https://github.com/erikd/libsndfile/pull/142
2016-09-03 20:39:29 +10:00
Erik de Castro Lopo
d576914d8d configure.ac: Add -Wvla to CFLAGS
Want to warn about usage of Variable Length Arrays so they aren't
added by mistake.
2016-09-03 18:12:19 +10:00
evpobr
60710409b0 configure.ac: Two minor fixes
* Replace obsolete AM_PROG_LIBTOOL with LT_INIT.
* Remove useless define AC_LIBTOOL_LANG_F77_CONFIG.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Closes: https://github.com/erikd/libsndfile/pull/141
2016-09-03 07:46:42 +10:00
Erik de Castro Lopo
05288ca11e Revert "Drop use of __USE_MINGW_ANSI_STDIO"
This reverts commit ac0c02de3c.

This define is needed when cross compiling from Linux to Windows.
2016-07-03 19:02:03 +10:00
Erik de Castro Lopo
ac0c02de3c Drop use of __USE_MINGW_ANSI_STDIO 2016-07-03 11:05:08 +10:00
Erik de Castro Lopo
50a4098e9f sndfile-play: Remove support for Darwin <= 11
Darwin 12 (Mountain Lion) was released in February 2012. Apple no
longer support 11 and neither does libsndfile.
2016-07-03 10:33:31 +10:00
Erik de Castro Lopo
5afbcc6cf4 configure.ac: 1.0.28pre1 2016-06-19 21:39:20 +10:00
Erik de Castro Lopo
d3d545abf9 Version 1.0.27 2016-06-19 18:08:54 +10:00
Erik de Castro Lopo
95828ca2e9 Rename EXTERNAL_* to EXTERNAL_XIPH_*`
New naming makes sense because adding Wavpack support would not
depend on any of the existing Xiph.Org libraries.
2016-03-14 08:17:45 +11:00
Erik de Castro Lopo
01a2712a98 configure.ac: Clean up CFLAGS/CXXFLAGS 2016-01-27 21:34:39 +11:00
Erik de Castro Lopo
cc77ff33bd configure.ac: Remove duplicate line 2015-12-06 15:24:46 +11:00
Erik de Castro Lopo
bb6cd875af Remove all mentions of Carbon for OSX
Suport for Carbon was remove in 2012, but crept back in the same
year in an un-related commit.

Patch-from: Jan Stary <hans@stare.cz>
2015-11-27 06:16:38 +11:00
Erik de Castro Lopo
2f9c2945b4 configure.ac: 1.0.27pre1 2015-11-22 21:34:49 +11:00