Commit 536fa6b7 authored by Jeroen Vreeken's avatar Jeroen Vreeken
Browse files

Little fixup in configure checks

parent 500bfb4c
......@@ -29,7 +29,7 @@ AS_CASE(["$with_libwebsocket"],
[AC_CHECK_LIB(websockets,libwebsocket_create_context,[HAVE_LIBWEBSOCKET=1],[HAVE_LIBWEBSOCKET=0])]
[AC_CHECK_HEADERS([libwebsockets.h])]
)
AS_IF([test "$ac_cv_header_libwebsockets_h" != yes],[HAVE_LIBWEBSOCKETS=0])
AS_IF([test "$ac_cv_header_libwebsockets_h" != yes],[HAVE_LIBWEBSOCKETS=0],[])
#######################################################################
......@@ -45,13 +45,13 @@ AC_ARG_WITH([libindi],
AS_CASE(["$with_libindi"],
[yes],
[AC_CHECK_LIB(indi,IDLog,[HAVE_LIBINDI=1])]
[AC_CHECK_HEADERS([linindi/indidevapi.h])],
[AC_CHECK_HEADERS([libindi/indidevapi.h])],
[no],
[],
[AC_CHECK_LIB(indi,IDLog,[HAVE_LIBINDI=1],[HAVE_LIBINDI=0])]
[AC_CHECK_HEADERS([linindi/indidevapi.h])]
[AC_CHECK_HEADERS([libindi/indidevapi.h])]
)
AS_IF([test "$ac_cv_header_linindi_indidevapi_h" != yes],[HAVE_LIBINDI=0])
#AS_IF([test "$ac_cv_header_linindi_indidevapi_h" != yes],[HAVE_LIBINDI=0],[])
......@@ -64,11 +64,11 @@ AS_IF([test "$enable_console" = "yes"],
[AC_SUBST(BUILD_CONSOLE,["yes"])],
[AC_SUBST(BUILD_CONSOLE,[""])])
AS_IF([test "BUILD_CONSOLE = "yes" && test "$HAVE_LIBWEBSOCKET" = "1"],
AS_IF([test "$BUILD_CONSOLE" == "yes" && test "$HAVE_LIBWEBSOCKET" == "1"],
[AC_SUBST(BUILD_CONSOLE_HTTPD,["yes"])],
[AC_SUBST(BUILD_CONSOLE_HTTPD,[""])])
AS_IF([test "BUILD_CONSOLE = "yes" && test "$HAVE_LIBINDI" = "1"],
AS_IF([test "$BUILD_CONSOLE" = "yes" && test "$HAVE_LIBINDI" = "1"],
[AC_SUBST(BUILD_CONSOLE_J2000_INDI,["yes"])],
[AC_SUBST(BUILD_CONSOLE_J2000_INDI,[""])])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment