diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 7bb96270a..6cfacd2db 100644 --- a/configure.in +++ b/configure.in | |||
@@ -53,6 +53,9 @@ case "$host" in | |||
53 | AC_DEFINE(DISABLE_SHADOW) | 53 | AC_DEFINE(DISABLE_SHADOW) |
54 | fi | 54 | fi |
55 | ;; | 55 | ;; |
56 | *-*-solaris*) | ||
57 | AC_DEFINE(USE_UTMPX) | ||
58 | ;; | ||
56 | esac | 59 | esac |
57 | 60 | ||
58 | dnl Check for OpenSSL/SSLeay directories. | 61 | dnl Check for OpenSSL/SSLeay directories. |
@@ -101,11 +104,14 @@ AC_ARG_WITH(pam, | |||
101 | [ --without-pam Disable PAM support ], | 104 | [ --without-pam Disable PAM support ], |
102 | [ | 105 | [ |
103 | if test "x$withval" != "xno" ; then | 106 | if test "x$withval" != "xno" ; then |
104 | AC_CHECK_LIB(dl, dlopen, , ) | 107 | no_pam=1 |
105 | AC_CHECK_LIB(pam, pam_authenticate, , ) | ||
106 | fi | 108 | fi |
107 | ] | 109 | ] |
108 | ) | 110 | ) |
111 | if test -z "$no_pam" ; then | ||
112 | AC_CHECK_LIB(dl, dlopen, , ) | ||
113 | AC_CHECK_LIB(pam, pam_authenticate, , ) | ||
114 | fi | ||
109 | 115 | ||
110 | dnl Checks for header files. | 116 | dnl Checks for header files. |
111 | AC_CHECK_HEADERS(endian.h lastlog.h login.h maillock.h netgroup.h paths.h poll.h pty.h shadow.h util.h utmp.h utmpx.h sys/bsdtty.h sys/poll.h sys/select.h sys/stropts.h sys/time.h sys/ttcompat.h) | 117 | AC_CHECK_HEADERS(endian.h lastlog.h login.h maillock.h netgroup.h paths.h poll.h pty.h shadow.h util.h utmp.h utmpx.h sys/bsdtty.h sys/poll.h sys/select.h sys/stropts.h sys/time.h sys/ttcompat.h) |