37 if test "$result" = "yes"; then |
37 if test "$result" = "yes"; then |
38 LIBS="$LIBS -lmosquitto" |
38 LIBS="$LIBS -lmosquitto" |
39 else |
39 else |
40 AC_MSG_ERROR(libmosquitto not found) |
40 AC_MSG_ERROR(libmosquitto not found) |
41 fi |
41 fi |
|
42 |
|
43 AC_CHECK_LIB(wiringPi,wiringPiSetup,result=yes,result=no) |
|
44 if test "$result" = "yes"; then |
|
45 LIBS="$LIBS -lwiringPi -lwiringPiDev" |
|
46 else |
|
47 AC_MSG_ERROR(libwiringPi not found) |
|
48 fi |
|
49 |
42 |
50 |
43 # |
51 # |
44 # Additional commandline switches |
52 # Additional commandline switches |
45 # |
53 # |
46 AC_ARG_ENABLE(experiment, [ --enable-experiment Compile experimental code], [ experiment=$enableval ], [ experiment=no ]) |
54 AC_ARG_ENABLE(experiment, [ --enable-experiment Compile experimental code], [ experiment=$enableval ], [ experiment=no ]) |