mirror of
http://mpg123.de/trunk/.git
synced 2025-08-09 08:22:45 +03:00
build: avoid largefile renaming on non-sensitive platforms (bug 330)
git-svn-id: svn://scm.orgis.org/mpg123/trunk@5162 35dc7657-300d-0410-a2e5-dc2837fedb53
This commit is contained in:
3
NEWS
3
NEWS
@@ -17,6 +17,9 @@
|
||||
'unknown command with arguments' to avoid confusion why 'help foo'
|
||||
is unknown, as opposed to 'help'.
|
||||
- some build fixes for compiler pickyness
|
||||
- Disable largefile renames also for non-sensitive POSIX systems
|
||||
(in some distant future, the alias symbols could go away, then …
|
||||
bug 330).
|
||||
|
||||
1.30.3
|
||||
------
|
||||
|
11
configure.ac
11
configure.ac
@@ -1126,11 +1126,15 @@ dnl sensitive to largefile changes, i.e. FreeBSD always using 64 bit off_t.
|
||||
if test "x$ac_cv_sys_file_offset_bits" = x || echo "$ac_cv_sys_file_offset_bits" | $GREP '@<:@^0-9@:>@' > /dev/null; then
|
||||
dnl if it has non-numeric chars or is empty... ignore...
|
||||
largefile_sensitive=no
|
||||
BUILD_NO_LARGENAME=1
|
||||
else
|
||||
largefile_sensitive=yes
|
||||
BUILD_NO_LARGENAME=0
|
||||
fi
|
||||
# Add dual-mode wrapper code.
|
||||
AM_CONDITIONAL([HAVE_LFS_WRAP], [ test x"$largefile_sensitive" = xyes ] )
|
||||
# Any non-sensitive platform does not bother with off_t-based function renaming.
|
||||
AC_SUBST(BUILD_NO_LARGENAME)
|
||||
|
||||
# Using the lower level macros instead of AC_TYPE_* for compatibility with not freshest autoconf.
|
||||
AC_CHECK_TYPE(size_t, unsigned long)
|
||||
@@ -1292,13 +1296,6 @@ AC_SEARCH_LIBS(socket, socket)
|
||||
|
||||
AC_CHECK_FUNCS( getaddrinfo, [ have_ipv6=yes ], [ have_ipv6=no ] )
|
||||
|
||||
# A Hack for MSVC builds by cmake: Disable largefile hackery.
|
||||
# Maybe one time we support hat wretched environment directly, but
|
||||
# for now configure lives in a world where large file support is
|
||||
# properly defined and served by off_t.
|
||||
BUILD_NO_LARGENAME=0
|
||||
AC_SUBST(BUILD_NO_LARGENAME)
|
||||
|
||||
# Substitutions for the installable mpg123.h header
|
||||
if test "x$ac_cv_header_stdio_h" = "xyes"; then
|
||||
INCLUDE_STDIO_H="#include <stdio.h>"
|
||||
|
Reference in New Issue
Block a user