[PATCH app-xdm 23/23] config: look for PAM support on darwin as well

Gaetan Nadon memsize at videotron.ca
Wed Sep 1 11:04:26 PDT 2010


There is an assumption that PAM support is not available on darwin.
A quick browse on the net indicates otherwise. It won't hurt
to do an AC_SEARCH_LIBS to find out.

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 configure.ac |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/configure.ac b/configure.ac
index c04c676..72b23a2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -79,17 +79,8 @@ AC_CHECK_DECL(key_setnet,
 #include <rpc/key_prot.h>
 ])
 
-# darwin could have PAM support, but not yet
-case $host_os in
-    darwin*)
-        use_pam_default=no
-        ;;
-    *)
-        use_pam_default=try
-        ;;
-esac
-
 # Check for PAM support
+use_pam_default=try
 AC_ARG_WITH(pam, AC_HELP_STRING([--with-pam],[Use PAM for authentication]),
 	[USE_PAM=$withval], [USE_PAM=$use_pam_default])
 if test "x$USE_PAM" != "xno" ; then
-- 
1.6.0.4



More information about the xorg-devel mailing list