diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-03-17 06:11:30 +0000 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-03-17 06:11:30 +0000 |
commit | 75fd3688f52f3d9574cf7204fd74c9eb9f2a639b (patch) | |
tree | 08ba62ec560e17de7355b18c1b1b79090b4062b3 /configure.ac | |
parent | 34b5a8c6d29bc613e7c00ba56c2eccdad182af27 (diff) | |
download | xine-lib-75fd3688f52f3d9574cf7204fd74c9eb9f2a639b.tar.gz xine-lib-75fd3688f52f3d9574cf7204fd74c9eb9f2a639b.tar.bz2 |
Instead of relying on FreeBSD being the only system not having __environ stderr ___brk_addr and __ctype_b, look for them during ./configure stage. Also check for alternatives, and check for compiler's weak aliasing support only if it's actually going to be used.
CVS patchset: 8696
CVS date: 2007/03/17 06:11:30
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 542e5306e..b0bb4c3f1 100644 --- a/configure.ac +++ b/configure.ac @@ -2069,6 +2069,19 @@ AC_ARG_WITH([real-codecs-path], AC_DEFINE_UNQUOTED([REAL_CODEC_PATH], ["$withval"], [Specified path for Real binary codecs]) ]) +if test "x$enable_real_codecs" != "xno"; then + dnl For those that have a replacement, break at the first one found + AC_CHECK_SYMBOLS([__environ _environ environ], [break], [need_weak_aliases=yes]) + AC_CHECK_SYMBOLS([stderr __stderrp], [break], [need_weak_aliases=yes]) + + dnl For these there are no replacements + AC_CHECK_SYMBOLS([___brk_addr __ctype_b]) + + if test "x$need_weak_aliases" = "xyes"; then + CC_ATTRIBUTE_ALIAS(, [AC_MSG_ERROR([You need weak aliases support for Real codecs on your platform])]) + fi +fi + AM_CONDITIONAL([ENABLE_REAL], [test "x$enable_real_codecs" != "xno"]) dnl -------------------------------------------- @@ -2212,7 +2225,6 @@ CC_FLAG_VISIBILITY([ AC_SUBST([VISIBILITY_FLAG]) CC_ATTRIBUTE_SENTINEL -CC_ATTRIBUTE_ALIAS AC_OPTIMIZATIONS |