From: handa Date: Thu, 12 May 2005 05:17:53 +0000 (+0000) Subject: Define HAVE_X11_XAW_COMMAND explicitly. X-Git-Tag: REL-1-3-0~310 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb5213a4e6fe1fe9cb50d9a1e5491ad9f8dce0df;p=m17n%2Fm17n-lib.git Define HAVE_X11_XAW_COMMAND explicitly. --- 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.