From 6332e8855298fd7f159790f2843f87e09ff26211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Mayer?= Date: Tue, 9 Aug 2011 21:26:33 +0000 Subject: Copy over the commit 38437 to cmake. svn path=/trunk/; revision=38438 --- ConfigureChecks.cmake | 2 +- cmakeconfig.h.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index b352d2a2df..bdee4e2742 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -31,7 +31,6 @@ check_include_file("direct.h" HAVE_DIRECT_H) check_include_file("dirent.h" HAVE_DIRENT_H) check_include_file("dlfcn.h" HAVE_DLFCN_H) check_include_file("fcntl.h" HAVE_FCNTL_H) -check_include_file("getopt.h" HAVE_GETOPT_H) check_include_file("grp.h" HAVE_GRP_H) check_include_file("g_ascii_strtoull.h" NEED_G_ASCII_STRTOULL_H) check_include_file("inet/aton.h" NEED_INET_ATON_H) @@ -67,6 +66,7 @@ check_include_file("winsock2.h" HAVE_WINSOCK2_H) include(CheckFunctionExists) check_function_exists("chown" HAVE_CHOWN) check_function_exists("gethostbyname2" HAVE_GETHOSTBYNAME2) +check_function_exists("getopt" HAVE_GETOPT) check_function_exists("getprotobynumber" HAVE_GETPROTOBYNUMBER) check_function_exists("inet_ntop" HAVE_INET_NTOP_PROTO) check_function_exists("issetugid" HAVE_ISSETUGID) diff --git a/cmakeconfig.h.in b/cmakeconfig.h.in index c0ba3aa40c..6a93dc2888 100644 --- a/cmakeconfig.h.in +++ b/cmakeconfig.h.in @@ -49,7 +49,7 @@ #cmakedefine HAVE_FCNTL_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_GETOPT_H 1 +#cmakedefine HAVE_GETOPT 1 /* Define to 1 if you have the `chown' function. */ #cmakedefine HAVE_CHOWN 1 -- cgit v1.2.1