projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
configure.in: Hint towards the CFLAGS instead of using $CC.
[collectd.git]
/
configure.in
diff --git
a/configure.in
b/configure.in
index
e6a4964
..
2c51d21
100644
(file)
--- a/
configure.in
+++ b/
configure.in
@@
-247,7
+247,7
@@
AC_CHECK_HEADERS(IOKit/ps/IOPowerSources.h, [], [],
# For the swap module
have_sys_swap_h="yes"
# For the swap module
have_sys_swap_h="yes"
-AC_CHECK_HEADERS(sys/swap.h, [], [have_sys_swap_h="no"],
+AC_CHECK_HEADERS(sys/swap.h
vm/anon.h
, [], [have_sys_swap_h="no"],
[
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
[
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
@@
-259,7
+259,14
@@
AC_CHECK_HEADERS(sys/swap.h, [], [have_sys_swap_h="no"],
if test "x$have_sys_swap_h$ac_system" = "xnoSolaris"
then
if test "x$have_sys_swap_h$ac_system" = "xnoSolaris"
then
- AC_MSG_NOTICE([Solaris detected and sys/swap.h not found: Try building a 64bit binary.])
+ hint_64=""
+ if test "x$GCC" = "xyes"
+ then
+ hint_64="CFLAGS='-m64'"
+ else
+ hint_64="CFLAGS='-xarch=v9'"
+ fi
+ AC_MSG_NOTICE([Solaris detected and sys/swap.h not usable. Try building a 64-bit binary ($hint_64 ./configure).])
fi
# For load module
fi
# For load module
@@
-1444,6
+1451,11
@@
then
[with_libmysql="yes"],
[with_libmysql="no (symbol 'mysql_init' not found)"],
[$with_mysql_libs])
[with_libmysql="yes"],
[with_libmysql="no (symbol 'mysql_init' not found)"],
[$with_mysql_libs])
+
+ AC_CHECK_LIB(mysqlclient, mysql_get_server_version,
+ [with_libmysql="yes"],
+ [with_libmysql="no (symbol 'mysql_get_server_version' not found)"],
+ [$with_mysql_libs])
fi
fi
if test "x$with_libmysql" = "xyes"
fi
fi
if test "x$with_libmysql" = "xyes"