diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2019-12-19 21:46:42 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2019-12-19 21:46:42 (GMT) |
commit | a266a2e815802331387f666c4c53c8891bfb9403 (patch) | |
tree | 206aee3dc34537c386a55fff42ae73783d448b56 /configure.ac | |
parent | 1b27cf7370fde09458dc1aefc803324f234500f7 (diff) | |
download | blt-a266a2e815802331387f666c4c53c8891bfb9403.zip blt-a266a2e815802331387f666c4c53c8891bfb9403.tar.gz blt-a266a2e815802331387f666c4c53c8891bfb9403.tar.bz2 |
fix CXX for windows
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 5aeae27..4d8f5e8 100644 --- a/configure.ac +++ b/configure.ac @@ -59,9 +59,12 @@ TEA_PREFIX # necessary to compile executables. #----------------------------------------------------------------------- -AC_PROG_CXX TEA_SETUP_COMPILER +if test "${TEA_PLATFORM}" != "windows" ; then + AC_PROG_CXX +fi + #----------------------------------------------------------------------- # __CHANGE__ # Specify the C source files to compile in TEA_ADD_SOURCES, @@ -198,6 +201,11 @@ TEA_ENABLE_SHARED TEA_CONFIG_CFLAGS +if test "${TEA_PLATFORM}" = "windows" ; then + CXX="$CC" + CXXFLAGS="$CFLAGS" +fi + #-------------------------------------------------------------------- # Set the default compiler switches based on the --enable-symbols option. #-------------------------------------------------------------------- |