diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 4e32ea53..46dd90f7 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -65,6 +65,8 @@ check_include_file(byteswap.h HAVE_BYTESWAP_H) check_include_file(glob.h HAVE_GLOB_H) check_include_file(valgrind/valgrind.h HAVE_VALGRIND_VALGRIND_H) check_include_file(ifaddrs.h HAVE_IFADDRS_H) +check_include_file(getopt.h HAVE_GETOPT_H) +check_function_exists(getopt HAVE_GETOPT) if (WIN32) check_include_file(io.h HAVE_IO_H) diff --git a/config.h.cmake b/config.h.cmake index 14e1031c..42870016 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -67,6 +67,12 @@ /* Define to 1 if you have the header file. */ #cmakedefine HAVE_IFADDRS_H 1 +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_GETOPT_H 1 + +/* Define to 1 if you have the `getopt' function. */ +#cmakedefine HAVE_GETOPT 1 + /* Define to 1 if you have the header file. */ #cmakedefine HAVE_OPENSSL_AES_H 1