]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AM_SYS_NM_PARSE): while we are at it, we may well
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Mon, 11 Jan 1999 06:14:39 +0000 (06:14 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 11 Jan 1999 06:14:39 +0000 (06:14 +0000)
  cache the value of ac_cv_sys_symbol_underscore

ChangeLog
libtool.m4

index 3bf5e9a652ba885898cf8f0fda9f7153873059d4..548968a257698816ea462c0d44ced56d19d81b61 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,11 @@
 1999-01-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * libtool.m4 (AM_SYS_NM_PARSE): while we are at it, we may well
+       cache the value of ac_cv_sys_symbol_underscore
+
        * libtool.m4 (AM_SYS_NM_PARSE): need for underscore prefix is now
-       auto-detected, by trying first without, then with it
+       auto-detected, by trying first without, then with it.  
+       
        * ltconfig.in: ditto
 
 1999-01-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
index c735e996772eefe72d1d2ce7fd8fd16f9125f50d..c84e388e289fa8c54023acef5e6ac00cc3230a9e 100644 (file)
@@ -380,7 +380,9 @@ changequote([,])dnl
 for ac_symprfx in "" "_"; do
 
   # Write the raw and C identifiers.
-  ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* $ac_symcode $ac_symprfx$ac_sympat$/$ac_symxfrm/p'"
+  # Unlike in ltconfig.in, we need $ac_symprfx before $ac_symxfrm here,
+  # otherwise AM_SYS_SYMBOL_UNDERSCORE will always be false
+  ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* $ac_symcode $ac_symprfx$ac_sympat$/$ac_symprfx$ac_symxfrm/p'"
 
   # Check to see that the pipe works correctly.
   ac_pipe_works=no
@@ -486,6 +488,11 @@ EOF
 
   # Do not use the global_symbol_pipe unless it works.
   if test "$ac_pipe_works" = yes; then
+    if test x"$ac_symprfx" = x"_"; then
+      ac_cv_sys_symbol_underscore=yes
+    else
+      ac_cv_sys_symbol_underscore=no
+    fi
     break
   else
     ac_cv_sys_global_symbol_pipe=