]> arthur.barton.de Git - netatalk.git/blobdiff - configure.in
fix cache size
[netatalk.git] / configure.in
index b90d14cea1284bb08224360b5937d4224c4417e4..125f51fb498359031a32969f961d72a92cc8accd 100644 (file)
@@ -828,7 +828,7 @@ if test x"$this_os" = "xsolaris"; then
 
        solaris_module=no
        AC_MSG_CHECKING([if we can build Solaris kernel module])
-       if test -x /usr/ccs/bin/ld; then
+       if test -x /usr/ccs/bin/ld && test x"$netatalk_cv_ddp_enabled" = x"yes" ; then
                solaris_module=yes
        fi
        AC_MSG_RESULT([$solaris_module])
@@ -1023,19 +1023,26 @@ AC_ARG_ENABLE(overwrite,
 AC_MSG_RESULT([$OVERWRITE_CONFIG])
 
 dnl --------------------- check for ACL support
-neta_cv_nfsv4acl="no"
 AC_MSG_CHECKING([if NFSv4 ACL Support should be enabled])
 AC_ARG_ENABLE(nfsv4acls,
-       [  --enable-nfsv4acls      enable NFSv4 ACL Support],[
+       [  --enable-nfsv4acls      enable NFSv4 ACL Support (auto)],[
        if test x"$enableval" = x"yes"; then
           AC_MSG_RESULT([yes])
           neta_cv_nfsv4acl="yes"
        else
           AC_MSG_RESULT([no])
+          neta_cv_nfsv4acl="no"
        fi],[
-          AC_MSG_RESULT([no])
+          AC_MSG_RESULT([auto])
+          neta_cv_nfsv4acl="yes"
        ]
 )
+
+if test x"$this_os" != x"solaris" && test x"$neta_cv_nfsv4acl" = x"yes" ; then
+               AC_MSG_NOTICE([NFSv4 ACL Support only available on (Open)Solaris])
+        neta_cv_nfsv4acl="no"
+fi
+
 if test x$neta_cv_nfsv4acl = xyes; then
        AC_CHECK_HEADER([ldap.h],,[
                AC_MSG_ERROR([ACL Support need the LDAP client headers not found.])
@@ -1085,6 +1092,22 @@ case "$this_os" in
                    [neta_cv_eas_sys_not_found=yes])
   ;;
 
+  'freebsd')
+    AC_CHECK_FUNCS([extattr_delete_fd extattr_delete_file extattr_delete_link],
+                   [neta_cv_eas_sys_found=yes],
+                   [neta_cv_eas_sys_not_found=yes])
+    AC_CHECK_FUNCS([extattr_get_fd extattr_get_file extattr_get_link],,
+                   [neta_cv_eas_sys_not_found=yes])
+    AC_CHECK_FUNCS([extattr_list_fd extattr_list_file extattr_list_link],,
+                   [neta_cv_eas_sys_not_found=yes])
+    AC_CHECK_FUNCS([extattr_set_fd extattr_set_file extattr_set_link],,
+                   [neta_cv_eas_sys_not_found=yes])
+  ;;
+
+  *freebsd4* | *dragonfly* )
+    AC_DEFINE(BROKEN_EXTATTR, 1, [Does extattr API work])
+  ;;
+
   *)
        AC_SEARCH_LIBS(getxattr, [attr])
 
@@ -1138,19 +1161,6 @@ if test x"$ac_cv_func_getxattr" = x"yes" ; then
        fi
 fi
 
-# Check if we have extattr
-case "$this_os" in
-  *freebsd4* | *dragonfly* )
-    AC_DEFINE(BROKEN_EXTATTR, 1, [Does extattr API work])
-    ;;
-  *)
-    AC_CHECK_FUNCS(extattr_delete_fd extattr_delete_file extattr_delete_link)
-    AC_CHECK_FUNCS(extattr_get_fd extattr_get_file extattr_get_link)
-    AC_CHECK_FUNCS(extattr_list_fd extattr_list_file extattr_list_link)
-    AC_CHECK_FUNCS(extattr_set_fd extattr_set_file extattr_set_link)
-    ;;
-esac
-
 if test "x$neta_cv_eas_sys_found" = "xyes" ; then
    if test "x$neta_cv_eas_sys_not_found" != "xyes" ; then
       neta_cv_eas="$neta_cv_eas | sys"