xref: /netbsd-src/external/bsd/am-utils/dist/m4/macros/os_cppflags.m4 (revision a53f50b9b44dc9467ccc9c464999b1d1c509cb0c)
1*a53f50b9Schristosdnl ######################################################################
2*a53f50b9Schristosdnl Specify additional cpp options based on the OS and the compiler
3*a53f50b9SchristosAC_DEFUN([AMU_OS_CPPFLAGS],
4*a53f50b9Schristos[
5*a53f50b9SchristosAC_CACHE_CHECK(additional preprocessor flags,
6*a53f50b9Schristosac_cv_os_cppflags,
7*a53f50b9Schristos[
8*a53f50b9Schristoscase "${host_os}" in
9*a53f50b9Schristos# off for now, posix may be a broken thing for nextstep3...
10*a53f50b9Schristos#	nextstep* )
11*a53f50b9Schristos#		ac_cv_os_cppflags="-D_POSIX_SOURCE"
12*a53f50b9Schristos#		;;
13*a53f50b9Schristos	* )	ac_cv_os_cppflags="" ;;
14*a53f50b9Schristosesac
15*a53f50b9Schristos])
16*a53f50b9SchristosCPPFLAGS="$CPPFLAGS $ac_cv_os_cppflags"
17*a53f50b9Schristos])
18*a53f50b9Schristosdnl ======================================================================
19