stdnoreturn: new module
[gnulib.git] / m4 / stdnoreturn.m4
1 # Check for stdnoreturn.h.
2
3 dnl Copyright 2011 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
7
8 AC_DEFUN([gl_STDNORETURN_H],
9 [
10   dnl Assume that a system-supplied stdnoreturn.h works if it exists.
11   AC_CHECK_HEADERS_ONCE([stdnoreturn.h])
12
13   if test "$ac_cv_header_stdnoreturn_h" = yes; then
14     STDNORETURN_H=''
15   else
16     STDNORETURN_H='stdnoreturn.h'
17   fi
18   AC_SUBST([STDNORETURN_H])
19
20   AM_CONDITIONAL([GL_GENERATE_STDNORETURN_H],
21     [test $ac_cv_header_stdnoreturn_h != yes])
22 ])