From a0f170edd9159eb4b117abbd7d2cd67fa1d8b88c Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Tue, 30 Dec 2008 00:21:51 +0000 Subject: [PATCH] Added SOLARIS define --- config.h.in | 4 ++++ configure.in | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/config.h.in b/config.h.in index b855e4830..a99ec20ff 100755 --- a/config.h.in +++ b/config.h.in @@ -71,6 +71,10 @@ typedef int ftnlen; // Fortran hidden string length type // microsoft vc++ being used as the compiler #undef WINMSVC +// Identify whether the operating system is solaris +// with a native compiler +#undef SOLARIS + //--------- Fonts for reaction path diagrams ---------------------- #undef RXNPATH_FONT diff --git a/configure.in b/configure.in index 78d537c38..eacabb821 100755 --- a/configure.in +++ b/configure.in @@ -85,6 +85,7 @@ SHARED_CTLIB=0 OS_IS_DARWIN=0 OS_IS_WIN=0 OS_IS_CYGWIN=0 +OS_IS_SOLARIS=0 EXTRA_LINK=${EXTRA_LINK:=""} # default Matlab MEX file extension @@ -99,6 +100,7 @@ case $ac_sys_system in # mex_ext=mexmaci ;;#fi;; CYGWIN*) OS_IS_CYGWIN=1; mex_ext=mexw32;; + SunOS*) OS_IS_SOLARIS=1;; Linux* ) case $BITHARDWARE in 64 ) if test "$BITCHANGE" = "y" ; then ldemulationarg='-melf_i386' @@ -260,6 +262,9 @@ fi if test "x${OS_IS_CYGWIN}" = "x1"; then AC_DEFINE_UNQUOTED(CYGWIN,$OS_IS_CYGWIN) fi +if test "x${OS_IS_SOLARIS}" = "x1"; then + AC_DEFINE_UNQUOTED(CYGWIN,$OS_IS_SOLARIS) +fi if test "x${OS_IS_WIN}" = "x1"; then AC_DEFINE_UNQUOTED(WINMSVC,$OS_IS_WIN) fi