cmake HAVE_SCANDIR examples

LibreDWG/libredwg CMakeLists.txt :101

check_symbol_exists("scandir" "dirent.h" HAVE_SCANDIR)

gammu/gammu CMakeLists.txt :110

check_function_exists (scandir HAVE_SCANDIR)

hatari/hatari CMakeLists.txt :235

check_symbol_exists(scandir "dirent.h" HAVE_SCANDIR)

MoeMod/CSMoE 3rdparty/fontconfig-cmake/ConfigureChecks.cmake :96

check_function_exists( scandir HAVE_SCANDIR )

gccxml/gccxml GCC/config_cmake/CMakeLists.txt :499

CHECK_FUNCTION_EXISTS(scandir HAVE_SCANDIR)