X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=configure.ac;h=5197755f36d694c109e636dc8d6e4565e4055992;hp=0d2d33d618d6b684053d6926fcc508e65e552e93;hb=0166a74c965b1e8466c90d8dc8dc49731506543e;hpb=b6ef934425e0d137606209d91b239c3cec472a3a diff --git a/configure.ac b/configure.ac index 0d2d33d..5197755 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ # Init and options -AC_INIT([aweather], [0.2.0], [spenceal@rose-hulman.edu]) +AC_INIT([aweather], [0.3-p0], [spenceal@rose-hulman.edu]) AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability foreign]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIR([m4]) @@ -16,19 +16,23 @@ PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.16 gtkglext-1.0) PKG_CHECK_MODULES(SOUP, libsoup-2.4 >= 2.26) # Define odd RSL install location -#AC_SUBST(RSL_CFLAGS, "-I/usr/local/trmm/GVBOX/include/") -#AC_SUBST(RSL_LIBS, "-L/usr/local/trmm/GVBOX/lib/ -lrsl") -AC_SUBST(RSL_CFLAGS, "") -AC_SUBST(RSL_LIBS, "-lrsl") +AC_CHECK_LIB(rsl, RSL_wsr88d_to_radar, RLS_LIBS="-lrsl") +AM_CONDITIONAL(HAVE_RSL, test "$RSL_LIBS" != "") # Output AC_CONFIG_FILES([ Makefile src/Makefile src/gis/Makefile + src/gis/libgis.pc src/plugins/Makefile data/Makefile docs/Makefile docs/api/Makefile ]) AC_OUTPUT + +# Print status messages +if test "$RSL_LIBS" = ""; then + echo " ** Warning, RSL not found, radar plugin disabled" +fi