aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2020-09-09 22:08:54 +0000
committerDavid Goulet <dgoulet@torproject.org>2020-09-10 10:51:57 -0400
commit1c4b140427aeb36d80475e92fe57154fcc8abcf3 (patch)
tree068b66118c83ee5503bac61d6a34c78edd57bb61 /configure.ac
parent12c758312651c09eb68e9f4e04a7fd3ad9c3a811 (diff)
downloadtor-1c4b140427aeb36d80475e92fe57154fcc8abcf3.tar.gz
tor-1c4b140427aeb36d80475e92fe57154fcc8abcf3.zip
Check if glob() is available at build-time.
This patch disables the glob() support in the path library if glob() is unavailable at build-time. This currently happens with the Android NDK used for Tor Browser. See: https://bugs.torproject.org/tpo/core/tor/40114
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2e1de76606..74f2379fca 100644
--- a/configure.ac
+++ b/configure.ac
@@ -845,6 +845,8 @@ fi
AM_CONDITIONAL(BUILD_READPASSPHRASE_C,
test "x$ac_cv_func_readpassphrase" = "xno" && test "$bwin32" = "false")
+AC_CHECK_FUNCS(glob)
+
AC_MSG_CHECKING([whether free(NULL) works])
AC_RUN_IFELSE([AC_LANG_PROGRAM([
#include <stdlib.h>