=================================================================== RCS file: config.h.in,v retrieving revision 1.1 diff -u -r1.1 config.h.in --- config.h.in 2012/07/20 09:02:02 1.1 +++ config.h.in 2012/07/20 09:02:51 @@ -30,6 +30,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_ERR_H +/* Define to 1 if you have the header file. */ +#undef HAVE_ERRNO_H + /* Define to 1 if you have the `getexecname' function. */ #undef HAVE_GETEXECNAME =================================================================== RCS file: common/compat.h,v retrieving revision 1.1 diff -u -r1.1 common/compat.h --- common/compat.h 2012/07/20 09:03:41 1.1 +++ common/compat.h 2012/07/20 09:04:32 @@ -76,4 +76,8 @@ #endif /* !HAVE_ERR_H */ +#ifdef HAVE_ERRNO_H +#include +#endif /* HAVE_ERRNO_H */ + #endif /* __COMPAT_H__ */ =================================================================== RCS file: configure.ac,v retrieving revision 1.1 diff -u -r1.1 configure.ac --- configure.ac 2012/07/20 09:11:03 1.1 +++ configure.ac 2012/07/31 14:40:03 @@ -65,8 +65,10 @@ [AC_MSG_ERROR([could not find pthread_mutex_lock])]) AC_SEARCH_LIBS([dlopen], [dl dld], [], [AC_MSG_ERROR([could not find dlopen])]) + AC_SEARCH_LIBS([nanosleep], [rt], [], + [AC_MSG_ERROR([could not find nanosleep])]) AC_CHECK_MEMBERS([struct dirent.d_type],,,[#include ]) - AC_CHECK_HEADERS([err.h]) + AC_CHECK_HEADERS([err.h errno.h]) AC_CHECK_FUNCS([getprogname getexecname]) # Check if these are declared and/or available to link against