projects
/
NextIRCd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1a3d546
)
[IOMultiplexerV2] updated configure.ac to link against c-ares if required
author
pk910
<philipp@zoelle1.de>
Fri, 14 Mar 2014 23:24:55 +0000
(
00:24
+0100)
committer
pk910
<philipp@zoelle1.de>
Fri, 14 Mar 2014 23:24:55 +0000
(
00:24
+0100)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index 09c3ada2ca367ab76f34f0206db1845063099b68..dfd4bc6b372992c604a952ae538b3858c3bcdc46 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-33,7
+33,7
@@
CFLAGS="$CFLAGS -D_GNU_SOURCE"
AC_FUNC_MALLOC
AC_CHECK_FUNCS([usleep select socket inet_pton inet_ntop])
AC_FUNC_MALLOC
AC_CHECK_FUNCS([usleep select socket inet_pton inet_ntop])
-AC_CHECK_HEADERS([fcntl.h sys/socket.h sys/select.h sys/time.h sys/types.h unistd.h windows.h winsock2.h errno.h sys/epoll.h sys/event.h
ares.h
])
+AC_CHECK_HEADERS([fcntl.h sys/socket.h sys/select.h sys/time.h sys/types.h unistd.h windows.h winsock2.h errno.h sys/epoll.h sys/event.h])
AC_CHECK_LIB(ws2_32, main, [ LIBS="$LIBS -lws2_32" ], [])
AC_CHECK_LIB(ssl, SSL_read, [
AC_CHECK_LIB(ws2_32, main, [ LIBS="$LIBS -lws2_32" ], [])
AC_CHECK_LIB(ssl, SSL_read, [
@@
-48,6
+48,11
@@
AC_CHECK_LIB(pthread, pthread_create, [
LIBS="$LIBS -lpthread"
])
])
LIBS="$LIBS -lpthread"
])
])
+AC_CHECK_LIB(cares, ares_init, [
+ AC_CHECK_HEADERS(ares.h, [
+ LIBS="$LIBS -lcares"
+ ])
+])
AC_CONFIG_FILES([Makefile src/Makefile src/IOHandler/Makefile src/IOHandler++/Makefile src/IOHandler_test/Makefile src/IOHandler_test/socket/Makefile src/IOHandler_test/socket++/Makefile src/IOHandler_test/timer/Makefile])
AC_OUTPUT
AC_CONFIG_FILES([Makefile src/Makefile src/IOHandler/Makefile src/IOHandler++/Makefile src/IOHandler_test/Makefile src/IOHandler_test/socket/Makefile src/IOHandler_test/socket++/Makefile src/IOHandler_test/timer/Makefile])
AC_OUTPUT