From cb5213a4e6fe1fe9cb50d9a1e5491ad9f8dce0df Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 12 May 2005 05:17:53 +0000 Subject: [PATCH] Define HAVE_X11_XAW_COMMAND explicitly. --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 9233c9d..9e04dc1 100644 --- a/configure.ac +++ b/configure.ac @@ -45,7 +45,13 @@ AC_HEADER_DIRENT AC_HEADER_TIME AC_CHECK_HEADERS([fcntl.h langinfo.h limits.h locale.h stdlib.h \ string.h strings.h sys/time.h unistd.h]) -AC_CHECK_HEADER(X11/Xaw/Command.h, XAW_LD_FLAGS=-lXaw) +AC_CHECK_HEADER(X11/Xaw/Command.h, HAVE_XAW=yes) +if test "x$HAVE_XAW" = "xyes"; then + XAW_LD_FLAGS=-lXaw + AC_DEFINE(HAVE_X11_XAW_COMMAND_H, 1, + [Define to 1 if you have the Xaw header files.]) +fi + AC_SUBST(XAW_LD_FLAGS) dnl Checks for typedefs, structures, and compiler characteristics. -- 1.7.10.4