summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1398c68)
raw | patch | inline | side by side (parent: 1398c68)
author | Florian Forster <octo@huhu.verplant.org> | |
Tue, 4 Sep 2007 08:31:38 +0000 (10:31 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Tue, 4 Sep 2007 08:31:38 +0000 (10:31 +0200) |
And some minor cleanups..
configure.in | patch | blob | history |
diff --git a/configure.in b/configure.in
index f291956fc87142d3a8863719d8c382ca02d54c16..252d16ff202cb8ec3a7f9dbe918d21ef1ec11f5c 100644 (file)
--- a/configure.in
+++ b/configure.in
if test $curl_config_status -ne 0
then
- with_libcurl="no"
+ with_libcurl="no ($with_curl_config failed)"
else
SAVE_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $with_curl_cflags"
if test $curl_config_status -ne 0
then
- with_libcurl="no"
+ with_libcurl="no ($with_curl_config failed)"
else
AC_CHECK_LIB(curl, curl_easy_init,
- [
- # We need to do this to have `HAVE_LIBCURL' defined but
- # `-lcurl' NOT added to the default LDFLAGS.
- AC_DEFINE(HAVE_LIBCURL, 1,
- [Define to 1 if you have the curl library.])
- ],
+ [with_libcurl="yes"],
[with_libcurl="no (symbol 'curl_easy_init' not found)"],
[$with_curl_libs])
fi
with_libmysql="no"
else
AC_CHECK_LIB(mysqlclient, mysql_init,
- [
- # We need to do this to have `HAVE_LIBMYSQLCLIENT' defined
- # but `-lmysqlclient' NOT added to the default LDFLAGS.
- AC_DEFINE(HAVE_LIBMYSQLCLIENT, 1,
- [Define to 1 if you have the mysqlclient library.])
- ],
- [with_libmysql="no (libmysql not found)"],
+ [with_libmysql="yes"],
+ [with_libmysql="no (symbol 'mysql_init' not found)"],
[$with_mysql_libs])
fi
fi
SAVE_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $with_libnetlink_cflags"
- AC_CHECK_HEADERS(iproute/libnetlink.h, [], [with_libnetlink="no (iproute/libnetlink.h not found)"],
+ with_libnetlink="no (libnetlink.h not found)"
+
+ AC_CHECK_HEADERS(libnetlink.h iproute/libnetlink.h linux/libnetlink.h,
+ [
+ with_libnetlink="yes"
+ break
+ ], [],
[#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>