diff -r 5fc4375cdfb5 -r 1b33b0db2236 configure.ac --- a/configure.ac Fri Oct 16 15:24:19 2009 +0100 +++ b/configure.ac Mon Feb 08 22:07:17 2010 +0000 @@ -45,6 +45,7 @@ # Checks for header files. ################################################## AC_HEADER_STDC +AC_CHECK_HEADERS_ONCE([softpub.h mscat.h]) ################################################## # Checks for typedefs, structures, and compiler characteristics. @@ -55,7 +56,7 @@ ################################################## case $host_os in mingw*) - EXTRA_LIBS="-lole32" + EXTRA_LIBS="-lole32 -lsetupapi" EXTRA_BUILD_LIBS="-Wl,-luuid" EXTRA_PRIVATE_LIBS="-luuid" ;; @@ -75,6 +76,14 @@ ################################################## # Checks for library functions. ################################################## +case $host_os in + mingw*) + save_libs="$LIBS" + LIBS="-lsetupapi $LIBS" + AC_CHECK_FUNCS_ONCE([SetupUninstallOEMInfW]) + LIBS="$save_libs" + ;; +esac ################################################## # Checks for processor independent files.