diff --git a/x11/aclocal.m4 b/x11/aclocal.m4 index 2d599a5a..6ab0e8f2 100644 --- a/x11/aclocal.m4 +++ b/x11/aclocal.m4 @@ -10,7 +10,6 @@ dnl MH_SHARED_LIBRARY dnl MH_HOWTO_DYN_LINK dnl MH_CHECK_CC_O dnl MH_SHLPST -dnl MH_CHECK_MAX_SIGNALS dnl --------------------------------------------------------------------------- dnl Set up the correct X header file location @@ -552,30 +551,3 @@ esac AC_SUBST(SHLPST) AC_MSG_RESULT($SHLPST) ]) - -dnl --------------------------------------------------------------------------- -dnl Determine the system limit for number of signals -dnl --------------------------------------------------------------------------- -AC_DEFUN([MH_CHECK_MAX_SIGNALS], -[ -save_CPPFLAGS="$CPPFLAGS" -CPPFLAGS="$CPPFLAGS $SYS_DEFS" -AC_MSG_CHECKING(for maximum signal specifier:) -AC_CACHE_VAL(mh_cv_max_signals, -mh_found="no" -for mh_sigs in $1; do - AC_TRY_COMPILE([#include ], -[return $mh_sigs;], - mh_found="yes"; mh_cv_max_signals="$mh_sigs" ) - if test "$mh_found" = "yes"; then - break; - fi -done) -CPPFLAGS="$save_CPPFLAGS" -if test "$mh_found" = "no"; then - AC_MSG_ERROR(Cannot find a system limit for number of signals. PDCurses cannot be configured on this machine.) -else - AC_DEFINE_UNQUOTED(PDC_MAX_SIGNALS,$mh_cv_max_signals) - AC_MSG_RESULT($mh_cv_max_signals) -fi -])dnl diff --git a/x11/config.h.in b/x11/config.h.in index 90aca6bc..97ee54f1 100644 --- a/x11/config.h.in +++ b/x11/config.h.in @@ -24,9 +24,6 @@ /* Define if you have the header file */ #undef HAVE_XPM_H -/* Define as the system defined limit for number of signals */ -#undef PDC_MAX_SIGNALS - /* Define if you want to use neXtaw library */ #undef USE_NEXTAW diff --git a/x11/configure b/x11/configure index f8bc22a7..547ea7cd 100755 --- a/x11/configure +++ b/x11/configure @@ -3116,51 +3116,6 @@ case "$target" in esac - -save_CPPFLAGS="$CPPFLAGS" -CPPFLAGS="$CPPFLAGS $SYS_DEFS" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maximum signal specifier:" >&5 -$as_echo_n "checking for maximum signal specifier:... " >&6; } -if ${mh_cv_max_signals+:} false; then : - $as_echo_n "(cached) " >&6 -else - mh_found="no" -for mh_sigs in NSIG __sys_nsig; do - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -return $mh_sigs; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - mh_found="yes"; mh_cv_max_signals="$mh_sigs" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - if test "$mh_found" = "yes"; then - break; - fi -done -fi - -CPPFLAGS="$save_CPPFLAGS" -if test "$mh_found" = "no"; then - as_fn_error $? "Cannot find a system limit for number of signals. PDCurses cannot be configured on this machine." "$LINENO" 5 -else - cat >>confdefs.h <<_ACEOF -#define PDC_MAX_SIGNALS $mh_cv_max_signals -_ACEOF - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_max_signals" >&5 -$as_echo "$mh_cv_max_signals" >&6; } -fi - - if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 @@ -3379,6 +3334,7 @@ fi + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -4556,7 +4512,7 @@ if test "$DYN_COMP" = ""; then $as_echo_n "checking compiler flags for a dynamic object... " >&6; } cat > conftest.$ac_ext <&6; } mh_compile='${CC-cc} -c $DYN_COMP conftest.$ac_ext 1>&5' cat > conftest.$ac_ext <