configure: Check for error.h
For portability, check for error.h during configure and define HAVE_ERROR_H accordingly. If this header is not available, emulate the functionality of error() from glibc with an inline wrapper in include/c.h.
This commit is contained in:
@@ -137,6 +137,8 @@ dnl else
|
||||
dnl ALL_LINGUAS="af am ar as be bg bn_IN bn ca cs cy da de el en_GB es et eu_ES fa fi fr gl gu he hi hr hu hy id is it ja ka kn ko ku lo lt lv mk ml mr ms my nb nl nn no nso or pa pl pt_BR pt ro ru si sk sl sq sr@Latn sr sv ta te th tr uk ur vi zh_CN zh_TW zu"
|
||||
dnl fi
|
||||
|
||||
AC_CHECK_HEADERS(error.h, [], [], AC_INCLUDES_DEFAULT)
|
||||
|
||||
AC_CHECK_HEADERS(stdio_ext.h, [], [], AC_INCLUDES_DEFAULT)
|
||||
|
||||
AC_MSG_CHECKING(whether program_invocation_name is defined)
|
||||
|
Reference in New Issue
Block a user