cmake HAVE_GLIBC examples

ElektraInitiative/libelektra src/bindings/intercept/env/CMakeLists.txt :2

check_symbol_exists (__GNU_LIBRARY__ "features.h" HAVE_GLIBC)

ElektraInitiative/libelektra src/bindings/intercept/env/CMakeLists.txt :6

elseif (NOT HAVE_GLIBC)

ElektraInitiative/libelektra src/bindings/intercept/fs/CMakeLists.txt :2

check_symbol_exists (__GNU_LIBRARY__ "features.h" HAVE_GLIBC)

ElektraInitiative/libelektra src/bindings/intercept/fs/CMakeLists.txt :6

elseif (NOT HAVE_GLIBC)

ElektraInitiative/libelektra src/plugins/simpleini/CMakeLists.txt :4

check_symbol_exists (__GNU_LIBRARY__ "features.h" HAVE_GLIBC)

dscharrer/innoextract CMakeLists.txt :268

check_symbol_exists(__GLIBC__ "features.h" HAVE_GLIBC)

SChernykh/p2pool CMakeLists.txt :385

check_c_source_compiles("#include <gnu/libc-version.h>\nint main() { return (gnu_get_libc_version() && gnu_get_libc_release()) ? 0 : 1; }" HAVE_GLIBC)

SChernykh/p2pool CMakeLists.txt :388

add_definitions(-DHAVE_GLIBC)

nfs-ganesha/nfs-ganesha src/CMakeLists.txt :475

check_symbol_exists(__GLIBC__ features.h HAVE_GLIBC)

nfs-ganesha/nfs-ganesha src/CMakeLists.txt :478

endif(HAVE_GLIBC)

mariadb-corporation/MaxScale cmake/CheckPlatform.cmake :63

check_cxx_source_compiles("
  #define _GNU_SOURCE 1
  #include <string.h>\n
  int main(){\n
      char errbuf[200];\n
      return strerror_r(13, errbuf, sizeof(errbuf)) == errbuf;\n
  }\n"
  HAVE_GLIBC)

mariadb-corporation/MaxScale cmake/CheckPlatform.cmake :73

add_definitions(-DHAVE_GLIBC=1)