Message ID | 20230524110349.2983588-1-dario.binacchi@amarulasolutions.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 31b7b5ec7edd0027e7121ddb578537d60c8f4bc6 |
Delegated to: | Michal Kubecek |
Headers | show |
Series | [ethtool,v2] Require a compiler with support for C11 features | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
Hello: This patch was applied to ethtool/ethtool.git (master) by Michal Kubecek <mkubecek@suse.cz>: On Wed, 24 May 2023 13:03:49 +0200 you wrote: > Just like the kernel, which has been using -std=gnu11 for about a year, > we also require a C11 compiler for ethtool. > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > --- > Changes in v2: > - Enable support to C11 compiler instead of C++11 > > [...] Here is the summary with links: - [ethtool,v2] Require a compiler with support for C11 features https://git.kernel.org/pub/scm/network/ethtool/ethtool.git/commit/?id=31b7b5ec7edd You are awesome, thank you!
diff --git a/configure.ac b/configure.ac index c1e001247138..5735e24927e2 100644 --- a/configure.ac +++ b/configure.ac @@ -13,6 +13,15 @@ AC_PROG_GCC_TRADITIONAL AM_PROG_CC_C_O PKG_PROG_PKG_CONFIG +AC_DEFUN([AX_CHECK_STDC], + [AX_CHECK_COMPILE_FLAG([-std=gnu11], + [AX_APPEND_FLAG([-std=gnu11])], + [AX_CHECK_COMPILE_FLAG([-std=c11], + [AX_APPEND_FLAG([-std=c11])], + [AC_MSG_ERROR([$PACKAGE requires a C11 compiler])]) + ]) + ]) + dnl Checks for libraries. dnl Checks for header files.
Just like the kernel, which has been using -std=gnu11 for about a year, we also require a C11 compiler for ethtool. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- Changes in v2: - Enable support to C11 compiler instead of C++11 --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+)