279
279
AC_SUBST(LD_VERSION_SCRIPT)
281
#--------------------------------------------------------------------
283
#--------------------------------------------------------------------
285
AC_CHECK_HEADERS(event.h)
286
if test "x$ac_cv_header_event_h" != "xyes"
288
AC_MSG_ERROR([Couldn't find event.h. Try installing libevent development packages])
290
AC_CHECK_LIB(event, event_loop, [], [AC_MSG_ERROR(could not find libevent)])
292
#--------------------------------------------------------------------
293
# Check for libpthread
294
#--------------------------------------------------------------------
296
AC_CHECK_HEADERS(pthread.h)
297
if test "x$ac_cv_header_pthread_h" != "xyes"
299
AC_MSG_ERROR([Couldn't find pthread.h.])
301
AC_CHECK_LIB(pthread, pthread_create, [], [AC_MSG_ERROR(could not find libpthread)])
303
#--------------------------------------------------------------------
305
#--------------------------------------------------------------------
307
AC_CHECK_HEADERS(zlib.h)
308
if test "x$ac_cv_header_zlib_h" != "xyes"
310
AC_MSG_ERROR([Couldn't find zlib.h. Try installing zlib development packages])
312
AC_CHECK_LIB(z, crc32, [], [AC_MSG_ERROR(could not find libz)])
315
AC_CHECK_HEADERS([readline/readline.h])
316
if test "x$ac_cv_header_readline_readline_h" != "xyes"
318
AC_MSG_ERROR([Couldn't find readline/readline.h. Try installing readline development packages.])
321
#--------------------------------------------------------------------
323
#--------------------------------------------------------------------
326
AC_PATH_PROG(PKG_CONFIG, pkg-config, AC_MSG_ERROR([pkg-config wasn't found.]))
327
PKG_CHECK_MODULES(PCRE, [libpcrecpp >= 3], [found_pcre="yes"],[
328
AC_CHECK_LIB(pcrecpp, [DoMatch], [found_pcre="no"])
329
AC_CHECK_HEADERS(pcrecpp.h)
330
if test "x$ac_cv_header_prcecpp_h" = "xno"
335
if test "x$found_pcre" != "xyes"
337
AC_MSG_ERROR([Couldn't find pcrecpp.h. Try installing the development package associated with libpcre on your system.])
341
AC_SUBST(PCRE_CFLAGS)
282
344
# Avoid bug in fcntl on some versions of linux
283
345
AC_MSG_CHECKING([if we should use 'skip-external-locking' as default for $target_os])
566
628
AC_CHECK_HEADERS(execinfo.h)
568
630
AC_CHECK_HEADERS([xfs/xfs.h])
569
#--------------------------------------------------------------------
571
#--------------------------------------------------------------------
573
AC_CHECK_LIB(event, event_loop, [], [AC_MSG_ERROR(could not find libevent)])
575
#--------------------------------------------------------------------
576
# Check for libpthread
577
#--------------------------------------------------------------------
579
AC_CHECK_LIB(pthread, pthread_create, [], [AC_MSG_ERROR(could not find libpthread)])
581
#--------------------------------------------------------------------
583
#--------------------------------------------------------------------
585
AC_CHECK_HEADERS(zlib.h)
586
if test "x$ac_cv_header_zlib_h" != "xyes"
588
AC_MSG_ERROR([Couldn't find zlib.h. Try installing zlib development packages])
590
AC_CHECK_LIB(z, crc32, [], [AC_MSG_ERROR(could not find libz)])
593
AC_CHECK_HEADERS([readline/readline.h])
594
if test "x$ac_cv_header_readline_readline_h" != "xyes"
596
AC_MSG_ERROR([Couldn't find readline/readline.h. Try installing readline development packages.])
599
#--------------------------------------------------------------------
601
#--------------------------------------------------------------------
604
AC_PATH_PROG(PKG_CONFIG, pkg-config, AC_MSG_ERROR([pkg-config wasn't found.]))
605
PKG_CHECK_MODULES(PCRE, [libpcrecpp >= 3], [found_pcre="yes"],[
606
AC_CHECK_LIB(pcrecpp, [DoMatch], [found_pcre="no"])
607
AC_CHECK_HEADERS(pcrecpp.h)
608
if test "x$ac_cv_header_prcecpp_h" = "xno"
613
if test "x$found_pcre" != "xyes"
615
AC_MSG_ERROR([Couldn't find pcrecpp.h. Try installing the development package associated with libpcre on your system.])
619
AC_SUBST(PCRE_CFLAGS)
622
632
#--------------------------------------------------------------------
623
633
# Check for system libraries. Adds the library to $LIBS