diff options
author | Philipp Schroer <hebipp1@googlemail.com> | 2014-05-09 23:09:29 +0200 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-05-09 14:43:23 -0700 |
commit | cd7f1a15f86fd045d069d256ea7333d14c2913fa (patch) | |
tree | 05c65f5baae30cc328a8a599ee9331b497cfa3b1 /configure.ac | |
parent | fa68c2619fe844395287c33c9109f6decb322410 (diff) |
Automatically add include paths for ncurses on Cygwin
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 68b53c20..40693d6e 100644 --- a/configure.ac +++ b/configure.ac @@ -213,6 +213,16 @@ if test `uname` != "Darwin"; then LDFLAGS_FISH="$LDFLAGS_FISH -rdynamic" fi +# +# On Cygwin, we need to add some flags for ncurses. +# +case `uname` in + CYGWIN*) + echo "adding flags for ncurses on Cygwin" + CXXFLAGS="$CXXFLAGS -I/usr/include -I/usr/include/ncursesw" + LDFLAGS_FISH="$LDFLAGS_FISH -L/usr/lib/ncursesw" + ;; +esac # # If we are compiling against glibc, set some flags to work around |