add configure test for xdg-programs to install mime types; can be disabled for buildi...
[xboard.git] / configure.ac
index cae8d5d..37bae05 100644 (file)
@@ -1,7 +1,7 @@
 dnl| configure.in
 dnl|
 dnl| Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, 2007, 
-dnl| 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+dnl| 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
 dnl|
 dnl| GNU XBoard is free software: you can redistribute it and/or modify
 dnl| it under the terms of the GNU General Public License as published by
@@ -28,7 +28,7 @@ dnl| to regenerate configure.  Then submit your changes to be folded into
 dnl| the standard version of xboard.
 
 dnl| define second argument as VERSION.PATCHLEVEL. e.g. 4.4.0j
-AC_INIT([xboard],[master-20110822],[bug-xboard@gnu.org])
+AC_INIT([xboard],[master-20120212],[bug-xboard@gnu.org])
 
 dnl| need this to be able to compile some files in a subdir (filebrowser)
 AM_INIT_AUTOMAKE([subdir-objects])
@@ -416,6 +416,14 @@ X_LIBS="$X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lXmu -lX11 -lXt "
 AC_SUBST(X_CFLAGS)
 AC_SUBST(X_LIBS)
 
+dnl | can we install desktop icons and mime associations?
+AC_PATH_PROG([XDG_MIME],[xdg-mime])
+AC_SUBST(XDG_MIME)
+AC_PATH_PROG([XDG_DESKTOP_MENU],[xdg-desktop-menu])
+AC_SUBST(XDG_DESKTOP_MENU)
+AC_PATH_PROG([XDG_ICON_RESOURCE],[xdg-icon-resource])
+AC_SUBST(XDG_ICON_RESOURCE)
+
 
 AC_CONFIG_FILES([Makefile cmail po/Makefile.in])
 AC_CONFIG_COMMANDS([test-stamp-h],[test -z "$CONFIG_HEADERS" || date > stamp-h])