]> andersk Git - openssh.git/blobdiff - configure.ac
- (dtucker) [configure.ac includes.h] Bug #947: Fix compile error on HP-UX
[openssh.git] / configure.ac
index 39a38dc774c023eeb05661d564a1ef239f6b0990..91cf8f7ef2c8053168b84e1549de280206976d49 100644 (file)
@@ -220,6 +220,7 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
        AC_DEFINE(LOCKED_PASSWD_STRING, "*")
        AC_DEFINE(SPT_TYPE,SPT_PSTAT)
        check_for_hpux_broken_getaddrinfo=1
+       check_for_conflicting_getspnam=1
        LIBS="$LIBS -lsec"
        AC_CHECK_LIB(xnet, t_error, ,AC_MSG_ERROR([*** -lxnet needed on HP-UX - check config.log ***]))
        ;;
@@ -1123,6 +1124,24 @@ main(void)
        )
 fi
 
+if test "x$check_for_conflicting_getspnam" = "x1"; then
+       AC_MSG_CHECKING(for conflicting getspnam in shadow.h)
+       AC_COMPILE_IFELSE(
+               [
+#include <shadow.h>
+int main(void) {exit(0);}
+               ],
+               [
+                       AC_MSG_RESULT(no)
+               ],
+               [
+                       AC_MSG_RESULT(yes)
+                       AC_DEFINE(GETSPNAM_CONFLICTING_DEFS, 1,
+                           [Conflicting defs for getspnam])
+               ]
+       )
+fi
+
 AC_FUNC_GETPGRP
 
 # Check for PAM libs
This page took 0.039081 seconds and 4 git commands to generate.