FreeBSD 3.4 doesn't have "strtoull()", but it does have "strtouq()",

which does the same thing - check for "strtoull()" and, if it's missing,
check for "strtouq()" and, if we have it, define strtoull as strtouq.

svn path=/trunk/; revision=11798
This commit is contained in:
Guy Harris 2004-08-22 01:41:47 +00:00
parent 39313e5553
commit c4e043e39c
1 changed files with 18 additions and 0 deletions

View File

@ -468,6 +468,24 @@ else
])
fi
AC_CHECK_FUNC(strtoull,,
[
#
# No strtoull - do we have strtouq?
#
AC_CHECK_FUNC(strtouq,
[
#
# Yes - define strtoull to be strtouq.
#
AC_DEFINE(strtoull, strtouq,
[Define as a function that behaves like strtoull])
],
[
AC_MSG_ERROR([This platform has neither strtoull nor strtouq.])
])
])
AC_SUBST(ethereal_bin)
AC_SUBST(ethereal_man)