From: Gerhard Sittig Date: Sat, 22 Feb 2020 05:09:35 +0000 (+0100) Subject: configure: add AC_C_CONST to configure.ac X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4342689729bd3ea70209604b34af0a7c641b80cc;p=libsigrokdecode.git configure: add AC_C_CONST to configure.ac This is inspired by the autobook sections on Windows DLL builds. https://www.sourceware.org/autobook/autobook/autobook_137.html The AC_C_CONST macro improves support for the C language 'const' decoration in case the compiler does not understand it. --- diff --git a/configure.ac b/configure.ac index d59e0be..3a8b163 100644 --- a/configure.ac +++ b/configure.ac @@ -40,6 +40,8 @@ AC_PROG_CC AC_PROG_INSTALL AC_PROG_LN_S +AC_C_CONST + # Required for per-target flags or subdir-objects with C sources. AM_PROG_CC_C_O