Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 313197 Details for
Bug 292191
Enable sys-apps/rng-tools-2-r1 to compile on uclibc
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch against configure.ac to test for who provides argp
test-for-argp.patch (text/plain), 1.29 KB, created by
Anthony Basile
on 2012-05-27 01:16:58 UTC
(
hide
)
Description:
Patch against configure.ac to test for who provides argp
Filename:
MIME Type:
Creator:
Anthony Basile
Created:
2012-05-27 01:16:58 UTC
Size:
1.29 KB
patch
obsolete
>On glibc systems, argp is provided by libc. However, on >uclibc and other systems which lack argp in their C library, >argp might be provided by a stand alone library, libargp. >This patch adds tests to the build system to find who provides >argp. > >X-Gentoo-Bug: 292191 >X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=292191 >Reported-by: Ed Wildgoose <gentoo@wildgooses.com> >Signed-off-by: Anthony G. Basile <blueness@gentoo.org> > > >--- configure.ac.orig 2012-05-26 22:45:42.753478198 +0000 >+++ configure.ac 2012-05-27 00:36:23.175844081 +0000 >@@ -47,6 +47,28 @@ > dnl Checks for optional library functions > dnl ------------------------------------- > >+dnl First check if we have argp available from libc >+AC_LINK_IFELSE( >+ [AC_LANG_PROGRAM( >+ [#include <argp.h>], >+ [int argc=1; char *argv[]={"test"}; argp_parse(0,argc,argv,0,0,0); return 0;] >+ )], >+ [libc_has_argp="true"], >+ [libc_has_argp="false"] >+) >+ >+dnl If libc doesn't provide argp, then test for libargp >+if test "$libc_has_argp" = "false" ; then >+ AC_MSG_WARN("libc does not have argp") >+ AC_CHECK_LIB([argp], [argp_parse], [have_argp="true"], [have_argp="false"]) >+ >+ if test "$have_argp" = "false"; then >+ AC_MSG_ERROR("no libargp found") >+ else >+ LIBS+=" -largp" >+ fi >+fi >+ > dnl ----------------- > dnl Configure options > dnl -----------------
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 292191
:
209482
| 313197 |
313199
|
313201