[brlcad-commits] SF.net SVN: brlcad:[55654] brlcad/trunk/CMakeLists.txt
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <br...@us...> - 2013-06-04 05:30:57
|
Revision: 55654 http://sourceforge.net/p/brlcad/code/55654 Author: brlcad Date: 2013-06-04 05:30:53 +0000 (Tue, 04 Jun 2013) Log Message: ----------- so CHECK_PROTOTYPE_EXISTS() is woefully busted in numerous ways. assumes c++, has a bad symbol test, results in unused var warnings, and doesn't work with preprocessor-wrapped symbols coming from system headers. former versions of CHECK_SYMBOL_EXISTS() almost did exactly what we need (a simple (void)symbol; test just like AC_CHECK_DECL) but was bastardized in recent versions so it now spews an error too (it's busted and has been reported). Modified Paths: -------------- brlcad/trunk/CMakeLists.txt Modified: brlcad/trunk/CMakeLists.txt =================================================================== --- brlcad/trunk/CMakeLists.txt 2013-06-04 04:27:38 UTC (rev 55653) +++ brlcad/trunk/CMakeLists.txt 2013-06-04 05:30:53 UTC (rev 55654) @@ -1700,9 +1700,9 @@ # we may compile in strict pedantic mode, but still want access to # some POSIX functions. test whether these symbols are declared in -# addition to whether they exist (above). -CHECK_PROTOTYPE_EXISTS(kill "sys/types.h;signal.h" HAVE_DECL_KILL) -CHECK_PROTOTYPE_EXISTS(fileno "stdio.h" HAVE_DECL_FILENO) +# addition to whether they resolve (above). +CHECK_SYMBOL_EXISTS(kill "sys/types.h;signal.h" HAVE_DECL_KILL) +CHECK_SYMBOL_EXISTS(fileno "stdio.h" HAVE_DECL_FILENO) # On Windows, we need to check for hypot etc.. This test pertains # to the windows specific config file, not CONFIG_H_FILE - hence, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |