changeset 1089:088c7d83f2f2 HEAD

Check for shadow.h before assuming shadow auth is possible.
author Timo Sirainen <tss@iki.fi>
date Mon, 03 Feb 2003 07:17:24 +0200
parents eedb1467ccb0
children c871ad112e19
files configure.in
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Mon Feb 03 07:11:16 2003 +0200
+++ b/configure.in	Mon Feb 03 07:17:24 2003 +0200
@@ -720,9 +720,11 @@
 
 if test $want_shadow = yes; then
 	AC_CHECK_FUNC(getspnam, [
-		need_crypt=yes
-		AC_DEFINE(PASSDB_SHADOW,, Build with shadow support)
-		passdb="$passdb shadow"
+		AC_CHECK_HEADER(shadow.h, [
+			need_crypt=yes
+			AC_DEFINE(PASSDB_SHADOW,, Build with shadow support)
+			passdb="$passdb shadow"
+		])
 	])
 fi