mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
configure: don't try PAM support on anything other than Linux and NetBSD
It's not supported on OpenBSD and and FreeBSD, though maybe in the future...?
This commit is contained in:
parent
3c95af9871
commit
73cf4157b5
1 changed files with 12 additions and 2 deletions
|
@ -80,6 +80,9 @@ dnl other things as we go along.
|
||||||
EXTRA_LIBS=""
|
EXTRA_LIBS=""
|
||||||
EXTRA_INCS=""
|
EXTRA_INCS=""
|
||||||
|
|
||||||
|
# pam currently only works on netbsd (9.2 tested) and linux
|
||||||
|
supports_pam=no
|
||||||
|
|
||||||
case "${host_os}" in
|
case "${host_os}" in
|
||||||
linux*)
|
linux*)
|
||||||
build_linux=yes
|
build_linux=yes
|
||||||
|
@ -87,6 +90,7 @@ case "${host_os}" in
|
||||||
OSMINORVERSION=15
|
OSMINORVERSION=15
|
||||||
SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -D_POSIX_SOURCE \
|
SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -D_POSIX_SOURCE \
|
||||||
-D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE"
|
-D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE"
|
||||||
|
supports_pam=yes
|
||||||
;;
|
;;
|
||||||
freebsd*)
|
freebsd*)
|
||||||
build_freebsd=yes
|
build_freebsd=yes
|
||||||
|
@ -108,6 +112,7 @@ case "${host_os}" in
|
||||||
bsd=yes
|
bsd=yes
|
||||||
OSMAJORVERSION=8
|
OSMAJORVERSION=8
|
||||||
OSMINORVERSION=0
|
OSMINORVERSION=0
|
||||||
|
supports_pam=yes
|
||||||
;;
|
;;
|
||||||
solaris*|sun*)
|
solaris*|sun*)
|
||||||
build_solaris=yes
|
build_solaris=yes
|
||||||
|
@ -461,9 +466,14 @@ dnl iconv
|
||||||
AM_ICONV
|
AM_ICONV
|
||||||
|
|
||||||
dnl figure out pam support
|
dnl figure out pam support
|
||||||
|
dnl Right now this only works on linux and netbsd (9.2 tested)
|
||||||
AC_CHECK_LIB(pam, pam_start,
|
if test "$supports_pam" = "yes"
|
||||||
|
then
|
||||||
|
AC_CHECK_LIB(pam, pam_start,
|
||||||
[SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -DHAS_PAM_LIBRARY"])
|
[SOURCE_CPP_DEFINES="${SOURCE_CPP_DEFINES} -DHAS_PAM_LIBRARY"])
|
||||||
|
else
|
||||||
|
AC_CHECK_LIB(pam, NOTSUPPORTED)
|
||||||
|
fi
|
||||||
|
|
||||||
AM_CONDITIONAL([HAS_PAM_LIBRARY], [test "x$ac_cv_lib_pam_pam_start" = "xyes"])
|
AM_CONDITIONAL([HAS_PAM_LIBRARY], [test "x$ac_cv_lib_pam_pam_start" = "xyes"])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue