[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Minor change to m4/argp.m4
From: |
Sergey Poznyakoff |
Subject: |
Minor change to m4/argp.m4 |
Date: |
Fri, 29 Feb 2008 10:46:58 +0200 |
Hello,
I have installed the following patch:
2008-02-29 Sergey Poznyakoff <address@hidden>
* m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test
if program_invocation_name and program_invocation_short_name are
present.
diff --git a/m4/argp.m4 b/m4/argp.m4
index 77f1510..80cb72f 100644
--- a/m4/argp.m4
+++ b/m4/argp.m4
@@ -32,20 +32,20 @@ AC_DEFUN([gl_ARGP],
# be defined and other not, I prefer to stay on the safe side and to
# test each one separately.
AC_MSG_CHECKING(whether program_invocation_name is defined)
- AC_TRY_COMPILE([#include <argp.h>],
- [ program_invocation_name = "test"; ],
- [ AC_DEFINE(HAVE_PROGRAM_INVOCATION_NAME,1,
- [Define if program_invocation_name is defined])
- AC_MSG_RESULT(yes)],
- [ AC_MSG_RESULT(no)] )
+ AC_TRY_LINK([#include <argp.h>],
+ [ program_invocation_name = "test"; ],
+ [ AC_DEFINE(HAVE_PROGRAM_INVOCATION_NAME,1,
+ [Define if program_invocation_name is defined])
+ AC_MSG_RESULT(yes)],
+ [ AC_MSG_RESULT(no)] )
AC_MSG_CHECKING(whether program_invocation_short_name is defined)
- AC_TRY_COMPILE([#include <argp.h>],
- [ program_invocation_short_name = "test"; ],
- [ AC_DEFINE(HAVE_PROGRAM_INVOCATION_SHORT_NAME,1,
- [Define if program_invocation_short_name is defined])
- AC_MSG_RESULT(yes)],
- [ AC_MSG_RESULT(no)] )
+ AC_TRY_LINK([#include <argp.h>],
+ [ program_invocation_short_name = "test"; ],
+ [ AC_DEFINE(HAVE_PROGRAM_INVOCATION_SHORT_NAME,1,
+ [Define if program_invocation_short_name is defined])
+ AC_MSG_RESULT(yes)],
+ [ AC_MSG_RESULT(no)] )
AC_CHECK_DECLS_ONCE([clearerr_unlocked])
AC_CHECK_DECLS_ONCE([feof_unlocked])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Minor change to m4/argp.m4,
Sergey Poznyakoff <=