|
From: Rich C. <rc...@wi...> - 2012-12-11 16:36:42
|
On Tue, 11 Dec 2012 16:07:28 +0100 Mark Wielaard <mj...@re...> wrote: > On Tue, 2012-12-11 at 08:54 -0600, Rich Coe wrote: > > The configure test fails true. > > > > configure:6774: checking for stpncpy > > configure:6795: gcc -c -Wno-long-long conftest.c >&5 > > conftest.c: In function 'main': > > conftest.c:42: warning: incompatible implicit declaration of built-in function 'stpncpy' > > configure:6795: $? = 0 > > configure:6798: result: yes > > So, the test now also compiles? > Then I assume it was the #define _GNU_SOURCE addition. > But the configure test still makes sense, stpncpy might not be there on > some platforms/configurations. No, because the test result is 'yes', the config parameter is still set and it still tries to compile the test case. The configure test needs to fail so the result is false and the test case doesn't compile on platforms that don't have the function. Rich |