Fix build on some platforms by adding extra flags
authorSimo Sorce <simo@redhat.com>
Tue, 14 Oct 2014 13:17:46 +0000 (09:17 -0400)
committerSimo Sorce <simo@redhat.com>
Tue, 14 Oct 2014 13:17:46 +0000 (09:17 -0400)
For some reason all the necessary CFALGS are not returned by simply
querying the CFLAGS from apxs. We also need to query EXTRA_CPPFLAGS
apparently.

configure.ac

index f8ac579..9e2dd60 100644 (file)
@@ -69,7 +69,7 @@ AC_CHECK_FUNCS(gss_store_cred_into)
 AC_SUBST([GSSAPI_CFLAGS])
 AC_SUBST([GSSAPI_LIBS])
 
-MAG_CFLAGS="`${APXS} -q CFLAGS` `${APR} --cflags` ${GSSAPI_CFLAGS} ${OPENSSL_CFLAGS} -I`${APXS} -q INCLUDEDIR` `${APR} --includes`"
+MAG_CFLAGS="`${APXS} -q CFLAGS` `${APXS} -q EXTRA_CPPFLAGS` `${APR} --cflags` ${GSSAPI_CFLAGS} ${OPENSSL_CFLAGS} -I`${APXS} -q INCLUDEDIR` `${APR} --includes`"
 MAG_LIBS="`${APR} --libs` ${GSSAPI_LIBS} ${OPENSSL_LIBS}"
 LIBTOOL="`${APXS} -q LIBTOOL`"
 MAG_LIBDIR="`${APXS} -q libexecdir`"