From 11fa3e9fe4234b4f753b53cff3420252748c9a7f Mon Sep 17 00:00:00 2001 From: FH0 <32861476+FH0@users.noreply.github.com> Date: Thu, 16 Sep 2021 14:37:31 +0800 Subject: [PATCH] android(ndk r23) has timegm --- configure.ac | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/configure.ac b/configure.ac index 745a0a87..1034ade1 100644 --- a/configure.ac +++ b/configure.ac @@ -925,17 +925,9 @@ case "$host" in ;; esac -case "$host" in - *android*) - # timegm is not declared with Android NDK r12b - AM_CONDITIONAL([HAVE_TIMEGM], false) - ;; - *) - AC_CHECK_FUNCS([timegm], - [AM_CONDITIONAL([HAVE_TIMEGM], true)], - [AM_CONDITIONAL([HAVE_TIMEGM], false)]) - ;; -esac +AC_CHECK_FUNCS([timegm], + [AM_CONDITIONAL([HAVE_TIMEGM], true)], + [AM_CONDITIONAL([HAVE_TIMEGM], false)]) AC_CHECK_FUNCS([port_associate], [have_port_associate=yes]) AM_CONDITIONAL([HAVE_PORT_ASSOCIATE], [test "x$have_port_associate" = "xyes"])