CFLAGS="$nmh_saved_cflags"])
test "$nmh_cv_has_wextra" = "yes" && CFLAGS="${CFLAGS:+$CFLAGS }-Wextra"
-dnl Check for any platform-specific additional CPPFLAGS. This depends on
+dnl Check for any platform-specific additional AM_CPPFLAGS. This depends on
dnl MULTIBYTE_ENABLED having already been set.
NMH_ADDL_CPPFLAGS
dnl It shouldn't hurt with earlier versions because it's a cpp macro.
dnl If the user configures with a CFLAGS that contains a -O flag
dnl but then removes it a make time, they'll also have to remove
- dnl -D_FORTIFY_SOURCE from CPPFLAGS because it requires optimization.
+ dnl -D_FORTIFY_SOURCE from AM_CPPFLAGS because it requires optimization.
AS_CASE([$CFLAGS],
- [-O*|*' -O'*],[CPPFLAGS="${CPPFLAGS:+$CPPFLAGS }-D_FORTIFY_SOURCE=2"])
+ [-O*|*' -O'*],[AM_CPPFLAGS="${AM_CPPFLAGS:+$AM_CPPFLAGS }-D_FORTIFY_SOURCE=2"])
fi
dnl FreeBSD needs a bit of magic to bring getline() into scope.
dnl ----------------
dnl CHECK FLEX FIXUP
dnl ----------------
-dnl Use LFLAGS make variable setting to work around bugs in flex
+dnl Use AM_LFLAGS make variable setting to work around bugs in flex
dnl 2.5.36-37 that cause signed/unsigned mismatch,
dnl http://sourceforge.net/p/flex/bugs/140/
AS_IF([test "$LEX" = flex],
[AS_CASE([`$LEX -V`],
- [flex\ 2.5.35], [LFLAGS=\
+ [flex\ 2.5.35], [AM_LFLAGS=\
'; sed "s/ int n;/ size_t n;/" $@ >$@.tmp && mv -f $@.tmp $@'],
- [flex\ 2.5.3[[67]]], [LFLAGS=\
+ [flex\ 2.5.3[[67]]], [AM_LFLAGS=\
'; sed "s/\( \)int i;/\1yy_size_t i;/" $@ >$@.tmp && mv -f $@.tmp $@'])
- AC_SUBST([LFLAGS])])
+ AC_SUBST([AM_LFLAGS])])
dnl ------------------
dnl FOR INTERNAL USE by the NMH test suite
compiler : ${CC}
compiler flags : ${CFLAGS}
linker flags : ${LDFLAGS}
-preprocessor flags : ${CPPFLAGS}
+preprocessor flags : ${AM_CPPFLAGS} ${CPPFLAGS}
source code location : ${srcdir}
binary install path : ${nmhbin}
libexec install path : ${nmhlibexec}/nmh