X-Git-Url: http://git.jankratochvil.net/?p=mdsms.git;a=blobdiff_plain;f=configure.in;h=26fc971ccf14c3b4aef99ca131667664288e02bf;hp=e90c5d6d111dbdede845269db1759dcb269d4659;hb=ccae85e6528209df1411f090dd02193f6dd91030;hpb=ac11bc9838ab29cd6b65168ebae994e8f03f1f43;ds=sidebyside diff --git a/configure.in b/configure.in index e90c5d6..26fc971 100644 --- a/configure.in +++ b/configure.in @@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(mdsms.c) -AM_INIT_AUTOMAKE(mdsms, 1.5.0) +AM_INIT_AUTOMAKE(mdsms, 1.5.1) AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE @@ -34,7 +34,7 @@ dnl Checks for programs. AC_PROG_CC if test "$USE_MAINTAINER_MODE" = yes;then if test "$GCC" = yes;then - CFLAGS="$CFLAGS -Wall -ansi -pedantic -ggdb" + CFLAGS="$CFLAGS -Wall -ansi -pedantic -ggdb3" if test x$efence != xno;then AC_CHECK_LIB(efence, EF_Exit) fi @@ -110,7 +110,7 @@ fi AC_CHECK_HEADERS(assert.h ctype.h errno.h fcntl.h limits.h signal.h stdarg.h) AC_CHECK_HEADERS(stdio.h stdlib.h string.h sys/poll.h sys/stat.h sys/time.h) -AC_CHECK_HEADERS(sys/types.h termios.h time.h unistd.h) +AC_CHECK_HEADERS(sys/types.h sys/wait.h termios.h time.h unistd.h) AC_CHECK_FUNC(MAX, AC_DEFINE(HAVE_MAX) , AC_CHECK_FUNC(max, AC_DEFINE(MAX, max) AC_DEFINE(HAVE_MAX)) @@ -144,6 +144,21 @@ AC_TRY_COMPILE([ AC_DEFINE(HAVE_CBAUDEX) AC_MSG_RESULT(yes), AC_DEFINE(CBAUDEX, 0) AC_MSG_RESULT(no)) +AC_MSG_CHECKING([for CRTSCTS]) +AC_TRY_COMPILE([ +#ifdef HAVE_TERMIOS_H +#include +#endif], [CRTSCTS;], + AC_DEFINE(HAVE_CRTSCTS) AC_MSG_RESULT(yes),[ + if test "$USE_MAINTAINER_MODE" = yes ;then + AC_DEFINE(HAVE_CRTSCTS) AC_MSG_RESULT(faked for maintainer) + # from "RedHat: glibc-devel-2.2-5/bits/termios.h" + AC_DEFINE(CRTSCTS, 020000000000) + else + AC_DEFINE(CRTSCTS, 0) AC_MSG_RESULT(no) + fi + ]) + AC_MSG_CHECKING([for FD_SETSIZE]) AC_TRY_COMPILE([ #ifdef HAVE_SYS_TIME_H