summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Rosen Penev2019-12-13 22:50:56 -0800
committerGravatar GitHub2019-12-13 22:50:56 -0800
commitcfb8d673c728ff1597d14f6069c1934f4e0c25f0 (patch)
tree86f55210a4867560b6976553cab87a27ee96b984
parent7ff3385719244906c1da9fe41d307347c175f226 (diff)
downloadlibirecovery-cfb8d673c728ff1597d14f6069c1934f4e0c25f0.tar.gz
libirecovery-cfb8d673c728ff1597d14f6069c1934f4e0c25f0.tar.bz2
configure.ac: Remove largefile hackery
It requires a program to be ran, which cannot be done when cross compiling. AC_SYS_LARGEFILE seems to be enough to implement largefile checking. A similar change was merged into libimobiledevice.
-rw-r--r--configure.ac24
1 files changed, 0 insertions, 24 deletions
diff --git a/configure.ac b/configure.ac
index e4793e1..5714844 100644
--- a/configure.ac
+++ b/configure.ac
@@ -126,30 +126,6 @@ esac
# check for large file support
AC_SYS_LARGEFILE
-LFS_CFLAGS=''
-if test "$enable_largefile" != no; then
- if test "$ac_cv_sys_file_offset_bits" != 'no'; then
- LFS_CFLAGS="$LFS_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
- else
- AC_MSG_CHECKING(for native large file support)
- AC_RUN_IFELSE([AC_LANG_SOURCE([#include <unistd.h>
- int main (int argc, char **argv)
- {
- exit(!(sizeof(off_t) == 8));
- }])],
- [ac_cv_sys_file_offset_bits=64; AC_DEFINE(_FILE_OFFSET_BITS,64)
- AC_MSG_RESULT(yes)],
- [AC_MSG_RESULT(no)])
- fi
- if test "$ac_cv_sys_large_files" != 'no'; then
- LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES=1"
- fi
- AC_FUNC_FSEEKO
- if test "$ac_cv_sys_largefile_source" != 'no'; then
- LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=1"
- fi
-fi
-AC_SUBST(LFS_CFLAGS)
AC_ARG_WITH([udev],
AS_HELP_STRING([--with-udev],