]> Pileus Git - aweather/blob - configure.ac
Fix misc bugs and bump version to 0.3
[aweather] / configure.ac
1 # Init and options
2 AC_INIT([aweather], [0.3], [spenceal@rose-hulman.edu])
3 AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability foreign])
4 AC_CONFIG_HEADERS([config.h])
5 AC_CONFIG_MACRO_DIR([m4])
6 #AM_SILENT_RULES([yes])
7
8 # Check for required programs
9 AC_PROG_CC
10 AC_PROG_LIBTOOL
11 PKG_PROG_PKG_CONFIG
12
13 # Check for required packages
14 PKG_CHECK_MODULES(GIS, libgis = $VERSION)
15
16 # Define odd RSL install location
17 AC_CHECK_LIB(rsl, RSL_wsr88d_to_radar, RSL_LIBS="-lrsl")
18 AM_CONDITIONAL(HAVE_RSL, test "$RSL_LIBS" != "")
19 AC_SUBST(RSL_LIBS)
20
21 # Output 
22 AC_CONFIG_FILES([
23         Makefile
24         src/Makefile
25         src/plugins/Makefile
26         data/Makefile
27         docs/Makefile
28 ])
29 AC_OUTPUT
30
31 # Print status messages
32 if test "$RSL_LIBS" = ""; then
33         echo " ** Warning, RSL not found, radar plugin disabled"
34 fi