X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=acinclude.m4;h=69e61e0e916e2bdad20db4273c7e72a0c3fec88b;hb=f4ac3fc104d83edce7d3f2410a7b02cb56dd0ac2;hp=fa6f534deb3cfa4f1f276a7cc77ca0a67083c643;hpb=431488e6638d3fbb53d215fa10d2ff2d8f1c2824;p=openvswitch diff --git a/acinclude.m4 b/acinclude.m4 index fa6f534d..69e61e0e 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -14,6 +14,17 @@ # See the License for the specific language governing permissions and # limitations under the License. +dnl OVS_ENABLE_WERROR +AC_DEFUN([OVS_ENABLE_WERROR], + [AC_ARG_ENABLE( + [Werror], + [AC_HELP_STRING([--enable-Werror], [Add -Werror to CFLAGS])], + [], [enable_Werror=no]) + AC_CONFIG_COMMANDS_PRE( + [if test "X$enable_Werror" = Xyes; then + CFLAGS="$CFLAGS -Werror" + fi])]) + dnl OVS_CHECK_LINUX26 dnl dnl Configure linux kernel source tree