Ensure that reserved keyword AC_DEFUN is only used for its purpose.

This commit is contained in:
Yang Tse
2008-08-01 06:07:43 +00:00
parent 1035469662
commit 2d15d84a01
2 changed files with 26 additions and 23 deletions

View File

@@ -1092,7 +1092,7 @@ AC_DEFUN([CURL_CHECK_FUNC_GETNAMEINFO], [
done done
done done
done done
]) # AC_CACHE_CHECK ]) # AC-CACHE-CHECK
if test "$curl_cv_func_getnameinfo_args" = "unknown"; then if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
AC_MSG_WARN([Cannot find proper types to use for getnameinfo args]) AC_MSG_WARN([Cannot find proper types to use for getnameinfo args])
AC_MSG_WARN([HAVE_GETNAMEINFO will not be defined]) AC_MSG_WARN([HAVE_GETNAMEINFO will not be defined])
@@ -1150,7 +1150,7 @@ AC_DEFUN([CURL_CHECK_FUNC_GETNAMEINFO], [
ac_cv_func_getnameinfo="yes" ac_cv_func_getnameinfo="yes"
fi fi
fi fi
]) # AC_DEFUN ])
dnl TYPE_SOCKADDR_STORAGE dnl TYPE_SOCKADDR_STORAGE
@@ -1254,7 +1254,7 @@ AC_DEFUN([CURL_CHECK_NI_WITHSCOPEID], [
#else #else
return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */ return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
#endif #endif
]]) # AC_LANG_PROGRAM ]]) # AC-LANG-PROGRAM
],[ ],[
# Exit code == 0. Program worked. # Exit code == 0. Program worked.
ac_cv_working_ni_withscopeid="yes" ac_cv_working_ni_withscopeid="yes"
@@ -1276,16 +1276,16 @@ AC_DEFUN([CURL_CHECK_NI_WITHSCOPEID], [
ac_cv_working_ni_withscopeid="yes" ac_cv_working_ni_withscopeid="yes"
],[ ],[
ac_cv_working_ni_withscopeid="no" ac_cv_working_ni_withscopeid="no"
]) # AC_COMPILE_IFELSE ]) # AC-COMPILE-IFELSE
]) # AC_RUN_IFELSE ]) # AC-RUN-IFELSE
]) # AC_CACHE_CHECK ]) # AC-CACHE-CHECK
case "$ac_cv_working_ni_withscopeid" in case "$ac_cv_working_ni_withscopeid" in
yes) yes)
AC_DEFINE(HAVE_NI_WITHSCOPEID, 1, AC_DEFINE(HAVE_NI_WITHSCOPEID, 1,
[Define to 1 if NI_WITHSCOPEID exists and works.]) [Define to 1 if NI_WITHSCOPEID exists and works.])
;; ;;
esac esac
]) # AC_DEFUN ])
dnl CURL_CHECK_FUNC_RECV dnl CURL_CHECK_FUNC_RECV
@@ -1391,7 +1391,7 @@ AC_DEFUN([CURL_CHECK_FUNC_RECV], [
done done
done done
done done
]) # AC_CACHE_CHECK ]) # AC-CACHE-CHECK
if test "$curl_cv_func_recv_args" = "unknown"; then if test "$curl_cv_func_recv_args" = "unknown"; then
AC_MSG_ERROR([Cannot find proper types to use for recv args]) AC_MSG_ERROR([Cannot find proper types to use for recv args])
else else
@@ -1418,7 +1418,7 @@ AC_DEFUN([CURL_CHECK_FUNC_RECV], [
else else
AC_MSG_ERROR([Unable to link function recv]) AC_MSG_ERROR([Unable to link function recv])
fi fi
]) # AC_DEFUN ])
dnl CURL_CHECK_FUNC_SEND dnl CURL_CHECK_FUNC_SEND
@@ -1524,7 +1524,7 @@ AC_DEFUN([CURL_CHECK_FUNC_SEND], [
done done
done done
done done
]) # AC_CACHE_CHECK ]) # AC-CACHE-CHECK
if test "$curl_cv_func_send_args" = "unknown"; then if test "$curl_cv_func_send_args" = "unknown"; then
AC_MSG_ERROR([Cannot find proper types to use for send args]) AC_MSG_ERROR([Cannot find proper types to use for send args])
else else
@@ -1585,7 +1585,7 @@ AC_DEFUN([CURL_CHECK_FUNC_SEND], [
else else
AC_MSG_ERROR([Unable to link function send]) AC_MSG_ERROR([Unable to link function send])
fi fi
]) # AC_DEFUN ])
dnl CURL_CHECK_FUNC_RECVFROM dnl CURL_CHECK_FUNC_RECVFROM
@@ -1702,7 +1702,7 @@ AC_DEFUN([CURL_CHECK_FUNC_RECVFROM], [
done done
done done
done done
]) # AC_CACHE_CHECK ]) # AC-CACHE-CHECK
if test "$curl_cv_func_recvfrom_args" = "unknown"; then if test "$curl_cv_func_recvfrom_args" = "unknown"; then
AC_MSG_ERROR([Cannot find proper types to use for recvfrom args]) AC_MSG_ERROR([Cannot find proper types to use for recvfrom args])
else else
@@ -1773,7 +1773,7 @@ AC_DEFUN([CURL_CHECK_FUNC_RECVFROM], [
else else
AC_MSG_ERROR([Unable to link function recvfrom]) AC_MSG_ERROR([Unable to link function recvfrom])
fi fi
]) # AC_DEFUN ])
dnl CURL_CHECK_MSG_NOSIGNAL dnl CURL_CHECK_MSG_NOSIGNAL
@@ -1821,7 +1821,7 @@ AC_DEFUN([CURL_CHECK_MSG_NOSIGNAL], [
[Define to 1 if you have the MSG_NOSIGNAL flag.]) [Define to 1 if you have the MSG_NOSIGNAL flag.])
;; ;;
esac esac
]) # AC_DEFUN ])
dnl CURL_CHECK_STRUCT_TIMEVAL dnl CURL_CHECK_STRUCT_TIMEVAL
@@ -1880,7 +1880,7 @@ AC_DEFUN([CURL_CHECK_STRUCT_TIMEVAL], [
[Define to 1 if you have the timeval struct.]) [Define to 1 if you have the timeval struct.])
;; ;;
esac esac
]) # AC_DEFUN ])
dnl TYPE_SIG_ATOMIC_T dnl TYPE_SIG_ATOMIC_T
@@ -1924,7 +1924,7 @@ AC_DEFUN([TYPE_SIG_ATOMIC_T], [
fi fi
;; ;;
esac esac
]) # AC_DEFUN ])
dnl CURL_CHECK_NONBLOCKING_SOCKET dnl CURL_CHECK_NONBLOCKING_SOCKET
@@ -2163,8 +2163,8 @@ AC_DEFUN([TYPE_IN_ADDR_T], [
#include <arpa/inet.h> #include <arpa/inet.h>
#endif #endif
#endif #endif
]) dnl AC_CHECK_TYPE ])
]) dnl AC_DEFUN ])
dnl CURL_CHECK_FUNC_CLOCK_GETTIME_MONOTONIC dnl CURL_CHECK_FUNC_CLOCK_GETTIME_MONOTONIC
@@ -2203,7 +2203,7 @@ AC_DEFUN([CURL_CHECK_FUNC_CLOCK_GETTIME_MONOTONIC], [
]) ])
dnl Definition of HAVE_CLOCK_GETTIME_MONOTONIC is intentionally postponed dnl Definition of HAVE_CLOCK_GETTIME_MONOTONIC is intentionally postponed
dnl until library linking and run-time checks for clock_gettime succeed. dnl until library linking and run-time checks for clock_gettime succeed.
]) dnl AC_DEFUN ])
dnl CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC dnl CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC
@@ -2321,7 +2321,7 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
# #
fi fi
# #
]) dnl AC_DEFUN ])
dnl CURL_CHECK_FUNC_SELECT dnl CURL_CHECK_FUNC_SELECT
@@ -2463,7 +2463,7 @@ AC_DEFUN([CURL_CHECK_FUNC_SELECT], [
done done
done done
done done
]) # AC_CACHE_CHECK ]) # AC-CACHE-CHECK
if test "$curl_cv_func_select_args" = "unknown"; then if test "$curl_cv_func_select_args" = "unknown"; then
AC_MSG_WARN([Cannot find proper types to use for select args]) AC_MSG_WARN([Cannot find proper types to use for select args])
AC_MSG_WARN([HAVE_SELECT will not be defined]) AC_MSG_WARN([HAVE_SELECT will not be defined])
@@ -2521,7 +2521,7 @@ AC_DEFUN([CURL_CHECK_FUNC_SELECT], [
ac_cv_func_select="yes" ac_cv_func_select="yes"
fi fi
fi fi
]) # AC_DEFUN ])
dnl ************************************************************ dnl ************************************************************
@@ -3282,7 +3282,9 @@ AC_DEFUN([CURL_CC_DEBUG_OPTS],
done done
CFLAGS=$NEWFLAGS CFLAGS=$NEWFLAGS
]) dnl end of AC_DEFUN() ]) # AC-DEFUN
# This is only a temporary fix. This macro is here to replace the broken one # This is only a temporary fix. This macro is here to replace the broken one
# delivered by the automake project (including the 1.9.6 release). As soon as # delivered by the automake project (including the 1.9.6 release). As soon as

View File

@@ -306,6 +306,7 @@ tmp_host_type=`uname -a | sed '/SunOS/s/.*\(SunOS\).*/\1/'`
if test "x$tmp_host_type" = "xSunOS"; then if test "x$tmp_host_type" = "xSunOS"; then
ACLOCAL_FLAGS="$ACLOCAL_FLAGS --verbose" ACLOCAL_FLAGS="$ACLOCAL_FLAGS --verbose"
fi fi
ACLOCAL_FLAGS="$ACLOCAL_FLAGS --verbose"
echo "buildconf: running libtoolize" echo "buildconf: running libtoolize"
$libtoolize --copy --automake --force || die "The libtoolize command failed" $libtoolize --copy --automake --force || die "The libtoolize command failed"