]> Pileus Git - ~andy/gtk/commitdiff
Don't run system("touch conf.gtktest") in the AM_PATH_GTK_2_0 macro
authorPaolo Bonzini <bonzini@gnu.org>
Tue, 3 Nov 2009 16:48:42 +0000 (18:48 +0200)
committerTor Lillqvist <tml@iki.fi>
Tue, 3 Nov 2009 16:50:55 +0000 (18:50 +0200)
Just use the C library instead to create the file. Helps building
using Wine. Not that I think we want to endorse that way to build GTK+
for Windows, proper cross-compiling surely probably more sense, but
accepting this minimal patch doesn't hurt. From bug #590017.

Signed-off-by: Tor Lillqvist <tml@iki.fi>
m4macros/gtk-2.0.m4

index 3deba01be78c6258fd7019c3c37f0b059e1a49a2..19f13ae7db85f8ca6480c4f0d2af216605b89305 100644 (file)
@@ -85,7 +85,7 @@ main ()
   int major, minor, micro;
   char *tmp_version;
 
-  system ("touch conf.gtktest");
+  fclose (fopen ("conf.gtktest", "w");
 
   /* HP/UX 9 (%@#!) writes to sscanf strings */
   tmp_version = g_strdup("$min_gtk_version");