config.m4: Add largefile support

The GPGME uses AC_SYS_LARGEFILE in its `configure.ac`, which makes it expects largefile support to be enabled when the system supports it. See the following from https://gnupg.org/documentation/manuals/gpgme/Largefile-Support-_0028LFS_0029.html:

"On POSIX platforms you can enable largefile support, if it is different from the default on the system the application is compiled on, by using the Autoconf macro AC_SYS_LARGEFILE. If you do this, then you don’t need to worry about anything else: It will just work. In this case you might also want to use AC_FUNC_FSEEKO to take advantage of some new interfaces, and AC_TYPE_OFF_T (just in case)."

Adding this is required on 32-bits and optional on 64-bits platforms.
This commit is contained in:
Arjen de Korte 2021-02-22 09:00:22 +01:00 committed by GitHub
parent bedfafbdbd
commit 7fce3a8814
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,9 @@ if test "$PHP_GNUPG" != "no"; then
fi
PHP_ADD_INCLUDE($GNUPG_DIR/include)
AC_SYS_LARGEFILE
AC_TYPE_OFF_T
LIBNAME=gpgme
LIBSYMBOL=gpgme_check_version