You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2006/05/30 14:51:18 UTC

svn commit: r410264 - /xerces/c/trunk/configure.ac

Author: amassari
Date: Tue May 30 05:51:18 2006
New Revision: 410264

URL: http://svn.apache.org/viewvc?rev=410264&view=rev
Log:
When using SunPro compiler, define XERCES_PLATFOMR_EXPORT to be __declspec(dllexport), or the shared library will have no symbols

Modified:
    xerces/c/trunk/configure.ac

Modified: xerces/c/trunk/configure.ac
URL: http://svn.apache.org/viewvc/xerces/c/trunk/configure.ac?rev=410264&r1=410263&r2=410264&view=diff
==============================================================================
--- xerces/c/trunk/configure.ac (original)
+++ xerces/c/trunk/configure.ac Tue May 30 05:51:18 2006
@@ -133,15 +133,28 @@
 AS_IF([test x$ac_cv_header_inttypes_h = xyes],
 	AC_DEFINE([XERCES_HAVE_INTTYPES_H],    1, [Define to 1 if we have inttypes.h]))
 
+AC_MSG_CHECKING([whether we are using SunPro 5.8 compiler])
+AC_EGREP_CPP([^__SUNPRO_CC=0x580], ["__SUNPRO_CC=" __SUNPRO_CC],
+	[COMPILER="SUNPRO" AC_MSG_RESULT([yes])],
+	[COMPILER="" AC_MSG_RESULT([no])]
+	)
+
 case $host in
 *-*-msdos* | *-*-mingw32* | *-*-cygwin* | *-*-windows* )
 	platform_export="__declspec(dllexport)"
 	platform_import="__declspec(dllimport)"
 	;; 
 * )
-	platform_export=""
-	platform_import=""
-	;; 
+	case $COMPILER in
+	SUNPRO)
+		platform_export="__declspec(dllexport)"
+		platform_import="__declspec(dllimport)"
+		;; 
+	*)
+		platform_export=""
+		platform_import=""
+		;; 
+	esac
 esac
 AC_DEFINE_UNQUOTED([XERCES_PLATFORM_EXPORT], [$platform_export], [Define as the platform's export attribute])
 AC_DEFINE_UNQUOTED([XERCES_PLATFORM_IMPORT], [$platform_import], [Define as the platform's import attribute])



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org