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:
@@ -217,7 +217,7 @@ AC_MSG_RESULT($ISOC99_PRAGMA)
|
|||||||
## Check for S_ISSOCK() and S_ISLNK() macros
|
## Check for S_ISSOCK() and S_ISLNK() macros
|
||||||
##
|
##
|
||||||
AC_MSG_CHECKING(for S_ISLNK() macro)
|
AC_MSG_CHECKING(for S_ISLNK() macro)
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([
|
||||||
#ifdef HAVE_SYS_STAT_H
|
#ifdef HAVE_SYS_STAT_H
|
||||||
# include <sys/stat.h>
|
# include <sys/stat.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -226,7 +226,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
|
|||||||
[ AC_MSG_RESULT(no) ])
|
[ AC_MSG_RESULT(no) ])
|
||||||
|
|
||||||
AC_MSG_CHECKING([for S_ISSOCK() macro])
|
AC_MSG_CHECKING([for S_ISSOCK() macro])
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([
|
||||||
#ifdef HAVE_SYS_STAT_H
|
#ifdef HAVE_SYS_STAT_H
|
||||||
# include <sys/stat.h>
|
# include <sys/stat.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user