Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 292191 | Differences between
and this patch

Collapse All | Expand All

(-)configure.ac.orig (+22 lines)
Lines 47-52 Link Here
47
dnl Checks for optional library functions
47
dnl Checks for optional library functions
48
dnl -------------------------------------
48
dnl -------------------------------------
49
49
50
dnl First check if we have argp available from libc
51
AC_LINK_IFELSE(
52
	[AC_LANG_PROGRAM(
53
		[#include <argp.h>],
54
		[int argc=1; char *argv[]={"test"}; argp_parse(0,argc,argv,0,0,0); return 0;]
55
		)],
56
	[libc_has_argp="true"],
57
	[libc_has_argp="false"]
58
)
59
60
dnl If libc doesn't provide argp, then test for libargp
61
if test "$libc_has_argp" = "false" ; then
62
	AC_MSG_WARN("libc does not have argp")
63
	AC_CHECK_LIB([argp], [argp_parse], [have_argp="true"], [have_argp="false"])
64
65
	if test "$have_argp" = "false"; then
66
		AC_MSG_ERROR("no libargp found")
67
	else
68
		LIBS+=" -largp"
69
	fi
70
fi
71
50
dnl -----------------
72
dnl -----------------
51
dnl Configure options
73
dnl Configure options
52
dnl -----------------
74
dnl -----------------

Return to bug 292191