Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
a182515f
Commit
a182515f
authored
Jul 27, 2003
by
Karl Heyes
Browse files
fixup last curl test with all the info it needs and avoid variable
name clashes. svn path=/trunk/m4/; revision=5177
parent
0c6493aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
m4/xiph_curl.m4
View file @
a182515f
...
...
@@ -33,8 +33,10 @@ fi
curl_ok="yes"
ac_curl_CPPFLAGS="$CPPFLAGS"
ac_curl_LIBS="$LIBS"
xt_curl_CFLAGS="$CFLAGS"
xt_curl_CPPFLAGS="$CPPFLAGS"
xt_curl_LIBS="$LIBS"
CFLAGS="-DCURL_CFLAG"
CPPFLAGS="$CPPFLAGS $CURL_CFLAGS"
LIBS="$CURL_LIBS $LIBS"
dnl
...
...
@@ -42,18 +44,16 @@ 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_RUN_IFELSE([
if test "$curl_ok" = "yes"
then
AC_RUN_IFELSE(AC_LANG_SOURCE([
#include <curl/curl.h>
int main()
{
return 0;
}
],,[curl_ok="no"])
]
)
,,[curl_ok="no"])
fi
CPPFLAGS="$ac_curl_CPPFLAGS"
LIBS="$ac_curl_LIBS"
if test "$curl_ok" = "yes"; then
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_CURL, 1, [Define if you have libcurl.])
...
...
@@ -64,4 +64,6 @@ else
CURL_CFLAGS=""
ifelse([$2], , :, [$2])
fi
CPPFLAGS="$xt_curl_CPPFLAGS"
LIBS="$xt_curl_LIBS"
])
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment