diff --git a/src/post_modules/ZXID/acconfig.h b/src/post_modules/ZXID/acconfig.h index eeff8560702a08c64b198a56236367711c7dcfd4..4aaba826248ac8f8854bf7772b595ec579c43c7d 100644 --- a/src/post_modules/ZXID/acconfig.h +++ b/src/post_modules/ZXID/acconfig.h @@ -16,4 +16,7 @@ /* Define this if your struct zxid_conf has the burl member. */ #undef HAVE_STRUCT_ZXID_CONF_BURL +/* Define this if your struct zxid_cgi has the uri_path member. */ +#undef HAVE_STRUCT_ZXID_CGI_URI_PATH + #endif diff --git a/src/post_modules/ZXID/configure.in b/src/post_modules/ZXID/configure.in index f735460d146e7a3720f96565885241c1b34af62e..b9041f70bf536171c96aa0345482bc4b2a08c511 100644 --- a/src/post_modules/ZXID/configure.in +++ b/src/post_modules/ZXID/configure.in @@ -52,6 +52,28 @@ then else AC_MSG_RESULT(no) fi + + AC_MSG_CHECKING(if struct zxid_cgi has an uri_path member) + AC_CACHE_VAL(pike_cv_struct_zxid_cgi_uri_path, [ + AC_TRY_COMPILE([ +#include <zx/zx.h> +#include <zxid/zxid.h> + ], [ + struct zxid_cgi cgi; + cgi.uri_path = "URI_PATH"; + ], [ + pike_cv_struct_zxid_cgi_uri_path="yes" + ], [ + pike_cv_struct_zxid_cgit_uri_path="no" + ]) + ]) + if test "x$pike_cv_struct_zxid_cgi_uri_path" = "xyes"; then + # ZXID 1.18:2013-11-17 or later. + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_STRUCT_ZXID_CGI_URI_PATH) + else + AC_MSG_RESULT(no) + fi else LIBS="$ORIG_LIBS" fi