summaryrefslogtreecommitdiffstats
path: root/aclocal/nfs-utils.m4
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 06:03:02 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 06:03:02 +0000
commit4897093455a2bf08f3db3a1132cc2f6f5484d77c (patch)
tree9e6373544263f003139431fb4b08f9766e1ed530 /aclocal/nfs-utils.m4
parentInitial commit. (diff)
downloadnfs-utils-4897093455a2bf08f3db3a1132cc2f6f5484d77c.tar.xz
nfs-utils-4897093455a2bf08f3db3a1132cc2f6f5484d77c.zip
Adding upstream version 1:2.6.4.upstream/1%2.6.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'aclocal/nfs-utils.m4')
-rw-r--r--aclocal/nfs-utils.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/aclocal/nfs-utils.m4 b/aclocal/nfs-utils.m4
new file mode 100644
index 0000000..5f3ab0c
--- /dev/null
+++ b/aclocal/nfs-utils.m4
@@ -0,0 +1,16 @@
+dnl *********** GNU libc 2 ***************
+AC_DEFUN([AC_GNULIBC],[
+ AC_MSG_CHECKING(for GNU libc2)
+ AC_CACHE_VAL(knfsd_cv_glibc2,
+ [AC_PREPROC_IFELSE([AC_LANG_SOURCE([[
+ #include <features.h>
+ #if !defined(__GLIBC__)
+ # error Nope
+ #endif
+ ]])],[knfsd_cv_glibc2=yes],[knfsd_cv_glibc2=no])])
+ AC_MSG_RESULT($knfsd_cv_glibc2)
+ if test $knfsd_cv_glibc2 = yes; then
+ CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
+ CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
+ fi
+])