configure.ac

changeset 283
affe4d2adc94
parent 262
d0014ccec615
child 290
edb0b4da491a
equal deleted inserted replaced
282:885e5243bb50 283:affe4d2adc94
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.2.1" 11 VERSION="0.2.2"
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)
45 AC_ARG_ENABLE(experiment, [ --enable-experiment Compile experimental code], [ experiment=$enableval ], [ experiment=no ]) 45 AC_ARG_ENABLE(experiment, [ --enable-experiment Compile experimental code], [ experiment=$enableval ], [ experiment=no ])
46 if test "$experiment" = "yes"; then 46 if test "$experiment" = "yes"; then
47 AC_DEFINE(USE_EXPERIMENT) 47 AC_DEFINE(USE_EXPERIMENT)
48 fi 48 fi
49 49
50 SIMULATOR=No
50 AC_ARG_ENABLE(simulator, [ --enable-simulator Compile simulator code], [ simulator=$enableval ], [ simulator=no ]) 51 AC_ARG_ENABLE(simulator, [ --enable-simulator Compile simulator code], [ simulator=$enableval ], [ simulator=no ])
51 if test "$simulator" = "yes"; then 52 if test "$simulator" = "yes"; then
52 AC_DEFINE(USE_SIMULATOR) 53 AC_DEFINE(USE_SIMULATOR)
54 SIMULATOR=Yes
53 fi 55 fi
54 56
55 AC_ARG_ENABLE(debugging, [ --enable-debugging Compile for debugging], [ debugging=$enableval ], [ debugging=no ]) 57 AC_ARG_ENABLE(debugging, [ --enable-debugging Compile for debugging], [ debugging=$enableval ], [ debugging=no ])
56 if test "$debugging" = "yes"; then 58 if test "$debugging" = "yes"; then
57 CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline" 59 CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline"
96 Configuration summary : 98 Configuration summary :
97 99
98 Version : ............ ${VERSION} 100 Version : ............ ${VERSION}
99 Main directory : ..... ${prefix} 101 Main directory : ..... ${prefix}
100 WiringPi : ........... ${WIRINGPI} 102 WiringPi : ........... ${WIRINGPI}
103 Simulator : .......... ${SIMULATOR}
101 104
102 Now type 'make' and 'sudo make install' 105 Now type 'make' and 'sudo make install'
103 ]) 106 ])
104 107

mercurial