xref: /netbsd-src/crypto/external/bsd/heimdal/dist/cf/krb-sys-nextstep.m4 (revision 7a6a7ae08ac6c612f0fbb0d4425825c6be2a9050)
1dnl $Id: krb-sys-nextstep.m4,v 1.1.1.1 2011/04/13 18:14:32 elric Exp $
2dnl
3dnl NEXTSTEP is not posix compliant by default,
4dnl you need a switch -posix to the compiler
5dnl
6
7AC_DEFUN([rk_SYS_NEXTSTEP], [
8AC_CACHE_CHECK(for NeXTSTEP, rk_cv_sys_nextstep, [
9AC_EGREP_CPP(yes,
10[#if defined(NeXT) && !defined(__APPLE__)
11	yes
12#endif
13], rk_cv_sys_nextstep=yes, rk_cv_sys_nextstep=no)])
14if test "$rk_cv_sys_nextstep" = "yes"; then
15  CFLAGS="$CFLAGS -posix"
16  LIBS="$LIBS -posix"
17fi
18])
19