aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-08-12 15:54:06 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-08-17 10:26:53 +0200
commit80d9e35598d5e6029dc4c90bf3da885682936d2a (patch)
tree952d270ac713d7b9373d6020976a9dd9c0dbc421 /configure.ac
parentc95eff4a11575a5973fad20619ff7ca3989316db (diff)
system.h: remove all CURL_SIZEOF_* defines
... as they're not used externally and internally we check for the sizes already in configure etc. Closes #1767
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac17
1 files changed, 7 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index 605abc3fd..a4633b69f 100755
--- a/configure.ac
+++ b/configure.ac
@@ -183,9 +183,6 @@ AC_DEFINE_UNQUOTED(OS, "${host}", [cpu-machine-OS])
dnl Checks for programs.
-dnl Our curl_off_t internal and external configure settings
-CURL_CONFIGURE_CURL_OFF_T
-
dnl This defines _ALL_SOURCE for AIX
CURL_CHECK_AIX_ALL_SOURCE
@@ -3163,14 +3160,14 @@ CURL_CONFIGURE_LONG
AC_CHECK_SIZEOF(time_t)
AC_CHECK_SIZEOF(off_t)
-soname_bump=no
-if test x"$curl_cv_native_windows" != "xyes" &&
- test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
- AC_MSG_WARN([This libcurl built is probably not ABI compatible with previous])
- AC_MSG_WARN([builds! You MUST read lib/README.curl_off_t to figure it out.])
- soname_bump=yes
-fi
+o=$CPPFLAGS
+CPPFLAGS="$CPPFLAGS -I$srcdir/include"
+AC_CHECK_SIZEOF(curl_off_t, unused , [
+#include <curl/system.h>
+])
+CPPFLAGS=$o
+soname_bump=no
AC_CHECK_TYPE(long long,
[AC_DEFINE(HAVE_LONGLONG, 1,