[svn] gpgme - r1156 - trunk/m4

svn author marcus cvs at cvs.gnupg.org
Wed Feb 22 12:58:33 CET 2006


Author: marcus
Date: 2006-02-22 12:58:33 +0100 (Wed, 22 Feb 2006)
New Revision: 1156

Modified:
   trunk/m4/ChangeLog
   trunk/m4/pth.m4
Log:
2006-02-22  Marcus Brinkmann  <marcus at g10code.de>

	* pth.m4: Fix code generation (required for Max OS X).
	Submitted by Emanuele Giaquinta <exg at gentoo.org>.


Modified: trunk/m4/ChangeLog
===================================================================
--- trunk/m4/ChangeLog	2006-02-22 11:44:16 UTC (rev 1155)
+++ trunk/m4/ChangeLog	2006-02-22 11:58:33 UTC (rev 1156)
@@ -1,3 +1,8 @@
+2006-02-22  Marcus Brinkmann  <marcus at g10code.de>
+
+	* pth.m4: Fix code generation (required for Max OS X).
+	Submitted by Emanuele Giaquinta <exg at gentoo.org>.
+
 2005-11-17  Marcus Brinkmann  <marcus at g10code.de>
 
 	* glib-2.0.m4: New file.

Modified: trunk/m4/pth.m4
===================================================================
--- trunk/m4/pth.m4	2006-02-22 11:44:16 UTC (rev 1155)
+++ trunk/m4/pth.m4	2006-02-22 11:58:33 UTC (rev 1156)
@@ -285,8 +285,6 @@
         #include <pth.h>
         ])
         define(_code2, [dnl
-        int main(int argc, char *argv[])
-        {
             FILE *fp;
             if (!(fp = fopen("conftestval", "w")))
                 exit(1);
@@ -299,7 +297,6 @@
             fprintf(fp, "yes");
             fclose(fp);
             exit(0);
-        }
         ])
         _AC_PTH_VERBOSE([+ Performing Sanity Checks:])
         _AC_PTH_VERBOSE([    o pre-processor test])
@@ -329,7 +326,7 @@
             See config.log for possibly more details.])
         fi
         _AC_PTH_VERBOSE([    o run-time check])
-        AC_TRY_RUN(_code1 _code2, _ok=`cat conftestval`, _ok=no, _ok=no)
+        AC_TRY_RUN(AC_LANG_PROGRAM(_code1, _code2), _ok=`cat conftestval`, _ok=no, _ok=no)
         if test ".$_ok" != .yes; then
             if test ".$_ok" = .no; then
                 _AC_PTH_ERROR([dnl




More information about the Gnupg-commits mailing list