]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/blobdiff - configure.ac
Only run vfork() tests if it's available.
[coloredstderr/coloredstderr.git] / configure.ac
index ec5b65898d6d14f161557937e89f17406eb71732..e17afdf7dbf41d4265fb4d2b9159c402a037e54a 100644 (file)
@@ -43,6 +43,7 @@ AC_TYPE_SIZE_T
 AC_TYPE_SSIZE_T
 
 AC_C_INLINE
+AX_C___ATTRIBUTE__
 
 AC_FUNC_FORK
 AC_CHECK_FUNCS([dup2 memmove setenv strdup])
@@ -65,6 +66,7 @@ AC_ARG_ENABLE([debug],
 
 dnl Used in tests/Makefile.am to build the test only if error() is available.
 AM_CONDITIONAL([HAVE_ERROR_H],[test "x$ac_cv_header_error_h" = xyes])
+AM_CONDITIONAL([HAVE_VFORK],[test "x$ac_cv_func_vfork_works" = xyes])
 
 AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile])
 AC_OUTPUT