diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 68 |
1 files changed, 30 insertions, 38 deletions
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" |