Changeset 4790


Ignore:
Timestamp:
12/09/11 00:22:41 (19 months ago)
Author:
pterjan
Message:

Disable pam lock for all OSX versions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/configure.ac

    r4391 r4790  
    7373AC_CHECK_HEADERS(stdio.h pty.h sys/ioctl.h sys/ptrace.h sys/stat.h sys/syscall.h sys/user.h sys/wait.h linux/kdev_t.h linux/major.h security/pam_appl.h security/pam_misc.h) 
    7474 
    75 if test $host_os != "darwin10.2.0"; then  
    76 AC_CHECK_LIB(pam, pam_authenticate, 
    77  [PAM_LIBS="${PAM_LIBS} -lpam" 
    78   AC_DEFINE(USE_LOCK, 1, [Locking the PTY is supported])]) 
     75case $host_os in 
     76  darwin*) 
     77    AC_MSG_RESULT(Disabling lock support on OSX) ;; 
     78  *) 
     79    AC_CHECK_LIB(pam, pam_authenticate, 
     80      [PAM_LIBS="${PAM_LIBS} -lpam" 
     81      AC_DEFINE(USE_LOCK, 1, [Locking the PTY is supported])]) ;; 
     82esac 
    7983AC_SUBST(PAM_LIBS) 
    80 else 
    81 AC_MSG_RESULT(Disabling lock support on OSX) 
    82 fi 
    8384 
    8485AC_CHECK_LIB(m, sin, MATH_LIBS="${MATH_LIBS} -lm") 
Note: See TracChangeset for help on using the changeset viewer.