aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@axiomatics.org>2016-02-07 04:24:58 -0800
committerGabriel Dos Reis <gdr@axiomatics.org>2016-02-07 04:24:58 -0800
commit8d09ae50338246da65f1f654b9e57206afe95d7f (patch)
tree20bfafa6049dc0237bebe16516648d530d50b541 /configure
parent51e79f0190ef9781ad2b695e413a96aad07eb7da (diff)
downloadopen-axiom-8d09ae50338246da65f1f654b9e57206afe95d7f.tar.gz
Fix #1
Add explicit check for <X11/Intrinsic.h>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 16 insertions, 1 deletions
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 <X11/xpm.h>
-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
@@ -19029,6 +19030,20 @@ 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 <X11/Intrinsic.h> could not be found. Install Xt development package and re-start the configuration process." "$LINENO" 5
+fi
+
+done
+
oa_use_x=yes
oa_c_runtime="$oa_c_runtime graphics"
LDFLAGS=$oa_saved_ldflags