use configure-time headers checks instead of compiler ones

SVN revision: 55968
This commit is contained in:
Vincent Torri 2011-01-07 06:33:00 +00:00
parent 0745ad7878
commit 504f0a20f9
3 changed files with 5 additions and 5 deletions

View File

@ -352,7 +352,7 @@ AC_CHECK_HEADER([jpeglib.h],
[dummy="yes"], [dummy="yes"],
[AC_MSG_ERROR("Cannot find jpeglib.h. Make sure your CFLAGS environment variable contains include lines for the location of this file")]) [AC_MSG_ERROR("Cannot find jpeglib.h. Make sure your CFLAGS environment variable contains include lines for the location of this file")])
AC_CHECK_HEADERS(netinet/in.h) AC_CHECK_HEADERS([netinet/in.h unistd.h])
EFL_CHECK_PATH_MAX EFL_CHECK_PATH_MAX
### Checks for types ### Checks for types

View File

@ -25,9 +25,9 @@ void * alloca (size_t);
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/mman.h> #include <sys/mman.h>
#ifndef _MSC_VER #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif /* ifndef _MSC_VER */ #endif
#ifdef HAVE_NETINET_IN_H #ifdef HAVE_NETINET_IN_H
# include <netinet/in.h> # include <netinet/in.h>

View File

@ -34,9 +34,9 @@ void * alloca (size_t);
#include <fcntl.h> #include <fcntl.h>
#include <zlib.h> #include <zlib.h>
#ifndef _MSC_VER #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif /* ifndef _MSC_VER */ #endif
#ifdef HAVE_NETINET_IN_H #ifdef HAVE_NETINET_IN_H
# include <netinet/in.h> # include <netinet/in.h>