AC_DEFUN(DEAL_II_CHECK_TRILINOS_HEADER_FILES, dnl
[
OLD_CXXFLAGS="$CXXFLAGS"
- CPPFLAGS="-I$DEAL_II_TRILINOS_DIR/include"
- CXXFLAGS="-I$DEAL_II_TRILINOS_DIR/include"
+ OLD_CPPFLAGS="$CPPFLAGS"
+
+ CPPFLAGS="-I$DEAL_II_TRILINOS_DIR/include $CPPFLAGS"
+ CXXFLAGS="-I$DEAL_II_TRILINOS_DIR/include $CXXFLAGS"
AC_CHECK_HEADERS([Amesos.h \
AztecOO.h \
AztecOO_Operator.h \
Trilinos sub-packages enabled.])
],
[])
+ CPPFLAGS="${OLD_CPPFLAGS}"
CXXFLAGS="${OLD_CXXFLAGS}"
])
OLD_CXXFLAGS="$CXXFLAGS"
- CPPFLAGS="-I$DEAL_II_TRILINOS_DIR/include"
- CXXFLAGS="-I$DEAL_II_TRILINOS_DIR/include"
+ OLD_CPPFLAGS="$CPPFLAGS"
+
+ CPPFLAGS="-I$DEAL_II_TRILINOS_DIR/include $CPPFLAGS"
+ CXXFLAGS="-I$DEAL_II_TRILINOS_DIR/include $CXXFLAGS"
done
+ CPPFLAGS="${OLD_CPPFLAGS}"
CXXFLAGS="${OLD_CXXFLAGS}"
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams