mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Fix compilation on Android SDK 20 and earlier
* configure.ac (gl_PREREQ_NPROC): Disable ac_cv_header_mntent_h if on Android and setmntent is not declared.
This commit is contained in:
parent
240355949e
commit
e54fd7c012
1 changed files with 6 additions and 0 deletions
|
|
@ -1599,6 +1599,12 @@ AC_DEFUN([gl_CRYPTO_CHECK])
|
||||||
# Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
|
# Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
|
||||||
# as we don't use them.
|
# as we don't use them.
|
||||||
AC_DEFUN([gl_FCNTL_O_FLAGS])
|
AC_DEFUN([gl_FCNTL_O_FLAGS])
|
||||||
|
# Disable nproc.c's usage of mntent.h if setmntent is undefined, as on
|
||||||
|
# Android SDK <= 20.
|
||||||
|
AC_DEFUN([gl_PREREQ_NPROC],
|
||||||
|
[AS_IF([test "$opsys" = "android"],
|
||||||
|
[AC_CHECK_DECL([setmntent], [], [ac_cv_header_mntent_h=no],
|
||||||
|
[[#include <mntent.h>]])])]m4_defn([gl_PREREQ_NPROC]))
|
||||||
# Avoid gnulib's test for pthread_sigmask.
|
# Avoid gnulib's test for pthread_sigmask.
|
||||||
funcs=
|
funcs=
|
||||||
for func in $ac_func_list; do
|
for func in $ac_func_list; do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue