|
Lines 469-474
AC_CHECK_HEADERS([sys/un.h], [], [], [
Link Here
|
| 469 |
SIA_MSG="no" |
469 |
SIA_MSG="no" |
| 470 |
SPC_MSG="no" |
470 |
SPC_MSG="no" |
| 471 |
SP_MSG="no" |
471 |
SP_MSG="no" |
|
|
472 |
SPP_MSG="no" |
| 473 |
|
| 474 |
# Support for Solaris/Illumos privileges (this test is used by both |
| 475 |
# the --with-solaris-privs option and --with-sandbox=solaris). |
| 476 |
SOLARIS_PRIVS="no" |
| 472 |
|
477 |
|
| 473 |
# Check for some target-specific stuff |
478 |
# Check for some target-specific stuff |
| 474 |
case "$host" in |
479 |
case "$host" in |
|
Lines 575-580
case "$host" in
Link Here
|
| 575 |
LIBS="$LIBS /usr/lib/textreadmode.o" |
580 |
LIBS="$LIBS /usr/lib/textreadmode.o" |
| 576 |
AC_DEFINE([HAVE_CYGWIN], [1], [Define if you are on Cygwin]) |
581 |
AC_DEFINE([HAVE_CYGWIN], [1], [Define if you are on Cygwin]) |
| 577 |
AC_DEFINE([USE_PIPES], [1], [Use PIPES instead of a socketpair()]) |
582 |
AC_DEFINE([USE_PIPES], [1], [Use PIPES instead of a socketpair()]) |
|
|
583 |
AC_DEFINE([NO_UID_RESTORATION_TEST], [1], |
| 584 |
[Define to disable UID restoration test]) |
| 578 |
AC_DEFINE([DISABLE_SHADOW], [1], |
585 |
AC_DEFINE([DISABLE_SHADOW], [1], |
| 579 |
[Define if you want to disable shadow passwords]) |
586 |
[Define if you want to disable shadow passwords]) |
| 580 |
AC_DEFINE([NO_X11_UNIX_SOCKETS], [1], |
587 |
AC_DEFINE([NO_X11_UNIX_SOCKETS], [1], |
|
Lines 889-901
mips-sony-bsd|mips-sony-newsos4)
Link Here
|
| 889 |
else |
896 |
else |
| 890 |
AC_MSG_RESULT([no]) |
897 |
AC_MSG_RESULT([no]) |
| 891 |
fi |
898 |
fi |
|
|
899 |
AC_CHECK_FUNC([setppriv], |
| 900 |
[ AC_CHECK_HEADERS([priv.h], [ |
| 901 |
SOLARIS_PRIVS="yes" |
| 902 |
]) |
| 903 |
]) |
| 892 |
AC_ARG_WITH([solaris-contracts], |
904 |
AC_ARG_WITH([solaris-contracts], |
| 893 |
[ --with-solaris-contracts Enable Solaris process contracts (experimental)], |
905 |
[ --with-solaris-contracts Enable Solaris process contracts (experimental)], |
| 894 |
[ |
906 |
[ |
| 895 |
AC_CHECK_LIB([contract], [ct_tmpl_activate], |
907 |
AC_CHECK_LIB([contract], [ct_tmpl_activate], |
| 896 |
[ AC_DEFINE([USE_SOLARIS_PROCESS_CONTRACTS], [1], |
908 |
[ AC_DEFINE([USE_SOLARIS_PROCESS_CONTRACTS], [1], |
| 897 |
[Define if you have Solaris process contracts]) |
909 |
[Define if you have Solaris process contracts]) |
| 898 |
SSHDLIBS="$SSHDLIBS -lcontract" |
910 |
LIBS="$LIBS -lcontract" |
| 899 |
SPC_MSG="yes" ], ) |
911 |
SPC_MSG="yes" ], ) |
| 900 |
], |
912 |
], |
| 901 |
) |
913 |
) |
|
Lines 905-914
mips-sony-bsd|mips-sony-newsos4)
Link Here
|
| 905 |
AC_CHECK_LIB([project], [setproject], |
917 |
AC_CHECK_LIB([project], [setproject], |
| 906 |
[ AC_DEFINE([USE_SOLARIS_PROJECTS], [1], |
918 |
[ AC_DEFINE([USE_SOLARIS_PROJECTS], [1], |
| 907 |
[Define if you have Solaris projects]) |
919 |
[Define if you have Solaris projects]) |
| 908 |
SSHDLIBS="$SSHDLIBS -lproject" |
920 |
LIBS="$LIBS -lproject" |
| 909 |
SP_MSG="yes" ], ) |
921 |
SP_MSG="yes" ], ) |
| 910 |
], |
922 |
], |
| 911 |
) |
923 |
) |
|
|
924 |
AC_ARG_WITH([solaris-privs], |
| 925 |
[ --with-solaris-privs Enable Solaris/Illumos privileges (experimental)], |
| 926 |
[ |
| 927 |
AC_MSG_CHECKING([for Solaris/Illumos privilege support]) |
| 928 |
if test "x$SOLARIS_PRIVS" = "xyes" ; then |
| 929 |
AC_MSG_RESULT([found]) |
| 930 |
AC_DEFINE([NO_UID_RESTORATION_TEST], [1], |
| 931 |
[Define to disable UID restoration test]) |
| 932 |
AC_DEFINE([USE_SOLARIS_PRIVS], [1], |
| 933 |
[Define if you have Solaris privileges]) |
| 934 |
SPP_MSG="yes" |
| 935 |
else |
| 936 |
AC_MSG_RESULT([not found]) |
| 937 |
AC_MSG_ERROR([*** must have support for Solaris privileges to use --with-solaris-privs]) |
| 938 |
fi |
| 939 |
], |
| 940 |
) |
| 912 |
TEST_SHELL=$SHELL # let configure find us a capable shell |
941 |
TEST_SHELL=$SHELL # let configure find us a capable shell |
| 913 |
;; |
942 |
;; |
| 914 |
*-*-sunos4*) |
943 |
*-*-sunos4*) |
|
Lines 3155-3160
elif test "x$sandbox_arg" = "xrlimit" || \
Link Here
|
| 3155 |
AC_MSG_ERROR([rlimit sandbox requires select to work with rlimit]) |
3184 |
AC_MSG_ERROR([rlimit sandbox requires select to work with rlimit]) |
| 3156 |
SANDBOX_STYLE="rlimit" |
3185 |
SANDBOX_STYLE="rlimit" |
| 3157 |
AC_DEFINE([SANDBOX_RLIMIT], [1], [Sandbox using setrlimit(2)]) |
3186 |
AC_DEFINE([SANDBOX_RLIMIT], [1], [Sandbox using setrlimit(2)]) |
|
|
3187 |
elif test "x$sandbox_arg" = "xsolaris" || \ |
| 3188 |
( test -z "$sandbox_arg" && test "x$SOLARIS_PRIVS" = "xyes" ) ; then |
| 3189 |
SANDBOX_STYLE="solaris" |
| 3190 |
AC_DEFINE([SANDBOX_SOLARIS], [1], [Sandbox using Solaris/Illumos privileges]) |
| 3158 |
elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \ |
3191 |
elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \ |
| 3159 |
test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then |
3192 |
test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then |
| 3160 |
SANDBOX_STYLE="none" |
3193 |
SANDBOX_STYLE="none" |
|
Lines 4944-4949
echo " MD5 password support: $MD5_MSG"
Link Here
|
| 4944 |
echo " libedit support: $LIBEDIT_MSG" |
4977 |
echo " libedit support: $LIBEDIT_MSG" |
| 4945 |
echo " Solaris process contract support: $SPC_MSG" |
4978 |
echo " Solaris process contract support: $SPC_MSG" |
| 4946 |
echo " Solaris project support: $SP_MSG" |
4979 |
echo " Solaris project support: $SP_MSG" |
|
|
4980 |
echo " Solaris privilege support: $SPP_MSG" |
| 4947 |
echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" |
4981 |
echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" |
| 4948 |
echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" |
4982 |
echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" |
| 4949 |
echo " BSD Auth support: $BSD_AUTH_MSG" |
4983 |
echo " BSD Auth support: $BSD_AUTH_MSG" |