diff options
author | PHO <pho@cielonegro.org> | 2015-02-23 03:40:05 -0600 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2015-02-23 03:40:05 -0600 |
commit | bbb57a6b3a31c22a5a24fa4b92abbe13a6736ad8 (patch) | |
tree | cc0ba1fdb266cd3e232b6bd75d7ced9fdcb934e8 /aclocal.m4 | |
parent | 0fa20726b0587530712677e50a56c2b03ba43095 (diff) | |
download | haskell-bbb57a6b3a31c22a5a24fa4b92abbe13a6736ad8.tar.gz |
Make top-level "configure" accept and propagate --with-curses-{includes,libraries} to libraries
Summary:
If curses is installed into some non-standard path, we currently have
to say something like the following in mk/build.mk:
libraries/terminfo_CONFIGURE_OPTS += \
--configure-option=--with-curses-includes=/somewhere/include \
--configure-option=--with-curses-libraries=/somewhere/lib
This is because the top-level configure does not accept nor propagate
--with-curses-{includes,libraries} to libraries while it does so for
iconv, gmp and libffi. It would be nice if curses were handled in the
same manner.
Test Plan: Install curses into some non-standard path. Then run the top-level "configure" script with options "--with-curses-includes=/path/to/curses/include" and "--with-curses-libraries=/path/to/curses/lib".
Reviewers: austin
Reviewed By: austin
Subscribers: thomie, PHO
Differential Revision: https://phabricator.haskell.org/D665
GHC Trac Issues: #10096
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index cb4aa83ec3..73b8890075 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1826,6 +1826,28 @@ AC_DEFUN([FP_GMP], AC_SUBST(GMP_LIB_DIRS) ])# FP_GMP +# FP_CURSES +# ------------- +AC_DEFUN([FP_CURSES], +[ + dnl-------------------------------------------------------------------- + dnl * Deal with arguments telling us curses is somewhere odd + dnl-------------------------------------------------------------------- + + AC_ARG_WITH([curses-includes], + [AC_HELP_STRING([--with-curses-includes], + [directory containing curses headers])], + [CURSES_INCLUDE_DIRS=$withval]) + + AC_ARG_WITH([curses-libraries], + [AC_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 + # -------------------------------------------------------------- # Calculate absolute path to build tree # -------------------------------------------------------------- |