]> source.dussan.org Git - tigervnc.git/commitdiff
OS X has the PAM library, but only 10.6 has the headers, so check for those. NOTE...
authorDRC <dcommander@users.sourceforge.net>
Thu, 30 Sep 2010 07:41:56 +0000 (07:41 +0000)
committerDRC <dcommander@users.sourceforge.net>
Thu, 30 Sep 2010 07:41:56 +0000 (07:41 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4149 3789f03b-4d11-0410-bbf8-ca57d06f2519

configure.ac

index 4ea0706314d28464b3ab00b0b94f6442720fffd7..a5ebbff62b92279ee79667e79e02390bb272781e 100644 (file)
@@ -87,8 +87,10 @@ AC_SUBST([GNUTLS_LIBS])
 AM_CONDITIONAL([HAVE_GNUTLS], [ ! test "x$GNUTLS_LIBS" = x ])
 
 AC_CHECK_LIB([pam], [pam_start], 
-            [PAM_LIBS='-lpam'
-             AC_DEFINE(HAVE_PAM, 1, [PAM available])])
+            [AC_CHECK_HEADER([security/pam_appl.h],
+                            [PAM_LIBS='-lpam'
+                             AC_DEFINE(HAVE_PAM, 1, [PAM available])],
+                            [], [#include <stdio.h>])])
 AC_SUBST([PAM_LIBS])
 AM_CONDITIONAL([HAVE_PAM], [ ! test "x$PAM_LIBS" = x ])