]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
open-vm-tools: enable PAM check for non-Linux builds.
authorVMware, Inc <>
Mon, 26 Sep 2011 18:08:22 +0000 (11:08 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 26 Sep 2011 18:08:22 +0000 (11:08 -0700)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/configure.ac

index 201cc8de52194b7b891ef7fd2428b9c1f55db7ae..8f4c5c6099d828f2c03ed38dca08ebf8e68c2c52 100644 (file)
@@ -382,25 +382,23 @@ AC_VMW_CHECK_LIB([fuse],
 #
 # Check for PAM.
 #
-if test "$os" = "linux"; then
-   AC_ARG_WITH([pam],
-      [AS_HELP_STRING([--without-pam],
-      [compiles without PAM support.])],
-      [],
-      [with_pam=yes])
+AC_ARG_WITH([pam],
+   [AS_HELP_STRING([--without-pam],
+   [compiles without PAM support.])],
+   [],
+   [with_pam=yes])
 
-   if test "$with_pam" = "yes"; then
-      AC_VMW_DEFAULT_FLAGS([PAM])
-      AC_VMW_CHECK_LIB([pam],
-                       [PAM],
-                       [],
-                       [],
-                       [],
-                       [security/pam_appl.h],
-                       [pam_start],
-                       [PAM_CPPFLAGS="$PAM_CPPFLAGS -DUSE_PAM"],
-                       [AC_VMW_LIB_ERROR([PAM], [pam])])
-   fi
+if test "$with_pam" = "yes"; then
+   AC_VMW_DEFAULT_FLAGS([PAM])
+   AC_VMW_CHECK_LIB([pam],
+                    [PAM],
+                    [],
+                    [],
+                    [],
+                    [security/pam_appl.h],
+                    [pam_start],
+                    [PAM_CPPFLAGS="$PAM_CPPFLAGS -DUSE_PAM"],
+                    [AC_VMW_LIB_ERROR([PAM], [pam])])
 fi
 
 #