Skip to content

Commit

Permalink
merging trunk to STABLE from r55609 to HEAD r55755
Browse files Browse the repository at this point in the history
svn:revision:55757
svn:branch:STABLE
svn:account:starseeker
  • Loading branch information
starseeker committed Jun 13, 2013
2 parents 533dea8 + d3e60a6 commit 5e05201
Show file tree
Hide file tree
Showing 359 changed files with 34,908 additions and 157,341 deletions.
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,3 @@
/Makefile.in
/mged

/Makefile
/Makefile.in
/scl_config.h
/scl_config.h.in
/stamp-h1
8 changes: 4 additions & 4 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ include/raytrace.h
7.24.0
------
include/bu.h
bu_get_public_cpus(), remove [deprecated 7.16]
bu_get_load_average(), remove [deprecated 7.12]
bu_fopen_uniq -> fopen [deprecated 7.14]
bu_get_public_cpus() [deprecated 7.16]
bu_get_load_average() [deprecated 7.12]
bu_fopen_uniq() -> fopen() [deprecated 7.14]
src/other/jove
jove -> emacs [deprecated 7.14]

Expand Down Expand Up @@ -297,7 +297,7 @@ src/librt/bomb.c
include/machine.h
machine.h -> common.h && bu.h [deprecated 7.10]
src/vas4
vas4, remove [deprecated 7.12]
vas4 [deprecated 7.12]

7.16.4
------
Expand Down
40 changes: 38 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ if(NOT BRLCAD_BUNDLED_LIBS MATCHES "AUTO" AND NOT BRLCAD_BUNDLED_LIBS MATCHES "B
endif(NOT BRLCAD_BUNDLED_LIBS MATCHES "AUTO" AND NOT BRLCAD_BUNDLED_LIBS MATCHES "BUNDLED" AND NOT BRLCAD_BUNDLED_LIBS MATCHES "SYSTEM")

# Enable Aqua widgets on Mac OSX. This impacts Tcl/Tk building and OpenGL
# building. Not currently working - needs work in at least Tk and togl
# building. Not currently working - needs work in at least Tk
# CMake logic (probably more), and the display manager/framebuffer codes are known to depend
# on either GLX or WGL specifically in their current forms.
option(BRLCAD_ENABLE_AQUA "Use Aqua instead of X11 whenever possible on OSX." OFF)
Expand Down Expand Up @@ -1603,6 +1603,14 @@ if(BRLCAD_ENABLE_OPENGL)
endif(OPENGL_INCLUDE_DIR_GLX)
endif(BRLCAD_ENABLE_OPENGL)

# may have the header, but ensure it works in pedantic mode (gcc bug)
if(HAVE_EMMINTRIN_H)
check_cxx_source_compiles("#include <emmintrin.h>\nint main() { return 0; }" HAVE_EMMINTRIN)
if(HAVE_EMMINTRIN)
CONFIG_H_APPEND(BRLCAD "#define HAVE_EMMINTRIN 1\n")
endif(HAVE_EMMINTRIN)
endif(HAVE_EMMINTRIN_H)


# *******************************************************************
# *** Check for Types/Structures - Stage 6 of 9 ***
Expand Down Expand Up @@ -1634,7 +1642,8 @@ if (HAVE_THREAD_LOCAL)
CONFIG_H_APPEND(BRLCAD "#define HAVE_THREAD_LOCAL 1\n")
else (HAVE_THREAD_LOCAL)
# try GCC except Mac OS X
check_cxx_source_compiles("static __thread int i = 0; int main() { return i; }" HAVE___THREAD)
include(CheckCXXSourceRuns)
check_cxx_source_runs("static __thread int i = 0; int main() { return i; }" HAVE___THREAD)
if (HAVE___THREAD)
CONFIG_H_APPEND(BRLCAD "#define HAVE___THREAD 1\n")
else (HAVE___THREAD)
Expand Down Expand Up @@ -1662,6 +1671,7 @@ BRLCAD_FUNCTION_EXISTS(alarm HAVE_ALARM)
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)
Expand Down Expand Up @@ -1697,6 +1707,32 @@ BRLCAD_FUNCTION_EXISTS(vfork HAVE_VFORK)
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 some symbols (below) are
# declared in addition to whether they resolve (above).
#
# we do this manually for now because CHECK_SYMBOL_EXISTS and
# CHECK_PROTOTYPE_EXISTS are both terribly broken.
#
# FIXME: wrap these into a BRLCAD_CHECK_SYMBOL() macro or similar.

# test for kill()
if("${HAVE_DECL_KILL}" MATCHES "^${HAVE_DECL_KILL}$")
check_c_source_compiles("#include <sys/types.h>\n#include <signal.h>\nint main() { (void)kill; return 0; }" HAVE_DECL_KILL)
if(HAVE_DECL_KILL)
CONFIG_H_APPEND(BRLCAD "#cmakedefine HAVE_DECL_KILL 1\n")
endif(HAVE_DECL_KILL)
endif("${HAVE_DECL_KILL}" MATCHES "^${HAVE_DECL_KILL}$")

# test for fileno()
if("${HAVE_DECL_FILENO}" MATCHES "^${HAVE_DECL_FILENO}$")
check_c_source_compiles("#include <stdio.h>\nint main() { (void)fileno; return 0; }" HAVE_DECL_FILENO)
if(HAVE_DECL_FILENO)
CONFIG_H_APPEND(BRLCAD "#cmakedefine HAVE_DECL_FILENO 1\n")
endif(HAVE_DECL_FILENO)
endif("${HAVE_DECL_FILENO}" MATCHES "^${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.
Expand Down
Loading

0 comments on commit 5e05201

Please sign in to comment.