From 9651b551f1c5af7f688d62ceb309ba84f92a77d3 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Wed, 05 Mar 2014 21:14:05 +0000 Subject: don't include ext/algorithm if there's no such --- diff --git a/configure.ac b/configure.ac index e636253..606e644 100644 --- a/configure.ac +++ b/configure.ac @@ -13,6 +13,7 @@ PKG_PROG_PKG_CONFIG AC_HEADER_STDC AC_CHECK_FUNCS([timegm]) +AC_CHECK_HEADERS([ext/algorithm.h]) AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) diff --git a/test/OP.cc b/test/OP.cc index 6012b2e..4e2a5ed 100644 --- a/test/OP.cc +++ b/test/OP.cc @@ -2,7 +2,6 @@ #include #include #include -#include using namespace std; #include #include @@ -16,6 +15,11 @@ using namespace std; #include #include +#include "config.h" +#ifdef HAVE_EXT_ALGORITHM_H +# include +#endif + #include "sqlite.h" #include "kingate_openid_message.h" -- cgit v0.9.0.2