openbsd-ports/security/p11-kit/patches/patch-configure_ac
2012-08-19 11:10:43 +00:00

22 lines
1.1 KiB
Plaintext

$OpenBSD: patch-configure_ac,v 1.1 2012/08/19 11:10:43 ajacoutot Exp $
https://bugs.freedesktop.org/show_bug.cgi?id=53706
--- configure.ac.orig Mon Jul 16 15:05:03 2012
+++ configure.ac Sun Aug 19 12:57:46 2012
@@ -71,8 +71,12 @@ if test "$os_unix" = "yes"; then
# Check if these are declared and/or available to link against
AC_CHECK_DECLS([program_invocation_short_name])
- AC_LINK_IFELSE([AC_LANG_SOURCE([extern char *program_invocation_short_name; void main() { }])],
- [AC_DEFINE(HAVE_PROGRAM_INVOCATION_SHORT_NAME, [1], [Whether program_invocation_short_name available])])
+ AC_MSG_CHECKING([whether program_invocation_short_name is available])
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([program_invocation_short_name = "test";])],
+ [AC_DEFINE([HAVE_PROGRAM_INVOCATION_SHORT_NAME], [1],
+ [Whether program_invocation_short_name available]),
+ AC_MSG_RESULT([yes])],
+ [AC_MSG_RESULT([no])])
AC_CHECK_DECLS([__progname])
AC_LINK_IFELSE([AC_LANG_SOURCE([extern char *__progname; void main() { }])],
[AC_DEFINE(HAVE___PROGNAME, [1], [Whether __progname available])])