[brlcad-commits] SF.net SVN: brlcad:[55643] brlcad/trunk/CMakeLists.txt
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <br...@us...> - 2013-06-04 02:38:59
|
Revision: 55643 http://sourceforge.net/p/brlcad/code/55643 Author: brlcad Date: 2013-06-04 02:38:55 +0000 (Tue, 04 Jun 2013) Log Message: ----------- test for fileno() since the function disappears in c99 pedantic mode (it's a posix function). instead, check for kill() and fileno() being declared. Modified Paths: -------------- brlcad/trunk/CMakeLists.txt Modified: brlcad/trunk/CMakeLists.txt =================================================================== --- brlcad/trunk/CMakeLists.txt 2013-06-03 19:07:18 UTC (rev 55642) +++ brlcad/trunk/CMakeLists.txt 2013-06-04 02:38:55 UTC (rev 55643) @@ -1662,6 +1662,7 @@ BRLCAD_FUNCTION_EXISTS(dlopen HAVE_DLOPEN) BRLCAD_FUNCTION_EXISTS(drand48 HAVE_DRAND48) BRLCAD_FUNCTION_EXISTS(fchmod HAVE_FCHMOD) +BRLCAD_FUNCTION_EXISTS(fileno HAVE_FILENO) BRLCAD_FUNCTION_EXISTS(fsync HAVE_FSYNC) BRLCAD_FUNCTION_EXISTS(getcwd HAVE_GETCWD) BRLCAD_FUNCTION_EXISTS(getegid HAVE_GETEGID) @@ -1697,6 +1698,12 @@ BRLCAD_FUNCTION_EXISTS(vsscanf HAVE_VSSCANF) BRLCAD_FUNCTION_EXISTS(writev HAVE_WRITEV) +# 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) + # On Windows, we need to check for hypot etc.. This test pertains # to the windows specific config file, not CONFIG_H_FILE - hence, # just run the test and it will be handled by configure_file later. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |