Back to the Main Page.

peti_pedantic_gcc

Download the M4 Source.

Synopsis

PETI_PEDANTIC_GCC

Version

1.3 (2003/04/16)     0.5.65   :   Miscellaneous

Author

Peter Simons <simons@computer.org>

Description
obsoleted - if you need it then contact the original author
! For development purposes, it is desirable to have autoconf automatically enable warnings when compiling C or C++ sources. In case the underlying compiler is a gcc, the appropriate flags are "-Wall -pedantic". This macro will add them to $CFLAGS and $CXXFLAGS if $CC is found to be a gcc.

M4 Source Code

AC_DEFUN([PETI_PEDANTIC_GCC],
    [
    if test "$GCC" = yes; then
        CFLAGS="$CFLAGS -Wall -pedantic"
        CXXFLAGS="$CXXFLAGS -Wall -pedantic"
        fi
    ])