From 599356843bb48d7b6c1601c9a5239452445923ab Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Mon, 24 Sep 2012 13:43:51 +0000 Subject: [PATCH] Minix does not have pselect(). This is also good time to refactor xmlrpc-c dependency check in main configure.in script. --- configure.in | 11 +++++++++++ ede-bug-tools/ede-bug-report/xmlrpc-c/xmlrpc_config.h | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 48f6679..c54a83e 100644 --- a/configure.in +++ b/configure.in @@ -56,6 +56,17 @@ AC_PATH_XTRA AC_HEADER_STDC +dnl for xmlrpc-c +AC_CHECK_FUNC(pselect, AC_DEFINE(HAVE_PSELECT, 1, [Define to 1 if you have pselect()])) +AC_CHECK_FUNC(setgroups, AC_DEFINE(HAVE_SETGROUPS, 1, [Define to 1 if you have setgroups()])) +AC_CHECK_FUNC(asprintf, AC_DEFINE(HAVE_ASPRINTF, 1, [Define to 1 if you have asprintf()])) +AC_CHECK_FUNC(setenv, AC_DEFINE(HAVE_SETENV, 1, [Define to 1 if you have setenv()])) +AC_CHECK_FUNC(wcsncmp, AC_DEFINE(HAVE_WCSNCMP, 1, [Define to 1 if you have wcsncmp()])) +AC_CHECK_FUNC(gettimeofday, AC_DEFINE(HAVE_GETTIMEOFDAY, 1, [Define to 1 if you have gettimeofday()])) +AC_CHECK_FUNC(localtime_r, AC_DEFINE(HAVE_LOCALTIME_R, 1, [Define to 1 if you have localtime_r()])) +AC_CHECK_FUNC(gmtime_r, AC_DEFINE(HAVE_GMTIME_R, 1, [Define to 1 if you have gmtime_r()])) +AC_CHECK_FUNC(strcasecmp, AC_DEFINE(HAVE_STRCASECMP, 1, [Define to 1 if you have strcasecmp()])) + if test "$enable_profile" = "yes"; then enable_debug=yes fi diff --git a/ede-bug-tools/ede-bug-report/xmlrpc-c/xmlrpc_config.h b/ede-bug-tools/ede-bug-report/xmlrpc-c/xmlrpc_config.h index a5f1233..a49ce95 100644 --- a/ede-bug-tools/ede-bug-report/xmlrpc-c/xmlrpc_config.h +++ b/ede-bug-tools/ede-bug-report/xmlrpc-c/xmlrpc_config.h @@ -29,8 +29,9 @@ /* We hope to replace xmlrpc_amconfig.h some day with something that doesn't require a whole special set of software to build, to make Xmlrpc-c approachable by dumber developers. -*/ + #include "xmlrpc_amconfig.h" +*/ /* EDE top config file */ #ifdef HAVE_CONFIG_H