mirror of
git://git.sv.gnu.org/autoconf
synced 2025-02-17 14:01:27 +08:00
* acfunctions.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from
Automake. * doc/autoconf.texi (Particular Functions): Adjust.
This commit is contained in:
parent
a1dde0367f
commit
4ba8807ca1
@ -1,3 +1,9 @@
|
|||||||
|
2000-08-01 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* acfunctions.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from
|
||||||
|
Automake.
|
||||||
|
* doc/autoconf.texi (Particular Functions): Adjust.
|
||||||
|
|
||||||
2000-08-01 Akim Demaille <akim@epita.fr>
|
2000-08-01 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
Create acfunctions.m4, in charge of the macros related to
|
Create acfunctions.m4, in charge of the macros related to
|
||||||
|
3
NEWS
3
NEWS
@ -189,7 +189,8 @@ test cases in this new frame work.
|
|||||||
|
|
||||||
** Specific Macros
|
** Specific Macros
|
||||||
- AC_FUNC_CHOWN, AC_FUNC_MALLOC, AC_FUNC_STRERROR_R,
|
- AC_FUNC_CHOWN, AC_FUNC_MALLOC, AC_FUNC_STRERROR_R,
|
||||||
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, AC_FUNC_STAT, AC_FUNC_LSTAT.
|
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, AC_FUNC_STAT, AC_FUNC_LSTAT,
|
||||||
|
AC_FUNC_ERROR_AT_LINE.
|
||||||
New.
|
New.
|
||||||
|
|
||||||
- AC_FUNC_GETGROUPS
|
- AC_FUNC_GETGROUPS
|
||||||
|
@ -4,6 +4,8 @@ bcmp AC_HEADER_STDC
|
|||||||
bcopy AC_HEADER_STDC
|
bcopy AC_HEADER_STDC
|
||||||
bzero AC_HEADER_STDC
|
bzero AC_HEADER_STDC
|
||||||
chown AC_FUNC_CHOWN
|
chown AC_FUNC_CHOWN
|
||||||
|
error AC_FUNC_ERROR_AT_LINE
|
||||||
|
error_at_line AC_FUNC_ERROR_AT_LINE
|
||||||
fnmatch AC_FUNC_FNMATCH
|
fnmatch AC_FUNC_FNMATCH
|
||||||
getgroups AC_FUNC_GETGROUPS
|
getgroups AC_FUNC_GETGROUPS
|
||||||
getloadavg AC_FUNC_GETLOADAVG
|
getloadavg AC_FUNC_GETLOADAVG
|
||||||
|
@ -318,6 +318,24 @@ fi
|
|||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
# AC_FUNC_ERROR_AT_LINE
|
||||||
|
# ---------------------
|
||||||
|
AC_DEFUN([AC_FUNC_ERROR_AT_LINE],
|
||||||
|
[AC_CACHE_CHECK([for error_at_line], ac_cv_lib_error_at_line,
|
||||||
|
[AC_TRY_LINK([],[error_at_line (0, 0, "", 0, "");],
|
||||||
|
ac_cv_lib_error_at_line=yes,
|
||||||
|
ac_cv_lib_error_at_line=no)])
|
||||||
|
if test $ac_cv_lib_error_at_line = no; then
|
||||||
|
AC_LIBOBJ(error)
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
# AU::AM_FUNC_ERROR_AT_LINE
|
||||||
|
# -------------------------
|
||||||
|
AU_ALIAS([AM_FUNC_ERROR_AT_LINE], [AC_FUNC_ERROR_AT_LINE])
|
||||||
|
|
||||||
|
|
||||||
# AC_FUNC_FNMATCH
|
# AC_FUNC_FNMATCH
|
||||||
# ---------------
|
# ---------------
|
||||||
# We look for fnmatch.h to avoid that the test fails in C++.
|
# We look for fnmatch.h to avoid that the test fails in C++.
|
||||||
|
@ -2938,6 +2938,12 @@ define @code{CLOSEDIR_VOID}. Otherwise, callers ought to check its
|
|||||||
return value for an error indicator.
|
return value for an error indicator.
|
||||||
@end defmac
|
@end defmac
|
||||||
|
|
||||||
|
@defmac AC_FUNC_ERROR_AT_LINE
|
||||||
|
@maindex FUNC_ERROR_AT_LINE
|
||||||
|
If the @code{error_at_line} function is not found, require an
|
||||||
|
@code{AC_LIBOBJ} replacement of @samp{error}.
|
||||||
|
@end defmac
|
||||||
|
|
||||||
@defmac AC_FUNC_FNMATCH
|
@defmac AC_FUNC_FNMATCH
|
||||||
@maindex FUNC_FNMATCH
|
@maindex FUNC_FNMATCH
|
||||||
If the @code{fnmatch} function is available and works (unlike the one on
|
If the @code{fnmatch} function is available and works (unlike the one on
|
||||||
|
@ -318,6 +318,24 @@ fi
|
|||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
# AC_FUNC_ERROR_AT_LINE
|
||||||
|
# ---------------------
|
||||||
|
AC_DEFUN([AC_FUNC_ERROR_AT_LINE],
|
||||||
|
[AC_CACHE_CHECK([for error_at_line], ac_cv_lib_error_at_line,
|
||||||
|
[AC_TRY_LINK([],[error_at_line (0, 0, "", 0, "");],
|
||||||
|
ac_cv_lib_error_at_line=yes,
|
||||||
|
ac_cv_lib_error_at_line=no)])
|
||||||
|
if test $ac_cv_lib_error_at_line = no; then
|
||||||
|
AC_LIBOBJ(error)
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
# AU::AM_FUNC_ERROR_AT_LINE
|
||||||
|
# -------------------------
|
||||||
|
AU_ALIAS([AM_FUNC_ERROR_AT_LINE], [AC_FUNC_ERROR_AT_LINE])
|
||||||
|
|
||||||
|
|
||||||
# AC_FUNC_FNMATCH
|
# AC_FUNC_FNMATCH
|
||||||
# ---------------
|
# ---------------
|
||||||
# We look for fnmatch.h to avoid that the test fails in C++.
|
# We look for fnmatch.h to avoid that the test fails in C++.
|
||||||
|
@ -4,6 +4,8 @@ bcmp AC_HEADER_STDC
|
|||||||
bcopy AC_HEADER_STDC
|
bcopy AC_HEADER_STDC
|
||||||
bzero AC_HEADER_STDC
|
bzero AC_HEADER_STDC
|
||||||
chown AC_FUNC_CHOWN
|
chown AC_FUNC_CHOWN
|
||||||
|
error AC_FUNC_ERROR_AT_LINE
|
||||||
|
error_at_line AC_FUNC_ERROR_AT_LINE
|
||||||
fnmatch AC_FUNC_FNMATCH
|
fnmatch AC_FUNC_FNMATCH
|
||||||
getgroups AC_FUNC_GETGROUPS
|
getgroups AC_FUNC_GETGROUPS
|
||||||
getloadavg AC_FUNC_GETLOADAVG
|
getloadavg AC_FUNC_GETLOADAVG
|
||||||
|
Loading…
Reference in New Issue
Block a user