Get HTTP support (libcurl) working with mingw.

This commit is contained in:
Bill Currie 2010-12-23 13:18:18 +09:00
parent 2229c7557d
commit 32f7cd8b22
2 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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 \
$*