2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Fix check for sys_sigabbrev.

This commit is contained in:
Todd C. Miller
2022-12-06 08:55:44 -07:00
parent 29c36a3c1d
commit fd6484917e
2 changed files with 23 additions and 20 deletions

40
configure vendored
View File

@@ -28078,26 +28078,8 @@ then :
else case e in #( else case e in #(
e) e)
ac_fn_check_decl "$LINENO" "_sys_signame" "ac_cv_have_decl__sys_signame" " ac_fn_check_decl "$LINENO" "_sys_signame" "ac_cv_have_decl__sys_signame" "
ac_fn_check_decl "$LINENO" "sys_sigabbrev" "ac_cv_have_decl_sys_sigabbrev" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl_sys_sigabbrev" = xyes
then :
ac_have_decl=1
else case e in #(
e) ac_have_decl=0 ;;
esac
fi
printf "%s\n" "#define HAVE_DECL_SYS_SIGABBREV $ac_have_decl" >>confdefs.h
if test $ac_have_decl = 1
then :
HAVE_SIGNAME=\"true\"
else case e in #(
e)
$ac_includes_default $ac_includes_default
#include <signal.h> #include <signal.h>
;;
esac
fi
" "$ac_c_undeclared_builtin_options" "CFLAGS" " "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl__sys_signame" = xyes if test "x$ac_cv_have_decl__sys_signame" = xyes
@@ -28111,6 +28093,28 @@ printf "%s\n" "#define HAVE_DECL__SYS_SIGNAME $ac_have_decl" >>confdefs.h
if test $ac_have_decl = 1 if test $ac_have_decl = 1
then : then :
HAVE_SIGNAME="true" HAVE_SIGNAME="true"
else case e in #(
e)
ac_fn_check_decl "$LINENO" "sys_sigabbrev" "ac_cv_have_decl_sys_sigabbrev" "
$ac_includes_default
#include <signal.h>
" "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl_sys_sigabbrev" = xyes
then :
ac_have_decl=1
else case e in #(
e) ac_have_decl=0 ;;
esac
fi
printf "%s\n" "#define HAVE_DECL_SYS_SIGABBREV $ac_have_decl" >>confdefs.h
if test $ac_have_decl = 1
then :
HAVE_SIGNAME="true"
fi
;;
esac
fi fi
;; ;;

View File

@@ -3419,8 +3419,7 @@ if test x"${ac_cv_func_sig2str}${ac_cv_func_str2sig}" != x"yesyes"; then
HAVE_SIGNAME="false" HAVE_SIGNAME="false"
AC_CHECK_DECLS([sys_signame], [HAVE_SIGNAME="true"], [ AC_CHECK_DECLS([sys_signame], [HAVE_SIGNAME="true"], [
AC_CHECK_DECLS([_sys_signame], [HAVE_SIGNAME="true"], [ AC_CHECK_DECLS([_sys_signame], [HAVE_SIGNAME="true"], [
], [ AC_CHECK_DECLS([sys_sigabbrev], [HAVE_SIGNAME="true"], [], [
AC_CHECK_DECLS([sys_sigabbrev], [HAVE_SIGNAME="true"], [] [
AC_INCLUDES_DEFAULT AC_INCLUDES_DEFAULT
#include <signal.h> #include <signal.h>
]) ])