eet: Go back to plain header check for zlib as band-aid
authorstefan <stefan>
Mon, 2 Jul 2012 09:07:32 +0000 (09:07 +0000)
committerstefan <stefan@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 2 Jul 2012 09:07:32 +0000 (09:07 +0000)
Older version of zlib, used in Fedora 10 and Ubuntu 10.04, does not have a pc file. It would be
better to bring this into m4 macro but I fear touching it. Vincent, it would be great if you could
handle this as well.

Without this you get this error:
configure: error: "Cannot find zlib.PC. Make sure your PKG_CONFIG_PATH
environment variable contains include lines for the location of this
file"

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eet@73138 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac

index 4f91427..ebcf1be 100644 (file)
@@ -389,7 +389,10 @@ AC_MSG_CHECKING([whether to activate signature support in eet])
 AC_MSG_RESULT([${have_signature}])
 
 # libjpeg and zlib
-EFL_CHECK_LIBS([eet], [libjpeg zlib])
+EFL_CHECK_LIBS([eet], [libjpeg])
+AC_CHECK_HEADER([zlib.h],
+   [dummy="yes"],
+   [AC_MSG_ERROR("Cannot find zlib.h. Make sure your CFLAGS environment variable contains include lines for the location of this file")])
 
 # Eina library