From: Enlightenment S. <no-...@en...> - 2009-03-14 17:25:08
|
Log: AC_CHECK_HEADERS is not correctly used in evas_check_engine.m4. The behavior of AC_CHECK_HEADERS is a bit strange: If one has 2 header files foo.h and bar.h and foo.h exists while bar.h does not, then: 1) with have headers="no" AC_CHECK_HEADERS([foo.h bar.h], [have_headers="yes"]) the value of have_headers is "yes" 2) with AC_CHECK_HEADERS([foo.h bar.h], [have_headers="yes"], [have_headers="no"]) the value of have_headers is "no" Author: caro Date: 2009-03-14 10:24:53 -0700 (Sat, 14 Mar 2009) New Revision: 39479 Modified: trunk/evas/m4/evas_check_engine.m4 Modified: trunk/evas/m4/evas_check_engine.m4 =================================================================== --- trunk/evas/m4/evas_check_engine.m4 2009-03-14 17:03:49 UTC (rev 39478) +++ trunk/evas/m4/evas_check_engine.m4 2009-03-14 17:24:53 UTC (rev 39479) @@ -61,14 +61,15 @@ AC_DEFUN([EVAS_CHECK_ENGINE_DEP_XRENDER_X11], [ -have_dep="no" evas_engine_[]$1[]_cflags="" evas_engine_[]$1[]_libs="" AC_PATH_X AC_PATH_XTRA -AC_CHECK_HEADERS([X11/X.h X11/extensions/Xrender.h], [have_dep="yes"]) +AC_CHECK_HEADERS([X11/X.h X11/extensions/Xrender.h], + [have_dep="yes"], + [have_dep="no"]) if test "x${have_dep}" = "xyes" ; then if test "x$2" = "xyes" ; then @@ -98,14 +99,15 @@ AC_DEFUN([EVAS_CHECK_ENGINE_DEP_GL_X11], [ -have_dep="no" evas_engine_[]$1[]_cflags="" evas_engine_[]$1[]_libs="" AC_PATH_X AC_PATH_XTRA -AC_CHECK_HEADERS([GL/gl.h GL/glu.h X11/X.h], [have_dep="yes"]) +AC_CHECK_HEADERS([GL/gl.h GL/glu.h X11/X.h], + [have_dep="yes"], + [have_dep="no"]) if test "x${have_dep}" = "xyes" ; then if test "x$2" = "xyes" ; then @@ -304,7 +306,6 @@ AC_DEFUN([EVAS_CHECK_ENGINE_DEP_DIRECT3D], [ -have_dep="no" evas_engine_[]$1[]_cflags="" evas_engine_[]$1[]_libs="" @@ -312,7 +313,8 @@ [ have_dep="yes" evas_engine_[]$1[]_libs="-ld3d9 -ld3dx9 -lgdi32" - ] + ], + [have_dep="no"] ) AC_SUBST([evas_engine_$1_cflags]) @@ -331,12 +333,12 @@ AC_DEFUN([EVAS_CHECK_ENGINE_DEP_QUARTZ], [ -have_dep="no" evas_engine_[]$1[]_cflags="" evas_engine_[]$1[]_libs="" AC_CHECK_HEADERS([/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h], - [have_dep="yes"] + [have_dep="yes"], + [have_dep="no"] ) AC_SUBST([evas_engine_$1_cflags]) @@ -355,7 +357,6 @@ AC_DEFUN([EVAS_CHECK_ENGINE_DEP_GL_GLEW], [ -have_dep="no" evas_engine_[]$1[]_cflags="" evas_engine_[]$1[]_libs="" @@ -363,7 +364,8 @@ [ have_dep="yes" evas_engine_[]$1[]_libs="-lglu32 -lglew32 -lopengl32 -lgdi32" - ] + ], + [have_dep="no"] ) AC_SUBST([evas_engine_$1_cflags]) |