--- configure.in.orig +++ configure.in @@ -27,7 +27,9 @@ AM_CONDITIONAL(FREEBSD, test x$os = xfre dnl Checks for programs. AC_PREREQ(2.52) AC_PROG_AWK -AC_PROG_CC +AC_PROG_CC_STDC +AC_USE_SYSTEM_EXTENSIONS +AC_SYS_LARGEFILE AC_LIBLTDL_CONVENIENCE AM_PROG_LIBTOOL AC_SUBST(LIBTOOL_DEPS) @@ -61,7 +63,9 @@ AC_SUBST(EXPAT_LIBS) dnl libcurl check AC_CHECK_LIB(curl, curl_global_init, - [CURL_LIBS="-lcurl"], [ + [CURL_LIBS="-lcurl" + AC_CHECK_HEADERS([curl/types.h]) + ], [ echo "*" echo "* libcurl is needed to build this library. It is either not" echo "* installed on your system or it is too old." *** examples/protocol.cpp.orig 2011-12-10 16:26:53.000000000 +0100 --- examples/protocol.cpp 2011-12-10 16:30:15.000000000 +0100 *************** *** 6,11 **** --- 6,12 ---- No rights reserved. -------------------------------------------------------------------*/ + #include "config.h" #include <string.h> #include <stdio.h> #include <stdlib.h> *************** *** 13,19 **** --- 14,22 ---- #include <map> #include <expat.h> #include <curl/curl.h> + #ifdef HAVE_CURL_TYPES_H #include <curl/types.h> + #endif #include <curl/easy.h> using namespace std;