mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-23 07:15:05 +00:00
No more checking for max signals.
This commit is contained in:
28
x11/aclocal.m4
vendored
28
x11/aclocal.m4
vendored
@@ -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 <signal.h>],
|
||||
[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
|
||||
|
||||
@@ -24,9 +24,6 @@
|
||||
/* Define if you have the <xpm.h> 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
|
||||
|
||||
|
||||
50
x11/configure
vendored
50
x11/configure
vendored
@@ -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 <signal.h>
|
||||
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 <<EOF
|
||||
#line 4559 "configure"
|
||||
#line 4515 "configure"
|
||||
int a=0
|
||||
EOF
|
||||
|
||||
@@ -4595,7 +4551,7 @@ $as_echo "none of $mh_cv_flags supported" >&6; }
|
||||
|
||||
mh_compile='${CC-cc} -c $DYN_COMP conftest.$ac_ext 1>&5'
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 4598 "configure"
|
||||
#line 4554 "configure"
|
||||
int foo()
|
||||
{
|
||||
return(0);
|
||||
|
||||
@@ -31,8 +31,6 @@ case "$target" in
|
||||
esac
|
||||
AC_SUBST(SYS_DEFS)
|
||||
|
||||
MH_CHECK_MAX_SIGNALS(NSIG __sys_nsig)
|
||||
|
||||
dnl Check for other programs.
|
||||
AC_PROG_RANLIB
|
||||
AC_PROG_INSTALL
|
||||
|
||||
Reference in New Issue
Block a user