dbus ChangeLog,1.1142,1.1143 configure.in,1.185,1.186

John Palmieri johnp at kemper.freedesktop.org
Wed Oct 11 18:05:18 PDT 2006


Update of /cvs/dbus/dbus
In directory kemper:/tmp/cvs-serv20273

Modified Files:
	ChangeLog configure.in 
Log Message:

* configure.in: use AC_TRY_COMPILE for dirfd instead of AC_TRY_RUN


Index: ChangeLog
===================================================================
RCS file: /cvs/dbus/dbus/ChangeLog,v
retrieving revision 1.1142
retrieving revision 1.1143
diff -u -d -r1.1142 -r1.1143
--- ChangeLog	11 Oct 2006 17:30:58 -0000	1.1142
+++ ChangeLog	12 Oct 2006 01:05:16 -0000	1.1143
@@ -1,5 +1,9 @@
 2006-10-11  John (J5) Palmieri  <johnp at redhat.com>
 
+	* configure.in: use AC_TRY_COMPILE for dirfd instead of AC_TRY_RUN
+
+2006-10-11  John (J5) Palmieri  <johnp at redhat.com>
+
 	* test/name-test/Makefile.am: don't link against both libdbus and
 	libdbus-convenience
 

Index: configure.in
===================================================================
RCS file: /cvs/dbus/dbus/configure.in,v
retrieving revision 1.185
retrieving revision 1.186
diff -u -d -r1.185 -r1.186
--- configure.in	11 Oct 2006 17:29:01 -0000	1.185
+++ configure.in	12 Oct 2006 01:05:16 -0000	1.186
@@ -512,20 +512,19 @@
 
 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([
+AC_MSG_CHECKING(for dirfd)
+AC_TRY_COMPILE([
 #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
+],[
+DIR *dirp;
+dirp = opendir(".");
+dirfd(dirp);
+closedir(dirp);
+], 
+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])
 fi
 



More information about the dbus-commit mailing list