pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat/files We only need to step carefu...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9d7ad4e81757
branches:  trunk
changeset: 460622:9d7ad4e81757
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Sep 02 01:45:14 2003 +0000

description:
We only need to step carefully in the Solaris case for statfs(), but
otherwise we can trust statfs() if it's on the system.

diffstat:

 pkgtools/libnbcompat/files/configure    |  12 ++++++------
 pkgtools/libnbcompat/files/configure.ac |  10 +++++-----
 2 files changed, 11 insertions(+), 11 deletions(-)

diffs (56 lines):

diff -r 5af901ab6c22 -r 9d7ad4e81757 pkgtools/libnbcompat/files/configure
--- a/pkgtools/libnbcompat/files/configure      Tue Sep 02 01:37:04 2003 +0000
+++ b/pkgtools/libnbcompat/files/configure      Tue Sep 02 01:45:14 2003 +0000
@@ -6621,10 +6621,7 @@
 if test $ac_cv_func_statfs = yes; then
 
        case $host_os in
-       linux*|freebsd*|netbsd*)
-               pkg_have_nbcompat_statfs=no
-               ;;
-       *)
+       sunos*|solaris*)
                echo "$as_me:$LINENO: checking for statvfs" >&5
 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
 if test "${ac_cv_func_statvfs+set}" = set; then
@@ -6701,13 +6698,16 @@
   :
 else
 
-                       { { echo "$as_me:$LINENO: error: statfs isn't supported and can't be implemented" >&5
-echo "$as_me: error: statfs isn't supported and can't be implemented" >&2;}
+                       { { echo "$as_me:$LINENO: error: statfs can't be implemented correctly" >&5
+echo "$as_me: error: statfs can't be implemented correctly" >&2;}
    { (exit 1); exit 1; }; }
 
 fi
 
                ;;
+       *)
+               pkg_have_nbcompat_statfs=no
+               ;;
        esac
 
 fi
diff -r 5af901ab6c22 -r 9d7ad4e81757 pkgtools/libnbcompat/files/configure.ac
--- a/pkgtools/libnbcompat/files/configure.ac   Tue Sep 02 01:37:04 2003 +0000
+++ b/pkgtools/libnbcompat/files/configure.ac   Tue Sep 02 01:45:14 2003 +0000
@@ -98,13 +98,13 @@
 pkg_have_nbcompat_statfs=yes
 AC_CHECK_FUNC(statfs, [
        case $host_os in
-       linux*|freebsd*|netbsd*)
-               pkg_have_nbcompat_statfs=no
+       sunos*|solaris*)
+               AC_CHECK_FUNC(statvfs, [:], [
+                       AC_MSG_ERROR(statfs can't be implemented correctly)
+               ])
                ;;
        *)
-               AC_CHECK_FUNC(statvfs, [:], [
-                       AC_MSG_ERROR(statfs isn't supported and can't be implemented)
-               ])
+               pkg_have_nbcompat_statfs=no
                ;;
        esac
 ])



Home | Main Index | Thread Index | Old Index