changeset 3032:69f86f70a1e3

separate conditions for strtoul and strtoull
author Jim Meyering <jim@meyering.net>
date Wed, 06 Dec 2000 10:26:51 +0000
parents 8296978b48cf
children fbcdfe857a7c
files m4/xstrtoumax.m4
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/m4/xstrtoumax.m4
+++ b/m4/xstrtoumax.m4
@@ -28,7 +28,13 @@
   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