diff options
Diffstat (limited to 'gl/m4/stddef_h.m4')
| -rw-r--r-- | gl/m4/stddef_h.m4 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gl/m4/stddef_h.m4 b/gl/m4/stddef_h.m4 index c3ae5694..5da8ab1e 100644 --- a/gl/m4/stddef_h.m4 +++ b/gl/m4/stddef_h.m4 | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | dnl A placeholder for POSIX 2008 <stddef.h>, for platforms that have issues. | 1 | dnl A placeholder for POSIX 2008 <stddef.h>, for platforms that have issues. |
| 2 | # stddef_h.m4 serial 2 | 2 | # stddef_h.m4 serial 4 |
| 3 | dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc. | 3 | dnl Copyright (C) 2009-2013 Free Software Foundation, Inc. |
| 4 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 5 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 6 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
| @@ -9,6 +9,7 @@ AC_DEFUN([gl_STDDEF_H], | |||
| 9 | [ | 9 | [ |
| 10 | AC_REQUIRE([gl_STDDEF_H_DEFAULTS]) | 10 | AC_REQUIRE([gl_STDDEF_H_DEFAULTS]) |
| 11 | AC_REQUIRE([gt_TYPE_WCHAR_T]) | 11 | AC_REQUIRE([gt_TYPE_WCHAR_T]) |
| 12 | STDDEF_H= | ||
| 12 | if test $gt_cv_c_wchar_t = no; then | 13 | if test $gt_cv_c_wchar_t = no; then |
| 13 | HAVE_WCHAR_T=0 | 14 | HAVE_WCHAR_T=0 |
| 14 | STDDEF_H=stddef.h | 15 | STDDEF_H=stddef.h |
| @@ -24,8 +25,10 @@ AC_DEFUN([gl_STDDEF_H], | |||
| 24 | REPLACE_NULL=1 | 25 | REPLACE_NULL=1 |
| 25 | STDDEF_H=stddef.h | 26 | STDDEF_H=stddef.h |
| 26 | fi | 27 | fi |
| 28 | AC_SUBST([STDDEF_H]) | ||
| 29 | AM_CONDITIONAL([GL_GENERATE_STDDEF_H], [test -n "$STDDEF_H"]) | ||
| 27 | if test -n "$STDDEF_H"; then | 30 | if test -n "$STDDEF_H"; then |
| 28 | gl_CHECK_NEXT_HEADERS([stddef.h]) | 31 | gl_NEXT_HEADERS([stddef.h]) |
| 29 | fi | 32 | fi |
| 30 | ]) | 33 | ]) |
| 31 | 34 | ||
| @@ -41,5 +44,4 @@ AC_DEFUN([gl_STDDEF_H_DEFAULTS], | |||
| 41 | dnl Assume proper GNU behavior unless another module says otherwise. | 44 | dnl Assume proper GNU behavior unless another module says otherwise. |
| 42 | REPLACE_NULL=0; AC_SUBST([REPLACE_NULL]) | 45 | REPLACE_NULL=0; AC_SUBST([REPLACE_NULL]) |
| 43 | HAVE_WCHAR_T=1; AC_SUBST([HAVE_WCHAR_T]) | 46 | HAVE_WCHAR_T=1; AC_SUBST([HAVE_WCHAR_T]) |
| 44 | STDDEF_H=''; AC_SUBST([STDDEF_H]) | ||
| 45 | ]) | 47 | ]) |
