]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Detect Intel C++ compiler
authorGary V. Vaughan <gary@gnu.org>
Mon, 19 Apr 2004 15:04:17 +0000 (15:04 +0000)
committerGary V. Vaughan <gary@gnu.org>
Mon, 19 Apr 2004 15:04:17 +0000 (15:04 +0000)
version more idiomatically.

ChangeLog
m4/libtool.m4

index 311e9607eedb9151e0c5438d48e4c5d5f6c46a1c..04b1668eca310e5ce91f7ab334b47dd7ebd7041e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-19  Gary V. Vaughan  <gary@gnu.org>
+
+       * m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Detect Intel C++ compiler
+       version more idiomatically.
+
 2004-04-19  Albert Chin-A-Young  <china@thewrittenword.com>
 
        * m4/libtool.m4: Use cc rather than ld to created
index f97c0ad161f1292397a129c6729022da1036e53e..cdb483e7a8f14a0cf602915e39ae6a6e455ffe53 100644 (file)
@@ -4989,18 +4989,16 @@ if test -n "$compiler"; then
        with_gnu_ld=yes
        # version 8.0 and above of icpc choke on multiply defined symbols
        # if we add $predep_objects and $postdep_objects, however 7.1 and
-       # earlier do not add the objects themselves.  Only 8.0 (and newer?)
-       # support the --version argument, so we use that to distinguish them:
-       lt_icpc_version=`icpc --version 2>/dev/null`
-       case $lt_icpc_version in
-       [[0-9.]]*)  # Version 8.0 or newer
-         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
-       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
-         ;;
-       *) # No output from 7.1 and older
+       # earlier do not add the objects themselves.
+       case `$CC -V 2>&1` in
+       *"Version 7."*)
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
          ;;
+       *)  # Version 8.0 or newer
+         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+         ;;
        esac
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'