]> git.pond.sub.org Git - empserver/commit
configure: Test GCC-specific compiler flags only when using GCC
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 28 Dec 2020 04:07:50 +0000 (05:07 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 23 Jan 2021 06:08:21 +0000 (07:08 +0100)
commitec4004b4d4054dbe06158e24db66c6fbbbb2f6eb
tree4c8f4d5d24bbfb86b8827b3636208f497940a5f3
parenta830df0553ee1732c6bf59259df1baf4e5ab7a9c
configure: Test GCC-specific compiler flags only when using GCC

Commit 23373d01d "configure: Test compiler flags" (v4.4.0) made
configure test whether compiler flags work, to let us use flags that
work only for some compilers.

Unfortunately, the Sun C compiler accepts invalid options with a
warning, breaking the test.  Observed on Solaris 10.

Fix by testing the compiler flags only when AC_PROG_CC detected GCC.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
configure.ac