mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
we need to supply the curl cflags into the C preprocessor
svn path=/trunk/m4/; revision=5159
This commit is contained in:
parent
52b917d2c3
commit
686bac60cf
@ -31,17 +31,17 @@ fi
|
||||
|
||||
curl_ok="yes"
|
||||
|
||||
ac_curl_CFLAGS="$CFLAGS"
|
||||
ac_curl_CPPFLAGS="$CPPFLAGS"
|
||||
ac_curl_LIBS="$LIBS"
|
||||
CFLAGS="$CFLAGS $CURL_CFLAGS"
|
||||
LIBS="$LIBS $CURL_LIBS"
|
||||
CPPFLAGS="$CPPFLAGS $CURL_CFLAGS"
|
||||
LIBS="$CURL_LIBS $LIBS"
|
||||
dnl
|
||||
dnl Now check if the installed libcurl is sufficiently new.
|
||||
dnl
|
||||
AC_CHECK_HEADERS([curl/curl.h],, curl_ok="no")
|
||||
AC_MSG_CHECKING(for libcurl)
|
||||
if test "$curl_ok" = "yes"; then
|
||||
AC_TRY_RUN([
|
||||
AC_RUN_IFELSE([
|
||||
#include <curl/curl.h>
|
||||
int main()
|
||||
{
|
||||
@ -49,7 +49,7 @@ int main()
|
||||
}
|
||||
],,[curl_ok="no"])
|
||||
fi
|
||||
CFLAGS="$ac_curl_CFLAGS"
|
||||
CPPFLAGS="$ac_curl_CPPFLAGS"
|
||||
LIBS="$ac_curl_LIBS"
|
||||
|
||||
if test "$curl_ok" = "yes"; then
|
||||
|
Loading…
Reference in New Issue
Block a user