]> granicus.if.org Git - sudo/commitdiff
SIA becomes the default on Digital UNIX
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 25 Oct 1998 04:48:50 +0000 (04:48 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 25 Oct 1998 04:48:50 +0000 (04:48 +0000)
now havbe --disable-sia to turn it off...

configure.in

index 9c7a5ba3c8c1d50ba77ca4aff42f9fc14570dcbd..8bc67cf96a2719c4eb8b5630272eab305e4d06d1 100644 (file)
@@ -44,7 +44,8 @@ SUDOERS_UID=0
 AC_SUBST(SUDOERS_UID)dnl
 SUDOERS_GID=0
 AC_SUBST(SUDOERS_GID)dnl
-CHECKSHADOW="true"
+CHECKSHADOW=true
+CHECKSIA=true
 
 dnl
 dnl Override default configure dirs...
@@ -128,6 +129,7 @@ esac])
 AC_ARG_WITH(csops, [  --with-csops            add CSOps standard options],
 [case $with_csops in  
     yes)       echo 'Adding CSOps standard options'
+               CHECKSIA=false
                with_ignore_dot=yes
                with_insults=yes
                with_classic_insults=yes
@@ -233,18 +235,6 @@ AC_ARG_WITH(authenticate, [  --with-authenticate     enable AIX general authenti
                ;;
 esac])
 
-AC_ARG_WITH(sia, [  --with-sia              enable SIA support],
-[case $with_sia in
-    yes)       AC_DEFINE(HAVE_SIA)
-               AC_MSG_CHECKING(whether to use SIA authentication)
-               AC_MSG_RESULT(yes)
-               ;;
-    no)                ;;
-    *)         echo "Sorry, --with-sia does not take an argument."
-               exit 1
-               ;;
-esac])
-
 AC_ARG_WITH(pam, [  --with-pam              enable PAM support],
 [case $with_pam in
     yes)       AC_DEFINE(HAVE_PAM)
@@ -797,7 +787,7 @@ AC_ARG_ENABLE(shadow,
                CHECKSHADOW="false"
                ;;
     *)         AC_MSG_RESULT(no)
-               echo "Ignoring unknown argument to --enable-tgetpass: $enableval"
+               echo "Ignoring unknown argument to --enable-shadow: $enableval"
                ;;
   esac
 ], AC_MSG_RESULT(no))
@@ -1076,10 +1066,32 @@ case "$host" in
                # ignore envariables wrt dynamic lib path
                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
 
+               AC_MSG_CHECKING(whether to disable sia support on Digital UNIX)
+               AC_ARG_ENABLE(sia,
+               [  --disable-sia           Never use SIA on Digital UNIX],
+               [ case "$enableval" in
+                   yes)        AC_MSG_RESULT(no)
+                               ;;
+                   no)         AC_MSG_RESULT(yes)
+                               CHECKSIA=false
+                               ;;
+                   *)          AC_MSG_RESULT(no)
+                               echo "Ignoring unknown argument to --enable-sia: $enableval"
+                               ;;
+                 esac
+               ], AC_MSG_RESULT(no))
+
+               # use SIA by default, if we have it, else SecureWare
+               # unless overridden on the command line
+               if test "$CHECKSIA" = "true"; then
+                   AC_CHECK_FUNC(sia_ses_init, AC_DEFINE(HAVE_SIA))
+                   CHECKSHADOW="false"
+               fi
                if test "$CHECKSHADOW" = "true"; then
                    AC_CHECK_LIB(security, getprpwnam, SECUREWARE=1)
                    CHECKSHADOW="false"
                fi
+
                if test -n "$SECUREWARE"; then
                    # 4.x and higher need -ldb too...
                    AC_CHECK_LIB(db, dbopen, [SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"], [SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"])