Change tests for S_ISLNK and S_ISSOCK macros from AC_COMPILE_IFELSE to

AC_LINK_IFELSE. On Mingw 4.4.0 these macros succeed when they should
fail. Patch by carlo.bramix to libcdio-devel
This commit is contained in:
R. Bernstein
2009-10-29 10:16:55 -04:00
parent 423dc300f6
commit 9bec7fc204

View File

@@ -217,7 +217,7 @@ AC_MSG_RESULT($ISOC99_PRAGMA)
## Check for S_ISSOCK() and S_ISLNK() macros
##
AC_MSG_CHECKING(for S_ISLNK() macro)
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
AC_LINK_IFELSE([AC_LANG_PROGRAM([
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
@@ -226,7 +226,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
[ AC_MSG_RESULT(no) ])
AC_MSG_CHECKING([for S_ISSOCK() macro])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
AC_LINK_IFELSE([AC_LANG_PROGRAM([
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif