]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: use AC_PROG_CC_C99 instead of -std=gnu99
authorVincent Bernat <bernat@luffy.cx>
Thu, 20 Sep 2012 21:49:42 +0000 (23:49 +0200)
committerVincent Bernat <bernat@luffy.cx>
Thu, 20 Sep 2012 21:50:31 +0000 (23:50 +0200)
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.

configure.ac

index 2ffe16c8a87fa2e53300ed0abc48a24a74ab7ea9..f8dfe99b2ad6443ec66d87a0542ad21033bfe527 100644 (file)
@@ -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])