Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

Commit

Permalink
Adding some better checks to configure.ac for external dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbreams committed Dec 23, 2013
1 parent fe235c4 commit 1865e1e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ AC_CHECK_LIB([zmq], [zmq_socket], [],

AC_HEADER_STDC
AC_CHECK_HEADERS([ctype.h fcntl.h float.h pthread.h signal.h stdarg.h \
sys/types.h syslog.h time.h zmq.h jansson.h ev.h libev/ev.h])
sys/types.h syslog.h time.h zmq.h ev.h libev/ev.h])

AC_SEARCH_LIBS([ev_sleep], [ev])

AC_CHECK_HEADER([jansson.h], [], AC_MSG_FAILURE([jansson.h not found]), [])
AC_SEARCH_LIBS([json_loads], [jansson])

AC_SEARCH_LIBS([pthread_create], [pthread])

AC_TYPE_SIZE_T
AC_TYPE_SIGNAL
Expand All @@ -33,7 +40,6 @@ AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_FUNC_STRTOD


if test "x$PCRE_CONFIG" != "x"; then
CFLAGS_SAVE=$CFLAGS
LIBS_SAVE=$LIBS
Expand Down

0 comments on commit 1865e1e

Please sign in to comment.