Disables mlogc compilation with Curl was not found

This commit automatic disables Curl compilation if Curl development files were
not found on build machine.
This commit is contained in:
Felipe Zimmerle 2014-12-03 11:24:54 -08:00
Родитель 069122194e
Коммит 0d2d01ba2c
1 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -224,6 +224,14 @@ AC_ARG_ENABLE(mlogc,
[
build_mlogc=1
])
CHECK_CURL()
if test -z "${CURL_VERSION}"; then
AC_MSG_NOTICE([NOTE: mlgoc compilation was disabled.])
build_mlogc=0
fi
AM_CONDITIONAL([BUILD_MLOGC], [test "$build_mlogc" -eq 1])
if test "$build_mlogc" -eq 1; then
TOPLEVEL_SUBDIRS="$TOPLEVEL_SUBDIRS mlogc"
@ -695,7 +703,7 @@ fi
CHECK_LIBXML2()
CHECK_LUA()
#if test "$build_mlogc" -ne 0; then
CHECK_CURL()
#CHECK_CURL()
#fi
# Check for YAJL libs (for JSON body processor)