mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 15:37:59 +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
21
configure.ac
21
configure.ac
|
@ -325,17 +325,16 @@ AC_CHECK_FUNCS( getpwent flock )
|
|||
|
||||
AC_MSG_CHECKING([dirfd])
|
||||
AC_LINK_IFELSE([
|
||||
|
||||
#include <dirent.h>
|
||||
|
||||
DIR *dirp;
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
return dirfd(dirp);
|
||||
}
|
||||
], [ AC_MSG_RESULT([yes])
|
||||
AC_LANG_PROGRAM(
|
||||
[
|
||||
#include <dirent.h>
|
||||
DIR *dirp;
|
||||
], [
|
||||
return dirfd(dirp);
|
||||
]
|
||||
)
|
||||
]
|
||||
, [ AC_MSG_RESULT([yes])
|
||||
AC_DEFINE([HAVE_DIRFD], 1, [ Define to 1 if you have the `dirfd' function or macro. ])
|
||||
],
|
||||
[ AC_MSG_RESULT([no])]
|
||||
|
|
Loading…
Reference in New Issue
Block a user