diff options
author | Cy Schubert <cy@FreeBSD.org> | 2016-08-31 00:08:49 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2016-08-31 00:08:49 +0000 |
commit | ca57057f598bfc7119f79f71bf38ec88244ab396 (patch) | |
tree | 051f78ef258707b493cc7cb21569b6949915f6c7 /m4/macros/os_cppflags.m4 | |
parent | e66b16bf080ead1c51f321eaf56710c771778706 (diff) |
Notes
Diffstat (limited to 'm4/macros/os_cppflags.m4')
-rw-r--r-- | m4/macros/os_cppflags.m4 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/m4/macros/os_cppflags.m4 b/m4/macros/os_cppflags.m4 new file mode 100644 index 000000000000..cd8ae8ba1655 --- /dev/null +++ b/m4/macros/os_cppflags.m4 @@ -0,0 +1,18 @@ +dnl ###################################################################### +dnl Specify additional cpp options based on the OS and the compiler +AC_DEFUN([AMU_OS_CPPFLAGS], +[ +AC_CACHE_CHECK(additional preprocessor flags, +ac_cv_os_cppflags, +[ +case "${host_os}" in +# off for now, posix may be a broken thing for nextstep3... +# nextstep* ) +# ac_cv_os_cppflags="-D_POSIX_SOURCE" +# ;; + * ) ac_cv_os_cppflags="" ;; +esac +]) +CPPFLAGS="$CPPFLAGS $ac_cv_os_cppflags" +]) +dnl ====================================================================== |