Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 278509 Details for
Bug 373365
net-dialup/radiusclient-ng fail to cross-compile
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
files/radiusclient-ng-0.5.6-BJA-cross.diff
radiusclient-ng-0.5.6-BJA-cross.diff (text/plain), 1.68 KB, created by
Bertrand Jacquin
on 2011-06-28 15:58:37 UTC
(
hide
)
Description:
files/radiusclient-ng-0.5.6-BJA-cross.diff
Filename:
MIME Type:
Creator:
Bertrand Jacquin
Created:
2011-06-28 15:58:37 UTC
Size:
1.68 KB
patch
obsolete
>--- configure.in.ori 2011-06-28 16:26:10.000000000 +0200 >+++ configure.in 2011-06-28 16:26:12.000000000 +0200 >@@ -104,32 +104,40 @@ > 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 <sys/utsname.h> >+AC_CACHE_CHECK([for field domainname in struct utsname], ac_cv_struct_utsname, >+ [AC_TRY_RUN([ >+ #include <sys/utsname.h> > >- 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 >+ main(int argc, char **argv) >+ { >+ struct utsname uts; >+ uts.domainname[0] = '\0'; >+ } >+ ], >+ ac_cv_struct_utsname=yes, >+ ac_cv_struct_utsname=no, >+ [AC_MSG_ERROR([cross-compiling, >+ presetting ac_cv_struct_utsname=(yes|no) will help])] >+ ) >+]) >+AS_VAR_IF(ac_cv_struct_utsname, yes, >+ [AC_DEFINE(HAVE_STRUCT_UTSNAME_DOMAINNAME)], >+) > >-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_CACHE_CHECK([for /dev/urandom], ac_cv_file__dev_urandom, >+ [AS_IF([test "$cross_compiling" = yes], >+ [AC_MSG_ERROR([cross-compiling, >+ presetting ac_cv_file__dev_urandom=(yes|no) will help])], >+ if test -c /dev/urandom ; then >+ ac_cv_file__dev_urandom=yes >+ else >+ ac_cv_file__dev_urandom=no >+ fi >+ )] >+) >+AS_VAR_IF(ac_cv_file__dev_urandom, yes, >+ [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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 373365
: 278509