diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-04-22 09:44:15 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-04-22 09:44:15 +0100 |
commit | 792e2856c9774cca262929f81b9adbbac0fa1d13 (patch) | |
tree | c927674a3d170e26b763d3774e382efa130ff966 /configure.ac | |
parent | a46ccbd883495d2acb3eab89e5bcdb61c0c7e195 (diff) | |
download | rtmux-792e2856c9774cca262929f81b9adbbac0fa1d13.tar.gz rtmux-792e2856c9774cca262929f81b9adbbac0fa1d13.tar.bz2 rtmux-792e2856c9774cca262929f81b9adbbac0fa1d13.zip |
Add compat for cfmakeraw, from Dagobert Michelsen.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index b4f76f5f..80cf1266 100644 --- a/configure.ac +++ b/configure.ac @@ -313,6 +313,13 @@ if test "x$found_strnvis" = xyes; then fi AM_CONDITIONAL(NO_VIS, [test "x$found_strnvis" = xno]) +# Look for cfmakeraw, compat/cfmakeraw.c used if missing. +AC_CHECK_FUNC(cfmakeraw, found_cfmakeraw=yes, found_cfmakeraw=no) +if test "x$found_cfmakeraw" = xyes; then + AC_DEFINE(HAVE_CFMAKERAW) +fi +AM_CONDITIONAL(NO_CFMAKERAW, [test "x$found_cfmakeraw" = xno]) + # Look for getopt. glibc's getopt does not enforce argument order and the ways # of making it do so are stupid, so just use our own instead. AC_CHECK_FUNC(getopt, found_getopt=yes, found_getopt=no) @@ -345,6 +352,7 @@ AC_CHECK_FUNCS( dirfd \ setproctitle \ sysconf \ + cfmakeraw \ ] ) |