From: Vincent Bernat Date: Thu, 20 Sep 2012 21:49:42 +0000 (+0200) Subject: build: use AC_PROG_CC_C99 instead of -std=gnu99 X-Git-Tag: 0.7.0~79 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6c5861233e6b953e20a140a3fd01ec8403a249d5;p=thirdparty%2Flldpd.git build: use AC_PROG_CC_C99 instead of -std=gnu99 Use of C99 is mandatory but not all compilers will support -std=gnu99 (which is GCC specific). Autoconf comes with the appropriate macro for this. --- diff --git a/configure.ac b/configure.ac index 2ffe16c8..f8dfe99b 100644 --- a/configure.ac +++ b/configure.ac @@ -35,6 +35,7 @@ LT_INIT # Checks for programs. AC_PROG_CC +AC_PROG_CC_C99 AC_PROG_CXX AM_PROG_CC_C_O AC_PROG_LIBTOOL @@ -53,7 +54,6 @@ DX_INIT_DOXYGEN([lldpd], [doxygen.cfg], [doxygen]) # Check some compiler flags AX_CFLAGS_GCC_OPTION([-fdiagnostics-show-option]) -AX_CFLAGS_GCC_OPTION([-std=gnu99]) AX_CFLAGS_GCC_OPTION([-pipe]) AX_CFLAGS_GCC_OPTION([-Wall]) AX_CFLAGS_GCC_OPTION([-W])