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 Jakub Zelenka
parent 75813dfb81
commit 82bde58b7a

View file

@ -40,6 +40,10 @@ if test "$PHP_GNUPG" != "no"; then
PHP_ADD_INCLUDE($GNUPG_DIR/include)
dnl enable largefile support on 32-bits platform
AC_SYS_LARGEFILE
AC_TYPE_OFF_T
dnl gpgme_op_passwd is not used but was added in 1.3.0
LIBNAME=gpgme
LIBSYMBOL=gpgme_op_passwd