From 0381e0bc143e66ed5facb89646879cbbdd833f84 Mon Sep 17 00:00:00 2001
From: Jim Meyering <jim@meyering.net>
Date: Wed, 6 Dec 2000 10:26:51 +0000
Subject: [PATCH] separate conditions for strtoul and strtoull

---
 m4/xstrtoumax.m4 | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/m4/xstrtoumax.m4 b/m4/xstrtoumax.m4
index 6e2fcafe74..1befbdd8df 100644
--- a/m4/xstrtoumax.m4
+++ b/m4/xstrtoumax.m4
@@ -28,7 +28,13 @@ AC_DEFUN(jm_AC_PREREQ_XSTRTOUMAX,
   dnl so we need the replacement strtoull only if strtoumax does not exist.
   case "$ac_cv_type_unsigned_long_long,$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
     yes,no,no)
-      AC_REPLACE_FUNCS(strtoul strtoull)
+      AC_REPLACE_FUNCS(strtoull)
+      ;;
+  esac
+
+  case "$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
+    no,no)
+      AC_REPLACE_FUNCS(strtoul)
       ;;
   esac
 
-- 
2.39.5