tracker r2033 - branches/indexer-split



Author: mr
Date: Fri Aug  8 08:58:43 2008
New Revision: 2033
URL: http://svn.gnome.org/viewvc/tracker?rev=2033&view=rev

Log:
	* configure.ac: Improved the check for ioprio. Patch by Laurent
	Aguerreche.


Modified:
   branches/indexer-split/ChangeLog
   branches/indexer-split/configure.ac

Modified: branches/indexer-split/configure.ac
==============================================================================
--- branches/indexer-split/configure.ac	(original)
+++ branches/indexer-split/configure.ac	Fri Aug  8 08:58:43 2008
@@ -668,21 +668,27 @@
 # Check ioprio support
 ####################################################################
 
-AC_MSG_CHECKING([[checking ioprio support]])
+AC_MSG_CHECKING([[ioprio support]])
 have_ioprio=no
-AC_RUN_IFELSE([ AC_LANG_PROGRAM([[
+AC_RUN_IFELSE([ AC_LANG_PROGRAM(
+   [[
 #include <stdlib.h>
 #include <errno.h> 
 #include <sys/syscall.h>
 #include <unistd.h>
+   ]],
+   [[
 inline int ioprio_get (int which, int who)
 {
 	return syscall (__NR_ioprio_get, which, who);
 }
-   ]], [[
-exit(ioprio_get(1,0));
-   ]]) ], 
-   [ AC_DEFINE(HAVE_IOPRIO,[],[Define ioprio support]) have_ioprio=yes ])
+int main ()
+{
+        return ioprio_get (1, 0);
+}
+   ]]) ],
+   [ AC_DEFINE(HAVE_IOPRIO,[],[Define ioprio support]) have_ioprio=yes ],
+   [])
 AC_MSG_RESULT([$have_ioprio])
 
 ##################################################################



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]