1 dnl Process this file with autoconf to produce a configure script. |
1 dnl Process this file with autoconf to produce a configure script. |
2 |
2 |
3 AC_INIT(thermferm/thermferm.c) |
3 AC_INIT(thermferm/thermferm.c) |
4 AM_CONFIG_HEADER(config.h) |
4 AM_CONFIG_HEADER(config.h) |
5 SUBDIRS="thermferm brewpanel tools" |
5 SUBDIRS="thermferm brewpanel tools www" |
6 AC_SUBST(SUBDIRS) |
6 AC_SUBST(SUBDIRS) |
7 |
7 |
8 dnl General settings |
8 dnl General settings |
9 dnl After changeing the version number, run autoconf! |
9 dnl After changeing the version number, run autoconf! |
10 PACKAGE="mbsePi-apps" |
10 PACKAGE="mbsePi-apps" |
57 LIBS="$LIBS -ljson-c" |
57 LIBS="$LIBS -ljson-c" |
58 AC_CHECK_HEADERS(json-c/json.h) |
58 AC_CHECK_HEADERS(json-c/json.h) |
59 else |
59 else |
60 AC_MSG_ERROR(json-c not found) |
60 AC_MSG_ERROR(json-c not found) |
61 fi |
61 fi |
|
62 |
|
63 AC_CHECK_LIB(websockets,lws_create_context,result=yes,result=no) |
|
64 if test "$result" = "yes"; then |
|
65 LIBS="$LIBS -lwebsockets" |
|
66 AC_CHECK_HEADERS(libwebsockets.h) |
|
67 else |
|
68 AC_MSG_ERROR(libwebsockets not found) |
|
69 fi |
|
70 |
62 |
71 |
63 # |
72 # |
64 # Additional commandline switches |
73 # Additional commandline switches |
65 # |
74 # |
66 AC_ARG_ENABLE(experiment, [ --enable-experiment Compile experimental code], [ experiment=$enableval ], [ experiment=no ]) |
75 AC_ARG_ENABLE(experiment, [ --enable-experiment Compile experimental code], [ experiment=$enableval ], [ experiment=no ]) |