]> git.proxmox.com Git - mirror_spl.git/blobdiff - configure
Linux 3.1 compat, kern_path_parent()
[mirror_spl.git] / configure
index 1369ca05d96fc64dc243f3efd2cea07a455dfce7..beeb6d59d6e552c4566bff22df772fcb482887d3 100755 (executable)
--- a/configure
+++ b/configure
@@ -15684,6 +15684,34 @@ _ACEOF
 
 
 
+
+       { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5
+$as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
+       header=0
+       for file in include/linux/namei.h; do
+               grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
+               rc=$?
+               if test $rc -eq 0; then
+                       header=1
+                       break;
+               fi
+       done
+       if test $header -eq 0; then
+               { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+
+       else
+               { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_KERN_PATH_PARENT_HEADER 1
+_ACEOF
+
+       fi
+
+
+
        { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent is exported" >&5
 $as_echo_n "checking whether symbol kern_path_parent is exported... " >&6; }
        grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
@@ -15709,7 +15737,7 @@ $as_echo "no" >&6; }
 $as_echo "yes" >&6; }
 
 cat >>confdefs.h <<\_ACEOF
-#define HAVE_KERN_PATH_PARENT 1
+#define HAVE_KERN_PATH_PARENT_SYMBOL 1
 _ACEOF
 
                fi
@@ -15718,7 +15746,7 @@ _ACEOF
 $as_echo "yes" >&6; }
 
 cat >>confdefs.h <<\_ACEOF
-#define HAVE_KERN_PATH_PARENT 1
+#define HAVE_KERN_PATH_PARENT_SYMBOL 1
 _ACEOF
 
        fi
@@ -19885,6 +19913,34 @@ _ACEOF
 
 
 
+
+       { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5
+$as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
+       header=0
+       for file in include/linux/namei.h; do
+               grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
+               rc=$?
+               if test $rc -eq 0; then
+                       header=1
+                       break;
+               fi
+       done
+       if test $header -eq 0; then
+               { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+
+       else
+               { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_KERN_PATH_PARENT_HEADER 1
+_ACEOF
+
+       fi
+
+
+
        { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent is exported" >&5
 $as_echo_n "checking whether symbol kern_path_parent is exported... " >&6; }
        grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
@@ -19910,7 +19966,7 @@ $as_echo "no" >&6; }
 $as_echo "yes" >&6; }
 
 cat >>confdefs.h <<\_ACEOF
-#define HAVE_KERN_PATH_PARENT 1
+#define HAVE_KERN_PATH_PARENT_SYMBOL 1
 _ACEOF
 
                fi
@@ -19919,7 +19975,7 @@ _ACEOF
 $as_echo "yes" >&6; }
 
 cat >>confdefs.h <<\_ACEOF
-#define HAVE_KERN_PATH_PARENT 1
+#define HAVE_KERN_PATH_PARENT_SYMBOL 1
 _ACEOF
 
        fi