summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipa-server/configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipa-server/configure.ac b/ipa-server/configure.ac
index 03a86d19..341c0709 100644
--- a/ipa-server/configure.ac
+++ b/ipa-server/configure.ac
@@ -22,7 +22,11 @@ dnl ---------------------------------------------------------------------------
dnl - Check for DS slapi plugin
dnl ---------------------------------------------------------------------------
+# Need to hack CPPFLAGS to be able to correctly detetct slapi-plugin.h
+SAVE_CPPFLAGS=$CPPFLAGS
+CPPFLAGS=-"I/usr/include/nspr4"
AC_CHECK_HEADER(dirsrv/slapi-plugin.h)
+CPPFLAGS=$SAVE_CPPFLAGS
if test "x$ac_cv_header_dirsrv_slapi_plugin_h" = "xno" ; then
AC_MSG_ERROR([Required DS slapi plugin header not available])