win32: Use AC_CHECK_TOOL to find dlltool
authorArnel A. Borja <kyoushuu@yahoo.com>
Fri, 14 Sep 2012 00:58:04 +0000 (08:58 +0800)
committerKalev Lember <kalevlember@gmail.com>
Sun, 2 Dec 2012 17:12:57 +0000 (18:12 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=684145

configure.ac
tests/Makefile.am

index 27b33d1..7804262 100644 (file)
@@ -205,6 +205,7 @@ AS_IF([test "$glib_native_win32" = "yes"], [
     AC_MSG_ERROR([*** Could not find an implementation of nm in your PATH.])
   fi
   AC_CHECK_TOOL(RANLIB, ranlib, :)
+  AC_CHECK_TOOL(DLLTOOL, dlltool, :)
   AC_CHECK_PROG(ms_librarian, [lib.exe], [yes], [no])
 ])
 AM_CONDITIONAL(MS_LIB_AVAILABLE, [test x$ms_librarian = xyes])
index b33b023..8a18f2f 100644 (file)
@@ -24,7 +24,7 @@ no_undefined = -no-undefined
 module_test_exp = module-test.exp
 
 module-test.exp: module-test.o
-       dlltool --output-exp module-test.exp module-test.o
+       $(DLLTOOL) --output-exp module-test.exp module-test.o
 
 spawn_test_win32_gui = spawn-test-win32-gui