X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=configure.ac;h=5197755f36d694c109e636dc8d6e4565e4055992;hp=58a1103cb1e1db57903d726fd6ebad29677ca01a;hb=0166a74c965b1e8466c90d8dc8dc49731506543e;hpb=5b0d4a3f91c424a06365c1c90c4e1c9bc4767b90 diff --git a/configure.ac b/configure.ac index 58a1103..5197755 100644 --- a/configure.ac +++ b/configure.ac @@ -16,10 +16,8 @@ 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([ @@ -33,3 +31,8 @@ AC_CONFIG_FILES([ docs/api/Makefile ]) AC_OUTPUT + +# Print status messages +if test "$RSL_LIBS" = ""; then + echo " ** Warning, RSL not found, radar plugin disabled" +fi