You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2002/08/03 22:53:06 UTC
cvs commit: apr configure.in
wrowe 2002/08/03 13:53:06
Modified: . configure.in
Log:
Fix two problems... if this pid/off are longlongs, WTF aren't we following
the identical semantics to our earlier apr_int32_fmt_t construction?
And let us fall gracefully into strtoq when applicable.
Revision Changes Path
1.471 +8 -2 apr/configure.in
Index: configure.in
===================================================================
RCS file: /home/cvs/apr/configure.in,v
retrieving revision 1.470
retrieving revision 1.471
diff -u -r1.470 -r1.471
--- configure.in 3 Aug 2002 20:29:53 -0000 1.470
+++ configure.in 3 Aug 2002 20:53:06 -0000 1.471
@@ -1142,7 +1142,7 @@
elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long"; then
off_t_fmt='#define APR_OFF_T_FMT "ld"'
elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long_long"; then
- off_t_fmt='#define APR_OFF_T_FMT "qd"'
+ off_t_fmt='#define APR_OFF_T_FMT $int64_t_fmt'
else
off_t_fmt='#error Can not determine the proper size for off_t'
fi
@@ -1154,7 +1154,7 @@
elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long"; then
pid_t_fmt='#define APR_PID_T_FMT "ld"'
elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long_long"; then
- pid_t_fmt='#define APR_PID_T_FMT "qd"'
+ pid_t_fmt='#define APR_PID_T_FMT $int64_t_fmt'
else
pid_t_fmt='#error Can not determine the proper size for pid_t'
fi
@@ -1216,6 +1216,12 @@
AC_CHECK_FUNCS(strstr, have_strstr="1", have_strstr="0")
AC_CHECK_FUNCS(memchr, have_memchr="1", have_memchr="0")
AC_CHECK_FUNCS($int64_strfn, have_int64_strfn="1", have_int64_strfn="0")
+
+dnl #----------------------------- We have a fallback position
+if test ("$have_int64_strfn" = "0") -a ("int64_strfn" = "strtoll"); then
+ int64_strfn = "strtoq"
+ AC_CHECK_FUNCS($int64_strfn, have_int64_strfn="1", have_int64_strfn="0")
+fi
AC_SUBST(have_strnicmp)
AC_SUBST(have_strncasecmp)