Commit 77aab542 authored by John Palmieri's avatar John Palmieri

* configure.in: check for dirfd even if it is a macro

  (Patch from Timothy Redaelli <drizzt at gufi dot org>)
parent c6465198
2006-10-11 John (J5) Palmieri <johnp@redhat.com>
* configure.in: check for dirfd even if it is a macro
(Patch from Timothy Redaelli <drizzt at gufi dot org>)
2006-10-08 John (J5) Palmieri <johnp@redhat.com>
* configure.in: define _POSIX_PTHREAD_SEMANTICS on solaris
......
......@@ -510,7 +510,24 @@ fi
AC_CHECK_LIB(socket,socket)
AC_CHECK_LIB(nsl,gethostbyname)
AC_CHECK_FUNCS(vsnprintf vasprintf nanosleep usleep poll setenv unsetenv socketpair getgrouplist fpathconf dirfd)
AC_CHECK_FUNCS(vsnprintf vasprintf nanosleep usleep poll setenv unsetenv socketpair getgrouplist fpathconf)
AC_CACHE_CHECK([for dirfd],
ac_cv_func_dirfd,
[AC_TRY_RUN([
#include <sys/types.h>
#include <dirent.h>
int main () {
DIR *dirp;
dirp = opendir(".");
dirfd(dirp);
closedir(dirp);
}],
ac_cv_func_dirfd=yes,
ac_cv_func_dirfd=no)])
if test "$ac_cv_func_dirfd" = yes; then
AC_DEFINE(HAVE_DIRFD,1,[Have dirfd function])
fi
AC_CHECK_HEADERS(execinfo.h, [AC_CHECK_FUNCS(backtrace)])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment