Revision: 77731
http://sourceforge.net/p/brlcad/code/77731
Author: starseeker
Date: 2020-11-12 20:08:59 +0000 (Thu, 12 Nov 2020)
Log Message:
-----------
Various build adjustments
Modified Paths:
--------------
brlcad/branches/extbuild/src/other/ext/tcl/CMakeLists.txt
brlcad/branches/extbuild/src/other/ext/tcl.cmake
brlcad/branches/extbuild/src/other/ext/tk/CMakeLists.txt
Added Paths:
-----------
brlcad/branches/extbuild/src/other/ext/tk/CMake/
brlcad/branches/extbuild/src/other/ext/tk/CMake/CheckPrototypeExists.cmake
brlcad/branches/extbuild/src/other/ext/tk/CMake/FindTCL.cmake
brlcad/branches/extbuild/src/other/ext/tk/CMake/Path_Setup.cmake
brlcad/branches/extbuild/src/other/ext/tk/CMake/ac_std_funcs.cmake
brlcad/branches/extbuild/src/other/ext/tk/CMake/tcl.cmake
Removed Paths:
-------------
brlcad/branches/extbuild/src/other/ext/tcl/CMake/RPath_Setup.cmake
Deleted: brlcad/branches/extbuild/src/other/ext/tcl/CMake/RPath_Setup.cmake
===================================================================
--- brlcad/branches/extbuild/src/other/ext/tcl/CMake/RPath_Setup.cmake
2020-11-12 18:45:53 UTC (rev 77730)
+++ brlcad/branches/extbuild/src/other/ext/tcl/CMake/RPath_Setup.cmake
2020-11-12 20:08:59 UTC (rev 77731)
@@ -1,88 +0,0 @@
-# Copyright (c) 2010-2020 United States Government as represented by
-# the U.S. Army Research Laboratory.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-#
-# 2. Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following
-# disclaimer in the documentation and/or other materials provided
-# with the distribution.
-#
-# 3. The name of the author may not be used to endorse or promote
-# products derived from this software without specific prior written
-# permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
-# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
-# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-#---------------------------------------------------------------------
-# The following logic is what allows binaries to run successfully in
-# the build directory AND install directory. Thanks to plplot for
-# identifying the necessity of setting CMAKE_INSTALL_NAME_DIR on OSX.
-# Documentation of these options is available at
-# http://www.cmake.org/Wiki/CMake_RPATH_handling
-
-if(NOT COMMAND cmake_set_rpath)
-
- function(cmake_set_rpath)
-
- if(NOT CMAKE_RPATH_SET)
-
- # We want the full RPATH set in the build tree so we can run programs
without
- # needing to set LD_LIBRARY_PATH
- set(CMAKE_SKIP_BUILD_RPATH FALSE PARENT_SCOPE)
-
- # We DON'T want the final install directory RPATH set in the build
directory
- # - it should only be set to the installation value when actually
installed.
- set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE PARENT_SCOPE)
-
- # Set RPATH value to use when installing. This should be set to always
- # prefer the version in the installed path when possible, but fall back
on a
- # location relative to the loading file's path if the installed version
is
- # not present. How to do so is platform specific.
- if(NOT APPLE)
- set(CMAKE_INSTALL_RPATH
"${CMAKE_INSTALL_PREFIX}/${LIB_DIR}:\$ORIGIN/../${LIB_DIR}" PARENT_SCOPE)
- else(NOT APPLE)
- set(CMAKE_INSTALL_RPATH
"${CMAKE_INSTALL_PREFIX}/${LIB_DIR};@loader_path/../${LIB_DIR}" PARENT_SCOPE)
- endif(NOT APPLE)
-
- # On OSX, we need to set INSTALL_NAME_DIR instead of RPATH for CMake <
3.0
- #
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#variable:CMAKE_INSTALL_NAME_DIR
- # http://www.cmake.org/cmake/help/v3.2/policy/CMP0042.html
- if ("${CMAKE_VERSION}" VERSION_LESS 3.0)
- set(CMAKE_INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${LIB_DIR}"
PARENT_SCOPE)
- endif ("${CMAKE_VERSION}" VERSION_LESS 3.0)
-
- # Add the automatically determined parts of the RPATH which point to
- # directories outside the build tree to the install RPATH
- set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE PARENT_SCOPE)
-
- # RPATH setup is now complete
- set(CMAKE_RPATH_SET 1 PARENT_SCOPE)
-
- endif(NOT CMAKE_RPATH_SET)
-
- endfunction(cmake_set_rpath)
-
-endif(NOT COMMAND cmake_set_rpath)
-
-# Local Variables:
-# tab-width: 8
-# mode: cmake
-# indent-tabs-mode: t
-# End:
-# ex: shiftwidth=2 tabstop=8
Modified: brlcad/branches/extbuild/src/other/ext/tcl/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/tcl/CMakeLists.txt 2020-11-12
18:45:53 UTC (rev 77730)
+++ brlcad/branches/extbuild/src/other/ext/tcl/CMakeLists.txt 2020-11-12
20:08:59 UTC (rev 77731)
@@ -74,13 +74,6 @@
include(Path_Setup)
-#-----------------------------------------------------------------------------
-# The following logic is what allows binaries to run successfully in the build
-# directory AND install directory. Documentation of these options is available
-# at http://www.cmake.org/Wiki/CMake_RPATH_handling
-include(RPath_Setup)
-cmake_set_rpath()
-
#----------------------------------------------------------------------------
# Define some standard configuration settings passed to all Tcl build targets
Modified: brlcad/branches/extbuild/src/other/ext/tcl.cmake
===================================================================
--- brlcad/branches/extbuild/src/other/ext/tcl.cmake 2020-11-12 18:45:53 UTC
(rev 77730)
+++ brlcad/branches/extbuild/src/other/ext/tcl.cmake 2020-11-12 20:08:59 UTC
(rev 77731)
@@ -35,6 +35,7 @@
set(ZLIB_TARGET zlib_stage)
set(ZLIB_NAME z_brl)
set(DEFLATE_NAME brl_deflateSetHeader)
+ list(APPEND TCL_DEPS ZLIB_BLD zlib_stage)
else (TARGET zlib_stage)
set(ZLIB_NAME z)
set(DEFLATE_NAME deflateSetHeader)
@@ -89,6 +90,7 @@
-DZLIB_LIBRARY=$<$<BOOL:${ZLIB_TARGET}>:${ZLIB_LIBRARY}>
$<$<BOOL:${ZLIB_TARGET}>:-DZ_PREFIX=ON>
$<$<BOOL:${ZLIB_TARGET}>:-DZ_PREFIX_STR=${Z_PREFIX_STR}>
+ DEPENDS ${TCL_DEPS}
)
DISTCLEAN("${CMAKE_CURRENT_BINARY_DIR}/TCL_BLD-prefix")
@@ -349,6 +351,7 @@
# Anything building against the stub will want the headers, etc. in place
add_dependencies(tclstub tcl_stage)
+ add_dependencies(tclsh_exe tcl_stage)
set(TCL_LIBRARY tcl CACHE STRING "Building bundled tcl" FORCE)
set(TCL_LIBRARIES tcl CACHE STRING "Building bundled tcl" FORCE)
Added:
brlcad/branches/extbuild/src/other/ext/tk/CMake/CheckPrototypeExists.cmake
===================================================================
--- brlcad/branches/extbuild/src/other/ext/tk/CMake/CheckPrototypeExists.cmake
(rev 0)
+++ brlcad/branches/extbuild/src/other/ext/tk/CMake/CheckPrototypeExists.cmake
2020-11-12 20:08:59 UTC (rev 77731)
@@ -0,0 +1,62 @@
+# - Check if the prototype for a function exists.
+# CHECK_PROTOTYPE_EXISTS (FUNCTION HEADER VARIABLE)
+#
+# FUNCTION - the name of the function you are looking for
+# HEADER - the header(s) where the prototype should be declared
+# VARIABLE - variable to store the result
+#
+# The following variables may be set before calling this macro to
+# modify the way the check is run:
+#
+# CMAKE_REQUIRED_FLAGS = string of compile command line flags
+# CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
+# CMAKE_REQUIRED_INCLUDES = list of include directories
+
+# Copyright (c) 2006, Alexander Neundorf, <[email protected]>
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# 1. Redistributions of source code must retain the copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+# 3. The name of the author may not be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+#
http://websvn.kde.org/trunk/KDE/kdelibs/cmake/modules/CheckPrototypeExists.cmake?pathrev=776742
+
+
+include(CheckCXXSourceCompiles)
+
+macro(CHECK_PROTOTYPE_EXISTS _SYMBOL _HEADER _RESULT)
+ set(_INCLUDE_FILES)
+ foreach(it ${_HEADER})
+ set(_INCLUDE_FILES "${_INCLUDE_FILES}#include <${it}>\n")
+ endforeach(it)
+
+ set(_CHECK_PROTO_EXISTS_SOURCE_CODE "
+${_INCLUDE_FILES}
+int main()
+{
+#ifndef ${_SYMBOL}
+ int i = sizeof(&${_SYMBOL});
+#endif
+ return 0;
+}
+")
+ CHECK_CXX_SOURCE_COMPILES("${_CHECK_PROTO_EXISTS_SOURCE_CODE}" ${_RESULT})
+endmacro(CHECK_PROTOTYPE_EXISTS _SYMBOL _HEADER _RESULT)
+
Property changes on:
brlcad/branches/extbuild/src/other/ext/tk/CMake/CheckPrototypeExists.cmake
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: brlcad/branches/extbuild/src/other/ext/tk/CMake/FindTCL.cmake
===================================================================
--- brlcad/branches/extbuild/src/other/ext/tk/CMake/FindTCL.cmake
(rev 0)
+++ brlcad/branches/extbuild/src/other/ext/tk/CMake/FindTCL.cmake
2020-11-12 20:08:59 UTC (rev 77731)
@@ -0,0 +1,255 @@
+# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
+# file Copyright.txt or https://cmake.org/licensing for details.
+
+#[=======================================================================[.rst:
+FindTCL
+-------
+
+This module finds if Tcl is installed and determines where the include
+files and libraries are. It also determines what the name of the
+library is. This code sets the following variables:
+
+::
+
+TCL_FOUND = Tcl was found
+TCLTK_FOUND = Tcl and Tk were found
+TCLSH_FOUND = TRUE if tclsh has been found
+TCL_LIBRARY = path to Tcl library (tcl tcl80)
+TCL_INCLUDE_PATH = path to where tcl.h can be found
+TCL_TCLSH = path to tclsh binary (tcl tcl80)
+TCL_STUB_LIBRARY = path to Tcl stub library
+
+#]=======================================================================]
+
+include(CMakeFindFrameworks)
+
+set(_TCL_SEARCHES)
+
+# Search TCL_ROOT first if it is set.
+if(TCL_ROOT)
+ set(_TCL_SEARCH_ROOT PATHS ${TCL_ROOT} NO_DEFAULT_PATH)
+ list(APPEND _TCL_SEARCHES _TCL_SEARCH_ROOT)
+endif()
+
+if(WIN32)
+ get_filename_component(
+ ActiveTcl_CurrentVersion
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActiveTcl;CurrentVersion]"
+ NAME)
+ set(TCLTK_POSSIBLE_BIN_PATHS ${TCLTK_POSSIBLE_BIN_PATHS}
+
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActiveTcl\\${ActiveTcl_CurrentVersion}]/bin"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.6;Root]/bin"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.5;Root]/bin"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.4;Root]/bin"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.3;Root]/bin"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.2;Root]/bin"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.0;Root]/bin"
+ )
+
+ get_filename_component(
+ ActiveTcl_CurrentVersion
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActiveTcl;CurrentVersion]"
+ NAME)
+ set(TCLTK_POSSIBLE_LIB_PATHS ${TCLTK_POSSIBLE_LIB_PATHS}
+
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActiveTcl\\${ActiveTcl_CurrentVersion}]/lib"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.6;Root]/lib"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.5;Root]/lib"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.4;Root]/lib"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.3;Root]/lib"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.2;Root]/lib"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.0;Root]/lib"
+ "$ENV{ProgramFiles}/Tcl/Lib"
+ "C:/Program Files/Tcl/lib"
+ "C:/Tcl/lib"
+ )
+
+ set(TCLTK_POSSIBLE_INCLUDE_PATHS ${TCLTK_POSSIBLE_INCLUDE_PATHS}
+
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActiveTcl\\${ActiveTcl_CurrentVersion}]/include"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.6;Root]/include"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.5;Root]/include"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.4;Root]/include"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.3;Root]/include"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.2;Root]/include"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.0;Root]/include"
+ "$ENV{ProgramFiles}/Tcl/include"
+ "C:/Program Files/Tcl/include"
+ "C:/Tcl/include"
+ )
+endif()
+
+set(TCL_TCLSH_NAMES
+ tclsh
+ tclsh${TCL_LIBRARY_VERSION} tclsh${TK_LIBRARY_VERSION}
+ tclsh87 tclsh8.7
+ tclsh86 tclsh8.6
+ tclsh85 tclsh8.5
+ tclsh84 tclsh8.4
+ tclsh83 tclsh8.3
+ tclsh82 tclsh8.2
+ tclsh80 tclsh8.0
+ )
+if(CYGWIN)
+ set(TCL_TCLSH_NAMES ${TCL_TCLSH_NAMES} cygtclsh83 cygtclsh80)
+endif(CYGWIN)
+
+foreach(search ${_TCL_SEARCHES})
+ find_program(TCL_TCLSH NAMES ${TCL_TCLSH_NAMES} ${${search}} PATH_SUFFIXES
bin)
+endforeach()
+if (NOT TCL_TCLSH)
+ find_program(TCL_TCLSH NAMES ${TCL_TCLSH_NAMES} HINTS
${TCLTK_POSSIBLE_BIN_PATHS})
+endif (NOT TCL_TCLSH)
+
+if(TCLSH_VERSION_STRING)
+ set(TCL_TCLSH_VERSION "${TCLSH_VERSION_STRING}")
+else()
+ get_filename_component(TCL_TCLSH_PATH "${TCL_TCLSH}" PATH)
+ get_filename_component(TCL_TCLSH_PATH_PARENT "${TCL_TCLSH_PATH}" PATH)
+ string(REGEX REPLACE
+ "^.*tclsh([0-9]\\.*[0-9]).*$" "\\1" TCL_TCLSH_VERSION "${TCL_TCLSH}")
+endif()
+
+set(TCLTK_POSSIBLE_LIB_PATHS
+ "${TCL_INCLUDE_PATH_PARENT}/lib"
+ "${TK_INCLUDE_PATH_PARENT}/lib"
+ "${TCL_LIBRARY_PATH}"
+ "${TK_LIBRARY_PATH}"
+ "${TCL_TCLSH_PATH_PARENT}/lib"
+ )
+set(TCLTK_POSSIBLE_LIB_PATH_SUFFIXES
+ lib
+ lib/tcl
+ lib/tcl/tcl8.7
+ lib/tcl/tk8.7
+ lib/tcl/tcl8.6
+ lib/tcl/tk8.6
+ lib/tcl/tcl8.5
+ lib/tcl/tk8.5
+ lib/tcl/tcl8.4
+ lib/tcl/tk8.4
+ )
+
+set(TCL_POSSIBLE_LIB_NAMES
+ tcl
+ tcl${TCL_LIBRARY_VERSION} tcl${TCL_TCLSH_VERSION}
+ tcl87 tcl8.7 tcl87t tcl8.7t
+ tcl86 tcl8.6 tcl86t tcl8.6t
+ tcl85 tcl8.5
+ tcl84 tcl8.4
+ tcl83 tcl8.3
+ tcl82 tcl8.2
+ tcl80 tcl8.0
+ )
+
+if(NOT TCL_LIBRARY)
+ foreach(search ${_TCL_SEARCHES})
+ find_library(TCL_LIBRARY
+ NAMES ${TCL_POSSIBLE_LIB_NAMES}
+ NAMES_PER_DIR ${${search}}
+ PATH_SUFFIXES ${TCLTK_POSSIBLE_LIB_PATH_SUFFIXES})
+ endforeach()
+endif()
+if(NOT TCL_LIBRARY)
+ find_library(TCL_LIBRARY
+ NAMES ${TCL_POSSIBLE_LIB_NAMES}
+ PATHS ${TCLTK_POSSIBLE_LIB_PATHS}
+ PATH_SUFFIXES ${TCLTK_POSSIBLE_LIB_PATH_SUFFIXES}
+ )
+endif(NOT TCL_LIBRARY)
+
+set(TCLSTUB_POSSIBLE_LIB_NAMES
+ tclstub
+ tclstub${TK_LIBRARY_VERSION} tclstub${TCL_TCLSH_VERSION}
+ tclstub87 tclstub8.7
+ tclstub86 tclstub8.6
+ tclstub85 tclstub8.5
+ tclstub84 tclstub8.4
+ tclstub83 tclstub8.3
+ tclstub82 tclstub8.2
+ tclstub80 tclstub8.0
+ )
+if(NOT TCL_STUB_LIBRARY)
+ foreach(search ${_TCL_SEARCHES})
+ find_library(TCL_STUB_LIBRARY
+ NAMES ${TCLSTUB_POSSIBLE_LIB_NAMES}
+ NAMES_PER_DIR ${${search}}
+ PATH_SUFFIXES ${TCLTK_POSSIBLE_LIB_PATH_SUFFIXES}
+ )
+ endforeach()
+endif()
+if(NOT TCL_STUB_LIBRARY)
+ find_library(TCL_STUB_LIBRARY
+ NAMES ${TCLSTUB_POSSIBLE_LIB_NAMES}
+ PATHS ${TCLTK_POSSIBLE_LIB_PATHS}
+ )
+endif()
+
+CMAKE_FIND_FRAMEWORKS(Tcl)
+
+set(TCL_FRAMEWORK_INCLUDES)
+if(Tcl_FRAMEWORKS)
+ if(NOT TCL_INCLUDE_PATH)
+ foreach(dir ${Tcl_FRAMEWORKS})
+ set(TCL_FRAMEWORK_INCLUDES ${TCL_FRAMEWORK_INCLUDES} ${dir}/Headers)
+ endforeach()
+ endif()
+endif()
+
+set(TCLTK_POSSIBLE_INCLUDE_PATHS
+ "${TCL_LIBRARY_PATH_PARENT}/include"
+ "${TCL_INCLUDE_PATH}"
+ ${TCL_FRAMEWORK_INCLUDES}
+ "${TCL_TCLSH_PATH_PARENT}/include"
+ )
+
+set(TCLTK_POSSIBLE_INCLUDE_PATH_SUFFIXES
+ include
+ include/tcl${TCL_LIBRARY_VERSION}
+ include/tcl8.7
+ include/tcl8.6
+ include/tcl8.5
+ include/tcl8.4
+ include/tcl8.3
+ include/tcl8.2
+ include/tcl8.0
+ )
+
+foreach(search ${_TCL_SEARCHES})
+ find_path(TCL_INCLUDE_PATH
+ NAMES tcl.h ${${search}}
+ PATH_SUFFIXES ${TCLTK_POSSIBLE_INCLUDE_PATH_SUFFIXES}
+ )
+endforeach()
+if (NOT TCL_INCLUDE_PATH)
+ find_path(TCL_INCLUDE_PATH
+ NAMES tcl.h
+ HINTS ${TCLTK_POSSIBLE_INCLUDE_PATHS}
+ PATH_SUFFIXES ${TCLTK_POSSIBLE_INCLUDE_PATH_SUFFIXES}
+ )
+endif()
+
+include(FindPackageHandleStandardArgs)
+
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(TCL
+ REQUIRED_VARS TCL_LIBRARY TCL_STUB_LIBRARY TCL_INCLUDE_PATH TCL_TCLSH
+ VERSION_VAR TCLSH_VERSION_STRING)
+set(FPHSA_NAME_MISMATCHED 1)
+set(TCLTK_FIND_REQUIRED ${TCL_FIND_REQUIRED})
+set(TCLTK_FIND_QUIETLY ${TCL_FIND_QUIETLY})
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(TCLTK
+ REQUIRED_VARS TCL_LIBRARY TCL_STUB_LIBRARY TCL_INCLUDE_PATH)
+unset(FPHSA_NAME_MISMATCHED)
+
+mark_as_advanced(
+ TCL_INCLUDE_PATH
+ TCL_LIBRARY
+ TCL_STUB_LIBRARY
+ TCL_TCLSH
+ )
+
+
+# Local Variables:
+# tab-width: 8
+# mode: cmake
+# indent-tabs-mode: t
+# End:
+# ex: shiftwidth=2 tabstop=8
Property changes on:
brlcad/branches/extbuild/src/other/ext/tk/CMake/FindTCL.cmake
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: brlcad/branches/extbuild/src/other/ext/tk/CMake/Path_Setup.cmake
===================================================================
--- brlcad/branches/extbuild/src/other/ext/tk/CMake/Path_Setup.cmake
(rev 0)
+++ brlcad/branches/extbuild/src/other/ext/tk/CMake/Path_Setup.cmake
2020-11-12 20:08:59 UTC (rev 77731)
@@ -0,0 +1,149 @@
+# Copyright (c) 2010-2020 United States Government as represented by
+# the U.S. Army Research Laboratory.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# 2. Redistributions in binary form must reproduce the above
+# copyright notice, this list of conditions and the following
+# disclaimer in the documentation and/or other materials provided
+# with the distribution.
+#
+# 3. The name of the author may not be used to endorse or promote
+# products derived from this software without specific prior written
+# permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
+# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+#---------------------------------------------------------------------
+# Define relative install locations. Don't set these if they have already
+# been set by some other means (like a higher level CMakeLists.txt file
+# including this one).
+
+# The location in which to install BRL-CAD executables.
+if(NOT BIN_DIR)
+ set(BIN_DIR bin)
+endif(NOT BIN_DIR)
+
+# The location in which to install BRL-CAD libraries.
+if(NOT LIB_DIR)
+ set(LIB_DIR lib)
+endif(NOT LIB_DIR)
+if(NOT LIBEXEC_DIR)
+ set(LIBEXEC_DIR libexec)
+endif(NOT LIBEXEC_DIR)
+
+# The location in which to install BRL-CAD header files.
+if(NOT INCLUDE_DIR)
+ set(INCLUDE_DIR include)
+endif(NOT INCLUDE_DIR)
+
+# The location in which to install BRL-CAD data files
+if(NOT DATA_DIR)
+ set(DATA_DIR share)
+endif(NOT DATA_DIR)
+
+# The location in which to install BRL-CAD documentation files
+if(NOT DOC_DIR)
+ set(DOC_DIR ${DATA_DIR}/doc)
+endif(NOT DOC_DIR)
+
+# The location in which to install BRL-CAD Manual pages
+if(NOT MAN_DIR)
+ set(MAN_DIR ${DATA_DIR}/man)
+endif(NOT MAN_DIR)
+
+# Make sure no absolute paths have been supplied to these variables
+set(INSTALL_DIRS BIN INCLUDE LIB LIBEXEC DATA MAN DOC)
+foreach(instdir ${INSTALL_DIRS})
+ get_filename_component(instdir_full ${${instdir}_DIR} ABSOLUTE)
+ if("${${instdir}_DIR}" STREQUAL "${instdir_full}")
+ message(FATAL_ERROR "Error - absolute path supplied for ${instdir}_DIR.
This path must be relative - e.g. \"bin\" instead of \"/usr/bin\"")
+ set(HAVE_INSTALL_DIR_FULL_PATH 1)
+ endif("${${instdir}_DIR}" STREQUAL "${instdir_full}")
+endforeach(instdir ${INSTALL_DIRS})
+
+#---------------------------------------------------------------------
+# Output directories - this is where built library and executable
+# files will be placed after building but prior to install. The
+# necessary variables change between single and multi configuration
+# build systems, so it is necessary to handle both cases on a
+# conditional basis.
+
+if(NOT CMAKE_CONFIGURATION_TYPES)
+ # If we're not doing multi-configuration, just set the three main
+ # variables to the correct values.
+ if(NOT DEFINED CMAKE_LIBRARY_OUTPUT_DIRECTORY)
+ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY
${${PROJECT_NAME}_BINARY_DIR}/${LIB_DIR} CACHE INTERNAL "Single output
directory for building all libraries.")
+ endif(NOT DEFINED CMAKE_LIBRARY_OUTPUT_DIRECTORY)
+ if(NOT DEFINED CMAKE_ARCHIVE_OUTPUT_DIRECTORY)
+ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY
${${PROJECT_NAME}_BINARY_DIR}/${LIB_DIR} CACHE INTERNAL "Single output
directory for building all archives.")
+ endif(NOT DEFINED CMAKE_ARCHIVE_OUTPUT_DIRECTORY)
+ if(NOT DEFINED CMAKE_RUNTIME_OUTPUT_DIRECTORY)
+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY
${${PROJECT_NAME}_BINARY_DIR}/${BIN_DIR} CACHE INTERNAL "Single output
directory for building all executables.")
+ endif(NOT DEFINED CMAKE_RUNTIME_OUTPUT_DIRECTORY)
+else(NOT CMAKE_CONFIGURATION_TYPES)
+ # Multi-configuration is more difficult. Not only do we need to
+ # properly set the output directories, but we also need to
+ # identify the "toplevel" directory for each configuration so
+ # we can place files, documentation, etc. in the correct
+ # relative positions. Because files may be placed by CMake
+ # without a build target to put them in their proper relative build
+ # directory position using these paths, we must fully qualify them
+ # without using CMAKE_CFG_INTDIR.
+ #
+ # We define directories that may not be quite "standard"
+ # for a particular build tool - for example, native VS2010 projects use
+ # another directory to denote CPU type being compiled for - but CMake only
+ # supports multi-configuration setups having multiple configurations,
+ # not multiple compilers.
+ #
+ # One additional wrinkle we must watch for here is the case where
+ # a multi-configuration setup uses "." for its internal directory -
+ # if that's the case, we need to just set the various config output
+ # directories to the same value.
+ set(CFG_ROOT ${${PROJECT_NAME}_BINARY_DIR})
+ foreach(CFG_TYPE ${CMAKE_CONFIGURATION_TYPES})
+ if(NOT "${CMAKE_CFG_INTDIR}" STREQUAL ".")
+ set(CFG_ROOT ${${PROJECT_NAME}_BINARY_DIR}/${CFG_TYPE})
+ endif(NOT "${CMAKE_CFG_INTDIR}" STREQUAL ".")
+ string(TOUPPER "${CFG_TYPE}" CFG_TYPE_UPPER)
+ if(NOT DEFINED CMAKE_LIBRARY_OUTPUT_DIRECTORY_${CFG_TYPE_UPPER})
+ set("CMAKE_LIBRARY_OUTPUT_DIRECTORY_${CFG_TYPE_UPPER}"
${CFG_ROOT}/${LIB_DIR} CACHE INTERNAL "Single output directory for building
${CFG_TYPE} libraries.")
+ endif(NOT DEFINED CMAKE_LIBRARY_OUTPUT_DIRECTORY_${CFG_TYPE_UPPER})
+ if(NOT DEFINED CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${CFG_TYPE_UPPER})
+ set("CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${CFG_TYPE_UPPER}"
${CFG_ROOT}/${LIB_DIR} CACHE INTERNAL "Single output directory for building
${CFG_TYPE} archives.")
+ endif(NOT DEFINED CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${CFG_TYPE_UPPER})
+ if(NOT DEFINED CMAKE_RUNTIME_OUTPUT_DIRECTORY_${CFG_TYPE_UPPER})
+ set("CMAKE_RUNTIME_OUTPUT_DIRECTORY_${CFG_TYPE_UPPER}"
${CFG_ROOT}/${BIN_DIR} CACHE INTERNAL "Single output directory for building
${CFG_TYPE} executables.")
+ endif(NOT DEFINED CMAKE_RUNTIME_OUTPUT_DIRECTORY_${CFG_TYPE_UPPER})
+ if(NOT DEFINED CMAKE_BINARY_DIR_${CFG_TYPE_UPPER})
+ set("CMAKE_BINARY_DIR_${CFG_TYPE_UPPER}" ${CFG_ROOT} CACHE INTERNAL
"Toplevel binary dir for ${CFG_TYPE} building.")
+ endif(NOT DEFINED CMAKE_BINARY_DIR_${CFG_TYPE_UPPER})
+ if(NOT DEFINED ${PROJECT_NAME}_BINARY_DIR_${CFG_TYPE_UPPER})
+ set("${PROJECT_NAME}_BINARY_DIR_${CFG_TYPE_UPPER}" ${CFG_ROOT} CACHE
INTERNAL "Toplevel binary dir for ${CFG_TYPE} building.")
+ endif(NOT DEFINED ${PROJECT_NAME}_BINARY_DIR_${CFG_TYPE_UPPER})
+ endforeach()
+endif(NOT CMAKE_CONFIGURATION_TYPES)
+
+# Local Variables:
+# tab-width: 8
+# mode: cmake
+# indent-tabs-mode: t
+# End:
+# ex: shiftwidth=2 tabstop=8
Property changes on:
brlcad/branches/extbuild/src/other/ext/tk/CMake/Path_Setup.cmake
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: brlcad/branches/extbuild/src/other/ext/tk/CMake/ac_std_funcs.cmake
===================================================================
--- brlcad/branches/extbuild/src/other/ext/tk/CMake/ac_std_funcs.cmake
(rev 0)
+++ brlcad/branches/extbuild/src/other/ext/tk/CMake/ac_std_funcs.cmake
2020-11-12 20:08:59 UTC (rev 77731)
@@ -0,0 +1,99 @@
+# Standard tests and wrappers for CMake functions
+
+INCLUDE(CheckCCompilerFlag)
+INCLUDE(CheckFunctionExists)
+INCLUDE(CheckIncludeFile)
+INCLUDE(CheckIncludeFiles)
+INCLUDE(CheckIncludeFileCXX)
+INCLUDE(CheckTypeSize)
+INCLUDE(CheckLibraryExists)
+INCLUDE(CheckStructHasMember)
+INCLUDE(CheckCSourceCompiles)
+
+SET(CMAKE_TEST_SRCS_DIR "NOTFOUND")
+FOREACH($candidate_dir ${CMAKE_MODULE_PATH})
+ IF(NOT CMAKE_TEST_SRCS_DIR)
+ IF(EXISTS "${candidate_dir}/test_sources" AND IS_DIRECTORY
"${candidate_dir}/test_sources")
+ SET(CMAKE_TEST_SRCS_DIR ${candidate_dir}/test_sources)
+ ENDIF(EXISTS "${candidate_dir}/test_sources" AND IS_DIRECTORY
"${candidate_dir}/test_sources")
+ ENDIF(NOT CMAKE_TEST_SRCS_DIR)
+ENDFOREACH($candidate_dir ${CMAKE_MODULE_PATH})
+
+INCLUDE(CheckCSourceRuns)
+INCLUDE(CheckCSourceRuns)
+
+MACRO(CHECK_BASENAME_D)
+ SET(BASENAME_SRC "
+ #include <libgen.h>
+ int main(int argc, char *argv[]) {
+ (void)basename(argv[0]);
+ return 0;
+ }")
+ CHECK_C_SOURCE_RUNS("${BASENAME_SRC}" HAVE_BASENAME)
+ IF(HAVE_BASENAME)
+ add_definitions(-DHAVE_BASENAME=1)
+ ENDIF(HAVE_BASENAME)
+ENDMACRO(CHECK_BASENAME_D)
+
+MACRO(CHECK_DIRNAME_D)
+ SET(DIRNAME_SRC "
+ #include <libgen.h>
+ int main(int argc, char *argv[]) {
+ (void)dirname(argv[0]);
+ return 0;
+ }")
+ CHECK_C_SOURCE_RUNS("${DIRNAME_SRC}" HAVE_DIRNAME)
+ IF(HAVE_DIRNAME)
+ add_definitions(-DHAVE_DIRNAME=1)
+ ENDIF(HAVE_DIRNAME)
+ENDMACRO(CHECK_DIRNAME_D)
+
+# Based on AC_HEADER_STDC - using the source code for ctype
+# checking found in the generated configure file
+MACRO(CMAKE_HEADER_STDC_D)
+ CHECK_INCLUDE_FILE(stdlib.h HAVE_STDLIB_H)
+ IF(HAVE_STDLIB_H)
+ add_definitions(-DHAVE_STDLIB_H=1)
+ ENDIF(HAVE_STDLIB_H)
+ CHECK_INCLUDE_FILE(stdarg.h HAVE_STDARG_H)
+ CHECK_INCLUDE_FILE(string.h HAVE_STRING_H)
+ IF(HAVE_STRING_H)
+ add_definitions(-DHAVE_STRING_H=1)
+ ENDIF(HAVE_STRING_H)
+ CHECK_INCLUDE_FILE(strings.h HAVE_STRINGS_H)
+ IF(HAVE_STRINGS_H)
+ add_definitions(-DHAVE_STRINGS_H=1)
+ ENDIF(HAVE_STRINGS_H)
+ CHECK_INCLUDE_FILE(float.h HAVE_FLOAT_H)
+ CHECK_PROTOTYPE_EXISTS(memchr string.h HAVE_STRING_H_MEMCHR)
+ CHECK_PROTOTYPE_EXISTS(free stdlib.h HAVE_STDLIB_H_FREE)
+ CHECK_C_SOURCE_RUNS(${CMAKE_TEST_SRCS_DIR}/ctypes_test.c
WORKING_CTYPE_MACROS)
+ IF(HAVE_STDLIB_H AND HAVE_STDARG_H AND HAVE_STRING_H AND HAVE_FLOAT_H AND
WORKING_CTYPE_MACROS)
+ add_definitions(-DSTDC_HEADERS=1)
+ ENDIF(HAVE_STDLIB_H AND HAVE_STDARG_H AND HAVE_STRING_H AND HAVE_FLOAT_H AND
WORKING_CTYPE_MACROS)
+ENDMACRO(CMAKE_HEADER_STDC_D)
+
+# Based on AC_HEADER_SYS_WAIT
+MACRO(CMAKE_HEADER_SYS_WAIT_D)
+ CHECK_C_SOURCE_RUNS(${CMAKE_TEST_SRCS_DIR}/sys_wait_test.c WORKING_SYS_WAIT)
+ IF(WORKING_SYS_WAIT)
+ add_definitions(-DHAVE_SYS_WAIT_H=1)
+ ENDIF(WORKING_SYS_WAIT)
+ENDMACRO(CMAKE_HEADER_SYS_WAIT_D)
+
+# Based on AC_FUNC_ALLOCA
+MACRO(CMAKE_ALLOCA_D)
+ if(NOT DEFINED WORKING_ALLOC_H)
+ CHECK_C_SOURCE_RUNS(${CMAKE_TEST_SRCS_DIR}/alloca_header_test.c
WORKING_ALLOCA_H)
+ endif(NOT DEFINED WORKING_ALLOC_H)
+ IF(WORKING_ALLOCA_H)
+ add_definitions(-DHAVE_ALLOCA_H=1)
+ ENDIF(WORKING_ALLOCA_H)
+ if(NOT DEFINED WORKING_ALLOCA)
+ CHECK_C_SOURCE_RUNS(${CMAKE_TEST_SRCS_DIR}/alloca_test.c
WORKING_ALLOCA)
+ endif(NOT DEFINED WORKING_ALLOCA)
+ IF(WORKING_ALLOCA)
+ add_definitions(-DHAVE_ALLOCA=1)
+ ENDIF(WORKING_ALLOCA)
+ENDMACRO(CMAKE_ALLOCA_D)
+
Property changes on:
brlcad/branches/extbuild/src/other/ext/tk/CMake/ac_std_funcs.cmake
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: brlcad/branches/extbuild/src/other/ext/tk/CMake/tcl.cmake
===================================================================
--- brlcad/branches/extbuild/src/other/ext/tk/CMake/tcl.cmake
(rev 0)
+++ brlcad/branches/extbuild/src/other/ext/tk/CMake/tcl.cmake 2020-11-12
20:08:59 UTC (rev 77731)
@@ -0,0 +1,596 @@
+# CMake version of the tcl.m4 logic, insofar as it maps to CMake and has been
+# needed.
+
+INCLUDE(CheckCCompilerFlag)
+INCLUDE(CheckFunctionExists)
+INCLUDE(CheckIncludeFile)
+INCLUDE(CheckIncludeFiles)
+INCLUDE(CheckIncludeFileCXX)
+INCLUDE(CheckTypeSize)
+INCLUDE(CheckLibraryExists)
+INCLUDE(CheckStructHasMember)
+INCLUDE(CheckCSourceCompiles)
+INCLUDE(CheckPrototypeExists)
+INCLUDE(CheckCSourceRuns)
+INCLUDE(CheckCSourceRuns)
+
+INCLUDE(ac_std_funcs)
+
+MACRO(CHECK_C_FLAG flag)
+ STRING(TOUPPER ${flag} UPPER_FLAG)
+ STRING(REGEX REPLACE " " "_" UPPER_FLAG ${UPPER_FLAG})
+ STRING(REGEX REPLACE "=" "_" UPPER_FLAG ${UPPER_FLAG})
+ IF(${ARGC} LESS 2)
+ CHECK_C_COMPILER_FLAG(-${flag} ${UPPER_FLAG}_COMPILER_FLAG)
+ ELSE(${ARGC} LESS 2)
+ IF(NOT ${ARGV1})
+ CHECK_C_COMPILER_FLAG(-${flag} ${UPPER_FLAG}_COMPILER_FLAG)
+ IF(${UPPER_FLAG}_COMPILER_FLAG)
+ MESSAGE("- Found ${ARGV1} - setting to -${flag}")
+ SET(${ARGV1} "-${flag}" CACHE STRING "${ARGV1}" FORCE)
+ ENDIF(${UPPER_FLAG}_COMPILER_FLAG)
+ ENDIF(NOT ${ARGV1})
+ ENDIF(${ARGC} LESS 2)
+ IF(${UPPER_FLAG}_COMPILER_FLAG)
+ SET(${UPPER_FLAG}_COMPILER_FLAG "-${flag}")
+ ENDIF(${UPPER_FLAG}_COMPILER_FLAG)
+ENDMACRO()
+
+MACRO(TCL_CHECK_INCLUDE_FILE_USABILITY filename var)
+ CHECK_INCLUDE_FILE(${filename} ${var})
+ IF(${var})
+ SET(HEADER_SRC "
+#include <${filename}>
+main(){};
+ ")
+ CHECK_C_SOURCE_COMPILES("${HEADER_SRC}" ${var}_USABLE)
+ ENDIF(${var})
+ IF(${var} OR ${var}_USABLE)
+ add_definitions(-D${var}=1)
+ ENDIF(${var} OR ${var}_USABLE)
+ENDMACRO(TCL_CHECK_INCLUDE_FILE_USABILITY filename var)
+
+# Wrapper for function testing
+MACRO(TCL_CHECK_FUNCTION_EXISTS function var)
+ CHECK_FUNCTION_EXISTS(${function} ${var})
+ IF(${var})
+ add_definitions(-D${var}=1)
+ ENDIF(${var})
+ENDMACRO(TCL_CHECK_FUNCTION_EXISTS)
+
+# Check sizes (accepts extra headers)
+MACRO(TCL_CHECK_TYPE_SIZE typename var)
+ FOREACH(arg ${ARGN})
+ SET(headers ${headers} ${arg})
+ ENDFOREACH(arg ${ARGN})
+ SET(CHECK_EXTRA_INCLUDE_FILES ${headers})
+ CHECK_TYPE_SIZE(${typename} ${var}_T)
+ SET(CHECK_EXTRA_INCLUDE_FILES)
+ IF(${var}_T)
+ add_definitions(-D${var}_T=1)
+ ENDIF(${var}_T)
+ENDMACRO(TCL_CHECK_TYPE_SIZE)
+
+# Check for a member of a structure
+MACRO(TCL_CHECK_STRUCT_HAS_MEMBER structname member header var)
+ CHECK_STRUCT_HAS_MEMBER(${structname} ${member} ${header} ${var})
+ IF(${var})
+ add_definitions(-D${var}=1)
+ ENDIF(${var})
+ENDMACRO(TCL_CHECK_STRUCT_HAS_MEMBER)
+
+#--------------------------------------------------------------------
+# SC_TIME_HANLDER
+#
+# The TEA version of this macro calls AC_HEADER_TIME, but Autotools
+# docs list it as obsolete.
+#
+# TODO - tzname testing from AC_STRUCT_TIMEZONE is incomplete
+#
+#--------------------------------------------------------------------
+MACRO(SC_TIME_HANDLER)
+ TCL_CHECK_INCLUDE_FILE_USABILITY(sys/time.h HAVE_SYS_TIME_H)
+ TCL_CHECK_STRUCT_HAS_MEMBER("struct tm" tm_zone time.h
HAVE_STRUCT_TM_TM_ZONE)
+ IF(HAVE_STRUCT_TM_TM_ZONE)
+ add_definitions(-DHAVE_TM_ZONE=1)
+ ELSE(HAVE_STRUCT_TM_TM_ZONE)
+ SET(TZNAME_SRC "
+#include <time.h>
+int main () {
+#ifndef tzname
+ (void) tzname;
+#endif
+return 0;
+}")
+ CHECK_C_SOURCE_COMPILES("${TZNAME_SRC}" HAVE_TZNAME)
+ IF(HAVE_TZNAME)
+ add_definitions(-DHAVE_DECL_TZNAME=1)
+ ENDIF(HAVE_TZNAME)
+ ENDIF(HAVE_STRUCT_TM_TM_ZONE)
+ TCL_CHECK_FUNCTION_EXISTS(gmtime_r HAVE_GMTIME_R)
+ TCL_CHECK_FUNCTION_EXISTS(localtime_r HAVE_LOCALTIME_R)
+ TCL_CHECK_FUNCTION_EXISTS(mktime HAVE_MKTIME)
+ TCL_CHECK_STRUCT_HAS_MEMBER("struct tm" tm_tzadj time.h HAVE_TM_TZADJ)
+ TCL_CHECK_STRUCT_HAS_MEMBER("struct tm" tm_gmtoff time.h HAVE_TM_GMTOFF)
+ SET(TZONE_SRC_1 "
+#include <time.h>
+int main () {
+extern long timezone;
+timezone += 1;
+exit (0);
+return 0;
+}
+ ")
+ CHECK_C_SOURCE_COMPILES("${TZONE_SRC_1}" HAVE_TIMEZONE_VAR)
+ IF(HAVE_TIMEZONE_VAR)
+ add_definitions(-DHAVE_TIMEZONE_VAR=1)
+ ELSE(HAVE_TIMEZONE_VAR)
+ SET(TZONE_SRC_2 "
+#include <time.h>
+int main() {
+extern time_t timezone;
+timezone += 1;
+exit (0);
+return 0;
+}
+ ")
+ CHECK_C_SOURCE_COMPILES("${TZONE_SRC_2}" HAVE_TIMEZONE_VAR)
+ IF(HAVE_TIMEZONE_VAR)
+ add_definitions(-DHAVE_TIMEZONE_VAR=1)
+ ENDIF(HAVE_TIMEZONE_VAR)
+ ENDIF(HAVE_TIMEZONE_VAR)
+ IF(HAVE_SYS_TIME_H)
+ SET(TIME_WITH_SYS_TIME_SRC "
+#include <sys/time.h>
+#include <time.h>
+int main() {
+extern time_t timezone;
+timezone += 1;
+exit (0);
+return 0;
+}
+ ")
+ CHECK_C_SOURCE_COMPILES("${TIME_WITH_SYS_TIME_SRC}"
TIME_WITH_SYS_TIME_WORKS)
+ IF(TIME_WITH_SYS_TIME_WORKS)
+ add_definitions(-DTIME_WITH_SYS_TIME=1)
+ ENDIF(TIME_WITH_SYS_TIME_WORKS)
+ ENDIF(HAVE_SYS_TIME_H)
+ENDMACRO(SC_TIME_HANDLER)
+
+#--------------------------------------------------------------------
+# SC_TCL_LINK_LIBS
+#--------------------------------------------------------------------
+MACRO(SC_TCL_LINK_LIBS)
+ SET(TCL_LINK_LIBS "")
+
+ # Math libraries
+ IF(NOT WIN32)
+ CHECK_LIBRARY_EXISTS(m cos "" HAVE_M_LIBRARY)
+ IF(HAVE_M_LIBRARY)
+ set(M_LIBRARY "m")
+ ENDIF(HAVE_M_LIBRARY)
+ #find_library(IEEE_LIB ieee)
+ #MARK_AS_ADVANCED(IEEE_LIB)
+ #IF(IEEE_LIB)
+ # SET(M_LIBRARY "-lieee ${M_LIBRARY}")
+ #ENDIF(IEEE_LIB)
+ CHECK_LIBRARY_EXISTS(sunmath ieee_flags "" HAVE_SUNMATH_LIBRARY)
+ IF(HAVE_SUNMATH_LIBRARY)
+ SET(M_LIBRARY "-lsunmath ${M_LIBRARY}")
+ ENDIF(HAVE_SUNMATH_LIBRARY)
+ ENDIF(NOT WIN32)
+
+ IF(NOT INET_LIBRARY AND NOT INET_QUIET)
+ MESSAGE("-- Looking for INET library")
+ set(INET_LIBRARY "inet")
+ IF(INET_LIBRARY)
+ MESSAGE("-- Found INET library: ${INET_LIBRARY}")
+ ELSE(INET_LIBRARY)
+ MESSAGE("-- Looking for INET library - not found")
+ ENDIF(INET_LIBRARY)
+ SET(INET_QUIET 1 CACHE STRING "INET quiet")
+ MARK_AS_ADVANCED(INET_QUIET)
+ ENDIF(NOT INET_LIBRARY AND NOT INET_QUIET)
+ IF(TCL_LINK_LIBS)
+ SET(TCL_LINK_LIBS
"${TCL_LINK_LIBS};${M_LIBRARY};${INET_LIBRARY}")
+ ELSEIF(TCL_LINK_LIBS)
+ SET(TCL_LINK_LIBS "${M_LIBRARY};${INET_LIBRARY}")
+ ENDIF(TCL_LINK_LIBS)
+ MARK_AS_ADVANCED(TCL_LINK_LIBS)
+
+ TCL_CHECK_INCLUDE_FILE_USABILITY(net/errno.h HAVE_NET_ERRNO_H)
+ CHECK_FUNCTION_EXISTS(connect HAVE_CONNECT)
+ IF(NOT HAVE_CONNECT)
+ CHECK_FUNCTION_EXISTS(setsockopt HAVE_SETSOCKOPT)
+ IF(NOT HAVE_SETSOCKOPT)
+ CHECK_LIBRARY_EXISTS(socket connect ""
HAVE_SOCKET_LIBRARY)
+ IF(HAVE_SOCKET_LIBRARY)
+ set(SOCKET_LIBRARY "socket")
+ IF(TCL_LINK_LIBS)
+ SET(TCL_LINK_LIBS
${TCL_LINK_LIBS};${SOCKET_LIBRARY})
+ ELSE(TCL_LINK_LIBS)
+ SET(TCL_LINK_LIBS ${SOCKET_LIBRARY})
+ ENDIF(TCL_LINK_LIBS)
+ ENDIF(HAVE_SOCKET_LIBRARY)
+ ENDIF(NOT HAVE_SETSOCKOPT)
+ ENDIF(NOT HAVE_CONNECT)
+ CHECK_FUNCTION_EXISTS(gethostbyname HAVE_GETHOSTBYNAME)
+ IF(NOT HAVE_GETHOSTBYNAME)
+ CHECK_LIBRARY_EXISTS(nsl gethostbyname "" HAVE_NSL_LIBRARY)
+ IF(HAVE_NSL_LIBRARY)
+ set(NSL_LIBRARY "nsl")
+ IF(TCL_LINK_LIBS)
+ SET(TCL_LINK_LIBS
${TCL_LINK_LIBS};${NSL_LIBRARY})
+ ELSE(TCL_LINK_LIBS)
+ SET(TCL_LINK_LIBS ${NSL_LIBRARY})
+ ENDIF(TCL_LINK_LIBS)
+ ENDIF(HAVE_NSL_LIBRARY)
+ ENDIF(NOT HAVE_GETHOSTBYNAME)
+
+ENDMACRO(SC_TCL_LINK_LIBS)
+
+#--------------------------------------------------------------------
+# SC_TCL_64BIT_FLAGS
+#
+# Detect and set up 64-bit compiling here. LOTS of TODO here
+#--------------------------------------------------------------------
+MACRO(SC_TCL_64BIT_FLAGS)
+ # See if we should use long anyway. Note that we substitute
+ # in the type that is our current guess (long long) for a
+ # 64-bit type inside this check program.
+ SET(LONG_SRC "
+int main () {
+ switch (0) {
+ case 1: case (sizeof(long long)==sizeof(long)): ;
+ }
+return 0;
+}
+ ")
+ CHECK_C_SOURCE_COMPILES("${LONG_SRC}" LONG_NOT_LONG_LONG)
+ IF(NOT LONG_NOT_LONG_LONG)
+ add_definitions(-DTCL_WIDE_INT_IS_LONG=1)
+ ENDIF(NOT LONG_NOT_LONG_LONG)
+
+ IF(NOT CMAKE_SIZEOF_VOID_P)
+ MESSAGE(WARNING "CMAKE_SIZEOF_VOID_P is not defined - assuming
32-bit platform")
+ SET(CMAKE_SIZEOF_VOID_P 4)
+ ENDIF(NOT CMAKE_SIZEOF_VOID_P)
+ IF(NOT CMAKE_WORD_SIZE)
+ IF(${CMAKE_SIZEOF_VOID_P} MATCHES "^8$")
+ SET(CMAKE_WORD_SIZE "64BIT")
+ ELSE(${CMAKE_SIZEOF_VOID_P} MATCHES "^8$")
+ SET(CMAKE_WORD_SIZE "32BIT")
+ ENDIF(${CMAKE_SIZEOF_VOID_P} MATCHES "^8$")
+ ENDIF(NOT CMAKE_WORD_SIZE)
+ IF(NOT TCL_ENABLE_64BIT)
+ IF(${CMAKE_WORD_SIZE} MATCHES "64BIT")
+ set(TCL_ENABLE_64BIT "ON" CACHE STRING "Enable 64-bit
support")
+ ELSE(${CMAKE_WORD_SIZE} MATCHES "64BIT")
+ set(TCL_ENABLE_64BIT "OFF" CACHE STRING "Enable 64-bit
support")
+ ENDIF(${CMAKE_WORD_SIZE} MATCHES "64BIT")
+ ENDIF(NOT TCL_ENABLE_64BIT)
+ IF(NOT ${TCL_ENABLE_64BIT} MATCHES "OFF")
+ IF(${CMAKE_WORD_SIZE} MATCHES "64BIT")
+ set(TCL_ENABLE_64BIT ON CACHE STRING "Enable 64-bit
support")
+ ELSE(${CMAKE_WORD_SIZE} MATCHES "64BIT")
+ set(TCL_ENABLE_64BIT OFF CACHE STRING "Enable 64-bit
support")
+ ENDIF(${CMAKE_WORD_SIZE} MATCHES "64BIT")
+ ENDIF(NOT ${TCL_ENABLE_64BIT} MATCHES "OFF")
+ set(TCL_ENABLE_64BIT ${TCL_ENABLE_64BIT} CACHE STRING "Enable 64-bit
support")
+ IF(TCL_ENABLE_64BIT)
+ IF(NOT 64BIT_FLAG)
+ CHECK_C_FLAG("arch x86_64" 64BIT_FLAG)
+ CHECK_C_FLAG(64 64BIT_FLAG)
+ CHECK_C_FLAG("mabi=64" 64BIT_FLAG)
+ CHECK_C_FLAG(m64 64BIT_FLAG)
+ CHECK_C_FLAG(q64 64BIT_FLAG)
+ ENDIF(NOT 64BIT_FLAG)
+ MARK_AS_ADVANCED(64BIT_FLAG)
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${64BIT_FLAG}")
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${64BIT_FLAG}")
+ SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}
${64BIT_FLAG}")
+ SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}
${64BIT_FLAG}")
+ add_definitions(-DTCL_CFG_DO64BIT=1)
+ ENDIF(TCL_ENABLE_64BIT)
+ IF(CMAKE_CL_64)
+ add_definitions(-D_stati64=_stat64)
+ ENDIF(CMAKE_CL_64)
+ENDMACRO(SC_TCL_64BIT_FLAGS)
+
+#--------------------------------------------------------------------
+# SC_TCL_GETHOSTBYADDR_R
+#--------------------------------------------------------------------
+MACRO(SC_TCL_GETHOSTBYADDR_R)
+ TCL_CHECK_FUNCTION_EXISTS(gethostbyaddr_r HAVE_GETHOSTBYADDR_R)
+ IF(HAVE_GETHOSTBYADDR_R)
+ SET(HAVE_GETHOSTBYADDR_R_7_SRC "
+#include <netdb.h>
+int main(){
+char *addr;
+int length;
+int type;
+struct hostent *result;
+char buffer[2048];
+int buflen = 2048;
+int h_errnop;
+
+(void) gethostbyaddr_r(addr, length, type, result, buffer, buflen, &h_errnop);
+return 0;}
+ ")
+ CHECK_C_SOURCE_COMPILES("${HAVE_GETHOSTBYADDR_R_7_SRC}"
HAVE_GETHOSTBYADDR_R_7)
+ IF(HAVE_GETHOSTBYADDR_R_7)
+ add_definitions(-DHAVE_GETHOSTBYADDR_R_7=1)
+ ELSE(HAVE_GETHOSTBYADDR_R_7)
+ SET(HAVE_GETHOSTBYADDR_R_8_SRC "
+#include <netdb.h>
+int main(){
+char *addr;
+int length;
+int type;
+struct hostent *result, *resultp;
+char buffer[2048];
+int buflen = 2048;
+int h_errnop;
+
+(void) gethostbyaddr_r(addr, length, type, result, buffer, buflen, &resultp,
&h_errnop);
+return 0;}
+ ")
+ CHECK_C_SOURCE_COMPILES("${HAVE_GETHOSTBYADDR_R_8_SRC}"
HAVE_GETHOSTBYADDR_R_8)
+ IF(HAVE_GETHOSTBYADDR_R_8)
+ add_definitions(-DHAVE_GETHOSTBYADDR_R_8=1)
+ ENDIF(HAVE_GETHOSTBYADDR_R_8)
+ ENDIF(HAVE_GETHOSTBYADDR_R_7)
+ ENDIF(HAVE_GETHOSTBYADDR_R)
+ENDMACRO(SC_TCL_GETHOSTBYADDR_R)
+
+#--------------------------------------------------------------------
+# SC_TCL_GETHOSTBYNAME_R
+#--------------------------------------------------------------------
+MACRO(SC_TCL_GETHOSTBYNAME_R)
+ TCL_CHECK_FUNCTION_EXISTS(gethostbyname_r HAVE_GETHOSTBYNAME_R)
+ IF(HAVE_GETHOSTBYNAME_R)
+ SET(HAVE_GETHOSTBYNAME_R_6_SRC "
+#include <netdb.h>
+int main(){
+char *name;
+struct hostent *he, *res;
+char buffer[2048];
+int buflen = 2048;
+int h_errnop;
+
+(void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop);
+return 0;}
+ ")
+ CHECK_C_SOURCE_COMPILES("${HAVE_GETHOSTBYNAME_R_6_SRC}"
HAVE_GETHOSTBYNAME_R_6)
+ IF(HAVE_GETHOSTBYNAME_R_6)
+ add_definitions(-DHAVE_GETHOSTBYNAME_R_6=1)
+ ELSE(HAVE_GETHOSTBYNAME_R_6)
+ SET(HAVE_GETHOSTBYNAME_R_5_SRC "
+#include <netdb.h>
+int main(){
+char *name;
+struct hostent *he;
+char buffer[2048];
+int buflen = 2048;
+int h_errnop;
+
+(void) gethostbyname_r(name, he, buffer, buflen, &h_errnop);
+return 0;}
+ ")
+ CHECK_C_SOURCE_COMPILES("${HAVE_GETHOSTBYNAME_R_5_SRC}"
HAVE_GETHOSTBYNAME_R_5)
+
+ IF(HAVE_GETHOSTBYNAME_R_5)
+ add_definitions(-DHAVE_GETHOSTBYNAME_R_5=1)
+ ELSE(HAVE_GETHOSTBYNAME_R_5)
+ SET(HAVE_GETHOSTBYNAME_R_3_SRC "
+#include <netdb.h>
+int main(){
+char *name;
+struct hostent *he;
+struct hostent_data data;
+
+(void) gethostbyname_r(name, he, &data);
+return 0;}
+ ")
+
CHECK_C_SOURCE_COMPILES("${HAVE_GETHOSTBYNAME_R_3_SRC}" HAVE_GETHOSTBYNAME_R_3)
+ IF(HAVE_GETHOSTBYNAME_R_3)
+
add_definitions(-DHAVE_GETHOSTBYNAME_R_3=1)
+ ENDIF(HAVE_GETHOSTBYNAME_R_3)
+ ENDIF(HAVE_GETHOSTBYNAME_R_5)
+ ENDIF(HAVE_GETHOSTBYNAME_R_6)
+ ENDIF(HAVE_GETHOSTBYNAME_R)
+ENDMACRO(SC_TCL_GETHOSTBYNAME_R)
+
+#--------------------------------------------------------------------
+# SC_TCL_GETPWUID_R
+#--------------------------------------------------------------------
+MACRO(SC_TCL_GETPWUID_R)
+ TCL_CHECK_FUNCTION_EXISTS(getpwuid_r HAVE_GETPWUID_R)
+ IF(HAVE_GETPWUID_R)
+ SET(HAVE_GETPWUID_R_5_SRC "
+#include <sys/types.h>
+#include <pwd.h>
+int main(){
+uid_t uid;
+struct passwd pw, *pwp;
+char buf[512];
+int buflen = 512;
+
+(void) getpwuid_r(uid, &pw, buf, buflen, &pwp);
+return 0;}
+ ")
+ CHECK_C_SOURCE_COMPILES("${HAVE_GETPWUID_R_5_SRC}"
HAVE_GETPWUID_R_5)
+ IF(HAVE_GETPWUID_R_5)
+ add_definitions(-DHAVE_GETPWUID_R_5=1)
+ ELSE(HAVE_GETPWUID_R_5)
+ SET(HAVE_GETPWUID_R_4_SRC "
+#include <sys/types.h>
+#include <pwd.h>
+int main(){
+uid_t uid;
+struct passwd pw;
+char buf[512];
+int buflen = 512;
+
+(void) getpwuid_r(uid, &pw, buf, buflen);
+return 0;}
+ ")
+ CHECK_C_SOURCE_COMPILES("${HAVE_GETPWUID_R_4_SRC}"
HAVE_GETPWUID_R_4)
+ IF(HAVE_GETPWUID_R_4)
+ add_definitions(-DHAVE_GETPWUID_R_4=1)
+ ENDIF(HAVE_GETPWUID_R_4)
+ ENDIF(HAVE_GETPWUID_R_5)
+ ENDIF(HAVE_GETPWUID_R)
+ENDMACRO(SC_TCL_GETPWUID_R)
+
+#--------------------------------------------------------------------
+# SC_TCL_GETPWNAM_R
+#--------------------------------------------------------------------
+MACRO(SC_TCL_GETPWNAM_R)
+ TCL_CHECK_FUNCTION_EXISTS(getpwnam_r HAVE_GETPWNAM_R)
+ IF(HAVE_GETPWNAM_R)
+ SET(HAVE_GETPWNAM_R_5_SRC "
+#include <sys/types.h>
+#include <pwd.h>
+int main(){
+char *name;
+struct passwd pw, *pwp;
+char buf[512];
+int buflen = 512;
+
+(void) getpwnam_r(name, &pw, buf, buflen, &pwp);
+return 0;}
+ ")
+ CHECK_C_SOURCE_COMPILES("${HAVE_GETPWNAM_R_5_SRC}"
HAVE_GETPWNAM_R_5)
+ IF(HAVE_GETPWNAM_R_5)
+ add_definitions(-DHAVE_GETPWNAM_R_5=1)
+ ELSE(HAVE_GETPWNAM_R_5)
+ SET(HAVE_GETPWNAM_R_4_SRC "
+#include <sys/types.h>
+#include <pwd.h>
+int main(){
+char *name;
+struct passwd pw;
+char buf[512];
+int buflen = 512;
+
+(void)getpwnam_r(name, &pw, buf, buflen);
+return 0;}
+ ")
+ CHECK_C_SOURCE_COMPILES("${HAVE_GETPWNAM_R_4_SRC}"
HAVE_GETPWNAM_R_4)
+ IF(HAVE_GETPWNAM_R_4)
+ add_definitions(-DHAVE_GETPWNAM_R_4=1)
+ ENDIF(HAVE_GETPWNAM_R_4)
+ ENDIF(HAVE_GETPWNAM_R_5)
+ ENDIF(HAVE_GETPWNAM_R)
+ENDMACRO(SC_TCL_GETPWNAM_R)
+
+#--------------------------------------------------------------------
+# SC_TCL_GETGRGID_R
+#--------------------------------------------------------------------
+MACRO(SC_TCL_GETGRGID_R)
+ TCL_CHECK_FUNCTION_EXISTS(getgrgid_r HAVE_GETGRGID_R)
+ IF(HAVE_GETGRGID_R)
+ SET(HAVE_GETGRGID_R_5_SRC "
+#include <sys/types.h>
+#include <grp.h>
+int main(){
+gid_t gid;
+struct group gr, *grp;
+char buf[512];
+int buflen = 512;
+
+(void) getgrgid_r(gid, &gr, buf, buflen, &grp);
+return 0;}
+ ")
+ CHECK_C_SOURCE_COMPILES("${HAVE_GETGRGID_R_5_SRC}"
HAVE_GETGRGID_R_5)
+ IF(HAVE_GETGRGID_R_5)
+ add_definitions(-DHAVE_GETGRGID_R_5=1)
+ ELSE(HAVE_GETGRGID_R_5)
+ SET(HAVE_GETGRGID_R_4_SRC "
+#include <sys/types.h>
+#include <grp.h>
+int main(){
+gid_t gid;
+struct group gr;
+char buf[512];
+int buflen = 512;
+
+(void)getgrgid_r(gid, &gr, buf, buflen);
+return 0;}
+ ")
+ CHECK_C_SOURCE_COMPILES("${HAVE_GETGRGID_R_4_SRC}"
HAVE_GETGRGID_R_4)
+ IF(HAVE_GETGRGID_R_4)
+ add_definitions(-DHAVE_GETGRGID_R_4=1)
+ ENDIF(HAVE_GETGRGID_R_4)
+ ENDIF(HAVE_GETGRGID_R_5)
+ ENDIF(HAVE_GETGRGID_R)
+ENDMACRO(SC_TCL_GETGRGID_R)
+
+#--------------------------------------------------------------------
+# SC_TCL_GETGRNAM_R
+#--------------------------------------------------------------------
+MACRO(SC_TCL_GETGRNAM_R)
+ TCL_CHECK_FUNCTION_EXISTS(getgrnam_r HAVE_GETGRNAM_R)
+ IF(HAVE_GETGRNAM_R)
+ SET(HAVE_GETGRNAM_R_5_SRC "
+#include <sys/types.h>
+#include <grp.h>
+int main(){
+char *name;
+struct group gr, *grp;
+char buf[512];
+int buflen = 512;
+
+(void) getgrnam_r(name, &gr, buf, buflen, &grp);
+return 0;}
+ ")
+ CHECK_C_SOURCE_COMPILES("${HAVE_GETGRNAM_R_5_SRC}"
HAVE_GETGRNAM_R_5)
+ IF(HAVE_GETGRNAM_R_5)
+ add_definitions(-DHAVE_GETGRNAM_R_5=1)
+ ELSE(HAVE_GETGRNAM_R_5)
+ SET(HAVE_GETGRNAM_R_4_SRC "
+#include <sys/types.h>
+#include <grp.h>
+int main(){
+char *name;
+struct group gr;
+char buf[512];
+int buflen = 512;
+
+(void)getgrnam_r(name, &gr, buf, buflen);
+return 0;}
+ ")
+ CHECK_C_SOURCE_COMPILES("${HAVE_GETGRNAM_R_4_SRC}"
HAVE_GETGRNAM_R_4)
+ IF(HAVE_GETGRNAM_R_4)
+ add_definitions(-DHAVE_GETGRNAM_R_4=1)
+ ENDIF(HAVE_GETGRNAM_R_4)
+ ENDIF(HAVE_GETGRNAM_R_5)
+ ENDIF(HAVE_GETGRNAM_R)
+ENDMACRO(SC_TCL_GETGRNAM_R)
+
+
+
+
+MACRO(CHECK_FD_SET_IN_TYPES_D)
+ SET(TEST_SRC "
+ #include <sys/types.h>
+ int main ()
+ {
+ fd_set readMask, writeMask;
+ return 0;
+ }
+ ")
+ CHECK_C_SOURCE_COMPILES("${TEST_SRC}" FD_SET_IN_TYPES_H)
+ENDMACRO(CHECK_FD_SET_IN_TYPES_D)
+
+MACRO(CHECK_COMPILER_SUPPORTS_HIDDEN_D)
+ SET(TEST_SRC "
+ #define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))
+ main(){};
+ ")
+ CHECK_C_SOURCE_COMPILES("${TEST_SRC}" COMPILER_SUPPORTS_HIDDEN)
+ENDMACRO(CHECK_COMPILER_SUPPORTS_HIDDEN_D)
+
+
+
Property changes on: brlcad/branches/extbuild/src/other/ext/tk/CMake/tcl.cmake
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Modified: brlcad/branches/extbuild/src/other/ext/tk/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/tk/CMakeLists.txt 2020-11-12
18:45:53 UTC (rev 77730)
+++ brlcad/branches/extbuild/src/other/ext/tk/CMakeLists.txt 2020-11-12
20:08:59 UTC (rev 77731)
@@ -74,14 +74,6 @@
include(Path_Setup)
-#-----------------------------------------------------------------------------
-# The following logic is what allows binaries to run successfully in the build
-# directory AND install directory. Documentation of these options is available
-# at http://www.cmake.org/Wiki/CMake_RPATH_handling
-
-include(RPath_Setup)
-cmake_set_rpath()
-
find_package(TCL)
#----------------------------------------------------------------------------
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits