bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SIGWINCH configure check


From: Mark E.
Subject: SIGWINCH configure check
Date: Mon, 13 Aug 2001 00:08:51 -0400

Hi,
This patch turns off SIGWINCH support if a system doesn't support it. 
Tested with DJGPP.

*** configure.in.orig   Sun Aug 12 18:03:34 2001
--- configure.in        Mon Aug 13 00:04:50 2001
*************** AC_ARG_ENABLE(sigwinch,
*** 629,634 ****
--- 629,639 ----
        [  --enable-sigwinch       compile with SIGWINCH handler],
        [with_sigwinch=$enableval],
        [with_sigwinch=$with_ext_funcs])
+ dnl Don't use SIGWINCH logic when the system doesn't have SIGWINCH.
+ if test "$with_sigwinch" = yes; then
+       AC_TRY_COMPILE([#include <signal.h>], [exit(SIGWINCH)],,
+                      [with_sigwinch=no])
+ fi
  AC_MSG_RESULT($with_sigwinch)
  test "$with_sigwinch" = yes && AC_DEFINE(USE_SIGWINCH)
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]