Suppress detection of utmpx.h on Android
authorPo Lu <luangruo@yahoo.com>
Sun, 21 Jan 2024 01:53:55 +0000 (09:53 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 21 Jan 2024 01:59:47 +0000 (09:59 +0800)
* configure.ac (ac_cv_header_utmpx_h): Predefine to no when
Android is older than 34.

configure.ac

index 55f742ba8ef06b6c0446f64be55418968427ca34..dffe7696ac5b23b4a391fcb1eb9470ec3633f0f6 100644 (file)
@@ -160,6 +160,12 @@ variable when you ran configure.])
     ;;
   esac
   AC_MSG_RESULT([$host_alias])
+
+  # Suppress the detection of utmpx.h on Android versions older than
+  # 34, for the header will be present yet define no functions,
+  # which Gnulib is not prepared to handle.
+  AS_IF([test "$ANDROID_SDK" -lt "34"],
+    [ac_cv_header_utmpx_h=no])
 fi
 
 AC_CANONICAL_HOST