[PATCH:xman 2/2] configure: check for groff and enable groff extensions if found

Alan Coopersmith alan.coopersmith at oracle.com
Sat Apr 20 10:08:21 PDT 2013


Check for groff never got translated from imake to autoconf

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 configure.ac |    5 +++++
 defs.h       |    4 ++++
 2 files changed, 9 insertions(+)

diff --git a/configure.ac b/configure.ac
index 74a6fc8..b9920bd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,6 +37,11 @@ AC_CONFIG_HEADERS([config.h])
 
 AC_CANONICAL_HOST
 
+AC_CHECK_PROG([GROFF], [groff], [found], [missing])
+if test "x$GROFF" = "xfound" ; then
+   AC_DEFINE([HAS_GROFF], 1, [Define to 1 if you have the groff package.])
+fi
+
 AC_CHECK_FUNCS([mkstemp])
 
 AC_ARG_WITH(helpdir,
diff --git a/defs.h b/defs.h
index b4cd434..fe09b6b 100644
--- a/defs.h
+++ b/defs.h
@@ -34,6 +34,10 @@ from the X Consortium.
  * Created:   October 22, 1987
  */
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #ifndef HELPFILE
 #define HELPFILE "/usr/lib/X11/xman.help"  /* name of the default helpfile. */
 #endif
-- 
1.7.9.2



More information about the xorg-devel mailing list