]> Pileus Git - aweather/blob - configure.ac
Add outline to logo
[aweather] / configure.ac
1 # Init and options
2 AC_INIT([aweather], [0.5.1], [andy753421@gmail.com])
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 gl_EARLY
11 LT_PROG_RC
12 AC_PROG_LIBTOOL
13 PKG_PROG_PKG_CONFIG
14 gl_INIT
15
16 # Check for required packages
17 PKG_CHECK_MODULES(GLIB,  glib-2.0)
18 PKG_CHECK_MODULES(GRITS, grits >= 0.5)
19
20 # Define odd RSL install location
21 AC_CHECK_LIB(rsl, RSL_wsr88d_to_radar, RSL_LIBS="-lrsl")
22 AM_CONDITIONAL(HAVE_RSL, test "$RSL_LIBS" != "")
23 AC_SUBST(RSL_LIBS)
24
25 # Test for Windows vs. Unix
26 case "${host}" in
27         *mingw32*) WIN32="yes" ;;
28         *)         WIN32="no"  ;;
29 esac
30 if test "$WIN32" = yes; then
31         ac_default_prefix="/"
32 fi
33 AM_CONDITIONAL([WIN32], test "$WIN32" = "yes")
34
35 # Output 
36 AC_CONFIG_FILES([
37         Makefile
38         lib/Makefile
39         src/Makefile
40         src/resource.rc
41         src/plugins/Makefile
42         data/Makefile
43         data/main.ui
44         docs/Makefile
45 ])
46 AC_OUTPUT
47
48 # Print status messages
49 if test "$RSL_LIBS" = ""; then
50         echo " ** Warning, RSL not found, radar plugin disabled"
51 fi