mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 03:54:04 +08:00
autoconf: quiet warning by using AC_LANG_PROGRAM
e4b6007f33
introduced the following warning:
configure.ac:327: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call
detected in body
Fix by using the right autoconf macros for the job.
This commit is contained in:
parent
ea6631641f
commit
63e70d601d
15
configure.ac
15
configure.ac
|
@ -325,17 +325,16 @@ AC_CHECK_FUNCS( getpwent flock )
|
||||||
|
|
||||||
AC_MSG_CHECKING([dirfd])
|
AC_MSG_CHECKING([dirfd])
|
||||||
AC_LINK_IFELSE([
|
AC_LINK_IFELSE([
|
||||||
|
AC_LANG_PROGRAM(
|
||||||
|
[
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
|
||||||
DIR *dirp;
|
DIR *dirp;
|
||||||
|
], [
|
||||||
int
|
|
||||||
main(void)
|
|
||||||
{
|
|
||||||
return dirfd(dirp);
|
return dirfd(dirp);
|
||||||
}
|
]
|
||||||
], [ AC_MSG_RESULT([yes])
|
)
|
||||||
|
]
|
||||||
|
, [ AC_MSG_RESULT([yes])
|
||||||
AC_DEFINE([HAVE_DIRFD], 1, [ Define to 1 if you have the `dirfd' function or macro. ])
|
AC_DEFINE([HAVE_DIRFD], 1, [ Define to 1 if you have the `dirfd' function or macro. ])
|
||||||
],
|
],
|
||||||
[ AC_MSG_RESULT([no])]
|
[ AC_MSG_RESULT([no])]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user