diff --git a/m4/libcurl.m4 b/m4/libcurl.m4 index a9bfa2e23..39f240703 100644 --- a/m4/libcurl.m4 +++ b/m4/libcurl.m4 @@ -71,7 +71,7 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG], if test -d "$_libcurl_with" ; then LIBCURL_CPPFLAGS="-I$withval/include" _libcurl_ldflags="-L$withval/lib" - AC_PATH_PROG([_libcurl_config],["$withval/bin/curl-config"]) + AC_PATH_PROG([_libcurl_config],[curl-config], [], ["$withval/bin"]) else AC_PATH_PROG([_libcurl_config],[curl-config]) fi diff --git a/tools/cross/cross-configure.sh b/tools/cross/cross-configure.sh index d75786e8a..97b61503c 100755 --- a/tools/cross/cross-configure.sh +++ b/tools/cross/cross-configure.sh @@ -1,7 +1,9 @@ -#!/bin/sh +#!/bin/sh -x MINGW=/home/bill/src/mingw/mingw-cross-env-2.18 export PKG_CONFIG_PATH=$MINGW/usr/lib/pkgconfig export PATH=$MINGW/usr/bin:$PATH ../configure --host=i686-pc-mingw32 \ - SDL_CONFIG=$MINGW/usr/i686-pc-mingw32/bin/sdl-config $* + SDL_CONFIG=$MINGW/usr/i686-pc-mingw32/bin/sdl-config \ + --with-libcurl=$MINGW/usr/i686-pc-mingw32 \ + $*