diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2021-05-30 18:06:35 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2021-05-30 18:06:35 +0200 |
commit | e3b2bb78e19b155a46379b64dcc13699399a32cc (patch) | |
tree | 25603e46871e81476e955d87eac51089026226eb /configure.ac | |
parent | ac772d940e60e11f4cacc3aab8aca9ad4d7b5e4e (diff) | |
download | sciteco-e3b2bb78e19b155a46379b64dcc13699399a32cc.tar.gz |
fixed Clang builds
`-fno-optimize-strlen` is not supported on Clang and there is no way
to ignore unknown arguments.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 38d33bf..cca1cd3 100644 --- a/configure.ac +++ b/configure.ac @@ -56,6 +56,7 @@ AC_PROG_CC # FIXME: We want -std=gnu11 AC_PROG_CC_C99 AC_PROG_SED +AC_PROG_GREP AC_PROG_INSTALL # Mainly because of Scintilla, which depends on @@ -75,6 +76,9 @@ AC_PROG_CXX AX_CXX_COMPILE_STDCXX(11, noext, mandatory) AC_CHECK_TOOL(AR, ar) +# Whether $CC is Clang +AM_CONDITIONAL(CLANG, [$CC --version | $GREP -i clang >/dev/null]) + # Check for Windows resource compiler and define # WIN32 conditional case $host in |