From 8d09ae50338246da65f1f654b9e57206afe95d7f Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Sun, 7 Feb 2016 04:24:58 -0800 Subject: Fix #1 Add explicit check for --- config/open-axiom.m4 | 5 ++++- config/openaxiom-c-macros.h.in | 3 +++ configure | 17 ++++++++++++++++- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/config/open-axiom.m4 b/config/open-axiom.m4 index ac4610b8..4c4a7221 100644 --- a/config/open-axiom.m4 +++ b/config/open-axiom.m4 @@ -1035,7 +1035,8 @@ AC_PATH_XTRA ## inspired by AC_PATH_XTRA. I don't have time to get to that ## complication right now. Will fix later. ## But we can check for the existence of -X_PRE_LIBS="-lXpm $X_PRE_LIBS" +## Also check for Xt headers +X_PRE_LIBS="-lXpm -Xt $X_PRE_LIBS" AC_SUBST(X_PRE_LIBS) ## If the system supports X11, then build graphics @@ -1051,6 +1052,8 @@ else LDFLAGS="$X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS" AC_CHECK_HEADERS([X11/xpm.h],[], [AC_MSG_ERROR([The header could not be found. Install Xpm development package and re-start the configuration process.])]) + AC_CHECK_HEADERS([X11/Intrinsic.h],[], + [AC_MSG_ERROR([The header could not be found. Install Xt development package and re-start the configuration process.])]) oa_use_x=yes oa_c_runtime="$oa_c_runtime graphics" LDFLAGS=$oa_saved_ldflags diff --git a/config/openaxiom-c-macros.h.in b/config/openaxiom-c-macros.h.in index 123648aa..0ec30abc 100644 --- a/config/openaxiom-c-macros.h.in +++ b/config/openaxiom-c-macros.h.in @@ -139,6 +139,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_WINSOCK2_H +/* Define to 1 if you have the header file. */ +#undef HAVE_X11_INTRINSIC_H + /* Define to 1 if you have the header file. */ #undef HAVE_X11_XPM_H diff --git a/configure b/configure index 116a4388..4c72008b 100755 --- a/configure +++ b/configure @@ -19000,7 +19000,8 @@ fi ## inspired by AC_PATH_XTRA. I don't have time to get to that ## complication right now. Will fix later. ## But we can check for the existence of -X_PRE_LIBS="-lXpm $X_PRE_LIBS" +## Also check for Xt headers +X_PRE_LIBS="-lXpm -Xt $X_PRE_LIBS" ## If the system supports X11, then build graphics @@ -19027,6 +19028,20 @@ else as_fn_error $? "The header could not be found. Install Xpm development package and re-start the configuration process." "$LINENO" 5 fi +done + + for ac_header in X11/Intrinsic.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Intrinsic.h" "ac_cv_header_X11_Intrinsic_h" "$ac_includes_default" +if test "x$ac_cv_header_X11_Intrinsic_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_X11_INTRINSIC_H 1 +_ACEOF + +else + as_fn_error $? "The header could not be found. Install Xt development package and re-start the configuration process." "$LINENO" 5 +fi + done oa_use_x=yes -- cgit v1.2.3