diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2016-09-02 22:05:06 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2016-09-02 22:05:06 +0100 |
commit | 727ce7e4bb19038b7952c7330b045ac6e1216ede (patch) | |
tree | 3cf1da2c026e053cd6ad520ab22252a1e02b34b2 | |
parent | 6c94774b70f72952c4c512e4aa59a207ca1c34f2 (diff) | |
download | rtmux-727ce7e4bb19038b7952c7330b045ac6e1216ede.tar.gz rtmux-727ce7e4bb19038b7952c7330b045ac6e1216ede.tar.bz2 rtmux-727ce7e4bb19038b7952c7330b045ac6e1216ede.zip |
Check for headers for ncurses and libevent as well as libraries.
-rw-r--r-- | configure.ac | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index c14a6e61..773a957f 100644 --- a/configure.ac +++ b/configure.ac @@ -95,12 +95,10 @@ AC_MSG_RESULT($found_glibc) AC_CHECK_HEADERS( [ \ bitstring.h \ - curses.h \ dirent.h \ fcntl.h \ inttypes.h \ libutil.h \ - ncurses.h \ ndir.h \ paths.h \ pty.h \ @@ -148,6 +146,11 @@ PKG_CHECK_MODULES( ) ] ) +AC_CHECK_HEADER( + event.h, + , + found_libevent=no +) if test "x$found_libevent" = xno; then AC_MSG_ERROR("libevent not found") fi @@ -170,6 +173,15 @@ PKG_CHECK_MODULES( ) ] ) +AC_CHECK_HEADER( + ncurses.h, + AC_DEFINE(HAVE_NCURSES_H), + AC_CHECK_HEADER( + curses.h, + AC_DEFINE(HAVE_CURSES_H), + found_curses=no + ) +) if test "x$found_curses" = xno; then AC_MSG_ERROR("curses not found") fi |