From 6d4e6cc8137ff2ebdbaf055e39ce1263ad634191 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sun, 18 Oct 2009 03:37:39 +0000 Subject: Check for basename() is now done the same as other function checks --- configure.ac | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 56c763d93..095ec64de 100644 --- a/configure.ac +++ b/configure.ac @@ -2034,6 +2034,7 @@ CURL_CHECK_FUNC_SEND CURL_CHECK_MSG_NOSIGNAL CURL_CHECK_FUNC_ALARM +CURL_CHECK_FUNC_BASENAME CURL_CHECK_FUNC_CLOSESOCKET CURL_CHECK_FUNC_CLOSESOCKET_CAMEL CURL_CHECK_FUNC_CONNECT @@ -2093,8 +2094,7 @@ case $host in ;; esac -AC_CHECK_FUNCS([basename \ - fork \ +AC_CHECK_FUNCS([fork \ geteuid \ getpass_r \ getppid \ @@ -2132,21 +2132,6 @@ AC_CHECK_FUNCS([basename \ fi ]) - -AC_CHECK_DECL(basename, , - AC_DEFINE(NEED_BASENAME_PROTO, 1, [If you lack a fine basename() prototype]), -#ifdef HAVE_STRING_H -#include -#endif -#ifdef HAVE_LIBGEN_H -#include -#endif -#ifdef HAVE_UNISTD_H -#include -#endif -) - - dnl Check if the getnameinfo function is available dnl and get the types of five of its arguments. CURL_CHECK_FUNC_GETNAMEINFO -- cgit v1.2.3