X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=configure.ac;h=fb3359158e2fda856cda1fd55e09ddc0a34b6c1a;hp=184a12e63dc268dca6752eb7e26545fd5dca2364;hb=8fb74729b7796fe3f5d50a67bcc37869109cede1;hpb=1019fcfe2d612df24355f2597e661c28621b01c3 diff --git a/configure.ac b/configure.ac index 184a12e..fb33591 100644 --- a/configure.ac +++ b/configure.ac @@ -1,10 +1,13 @@ # Init and options -AC_INIT([aweather], [0.1.1], [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]) +#AM_SILENT_RULES([yes]) # Check for required programs AC_PROG_CC +AC_PROG_LIBTOOL PKG_PROG_PKG_CONFIG GTK_DOC_CHECK(1.9) @@ -14,17 +17,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