]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
ignore-pam-module-if-no-headers-20030701
authorPeter Breitenlohner <peb@mppmu.mpg.de>
Tue, 1 Jul 2003 20:27:54 +0000 (20:27 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 1 Jul 2003 20:27:54 +0000 (20:27 +0000)
FIXES 1649

we check for pam headers; use the result

Makefile.in
acinclude.m4

index d5504b29af4a3ba4ea1a8727eb6afa40aafb1a95..29483e536b257da0068e00b81b00e963167c8476 100644 (file)
@@ -269,7 +269,11 @@ login: cmd comerr kauth rxkad
        amd64_linux24) \
                echo Skipping pam/login for amd64_linux24 ;; \
        sun4x_* | sunx86_* | hp_ux11* | ia64_hpux* | *linux* | *fbsd* ) \
-               ${COMPILE_PART1} pam ${COMPILE_PART2} ;; \
+               if test "@HAVE_PAM@" = "yes"; then \
+                       ${COMPILE_PART1} pam ${COMPILE_PART2} ; \
+               else \
+                       echo Skipping pam for ${SYS_NAME} ; \
+               fi ;; \
        ppc_darwin* | *_obsd* | *_nbsd* | hp_ux* | rs_aix5* ) \
                echo Skipping login for ${SYS_NAME} ;; \
        * ) \
index ed87cb000e9d8c260f45e8bf90594b515097440b..dc23b9bbf0c38568dd8eb22b91a8bd708bd292a0 100644 (file)
@@ -784,6 +784,13 @@ AC_CHECK_HEADERS(sys/mount.h strings.h termios.h signal.h)
 AC_CHECK_HEADERS(windows.h malloc.h winsock2.h direct.h io.h)
 AC_CHECK_HEADERS(security/pam_modules.h siad.h usersec.h ucontext.h)
 
+if test "$ac_cv_header_security_pam_modules_h" = "yes"; then
+       HAVE_PAM="yes"
+else
+       HAVE_PAM="no"
+fi
+AC_SUBST(HAVE_PAM)
+
 AC_CHECK_FUNCS(utimes random srandom getdtablesize snprintf strlcat strlcpy re_comp re_exec)
 AC_CHECK_FUNCS(setprogname getprogname sigaction mkstemp vsnprintf)
 AC_CHECK_TYPE(ssize_t, int)