configure.ac

changeset 142
4f21ffc16cd4
parent 107
f2f201b7cb48
child 144
3446371e0bdb
equal deleted inserted replaced
141:f19a52a25ff5 142:4f21ffc16cd4
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"
11 VERSION="0.0.10" 11 VERSION="0.0.11"
12 COPYRIGHT="Copyright (C) 2014 Michiel Broek, All Rights Reserved" 12 COPYRIGHT="Copyright (C) 2014 Michiel Broek, All Rights Reserved"
13 CYEARS="2014" 13 CYEARS="2014"
14 AC_SUBST(PACKAGE) 14 AC_SUBST(PACKAGE)
15 AC_SUBST(VERSION) 15 AC_SUBST(VERSION)
16 AC_SUBST(COPYRIGHT) 16 AC_SUBST(COPYRIGHT)
42 WIRINGPI=No 42 WIRINGPI=No
43 AC_CHECK_LIB(wiringPi,wiringPiSetup,result=yes,result=no) 43 AC_CHECK_LIB(wiringPi,wiringPiSetup,result=yes,result=no)
44 if test "$result" = "yes"; then 44 if test "$result" = "yes"; then
45 LIBS="$LIBS -lwiringPi -lwiringPiDev" 45 LIBS="$LIBS -lwiringPi -lwiringPiDev"
46 AC_CHECK_HEADERS(wiringPi.h,WIRINGPI=Yes,WIRINGPI=No) 46 AC_CHECK_HEADERS(wiringPi.h,WIRINGPI=Yes,WIRINGPI=No)
47 fi
48
49 OWSERVER=No
50 AC_CHECK_LIB(ownet,OWNET_init,result=yes,result=no)
51 if test "$result" = "yes"; then
52 LIBS="$LIBS -lownet"
53 AC_CHECK_HEADERS(ownetapi.h,OWSERVER=Yes,OWSERVER=No)
47 fi 54 fi
48 55
49 56
50 # 57 #
51 # Additional commandline switches 58 # Additional commandline switches
98 Configuration summary : 105 Configuration summary :
99 106
100 Version : ............ ${VERSION} 107 Version : ............ ${VERSION}
101 Main directory : ..... ${prefix} 108 Main directory : ..... ${prefix}
102 WiringPi : ........... ${WIRINGPI} 109 WiringPi : ........... ${WIRINGPI}
110 OWserver : ........... ${OWSERVER}
103 111
104 Now type 'make' and 'sudo make install' 112 Now type 'make' and 'sudo make install'
105 ]) 113 ])
106 114

mercurial