1 dnl ######################################################################
2 dnl Initial settings for CPPFLAGS (-I options)
3 dnl NOTE: this is for configuration as well as compilations!
4 AC_DEFUN([AMU_OPT_CPPFLAGS],
5 [AC_MSG_CHECKING(for configuration/compilation (-I) preprocessor flags)
6 AC_ARG_ENABLE(cppflags,
7 AC_HELP_STRING([--enable-cppflags=ARG],
8 [configure/compile with ARG (-I) preprocessor flags]),
10 if test "$enableval" = "" || test "$enableval" = "yes" || test "$enableval" = "no"; then
11 AC_MSG_ERROR(cppflags must be supplied if option is used)
13 # use supplied options
14 CPPFLAGS="$CPPFLAGS $enableval"
16 AC_MSG_RESULT($enableval)
18 # default is to have no additional flags
22 dnl ======================================================================