From: Bruno Haible Date: Mon, 4 Sep 2006 11:54:06 +0000 (+0000) Subject: Support for mingw DLLs. X-Git-Tag: cvs-readonly~1937 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=7132cd244662d91d80c17f99a17185e77233c1dc;p=gnulib.git Support for mingw DLLs. --- diff --git a/m4/ChangeLog b/m4/ChangeLog index 944f2a2eb..f3c708078 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,8 @@ +2006-09-03 Bruno Haible + + * lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries + correctly. + 2006-09-01 Paul Eggert * getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG, @@ -52,6 +57,7 @@ * inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX* macros. + Reported by Eric Blake. 2006-08-22 Eric Blake diff --git a/m4/lib-link.m4 b/m4/lib-link.m4 index 92929193f..a196556c2 100644 --- a/m4/lib-link.m4 +++ b/m4/lib-link.m4 @@ -1,4 +1,4 @@ -# lib-link.m4 serial 8 (gettext-0.15) +# lib-link.m4 serial 9 (gettext-0.15.1) dnl Copyright (C) 2001-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -198,9 +198,16 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], found_so= found_a= if test $use_additional = yes; then - if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then + if test -n "$shlibext" \ + && { test -f "$additional_libdir/lib$name.$shlibext" \ + || { test "$shlibext" = dll \ + && test -f "$additional_libdir/lib$name.dll.a"; }; }; then found_dir="$additional_libdir" - found_so="$additional_libdir/lib$name.$shlibext" + if test -f "$additional_libdir/lib$name.$shlibext"; then + found_so="$additional_libdir/lib$name.$shlibext" + else + found_so="$additional_libdir/lib$name.dll.a" + fi if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi @@ -220,9 +227,16 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then + if test -n "$shlibext" \ + && { test -f "$dir/lib$name.$shlibext" \ + || { test "$shlibext" = dll \ + && test -f "$dir/lib$name.dll.a"; }; }; then found_dir="$dir" - found_so="$dir/lib$name.$shlibext" + if test -f "$dir/lib$name.$shlibext"; then + found_so="$dir/lib$name.$shlibext" + else + found_so="$dir/lib$name.dll.a" + fi if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi