Fixing a problem with my checkin for bug 165602 - don't mix the test for empty MACOS_DEPLOYMENT_TARGET and 10.2-or-greater, some versions of 'test' don't like this.

This commit is contained in:
bryner%netscape.com 2002-09-28 10:20:32 +00:00
parent 50269eff9a
commit af188c0c66

View File

@ -1998,7 +1998,16 @@ AC_CHECK_FUNCS(random strerror lchown fchmod snprintf statvfs memmove rint)
AC_CHECK_FUNCS(nl_langinfo flockfile)
dnl localtime_r and strtok_r are only present on MacOS version 10.2 and higher
if test -z "$MACOS_DEPLOYMENT_TARGET" -o "$MACOS_DEPLOYMENT_TARGET" -ge "100200"; then
CHECK_MACOS_10_2_FUNCS=
if test -z "$MACOS_DEPLOYMENT_TARGET"; then
CHECK_MACOS_10_2_FUNCS=1
else
if test "$MACOS_DEPLOYMENT_TARGET" -ge "100200"; then
CHECK_MACOS_10_2_FUNCS=1
fi
fi
if test "$CHECK_MACOS_10_2_FUNCS"; then
AC_CHECK_FUNCS(localtime_r strtok_r)
fi