* libltdl/config/ltmain.m4sh (func_win32_import_lib_p):
New function.
---
The second of several smaller patches broken out of, or arising from
discussion involving, my original
  "[PATCH] [cygwin|mingw] fix dlpreopen with --disable-static" one:
http://lists.gnu.org/archive/html/libtool-patches/2008-11/msg00019.html

This one was pre-approved.  I bootstrapped and rebuilt, and manually 
exercised the function -- which verified no syntax errors, at least.
However, I did not run the entire test suite; I couldn't see the
need as ALL the patch does is add the new function. It is not actually
called by anything yet.

Pushed.



 libltdl/config/ltmain.m4sh |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index db0ea67..91c1f47 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -3720,6 +3720,17 @@ EOF
 }
 # end: func_emit_cwrapperexe_src
 
+# func_win32_import_lib_p ARG
+# True if ARG is an import lib, as indicated by $file_magic_cmd
+func_win32_import_lib_p ()
+{
+    $opt_debug
+    case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
+    *import*) : ;;
+    *) false ;;
+    esac
+}
+
 # func_mode_link arg...
 func_mode_link ()
 {
-- 
1.6.0.2



Reply via email to