From: Ralf Wildenhues Date: Mon, 31 Jan 2005 17:32:18 +0000 (+0000) Subject: * libtool.m4 (AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE): Unicos 9 sed rejects X-Git-Tag: release-1-5-12~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=86ec18ddefb73aba41389d6855157358b0c4582e;p=thirdparty%2Flibtool.git * 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,. --- diff --git a/ChangeLog b/ChangeLog index 6bdb76ff9..bd6afdeec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2005-01-31 Ralf Wildenhues + * 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 diff --git a/libtool.m4 b/libtool.m4 index 48b4490c6..88fae8349 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -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'