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)

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)

covscript/covscript CMakeLists.txt :60

check_c_source_compiles("
        #include <features.h>
        #ifndef __GLIBC__
        #error Not glibc
        #endif
        int main() { return 0; }
    " HAVE_GLIBC)