mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Use the standard AC_C_PROTOTYPES macro.
This commit is contained in:
parent
38b37ed104
commit
be85e2d23f
@ -1,3 +1,8 @@
|
|||||||
|
2003-11-05 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
|
* configure.in: Use the Autoconf macro AC_C_PROTOTYPES instead of
|
||||||
|
the old AM_C_PROTOTYPES.
|
||||||
|
|
||||||
2003-11-04 Hrvoje Niksic <hniksic@xemacs.org>
|
2003-11-04 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* configure.in: Use the new form of AC_OUTPUT.
|
* configure.in: Use the new form of AC_OUTPUT.
|
||||||
|
25
aclocal.m4
vendored
25
aclocal.m4
vendored
@ -111,31 +111,6 @@ AC_DEFUN([WGET_NSL_SOCKET], [
|
|||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl ansi2knr support: check whether C prototypes are available.
|
|
||||||
dnl
|
|
||||||
|
|
||||||
AC_DEFUN(AM_C_PROTOTYPES,
|
|
||||||
[AC_REQUIRE([AM_PROG_CC_STDC])
|
|
||||||
AC_BEFORE([$0], [AC_C_INLINE])
|
|
||||||
AC_MSG_CHECKING([for function prototypes])
|
|
||||||
if test "$am_cv_prog_cc_stdc" != no; then
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
AC_DEFINE([PROTOTYPES], 1,
|
|
||||||
[Define if ANSI function prototypes are available.])
|
|
||||||
U= ANSI2KNR=
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
U=_ ANSI2KNR=./ansi2knr
|
|
||||||
# Ensure some checks needed by ansi2knr itself.
|
|
||||||
AC_HEADER_STDC
|
|
||||||
AC_CHECK_HEADERS(string.h)
|
|
||||||
fi
|
|
||||||
AC_SUBST(U)dnl
|
|
||||||
AC_SUBST(ANSI2KNR)dnl
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
# serial 1
|
# serial 1
|
||||||
|
|
||||||
# @defmac AC_PROG_CC_STDC
|
# @defmac AC_PROG_CC_STDC
|
||||||
|
17
configure.in
17
configure.in
@ -148,11 +148,6 @@ case "$host_os" in
|
|||||||
esac
|
esac
|
||||||
AC_SUBST(exeext)
|
AC_SUBST(exeext)
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl Check if we can handle prototypes.
|
|
||||||
dnl
|
|
||||||
AM_C_PROTOTYPES
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Checks for basic compiler characteristics.
|
dnl Checks for basic compiler characteristics.
|
||||||
dnl
|
dnl
|
||||||
@ -160,16 +155,18 @@ AC_C_CONST
|
|||||||
AC_C_INLINE
|
AC_C_INLINE
|
||||||
AC_C_VOLATILE
|
AC_C_VOLATILE
|
||||||
AC_C_BIGENDIAN
|
AC_C_BIGENDIAN
|
||||||
|
AC_C_PROTOTYPES
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Checks for headers
|
dnl Checks for headers that might be missing.
|
||||||
dnl
|
dnl
|
||||||
|
|
||||||
dnl Check for these even though we assume their presence. This is
|
dnl Check for basic headers, even those we assume the presence of.
|
||||||
dnl because Autoconf built-in macros expect their HAVE_* constants to
|
dnl This is because Autoconf default includes check for STDC_HEADERS,
|
||||||
dnl be available.
|
dnl HAVE_SYS_TYPES_H, etc. before including them.
|
||||||
|
AC_HEADER_STDC
|
||||||
AC_CHECK_HEADERS(sys/types.h sys/stat.h)
|
AC_CHECK_HEADERS(sys/types.h sys/stat.h)
|
||||||
|
dnl Now check for the others.
|
||||||
AC_CHECK_HEADERS(string.h strings.h stdarg.h unistd.h sys/time.h)
|
AC_CHECK_HEADERS(string.h strings.h stdarg.h unistd.h sys/time.h)
|
||||||
AC_CHECK_HEADERS(termios.h sys/ioctl.h sys/select.h utime.h sys/utime.h)
|
AC_CHECK_HEADERS(termios.h sys/ioctl.h sys/select.h utime.h sys/utime.h)
|
||||||
AC_CHECK_HEADERS(stdint.h inttypes.h signal.h setjmp.h pwd.h)
|
AC_CHECK_HEADERS(stdint.h inttypes.h signal.h setjmp.h pwd.h)
|
||||||
|
Loading…
Reference in New Issue
Block a user