Skip to content

Commit

Permalink
Fix libfetch detection
Browse files Browse the repository at this point in the history
  • Loading branch information
bapt committed Mar 18, 2014
1 parent 7038f11 commit e108cc4
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions configure.ac
Expand Up @@ -47,13 +47,18 @@ AC_SEARCH_LIBS([SSL_library_init], [ssl], [

AC_CHECK_HEADER([fetch.h], [
AC_DEFINE(HAVE_FETCH_H, 1, [Define to 1 if you have the <fetch.h> header file.])
AC_CHECK_LIB(sbuf, fetchXGet, [
AC_CHECK_LIB(fetch, fetchXGet, [
AC_DEFINE(HAVE_LIBFETCH, 1, [Define to 1 if you have the 'fetch' library (-fetch).])
LIBFETCH_LIBS="-lfetch"
have_libfetch="yes"
LIBS_EXTRA="${LIBS_EXTRA} -lfetch"
])
], [])
], [],[
#include <stdio.h>
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
])
AC_SUBST([LIBFETCH_LIBS])

AS_IF([ test "x$have_libfetch" != "xyes"], [
Expand All @@ -68,4 +73,4 @@ AC_SUBST([CURL_CFLAGS])

AC_CONFIG_FILES(Makefile \
libucl.pc)
AC_OUTPUT
AC_OUTPUT

0 comments on commit e108cc4

Please sign in to comment.