From: Jo-Philipp Wich Date: Mon, 13 Dec 2010 00:48:33 +0000 (+0000) Subject: [packages] radiusclient-ng: fix autoreconf X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=84181a4ab44dd960645009b8b16c9bc1c958d841;p=openwrt%2Fsvn-archive%2Farchive.git [packages] radiusclient-ng: fix autoreconf SVN-Revision: 24532 --- diff --git a/libs/radiusclient-ng/patches/001-cross_compile.patch b/libs/radiusclient-ng/patches/001-cross_compile.patch index fc4d21ddca..3925563882 100644 --- a/libs/radiusclient-ng/patches/001-cross_compile.patch +++ b/libs/radiusclient-ng/patches/001-cross_compile.patch @@ -1,6 +1,6 @@ ---- radiusclient-ng-0.5.6.orig/configure -+++ radiusclient-ng-0.5.6/configure -@@ -23332,8 +23332,7 @@ +--- a/configure ++++ b/configure +@@ -23332,8 +23332,7 @@ echo $ECHO_N "checking for field domainn { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling See \`config.log' for more details." >&5 echo "$as_me: error: cannot run test program while cross compiling @@ -10,3 +10,39 @@ else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ +--- a/configure.in ++++ b/configure.in +@@ -104,32 +104,7 @@ AC_REPLACE_FUNCS(strdup strerror strcase + AC_CHECK_FUNCS(flock fcntl uname gethostname sysinfo getdomainname) + AC_CHECK_FUNCS(stricmp random rand snprintf vsnprintf) + +-if test "$ac_cv_func_uname" = 'yes' +-then +- AC_MSG_CHECKING([for field domainname in struct utsname]) +- AC_TRY_RUN([ +- #include +- +- main(int argc, char **argv) +- { +- struct utsname uts; +- uts.domainname[0] = '\0'; +- } +- ], +- AC_MSG_RESULT(yes) +- AC_DEFINE(HAVE_STRUCT_UTSNAME_DOMAINNAME), +- AC_MSG_RESULT(no) +- ) +-fi +- +-AC_MSG_CHECKING([for /dev/urandom]) +-if test -c /dev/urandom +-then +- AC_MSG_RESULT(yes) +- AC_DEFINE(HAVE_DEV_URANDOM) +-else +- AC_MSG_RESULT(no) +-fi ++AC_DEFINE(HAVE_DEV_URANDOM) + + dnl Determine PATH setting + echo $ac_n "using the following PATH setting for exec'ed programs... $ac_c" 1>&6