changeset 25334:90f938711ffa

(HAVE_TIFF): Remove tiff34 prefix from tiffio.h. (HAVE_XAW3D): Don't check for Xaw3d if USE_X_TOOLKIT=none.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 20 Aug 1999 19:30:09 +0000
parents 4633c86b4b49
children 2de1796b006b
files configure.in
diffstat 1 files changed, 10 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Fri Aug 20 16:57:43 1999 +0000
+++ b/configure.in	Fri Aug 20 19:30:09 1999 +0000
@@ -1251,14 +1251,16 @@
 ### Is -lXaw3d available?
 HAVE_XAW3D=no
 if test "${HAVE_X11}" = "yes"; then
-  old_c_flags="${CFLAGS}"
-  CFLAGS="${LD_SWITCH_X_SITE}"
-  AC_CHECK_HEADER(X11/Xaw3d/Scrollbar.h,
-    AC_CHECK_LIB(Xaw3d, XawScrollbarSetThumb, HAVE_XAW3D=yes, , -lX11))
-  CFLAGS="${old_c_flags}"
+  if test "${USE_X_TOOLKIT}" != "none"; then
+    old_c_flags="${CFLAGS}"
+    CFLAGS="${LD_SWITCH_X_SITE}"
+    AC_CHECK_HEADER(X11/Xaw3d/Scrollbar.h,
+	AC_CHECK_LIB(Xaw3d, XawScrollbarSetThumb, HAVE_XAW3D=yes, , -lX11))
+    CFLAGS="${old_c_flags}"
 
-  if test "${HAVE_XAW3D}" = "yes"; then
-    AC_DEFINE(HAVE_XAW3D)
+    if test "${HAVE_XAW3D}" = "yes"; then
+	AC_DEFINE(HAVE_XAW3D)
+    fi
   fi
 fi
   
@@ -1316,7 +1318,7 @@
   if test "${with_tiff}" != "no"; then
     old_c_flags="${CFLAGS}"
     CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
-    AC_CHECK_HEADER(tiff34/tiffio.h,
+    AC_CHECK_HEADER(tiffio.h,
       AC_CHECK_LIB(tiff, TIFFGetVersion, HAVE_TIFF=yes, , -lX11))
     CFLAGS="${old_c_flags}"
   fi