Tue, 07 May 2024 14:11:31 +0200
Save one devices loop when handling a 2413 device.
0 | 1 | dnl Process this file with autoconf to produce a configure script. |
2 | ||
407
ee8f851b4d93
Removed thermometers program and directory. Version 0.4.3
Michiel Broek <mbroek@mbse.eu>
parents:
397
diff
changeset
|
3 | AC_INIT(thermferm/thermferm.c) |
0 | 4 | AM_CONFIG_HEADER(config.h) |
675
825210ba2707
Added websockets to thermferm. Started new www directory for websocket enabled web. The init script now waits until thermferm is completely stopped.
Michiel Broek <mbroek@mbse.eu>
parents:
673
diff
changeset
|
5 | SUBDIRS="thermferm brewpanel tools www" |
0 | 6 | AC_SUBST(SUBDIRS) |
7 | ||
8 | dnl General settings | |
9 | dnl After changeing the version number, run autoconf! | |
10 | PACKAGE="mbsePi-apps" | |
731
8b7c63bddf75
Version 0.9.20a2. Renamed one-wire struct resolution to rd_cache and added wr_cache. The rd_cache and wr_cache values are used by the DS2413. Added these values to the grid so we can see them live.
Michiel Broek <mbroek@mbse.eu>
parents:
728
diff
changeset
|
11 | VERSION="0.9.20a2" |
634 | 12 | COPYRIGHT="Copyright (C) 2014-2024 Michiel Broek, All Rights Reserved" |
13 | CYEARS="2014-2024" | |
0 | 14 | AC_SUBST(PACKAGE) |
15 | AC_SUBST(VERSION) | |
16 | AC_SUBST(COPYRIGHT) | |
17 | AC_SUBST(CYEARS) | |
18 | AC_PREFIX_DEFAULT(/usr/local) | |
19 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION") | |
20 | AC_DEFINE_UNQUOTED(COPYRIGHT, "$COPYRIGHT") | |
21 | TARGET="$target" | |
22 | ||
23 | ||
24 | dnl Checks for programs. | |
25 | AC_PROG_CC | |
26 | AC_PROG_RANLIB | |
27 | dnl Try to find GNU install | |
28 | AC_CHECK_PROG(INSTALL, ginstall, ginstall) | |
29 | AC_CHECK_PROG(INSTALL, install, install) | |
30 | AC_CHECK_PROG(TAR, tar, tar) | |
31 | ||
726 | 32 | |
0 | 33 | # |
6 | 34 | # Libraries for mbsePi-apps |
35 | # | |
497
18ace27338e5
Compiles mosquitto code if library is found on the system. Bumped to version 0.5.4
Michiel Broek <mbroek@mbse.eu>
parents:
496
diff
changeset
|
36 | AC_CHECK_LIB(mosquitto,mosquitto_lib_init,result=yes,result=no) |
18ace27338e5
Compiles mosquitto code if library is found on the system. Bumped to version 0.5.4
Michiel Broek <mbroek@mbse.eu>
parents:
496
diff
changeset
|
37 | if test "$result" = "yes"; then |
557
ae17042a6d39
Versie 0.8.6 De mosquitto library is geen optie meer maar verplicht.
Michiel Broek <mbroek@mbse.eu>
parents:
554
diff
changeset
|
38 | AC_CHECK_HEADERS(mosquitto.h) |
497
18ace27338e5
Compiles mosquitto code if library is found on the system. Bumped to version 0.5.4
Michiel Broek <mbroek@mbse.eu>
parents:
496
diff
changeset
|
39 | LIBS="$LIBS -lmosquitto" |
557
ae17042a6d39
Versie 0.8.6 De mosquitto library is geen optie meer maar verplicht.
Michiel Broek <mbroek@mbse.eu>
parents:
554
diff
changeset
|
40 | else |
ae17042a6d39
Versie 0.8.6 De mosquitto library is geen optie meer maar verplicht.
Michiel Broek <mbroek@mbse.eu>
parents:
554
diff
changeset
|
41 | AC_MSG_ERROR(mosquitto not found) |
497
18ace27338e5
Compiles mosquitto code if library is found on the system. Bumped to version 0.5.4
Michiel Broek <mbroek@mbse.eu>
parents:
496
diff
changeset
|
42 | fi |
18ace27338e5
Compiles mosquitto code if library is found on the system. Bumped to version 0.5.4
Michiel Broek <mbroek@mbse.eu>
parents:
496
diff
changeset
|
43 | |
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
44 | WIRINGPI=No |
637
21e542c15832
Add --enable-wiringpi to configure script to allow to disable wiringpi even when it is installed. Use SDL2 instead of partly old SDL.
Michiel Broek <mbroek@mbse.eu>
parents:
634
diff
changeset
|
45 | AC_ARG_ENABLE(wiringpi, [ --enable-wiringpi Compile wiringPi code], [ wiringpi=$enableval ], [ wiringpi=yes ]) |
21e542c15832
Add --enable-wiringpi to configure script to allow to disable wiringpi even when it is installed. Use SDL2 instead of partly old SDL.
Michiel Broek <mbroek@mbse.eu>
parents:
634
diff
changeset
|
46 | if test "$wiringpi" = "yes"; then |
21e542c15832
Add --enable-wiringpi to configure script to allow to disable wiringpi even when it is installed. Use SDL2 instead of partly old SDL.
Michiel Broek <mbroek@mbse.eu>
parents:
634
diff
changeset
|
47 | AC_CHECK_LIB(wiringPi,wiringPiSetup,result=yes,result=no) |
21e542c15832
Add --enable-wiringpi to configure script to allow to disable wiringpi even when it is installed. Use SDL2 instead of partly old SDL.
Michiel Broek <mbroek@mbse.eu>
parents:
634
diff
changeset
|
48 | if test "$result" = "yes"; then |
21e542c15832
Add --enable-wiringpi to configure script to allow to disable wiringpi even when it is installed. Use SDL2 instead of partly old SDL.
Michiel Broek <mbroek@mbse.eu>
parents:
634
diff
changeset
|
49 | LIBS="$LIBS -lwiringPi -lwiringPiDev" |
21e542c15832
Add --enable-wiringpi to configure script to allow to disable wiringpi even when it is installed. Use SDL2 instead of partly old SDL.
Michiel Broek <mbroek@mbse.eu>
parents:
634
diff
changeset
|
50 | AC_CHECK_HEADERS(wiringPi.h,WIRINGPI=Yes,WIRINGPI=No) |
21e542c15832
Add --enable-wiringpi to configure script to allow to disable wiringpi even when it is installed. Use SDL2 instead of partly old SDL.
Michiel Broek <mbroek@mbse.eu>
parents:
634
diff
changeset
|
51 | fi |
21e542c15832
Add --enable-wiringpi to configure script to allow to disable wiringpi even when it is installed. Use SDL2 instead of partly old SDL.
Michiel Broek <mbroek@mbse.eu>
parents:
634
diff
changeset
|
52 | else |
21e542c15832
Add --enable-wiringpi to configure script to allow to disable wiringpi even when it is installed. Use SDL2 instead of partly old SDL.
Michiel Broek <mbroek@mbse.eu>
parents:
634
diff
changeset
|
53 | AC_MSG_RESULT(check wiringPi disabled) |
16
f4cbe008da72
Version 0.0.2. Added LCD display using wiringPi library. The display is connected via a LCM1602 IIC board.
Michiel Broek <mbroek@mbse.eu>
parents:
13
diff
changeset
|
54 | fi |
f4cbe008da72
Version 0.0.2. Added LCD display using wiringPi library. The display is connected via a LCM1602 IIC board.
Michiel Broek <mbroek@mbse.eu>
parents:
13
diff
changeset
|
55 | |
550
04c942cded91
Versie 0.8.3. Enkele debug console berichten verwijderd. De MQTT NCMD reboot en rebirth commando's geimplementeerd.
Michiel Broek <mbroek@mbse.eu>
parents:
549
diff
changeset
|
56 | AC_CHECK_LIB(json-c,json_object_iter_init_default,result=yes,result=no) |
04c942cded91
Versie 0.8.3. Enkele debug console berichten verwijderd. De MQTT NCMD reboot en rebirth commando's geimplementeerd.
Michiel Broek <mbroek@mbse.eu>
parents:
549
diff
changeset
|
57 | if test "$result" = "yes"; then |
04c942cded91
Versie 0.8.3. Enkele debug console berichten verwijderd. De MQTT NCMD reboot en rebirth commando's geimplementeerd.
Michiel Broek <mbroek@mbse.eu>
parents:
549
diff
changeset
|
58 | LIBS="$LIBS -ljson-c" |
04c942cded91
Versie 0.8.3. Enkele debug console berichten verwijderd. De MQTT NCMD reboot en rebirth commando's geimplementeerd.
Michiel Broek <mbroek@mbse.eu>
parents:
549
diff
changeset
|
59 | AC_CHECK_HEADERS(json-c/json.h) |
04c942cded91
Versie 0.8.3. Enkele debug console berichten verwijderd. De MQTT NCMD reboot en rebirth commando's geimplementeerd.
Michiel Broek <mbroek@mbse.eu>
parents:
549
diff
changeset
|
60 | else |
04c942cded91
Versie 0.8.3. Enkele debug console berichten verwijderd. De MQTT NCMD reboot en rebirth commando's geimplementeerd.
Michiel Broek <mbroek@mbse.eu>
parents:
549
diff
changeset
|
61 | AC_MSG_ERROR(json-c not found) |
04c942cded91
Versie 0.8.3. Enkele debug console berichten verwijderd. De MQTT NCMD reboot en rebirth commando's geimplementeerd.
Michiel Broek <mbroek@mbse.eu>
parents:
549
diff
changeset
|
62 | fi |
04c942cded91
Versie 0.8.3. Enkele debug console berichten verwijderd. De MQTT NCMD reboot en rebirth commando's geimplementeerd.
Michiel Broek <mbroek@mbse.eu>
parents:
549
diff
changeset
|
63 | |
675
825210ba2707
Added websockets to thermferm. Started new www directory for websocket enabled web. The init script now waits until thermferm is completely stopped.
Michiel Broek <mbroek@mbse.eu>
parents:
673
diff
changeset
|
64 | AC_CHECK_LIB(websockets,lws_create_context,result=yes,result=no) |
825210ba2707
Added websockets to thermferm. Started new www directory for websocket enabled web. The init script now waits until thermferm is completely stopped.
Michiel Broek <mbroek@mbse.eu>
parents:
673
diff
changeset
|
65 | if test "$result" = "yes"; then |
825210ba2707
Added websockets to thermferm. Started new www directory for websocket enabled web. The init script now waits until thermferm is completely stopped.
Michiel Broek <mbroek@mbse.eu>
parents:
673
diff
changeset
|
66 | LIBS="$LIBS -lwebsockets" |
825210ba2707
Added websockets to thermferm. Started new www directory for websocket enabled web. The init script now waits until thermferm is completely stopped.
Michiel Broek <mbroek@mbse.eu>
parents:
673
diff
changeset
|
67 | AC_CHECK_HEADERS(libwebsockets.h) |
825210ba2707
Added websockets to thermferm. Started new www directory for websocket enabled web. The init script now waits until thermferm is completely stopped.
Michiel Broek <mbroek@mbse.eu>
parents:
673
diff
changeset
|
68 | else |
825210ba2707
Added websockets to thermferm. Started new www directory for websocket enabled web. The init script now waits until thermferm is completely stopped.
Michiel Broek <mbroek@mbse.eu>
parents:
673
diff
changeset
|
69 | AC_MSG_ERROR(libwebsockets not found) |
825210ba2707
Added websockets to thermferm. Started new www directory for websocket enabled web. The init script now waits until thermferm is completely stopped.
Michiel Broek <mbroek@mbse.eu>
parents:
673
diff
changeset
|
70 | fi |
825210ba2707
Added websockets to thermferm. Started new www directory for websocket enabled web. The init script now waits until thermferm is completely stopped.
Michiel Broek <mbroek@mbse.eu>
parents:
673
diff
changeset
|
71 | |
825210ba2707
Added websockets to thermferm. Started new www directory for websocket enabled web. The init script now waits until thermferm is completely stopped.
Michiel Broek <mbroek@mbse.eu>
parents:
673
diff
changeset
|
72 | |
6 | 73 | # |
0 | 74 | # Additional commandline switches |
75 | # | |
76 | AC_ARG_ENABLE(experiment, [ --enable-experiment Compile experimental code], [ experiment=$enableval ], [ experiment=no ]) | |
77 | if test "$experiment" = "yes"; then | |
78 | AC_DEFINE(USE_EXPERIMENT) | |
79 | fi | |
80 | ||
283 | 81 | SIMULATOR=No |
259
b7c967359771
Added framework for a simulation of a fridge with heater to use as controlled fermentor
Michiel Broek <mbroek@mbse.eu>
parents:
250
diff
changeset
|
82 | AC_ARG_ENABLE(simulator, [ --enable-simulator Compile simulator code], [ simulator=$enableval ], [ simulator=no ]) |
b7c967359771
Added framework for a simulation of a fridge with heater to use as controlled fermentor
Michiel Broek <mbroek@mbse.eu>
parents:
250
diff
changeset
|
83 | if test "$simulator" = "yes"; then |
b7c967359771
Added framework for a simulation of a fridge with heater to use as controlled fermentor
Michiel Broek <mbroek@mbse.eu>
parents:
250
diff
changeset
|
84 | AC_DEFINE(USE_SIMULATOR) |
283 | 85 | SIMULATOR=Yes |
259
b7c967359771
Added framework for a simulation of a fridge with heater to use as controlled fermentor
Michiel Broek <mbroek@mbse.eu>
parents:
250
diff
changeset
|
86 | fi |
b7c967359771
Added framework for a simulation of a fridge with heater to use as controlled fermentor
Michiel Broek <mbroek@mbse.eu>
parents:
250
diff
changeset
|
87 | |
0 | 88 | AC_ARG_ENABLE(debugging, [ --enable-debugging Compile for debugging], [ debugging=$enableval ], [ debugging=no ]) |
89 | if test "$debugging" = "yes"; then | |
90 | CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline" | |
91 | else | |
92 | CFLAGS="-g -O2 -fomit-frame-pointer -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline" | |
93 | fi | |
262
d0014ccec615
Simulation of fridge cold loss to the room added for testing.
Michiel Broek <mbroek@mbse.eu>
parents:
259
diff
changeset
|
94 | LIBS="$LIBS -lm" |
0 | 95 | |
727 | 96 | AC_CHECK_FUNC(gettid,result=yes,result=no) |
726 | 97 | if test "$result" = "yes"; then |
98 | AC_DEFINE(HAVE_GETTID) | |
99 | fi | |
100 | ||
57
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
101 | |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
102 | AC_CHECK_LIB(xml2,xmlParseFile,result=yes,result=no) |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
103 | if test "$result" = "yes"; then |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
104 | LIBS="$LIBS -lxml2" |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
105 | CFLAGS="$CFLAGS $(xml2-config --cflags)" |
79 | 106 | AC_CHECK_HEADERS(libxml/xmlmemory.h) |
75
4b976601737d
Writes a basic xml configuration next to the plain ascii config file
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
107 | else |
4b976601737d
Writes a basic xml configuration next to the plain ascii config file
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
108 | AC_MSG_ERROR(libxml2 not found) |
57
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
109 | fi |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
110 | |
79 | 111 | AC_CHECK_LIB(uuid,uuid_generate,result=yes,result=no) |
112 | if test "$result" = "yes"; then | |
113 | LIBS="$LIBS $(pkg-config --libs uuid)" | |
114 | CFLAGS="$CFLAGS $(pkg-config --cflags uuid)" | |
115 | AC_CHECK_HEADERS(uuid/uuid.h) | |
116 | else | |
117 | AC_MSG_ERROR(libuuid not found) | |
118 | fi | |
57
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
119 | |
409
cdf68044adaf
Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents:
407
diff
changeset
|
120 | # Check for SDL |
410
e3f8a51b566a
Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents:
409
diff
changeset
|
121 | SDL_CFLAGS="" |
e3f8a51b566a
Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents:
409
diff
changeset
|
122 | SDL_LIBS="" |
411
ae85e91dcc58
Added configure message about SDL presence.
Michiel Broek <mbroek@mbse.eu>
parents:
410
diff
changeset
|
123 | SDL="No" |
642
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
124 | AC_MSG_CHECKING(SDL library) |
409
cdf68044adaf
Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents:
407
diff
changeset
|
125 | pkg-config --exists sdl |
cdf68044adaf
Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents:
407
diff
changeset
|
126 | if test "$?" = "0"; then |
cdf68044adaf
Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents:
407
diff
changeset
|
127 | AC_MSG_RESULT(yes) |
642
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
128 | AC_MSG_CHECKING(sdl library v2.0.0 or newer) |
637
21e542c15832
Add --enable-wiringpi to configure script to allow to disable wiringpi even when it is installed. Use SDL2 instead of partly old SDL.
Michiel Broek <mbroek@mbse.eu>
parents:
634
diff
changeset
|
129 | pkg-config --atleast-version=2.0.0 sdl2 |
410
e3f8a51b566a
Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents:
409
diff
changeset
|
130 | if test "$?" = "0"; then |
e3f8a51b566a
Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents:
409
diff
changeset
|
131 | AC_MSG_RESULT(found) |
642
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
132 | SDL_CFLAGS="$(pkg-config --cflags sdl2)" |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
133 | SDL_LIBS="$(pkg-config --libs sdl2)" |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
134 | AC_CHECK_HEADERS(SDL2/SDL.h) |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
135 | SDL="Yes" |
410
e3f8a51b566a
Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents:
409
diff
changeset
|
136 | else |
642
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
137 | AC_MSG_RESULT(not found) |
410
e3f8a51b566a
Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents:
409
diff
changeset
|
138 | fi |
409
cdf68044adaf
Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents:
407
diff
changeset
|
139 | else |
410
e3f8a51b566a
Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents:
409
diff
changeset
|
140 | AC_MSG_RESULT(no) |
409
cdf68044adaf
Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents:
407
diff
changeset
|
141 | fi |
cdf68044adaf
Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents:
407
diff
changeset
|
142 | |
642
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
143 | # Check for SDL_ttf if base SDL2 is found. |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
144 | if test "$SDL" = "Yes"; then |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
145 | AC_MSG_CHECKING(SDL2_ttf library) |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
146 | pkg-config --exists SDL2_ttf |
410
e3f8a51b566a
Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents:
409
diff
changeset
|
147 | if test "$?" = "0"; then |
642
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
148 | AC_MSG_RESULT(yes) |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
149 | AC_MSG_CHECKING(sdl2 library v2.0.0 or newer) |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
150 | pkg-config --atleast-version=2.0.0 SDL2_ttf |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
151 | if test "$?" = "0"; then |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
152 | AC_MSG_RESULT(found) |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
153 | # Override flags |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
154 | SDL_CFLAGS="$(pkg-config --cflags SDL2_ttf)" |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
155 | SDL_LIBS="$(pkg-config --libs SDL2_ttf)" |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
156 | else |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
157 | AC_MSG_ERROR(not found) |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
158 | SDL="No" |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
159 | fi |
410
e3f8a51b566a
Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents:
409
diff
changeset
|
160 | else |
642
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
161 | AC_MSG_RESULT(no) |
410
e3f8a51b566a
Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents:
409
diff
changeset
|
162 | fi |
409
cdf68044adaf
Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents:
407
diff
changeset
|
163 | fi |
57
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
164 | |
0 | 165 | dnl Checks for header files. |
166 | AC_HEADER_STDC | |
167 | ||
409
cdf68044adaf
Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents:
407
diff
changeset
|
168 | AC_SUBST(SDL_CFLAGS) |
cdf68044adaf
Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents:
407
diff
changeset
|
169 | AC_SUBST(SDL_LIBS) |
0 | 170 | |
171 | ||
172 | AC_OUTPUT( | |
173 | Makefile.global | |
675
825210ba2707
Added websockets to thermferm. Started new www directory for websocket enabled web. The init script now waits until thermferm is completely stopped.
Michiel Broek <mbroek@mbse.eu>
parents:
673
diff
changeset
|
174 | www/version.php |
0 | 175 | ) |
176 | ||
177 | AC_MSG_RESULT([ | |
178 | -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=- | |
179 | ||
180 | Configuration summary : | |
181 | ||
182 | Version : ............ ${VERSION} | |
183 | Main directory : ..... ${prefix} | |
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
184 | WiringPi : ........... ${WIRINGPI} |
637
21e542c15832
Add --enable-wiringpi to configure script to allow to disable wiringpi even when it is installed. Use SDL2 instead of partly old SDL.
Michiel Broek <mbroek@mbse.eu>
parents:
634
diff
changeset
|
185 | SDL2 library : ....... ${SDL} |
283 | 186 | Simulator : .......... ${SIMULATOR} |
0 | 187 | |
188 | Now type 'make' and 'sudo make install' | |
189 | ]) | |
190 |