diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2006-11-02 19:19:08 +0000 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2006-11-02 19:19:08 +0000 |
commit | 22623192bacd539306fa22fc2128f7cdf2146ae5 (patch) | |
tree | 29f5c3b7c2839cf230557180f96905e57b087d03 /configure.in | |
parent | 524ddfcb34c2050f008a4797357c5c2abc48ca55 (diff) |
* configure.in: Add a check for DIR *dirp->dd_fd
* dbus/dbus-sysdeps-util-unix: if HAVE_DDFD is defined use
DIR *dirp->dd_fd else use DIR *dirp->__dd_fd. This takes care
of both Solaris and Irix
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/configure.in b/configure.in index b4759b47..51a7fa85 100644 --- a/configure.in +++ b/configure.in @@ -526,10 +526,8 @@ AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)]) AC_CHECK_FUNCS(vsnprintf vasprintf nanosleep usleep poll setenv unsetenv socketpair getgrouplist fpathconf) - - AC_MSG_CHECKING(for dirfd) -AC_TRY_COMPILE([ +AC_TRY_LINK([ #include <sys/types.h> #include <dirent.h> ],[ @@ -542,6 +540,23 @@ dbus_have_dirfd=yes, dbus_have_dirfd=no) AC_MSG_RESULT($dbus_have_dirfd) if test "$dbus_have_dirfd" = yes; then AC_DEFINE(HAVE_DIRFD,1,[Have dirfd function]) +else + AC_MSG_CHECKING(for DIR *dirp->dd_fd) + AC_TRY_LINK([ +#include <sys/types.h> +#include <dirent.h> + ],[ +DIR *dirp; +int fd; +dirp = opendir("."); +fd = dirp->dd_fd; +closedir(dirp); + ], + dbus_have_ddfd=yes, dbus_have_ddfd=no) + AC_MSG_RESULT($dbus_have_ddfd) + if test "$dbus_have_ddfd" = yes; then + AC_DEFINE(HAVE_DDFD,1,[Have the ddfd member of DIR]) + fi fi AC_CHECK_HEADERS(execinfo.h, [AC_CHECK_FUNCS(backtrace)]) |