summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-10-27 01:12:02 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-11-17 05:11:03 -0500
commit4cec6cf284d65449bbdaf015fadd7768770ec52b (patch)
tree0ca7fc7caa2f64c1cfc9a2d86e5e041e1f676a56 /m4
parent20a4f2513d67a454edaa207bac97a9dd6f4db757 (diff)
downloadhaskell-4cec6cf284d65449bbdaf015fadd7768770ec52b.tar.gz
hadrian: Ensure that term.h is in include search path
terminfo now requires term.h but previously neither build system offered any way to add the containing directory to the include search path. Fix this in Hadrian. Also adds libnuma includes to global include search path as it was inexplicably missing earlier.
Diffstat (limited to 'm4')
-rw-r--r--m4/fp_curses.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/m4/fp_curses.m4 b/m4/fp_curses.m4
index a0c30637cb..36303f8937 100644
--- a/m4/fp_curses.m4
+++ b/m4/fp_curses.m4
@@ -6,10 +6,16 @@ AC_DEFUN([FP_CURSES],
dnl * Deal with arguments telling us curses is somewhere odd
dnl--------------------------------------------------------------------
+ AC_ARG_WITH([curses-includes],
+ [AS_HELP_STRING([--with-curses-includes],
+ [directory containing curses headers])],
+ [CURSES_INCLUDE_DIRS=$withval])
+
AC_ARG_WITH([curses-libraries],
[AS_HELP_STRING([--with-curses-libraries],
[directory containing curses libraries])],
[CURSES_LIB_DIRS=$withval])
+ AC_SUBST(CURSES_INCLUDE_DIRS)
AC_SUBST(CURSES_LIB_DIRS)
])# FP_CURSES