summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authordoursse <doursse>2008-07-07 19:31:46 +0000
committerdoursse <doursse@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2008-07-07 19:31:46 +0000
commitea8c9473178556a12e58c484d6e70903241897d0 (patch)
treec4a54ef798af033f82b1a8372a7cb5d73f139860 /configure.in
parent8124d72e75bfbb6433e4dae9b687c23d54eb2e54 (diff)
add software xcb engine support, minor reorganization of some inclusing / checks etc...
SVN revision: 35020
Diffstat (limited to '')
-rw-r--r--configure.in55
1 files changed, 33 insertions, 22 deletions
diff --git a/configure.in b/configure.in
index 376c334..d3fdedc 100644
--- a/configure.in
+++ b/configure.in
@@ -41,20 +41,31 @@ AC_ARG_ENABLE(simple-x11,
41 [ want_evas_simple_x11=$enableval ] 41 [ want_evas_simple_x11=$enableval ]
42) 42)
43 43
44### OpenGL GLEW
45EXPEDITE_CHECK_ENGINE([opengl-glew], [OpenGL Glew], "yes", [glew_libs="-lglew32 -lgdi32"])
46
47### OpenGL X11
48EXPEDITE_CHECK_ENGINE([opengl-x11], [OpenGL X11], "yes")
49
50### Software X11 44### Software X11
51EXPEDITE_CHECK_ENGINE([software-x11], [Software X11], "yes") 45EXPEDITE_CHECK_ENGINE([software-x11], [Software X11], "yes")
52 46
53### XRender X11 47### XRender X11
54EXPEDITE_CHECK_ENGINE([xrender-x11], [XRender X11], "yes") 48EXPEDITE_CHECK_ENGINE([xrender-x11], [XRender X11], "yes")
55 49
56### Software 16bit X11 50### OpenGL X11
57EXPEDITE_CHECK_ENGINE([software-16-x11], [Software 16 bits X11], "yes") 51EXPEDITE_CHECK_ENGINE([opengl-x11], [OpenGL X11], "yes")
52
53### Software XCB
54EXPEDITE_CHECK_ENGINE([software-xcb], [Software XCB], "yes")
55
56# TODO: Check availability of libs
57### DirectDraw
58EXPEDITE_CHECK_ENGINE([software-ddraw], [Software DirectDraw], "yes", [ddraw_libs="-lddraw -ldxguid"])
59
60# TODO: Check availability of libs
61### Direct3D
62EXPEDITE_CHECK_ENGINE([direct3d], [Direct3D], "yes", [d3d_libs="-ld3d9 -ld3dx9d"])
63
64### OpenGL GLEW
65EXPEDITE_CHECK_ENGINE([opengl-glew], [OpenGL Glew], "yes", [glew_libs="-lglew32 -lgdi32"])
66
67### Software SDL
68EXPEDITE_CHECK_ENGINE([software-sdl], [Software SDL], "yes")
58 69
59### FB 70### FB
60EXPEDITE_CHECK_ENGINE([fb], [Framebuffer], "yes") 71EXPEDITE_CHECK_ENGINE([fb], [Framebuffer], "yes")
@@ -62,25 +73,17 @@ EXPEDITE_CHECK_ENGINE([fb], [Framebuffer], "yes")
62### DIRECTFB 73### DIRECTFB
63EXPEDITE_CHECK_ENGINE([directfb], [DirectFB], "yes") 74EXPEDITE_CHECK_ENGINE([directfb], [DirectFB], "yes")
64 75
65# TODO: Check availability of libs 76### Software 16bit X11
66### DirectDraw 77EXPEDITE_CHECK_ENGINE([software-16-x11], [Software 16 bits X11], "yes")
67EXPEDITE_CHECK_ENGINE([software-ddraw], [Software DirectDraw], "yes", [ddraw_libs="-lddraw -ldxguid"])
68 78
69# TODO: Check availability of libs 79# TODO: Check availability of libs
70### 16bit DirectDraw 80### 16bit DirectDraw
71EXPEDITE_CHECK_ENGINE([software-16-ddraw], [Software 16 bits DirectDraw], "yes", [ddraw_libs="-lddraw -ldxguid"]) 81EXPEDITE_CHECK_ENGINE([software-16-ddraw], [Software 16 bits DirectDraw], "yes", [ddraw_libs="-lddraw -ldxguid"])
72 82
73# TODO: Check availability of libs 83# TODO: Check availability of libs
74### Direct3D
75EXPEDITE_CHECK_ENGINE([direct3d], [Direct3D], "yes", [d3d_libs="-ld3d9 -ld3dx9d"])
76
77# TODO: Check availability of libs
78### 16bit WinCE 84### 16bit WinCE
79EXPEDITE_CHECK_ENGINE([software-16-wince], [Software 16 bits WinCE], "yes", [wince_16_libs="-laygshell"]) 85EXPEDITE_CHECK_ENGINE([software-16-wince], [Software 16 bits WinCE], "yes", [wince_16_libs="-laygshell"])
80 86
81### Software SDL
82EXPEDITE_CHECK_ENGINE([software-sdl], [Software SDL], "yes")
83
84if test "x$have_software_x11" = "xyes" -o "x$have_software_16_x11" = "xyes" -o "x$have_xrender_x11" = "xyes" -o "x$have_opengl_x11" = "xyes"; then 87if test "x$have_software_x11" = "xyes" -o "x$have_software_16_x11" = "xyes" -o "x$have_xrender_x11" = "xyes" -o "x$have_opengl_x11" = "xyes"; then
85 AC_PATH_XTRA 88 AC_PATH_XTRA
86 AC_CHECK_HEADERS(X11/Xlib.h X11/Xutil.h, 89 AC_CHECK_HEADERS(X11/Xlib.h X11/Xutil.h,
@@ -96,6 +99,13 @@ if test "x$have_software_x11" = "xyes" -o "x$have_software_16_x11" = "xyes" -o "
96fi 99fi
97AM_CONDITIONAL(BUILD_X11, test "x$have_x11" = "xyes") 100AM_CONDITIONAL(BUILD_X11, test "x$have_x11" = "xyes")
98 101
102if test "x$have_software_xcb" = "xyes"; then
103 PKG_CHECK_MODULES([XCB], xcb xcb-keysyms,
104 [ have_software_xcb="yes" ],
105 [ have_software_xcb="no" ])
106fi
107AM_CONDITIONAL(BUILD_XCB, test "x$have_xcb" = "xyes")
108
99if test "x$have_software_sdl" = "xyes"; then 109if test "x$have_software_sdl" = "xyes"; then
100 PKG_CHECK_MODULES([SDL], sdl, 110 PKG_CHECK_MODULES([SDL], sdl,
101 [ have_sdl="yes" ], 111 [ have_sdl="yes" ],
@@ -130,17 +140,18 @@ echo " $PACKAGE $VERSION"
130echo 140echo
131echo " Engines:" 141echo " Engines:"
132echo " Software X11.................: ${have_software_x11}" 142echo " Software X11.................: ${have_software_x11}"
133echo " Software X11 16 bits.........: ${have_software_16_x11}"
134echo " X Render X11.................: ${have_xrender_x11}" 143echo " X Render X11.................: ${have_xrender_x11}"
135echo " Open GL X11..................: ${have_opengl_x11}" 144echo " Open GL X11..................: ${have_opengl_x11}"
136echo " Open GL Glew.................: ${have_opengl_glew}" 145echo " Software XCB.................: ${have_software_xcb}"
137echo " Software DirectDraw..........: ${have_software_ddraw}" 146echo " Software DirectDraw..........: ${have_software_ddraw}"
138echo " Software DirectDraw 16 bits..: ${have_software_16_ddraw}"
139echo " Direct3D.....................: ${have_direct3d}" 147echo " Direct3D.....................: ${have_direct3d}"
140echo " Software WinCE 16 bits.......: ${have_software_16_wince}" 148echo " Open GL Glew.................: ${have_opengl_glew}"
141echo " Software SDL.................: ${have_software_sdl}" 149echo " Software SDL.................: ${have_software_sdl}"
142echo " FB...........................: ${have_fb}" 150echo " FB...........................: ${have_fb}"
143echo " DirectFB.....................: ${have_directfb}" 151echo " DirectFB.....................: ${have_directfb}"
152echo " Software X11 16 bits.........: ${have_software_16_x11}"
153echo " Software DirectDraw 16 bits..: ${have_software_16_ddraw}"
154echo " Software WinCE 16 bits.......: ${have_software_16_wince}"
144echo 155echo
145echo " Installation:" 156echo " Installation:"
146echo " prefix.......................: ${prefix}" 157echo " prefix.......................: ${prefix}"