]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE): Unicos 9 sed rejects
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 31 Jan 2005 17:32:18 +0000 (17:32 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 31 Jan 2005 17:32:18 +0000 (17:32 +0000)
empty parentheses as in 's/x()/1/'.
(AC_LIBTOOL_PROG_COMPILER_PIC) [unicos*]: wl=-Wl,.

ChangeLog
libtool.m4

index 6bdb76ff97d67fbd48e720245e9a04e821edd2d1..bd6afdeec775dc1d669a1c106e0ecc1fe7ccfbd2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2005-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * libtool.m4 (AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE): Unicos 9 sed rejects
+       empty parentheses as in 's/x\(\)/\1/'.
+       (AC_LIBTOOL_PROG_COMPILER_PIC) [unicos*]: wl=-Wl,.
+
        * tests/quote.test: Match link quoting against `"$wl"', not `-Wl,'.
 
 2005-01-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
index 48b4490c6be04be60abd9197e23d387da31c2ea4..88fae8349e9abb9b0360ce08c988956d24f3d965 100644 (file)
@@ -4400,9 +4400,6 @@ symcode='[[BCDEGRST]]'
 # Regexp to match symbols that can be accessed directly from C.
 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
 
-# Transform the above into a raw symbol and a C symbol.
-symxfrm='\1 \2\3 \3'
-
 # Transform an extracted symbol line into a proper C declaration
 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
@@ -4462,8 +4459,11 @@ esac
 # Try without a prefix undercore, then with it.
 for ac_symprfx in "" "_"; do
 
+  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
+  symxfrm="\\1 $ac_symprfx\\2 \\2"
+
   # Write the raw and C identifiers.
-  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
+  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
   # Check to see that the pipe works correctly.
   pipe_works=no
@@ -5029,6 +5029,11 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
       fi
       ;;
 
+    unicos*)
+      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+      ;;
+
     uts4*)
       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'