configure.ac

changeset 409
cdf68044adaf
parent 407
ee8f851b4d93
child 410
e3f8a51b566a
equal deleted inserted replaced
408:ec507c1f1df7 409:cdf68044adaf
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="dht11 rc433 thermferm" 5 SUBDIRS="dht11 rc433 thermferm brewco brewpanel"
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.4.3" 11 VERSION="0.5.0"
12 COPYRIGHT="Copyright (C) 2014-2015 Michiel Broek, All Rights Reserved" 12 COPYRIGHT="Copyright (C) 2014-2015 Michiel Broek, All Rights Reserved"
13 CYEARS="2014-2015" 13 CYEARS="2014-2015"
14 AC_SUBST(PACKAGE) 14 AC_SUBST(PACKAGE)
15 AC_SUBST(VERSION) 15 AC_SUBST(VERSION)
16 AC_SUBST(COPYRIGHT) 16 AC_SUBST(COPYRIGHT)
79 AC_CHECK_HEADERS(uuid/uuid.h) 79 AC_CHECK_HEADERS(uuid/uuid.h)
80 else 80 else
81 AC_MSG_ERROR(libuuid not found) 81 AC_MSG_ERROR(libuuid not found)
82 fi 82 fi
83 83
84 # Check for SDL
85 AC_MSG_CHECKING(SDL library)
86 pkg-config --exists sdl
87 if test "$?" = "0"; then
88 AC_MSG_RESULT(yes)
89 else
90 AC_MSG_ERROR(no)
91 fi
92 AC_MSG_CHECKING(sdl library v1.2.0 or newer)
93 pkg-config --atleast-version=1.2.0 sdl
94 if test "$?" = "0"; then
95 AC_MSG_RESULT(found)
96 else
97 AC_MSG_ERROR(not found)
98 fi
99 SDL_CFLAGS="$(pkg-config --cflags sdl)"
100 SDL_LIBS="$(pkg-config --libs sdl)"
101 AC_CHECK_HEADERS(SDL/SDL.h)
102
103 # Check for SDL_ttf
104 AC_MSG_CHECKING(SDL_ttf library)
105 pkg-config --exists SDL_ttf
106 if test "$?" = "0"; then
107 AC_MSG_RESULT(yes)
108 else
109 AC_MSG_ERROR(no)
110 fi
111 AC_MSG_CHECKING(sdl library v2.0.0 or newer)
112 pkg-config --atleast-version=2.0.0 SDL_ttf
113 if test "$?" = "0"; then
114 AC_MSG_RESULT(found)
115 else
116 AC_MSG_ERROR(not found)
117 fi
118 # Override flags
119 SDL_CFLAGS="$(pkg-config --cflags SDL_ttf)"
120 SDL_LIBS="$(pkg-config --libs SDL_ttf)"
121
84 122
85 dnl Checks for header files. 123 dnl Checks for header files.
86 AC_HEADER_STDC 124 AC_HEADER_STDC
87 125
126 AC_SUBST(SDL_CFLAGS)
127 AC_SUBST(SDL_LIBS)
88 128
89 AC_SUBST(CXXFLAGS)
90 129
91 AC_OUTPUT( 130 AC_OUTPUT(
92 Makefile.global 131 Makefile.global
93 ) 132 )
94 133

mercurial