[Pvfs2-cvs] commit by slang in pvfs2: configure pvfs2-config.h.in

CVS commit program cvs at parl.clemson.edu
Thu Feb 1 21:40:11 EST 2007


Update of /projects/cvsroot/pvfs2
In directory parlweb1:/tmp/cvs-serv4842

Modified Files:
	configure pvfs2-config.h.in 
Log Message:
commit checks for kzalloc that older kernels don't support


Index: configure
===================================================================
RCS file: /projects/cvsroot/pvfs2/configure,v
diff -p -u -r1.329 -r1.330
--- configure	2 Feb 2007 02:08:52 -0000	1.329
+++ configure	2 Feb 2007 02:40:10 -0000	1.330
@@ -12534,6 +12534,81 @@ rm -f conftest.err conftest.$ac_objext c
 
 	CFLAGS=$oldcflags
 
+		{ echo "$as_me:$LINENO: checking for kzalloc" >&5
+echo $ECHO_N "checking for kzalloc... $ECHO_C" >&6; }
+	cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+		#define __KERNEL__
+		#include <linux/slab.h>
+
+int
+main ()
+{
+
+		void * a;
+		a = kzalloc(1024);
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compile") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+  { (case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_try") 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; } &&
+	 { ac_try='test -s conftest.$ac_objext'
+  { (case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_try") 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+	{ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_KZALLOC 1
+_ACEOF
+
+
+fi
+
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+
 
 
 BUILD_ABSOLUTE_TOP=`pwd`

Index: pvfs2-config.h.in
===================================================================
RCS file: /projects/cvsroot/pvfs2/pvfs2-config.h.in,v
diff -p -u -r1.93 -r1.94
--- pvfs2-config.h.in	2 Feb 2007 02:08:53 -0000	1.93
+++ pvfs2-config.h.in	2 Feb 2007 02:40:11 -0000	1.94
@@ -144,6 +144,9 @@
 /* Define if kmem_cache_destroy returns int */
 #undef HAVE_KMEM_CACHE_DESTROY_INT_RETURN
 
+/* Define if kzalloc exists */
+#undef HAVE_KZALLOC
+
 /* Define to 1 if you have the `efence' library (-lefence). */
 #undef HAVE_LIBEFENCE
 



More information about the Pvfs2-cvs mailing list