Adjust for rename of src folder, add test for new 2.4-specific feature.
[shibboleth/resolver.git] / configure.ac
index ee54541..0ab9637 100644 (file)
@@ -245,6 +245,15 @@ AC_TRY_LINK(
     [AC_DEFINE(HAVE_SHIBSP,1,[Define if Shibboleth SP library was found])],\r
     [AC_MSG_ERROR([unable to link with Shibboleth SP])])\r
 \r
+AC_MSG_CHECKING([whether SP library supports non-plugin remoting])\r
+AC_TRY_COMPILE([#include <shibsp/ServiceProvider.hpp>],\r
+    [shibsp::ServiceProvider* sp;\r
+     sp->regListener(NULL,NULL);\r
+    ],\r
+    [AC_MSG_RESULT([yes])]\r
+    [AC_DEFINE([SHIBRESOLVER_SHIBSP_HAS_REMOTING], [1], [Define to 1 if Shibboleth SP supports non-plugin remoting.])],\r
+    [AC_MSG_RESULT([no])])\r
+\r
 # restore master libs\r
 LIBS="$save_LIBS"\r
 \r
@@ -254,7 +263,7 @@ AC_SUBST(XMLSEC_LIBS)
 AC_CONFIG_FILES([resolver.spec Portfile])\r
 \r
 # output the underlying makefiles\r
-AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile])\r
+AC_CONFIG_FILES([Makefile doc/Makefile shibresolver/Makefile])\r
 \r
 LIBTOOL="$LIBTOOL --silent"\r
 \r