Ignore:
Timestamp:
Dec 13, 2011, 11:17:42 PM (8 years ago)
Author:
Pascal Terjan
Message:

Test pam_misc.h location instead of checking for OSX

File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/configure.ac

    r4791 r4794  
    7171  AC_MSG_ERROR([you need libcaca version 0.99.beta17 or later])])
    7272
    73 AC_CHECK_HEADERS(libutil.h util.h 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)
     73AC_CHECK_HEADERS(libutil.h util.h 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 pam/pam_appl.h pam/pam_misc.h)
    7474
    75 case $host_os in
    76   darwin*)
    77     AC_MSG_RESULT(Disabling lock support on OSX) ;;
    78   *)
     75if test "${ac_cv_header_security_pam_misc_h}" = "yes" -o "${ac_cv_header_pam_pam_misc_h}" = "yes"; then
    7976    AC_CHECK_LIB(pam, pam_authenticate,
    8077      [PAM_LIBS="${PAM_LIBS} -lpam"
    81       AC_DEFINE(USE_LOCK, 1, [Locking the PTY is supported])]) ;;
    82 esac
     78      AC_DEFINE(USE_LOCK, 1, [Locking the PTY is supported])])
     79fi
    8380AC_SUBST(PAM_LIBS)
    8481
Note: See TracChangeset for help on using the changeset viewer.