You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by bo...@apache.org on 2008/03/06 13:12:22 UTC
svn commit: r634239 - /xerces/c/trunk/configure.ac
Author: borisk
Date: Thu Mar 6 04:12:21 2008
New Revision: 634239
URL: http://svn.apache.org/viewvc?rev=634239&view=rev
Log:
Get rid of unreliable tests. Users should use environment variables instead.
Modified:
xerces/c/trunk/configure.ac
Modified: xerces/c/trunk/configure.ac
URL: http://svn.apache.org/viewvc/xerces/c/trunk/configure.ac?rev=634239&r1=634238&r2=634239&view=diff
==============================================================================
--- xerces/c/trunk/configure.ac (original)
+++ xerces/c/trunk/configure.ac Thu Mar 6 04:12:21 2008
@@ -52,19 +52,6 @@
#it would be nice to also check for PERL...
#AC_PROG_PERL
-# If using MSVC (under Cygwin) or Solaris Forte, and the user didn't specify a linker, force a reasonable
-# choice in order to avoid the "cannot find 'ld'" error from the AC_PROG_LIBTOOL
-if test x$LD = x; then
- case $CXX in
- 'cl.exe' | 'cl')
- LD='link'
- ;;
- 'CC')
- LD='CC'
- ;;
- esac
-fi
-
#skip detection of Fortran
m4_undefine([AC_PROG_F77])
m4_defun([AC_PROG_F77],[])
@@ -213,47 +200,17 @@
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([0x580], [__SUNPRO_C],
- [
- COMPILER="SUNPRO"
- AC_MSG_RESULT([yes])
- ],
- [
- COMPILER=""
- AC_MSG_RESULT([no])
- ]
- )
-
-case $CXX in
-'cl.exe' | 'cl')
- CXXFLAGS="`echo $CXXFLAGS | $SED 's%-g%/Od%'` /nologo /GX"
- ;;
-esac
-
-case $CC in
-'cl.exe' | 'cl')
- CFLAGS="`echo $CFLAGS | $SED 's%-g%/Od%'` /nologo /GX"
- ;;
-esac
-
case $host in
*-*-msdos* | *-*-mingw32* | *-*-cygwin* | *-*-windows* )
platform_export="__declspec(dllexport)"
platform_import="__declspec(dllimport)"
;;
* )
- case $COMPILER in
- SUNPRO)
- platform_export="__declspec(dllexport)"
- platform_import="__declspec(dllimport)"
- ;;
- *)
- platform_export=""
- platform_import=""
- ;;
- esac
+ platform_export=""
+ platform_import=""
+ ;;
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