# HG changeset patch # User Jim Meyering # Date 976098411 0 # Node ID 69f86f70a1e3b5c04dd8667c3178ba3513062ec4 # Parent 8296978b48cfbe80d20f78d744ac5cdb90ee96c3 separate conditions for strtoul and strtoull diff --git a/m4/xstrtoumax.m4 b/m4/xstrtoumax.m4 --- 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