checking curl/curl.h usability... yes
checking curl/curl.h presence... yes
checking for curl/curl.h... yes
checking for libcurl... configure: error: in
`/home/argv/src/openwrt/kirkwood/trunk/build_dir/target
arm_v5te_uClibc-0.9.31_eabi/icecast-2.3.2': configure: error: cannot run
test program while cross compiling
See `config.log' for more details
make[3]: ***
[/home/argv/src/openwrt/kirkwood/trunk/build_dir/target-arm_v5te_uClibc-0.9.31_eabi/icecast
2.3.2/.configured_] Error 1
make[3]: Leaving directory
`/home/argv/src/openwrt/kirkwood/trunk/feeds/packages/net/icecast'
make[2]: *** [package/feeds/packages/icecast/compile] Error 2
make[2]: Leaving directory `/home/argv/src/openwrt/kirkwood/trunk'
make[1]: ***
[/home/argv/src/openwrt/kirkwood/trunk/staging_dir/target-arm_v5te_uClibc
0.9.31_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/argv/src/openwrt/kirkwood/trunk'
make: *** [world] Error 2
Signed-off-by: a <a...@mailinator.com>
---
Index: net/icecast/patches/003-curl_crosscompile.patch
===================================================================
--- net/icecast/patches/003-curl_crosscompile.patch (revision 0)
+++ net/icecast/patches/003-curl_crosscompile.patch (revision 0)
@@ -0,0 +1,37 @@
+--- icecast-2.3.2/m4/xiph_curl.m4 2008-04-19 03:54:26.000000000
+0200
++++ icecast-2.3.2.new/m4/xiph_curl.m4 2010-12-26 17:44:35.386351204
+0100
+@@ -45,34 +45,3 @@ xt_curl_CPPFLAGS="$CPPFLAGS"
+ xt_curl_LIBS="$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_RUN_IFELSE(AC_LANG_SOURCE([
+-#include <curl/curl.h>
+-int main()
+-{
+- return 0;
+-}
+-]),,[curl_ok="no"])
+-fi
+-if test "$curl_ok" = "yes"; then
+- AC_MSG_RESULT(yes)
+- AC_DEFINE(HAVE_CURL, 1, [Define if you have libcurl.])
+- ifelse([$1], , :, [$1])
+-else
+- AC_MSG_RESULT(no)
+- CURL_LIBS=""
+- CURL_CFLAGS=""
+- ifelse([$2], , :, [$2])
+-fi
+-CPPFLAGS="$xt_curl_CPPFLAGS"
+-LIBS="$xt_curl_LIBS"
+-fi
+-AC_SUBST(CURL_CFLAGS)
+-AC_SUBST(CURL_LIBS)
+-])
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel