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/10/01 00:16:04 UTC
svn commit: r451686 - /xerces/c/trunk/configure.ac
Author: amassari
Date: Sat Sep 30 15:16:04 2006
New Revision: 451686
URL: http://svn.apache.org/viewvc?view=rev&rev=451686
Log:
If the compiler is MSVC or Forte, and the user didn't specify a linker, set a reasonable value
Modified:
xerces/c/trunk/configure.ac
Modified: xerces/c/trunk/configure.ac
URL: http://svn.apache.org/viewvc/xerces/c/trunk/configure.ac?view=diff&rev=451686&r1=451685&r2=451686
==============================================================================
--- xerces/c/trunk/configure.ac (original)
+++ xerces/c/trunk/configure.ac Sat Sep 30 15:16:04 2006
@@ -41,6 +41,20 @@
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
+
+# 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
+
AC_PROG_LN_S
AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org