1 dnl ######################################################################
2 dnl Which options to add to CFLAGS for compilation?
3 dnl NOTE: this is only for final compiltions, not for configure tests)
4 AC_DEFUN([AMU_OPT_AMU_CFLAGS],
5 [AC_MSG_CHECKING(for additional C option compilation flags)
6 AC_ARG_ENABLE(am-cflags,
7 AC_HELP_STRING([--enable-am-cflags=ARG],
8 [compile package with ARG additional C flags]),
10 if test "$enableval" = "" || test "$enableval" = "yes" || test "$enableval" = "no"; then
11 AC_MSG_ERROR(am-cflags must be supplied if option is used)
13 # user supplied a cflags option to configure
14 AMU_CFLAGS="$enableval"
16 AC_MSG_RESULT($enableval)
18 # default is to have no additional C flags
24 dnl ======================================================================