]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* m4/libtool.m4 (_LT_COMPILER_OPTION, _LT_LINKER_OPTION): No
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 11 Jun 2005 11:02:52 +0000 (11:02 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 11 Jun 2005 11:02:52 +0000 (11:02 +0000)
need for $ECHO here.  Fix sed script syntax to be portable.
This should now put the pic-flag right after the last $*FLAGS
variable again, if any.  Necessary for Fortran AC_FC_SRCEXT.

ChangeLog
m4/libtool.m4

index 95726c5d2e5f65909c38fa37f7c642465751aea8..63cb0f7c35f7324ea1516d51e0b8c8d9a384287d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * m4/libtool.m4 (_LT_COMPILER_OPTION, _LT_LINKER_OPTION): No
+       need for $ECHO here.  Fix sed script syntax to be portable.
+       This should now put the pic-flag right after the last $*FLAGS
+       variable again, if any.  Necessary for Fortran AC_FC_SRCEXT.
+
 2005-06-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * m4/libtool.m4 (_LT_CONFIG_COMMANDS): Remove long lines.
index 56fc4f93579208eee52c69f66b604a5a05da5a89..a14aefdbce18031eeaa0b50ba4dd5bbaaa689948 100644 (file)
@@ -1055,8 +1055,8 @@ AC_CACHE_CHECK([$1], [$2],
    # Note that $ac_compile itself does not contain backslashes and begins
    # with a dollar sign (not a hyphen), so the echo should work correctly.
    # The option is referenced via a variable to avoid confusing sed.
-   lt_compile=`$ECHO "$ac_compile" | $SED \
-   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
+   lt_compile=`echo "$ac_compile" | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
@@ -1477,8 +1477,8 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
    # (2) before a word containing "conftest.", or (3) at the end.
    # Note that $ac_compile itself does not contain backslashes and begins
    # with a dollar sign (not a hyphen), so the echo should work correctly.
-   lt_compile=`$ECHO "$ac_compile" | $SED \
-   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
+   lt_compile=`echo "$ac_compile" | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)