summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-12-06 10:26:51 +0000
committerJim Meyering <jim@meyering.net>2000-12-06 10:26:51 +0000
commit3dabe6b533905bb65e4dd832d046cc86bba46743 (patch)
tree51e1e4c60c598fec1fd74b4eaea665baffb27719 /m4
parent2845214164f04017611142c95b276023e4bb0eca (diff)
downloadcoreutils-3dabe6b533905bb65e4dd832d046cc86bba46743.tar.xz
separate conditions for strtoul and strtoull
Diffstat (limited to 'm4')
-rw-r--r--m4/xstrtoumax.m48
1 files changed, 7 insertions, 1 deletions
diff --git a/m4/xstrtoumax.m4 b/m4/xstrtoumax.m4
index 6e2fcafe7..1befbdd8d 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