File: nfs-utils.m4

package info (click to toggle)
nfs-utils 1%3A2.6.2-4%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,144 kB
  • sloc: ansic: 49,497; sh: 5,200; python: 2,385; makefile: 933
file content (16 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
])