summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-05-28 18:31:42 +1000
committerDarren Tucker <dtucker@zip.com.au>2005-05-28 18:31:42 +1000
commitfd33328a253f2db759e4728935a323b44ea2159d (patch)
tree655e8db8d3fa7b15a46e19c00a99bbbe98ef65eb
parent7d2171b2cd9633bfc7a8fb64a327630dc1a4ad9c (diff)
- (dtucker) [configure.ac] Merge HP-UX blocks into a common block with minor
version-specific variations as required.
-rw-r--r--ChangeLog4
-rw-r--r--configure.ac68
2 files changed, 33 insertions, 39 deletions
diff --git a/ChangeLog b/ChangeLog
index 2cce70628..6d734d4cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@
5 for its presence and include it in the strsep check. 5 for its presence and include it in the strsep check.
6 - (dtucker) [configure.ac] getpgrp may be defined in unistd.h, so check for 6 - (dtucker) [configure.ac] getpgrp may be defined in unistd.h, so check for
7 its presence before doing AC_FUNC_GETPGRP. 7 its presence before doing AC_FUNC_GETPGRP.
8 - (dtucker) [configure.ac] Merge HP-UX blocks into a common block with minor
9 version-specific variations as required.
8 10
920050527 1120050527
10 - (djm) [defines.h] Use our realpath if we have to define PATH_MAX, spotted by 12 - (djm) [defines.h] Use our realpath if we have to define PATH_MAX, spotted by
@@ -2623,4 +2625,4 @@
2623 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 2625 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
2624 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 2626 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
2625 2627
2626$Id: ChangeLog,v 1.3795 2005/05/28 06:57:00 dtucker Exp $ 2628$Id: ChangeLog,v 1.3796 2005/05/28 08:31:42 dtucker Exp $
diff --git a/configure.ac b/configure.ac
index 863531f7e..73d81d438 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
1# $Id: configure.ac,v 1.267 2005/05/28 06:57:00 dtucker Exp $ 1# $Id: configure.ac,v 1.268 2005/05/28 08:31:42 dtucker Exp $
2# 2#
3# Copyright (c) 1999-2004 Damien Miller 3# Copyright (c) 1999-2004 Damien Miller
4# 4#
@@ -190,26 +190,8 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
190 AC_DEFINE(BROKEN_SETREGID) 190 AC_DEFINE(BROKEN_SETREGID)
191 AC_DEFINE_UNQUOTED(BIND_8_COMPAT, 1) 191 AC_DEFINE_UNQUOTED(BIND_8_COMPAT, 1)
192 ;; 192 ;;
193*-*-hpux10.26) 193*-*-hpux*)
194 if test -z "$GCC"; then 194 # first we define all of the options common to all HP-UX releases
195 CFLAGS="$CFLAGS -Ae"
196 fi
197 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
198 IPADDR_IN_DISPLAY=yes
199 AC_DEFINE(HAVE_SECUREWARE)
200 AC_DEFINE(USE_PIPES)
201 AC_DEFINE(LOGIN_NO_ENDOPT)
202 AC_DEFINE(LOGIN_NEEDS_UTMPX)
203 AC_DEFINE(LOCKED_PASSWD_STRING, "*")
204 AC_DEFINE(SPT_TYPE,SPT_PSTAT)
205 LIBS="$LIBS -lsec -lsecpw"
206 AC_CHECK_LIB(xnet, t_error, ,AC_MSG_ERROR([*** -lxnet needed on HP-UX - check config.log ***]))
207 disable_ptmx_check=yes
208 ;;
209*-*-hpux10*)
210 if test -z "$GCC"; then
211 CFLAGS="$CFLAGS -Ae"
212 fi
213 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" 195 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
214 IPADDR_IN_DISPLAY=yes 196 IPADDR_IN_DISPLAY=yes
215 AC_DEFINE(USE_PIPES) 197 AC_DEFINE(USE_PIPES)
@@ -218,23 +200,33 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
218 AC_DEFINE(LOCKED_PASSWD_STRING, "*") 200 AC_DEFINE(LOCKED_PASSWD_STRING, "*")
219 AC_DEFINE(SPT_TYPE,SPT_PSTAT) 201 AC_DEFINE(SPT_TYPE,SPT_PSTAT)
220 LIBS="$LIBS -lsec" 202 LIBS="$LIBS -lsec"
221 AC_CHECK_LIB(xnet, t_error, ,AC_MSG_ERROR([*** -lxnet needed on HP-UX - check config.log ***])) 203 AC_CHECK_LIB(xnet, t_error, ,
222 ;; 204 AC_MSG_ERROR([*** -lxnet needed on HP-UX - check config.log ***]))
223*-*-hpux11*) 205
224 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" 206 # next, we define all of the options specific to major releases
225 IPADDR_IN_DISPLAY=yes 207 case "$host" in
226 AC_DEFINE(PAM_SUN_CODEBASE) 208 *-*-hpux10*)
227 AC_DEFINE(USE_PIPES) 209 if test -z "$GCC"; then
228 AC_DEFINE(LOGIN_NO_ENDOPT) 210 CFLAGS="$CFLAGS -Ae"
229 AC_DEFINE(LOGIN_NEEDS_UTMPX) 211 fi
230 AC_DEFINE(DISABLE_UTMP) 212 ;;
231 AC_DEFINE(LOCKED_PASSWD_STRING, "*") 213 *-*-hpux11*)
232 AC_DEFINE(SPT_TYPE,SPT_PSTAT) 214 AC_DEFINE(PAM_SUN_CODEBASE)
233 AC_DEFINE(USE_BTMP, 1, [Use btmp to log bad logins]) 215 AC_DEFINE(DISABLE_UTMP)
234 check_for_hpux_broken_getaddrinfo=1 216 AC_DEFINE(USE_BTMP, 1, [Use btmp to log bad logins])
235 check_for_conflicting_getspnam=1 217 check_for_hpux_broken_getaddrinfo=1
236 LIBS="$LIBS -lsec" 218 check_for_conflicting_getspnam=1
237 AC_CHECK_LIB(xnet, t_error, ,AC_MSG_ERROR([*** -lxnet needed on HP-UX - check config.log ***])) 219 ;;
220 esac
221
222 # lastly, we define options specific to minor releases
223 case "$host" in
224 *-*-hpux10.26)
225 AC_DEFINE(HAVE_SECUREWARE)
226 disable_ptmx_check=yes
227 LIBS="$LIBS -lsecpw"
228 ;;
229 esac
238 ;; 230 ;;
239*-*-irix5*) 231*-*-irix5*)
240 PATH="$PATH:/usr/etc" 232 PATH="$PATH:/usr/etc"