summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authordoursse <doursse>2007-05-27 11:10:50 +0000
committerdoursse <doursse@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2007-05-27 11:10:50 +0000
commitb50e551a930926410b9f7f7ce209716497e18206 (patch)
treec2fe949ee48ce1ce0f09b5ad8da1f43a0e12add5 /configure.in
parentf26352de0e4134d553b96bcf42c02dec6acc5c6f (diff)
Add directdraw test. configure script displays the available engines
SVN revision: 30095
Diffstat (limited to '')
-rw-r--r--configure.in47
1 files changed, 43 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index 8175327..cca4fd1 100644
--- a/configure.in
+++ b/configure.in
@@ -48,34 +48,59 @@ PKG_CHECK_MODULES([EVAS], evas)
48 48
49PCFLAGS=$CFLAGS 49PCFLAGS=$CFLAGS
50CFLAGS="$EVAS_CFLAGS $CFLAGS" 50CFLAGS="$EVAS_CFLAGS $CFLAGS"
51
52have_xlib_opengl="no"
51AC_CHECK_HEADER(Evas_Engine_GL_X11.h, 53AC_CHECK_HEADER(Evas_Engine_GL_X11.h,
52 [ AC_DEFINE(HAVE_EVAS_GL, 1, [Evas GL Engine Support]) ], 54 [ AC_DEFINE(HAVE_EVAS_GL, 1, [Evas GL Engine Support])
55 have_xlib_opengl="yes" ],
53 [ dummy=no ], 56 [ dummy=no ],
54 [ #include <Evas.h> ] 57 [ #include <Evas.h> ]
55) 58)
59
60have_xlib="no"
56AC_CHECK_HEADER(Evas_Engine_Software_X11.h, 61AC_CHECK_HEADER(Evas_Engine_Software_X11.h,
57 [ AC_DEFINE(HAVE_SOFTWARE_X11, 1, [Evas Software X11 Engine Support]) ], 62 [ AC_DEFINE(HAVE_SOFTWARE_X11, 1, [Evas Software X11 Engine Support])
63 have_xlib="yes" ],
58 [ dummy=no ], 64 [ dummy=no ],
59 [ #include <Evas.h> ] 65 [ #include <Evas.h> ]
60) 66)
67
68have_xlib_render="no"
61AC_CHECK_HEADER(Evas_Engine_XRender_X11.h, 69AC_CHECK_HEADER(Evas_Engine_XRender_X11.h,
62 [ AC_DEFINE(HAVE_XRENDER_X11, 1, [Evas XRender X11 Engine Support]) ], 70 [ AC_DEFINE(HAVE_XRENDER_X11, 1, [Evas XRender X11 Engine Support])
71 have_xlib_render="yes" ],
63 [ dummy=no ], 72 [ dummy=no ],
64 [ #include <Evas.h> ] 73 [ #include <Evas.h> ]
65) 74)
75
76have_xlib_16="no"
66AC_CHECK_HEADER(Evas_Engine_Software_16_X11.h, 77AC_CHECK_HEADER(Evas_Engine_Software_16_X11.h,
67 [ AC_DEFINE(HAVE_SOFTWARE_16_X11, 1, [Evas Software 16bit X11 Engine Support]) ], 78 [ AC_DEFINE(HAVE_SOFTWARE_16_X11, 1, [Evas Software 16bit X11 Engine Support])
79 have_xlib_16="yes" ],
80 [ dummy=no ],
81 [ #include <Evas.h> ]
82)
83
84have_ddraw="no"
85AC_CHECK_HEADER(Evas_Engine_Software_DDraw.h,
86 [ AC_DEFINE(HAVE_SOFTWARE_DDRAW, 1, [Evas Software DirectDraw Engine Support])
87 have_ddraw="yes"
88 ddraw_libs="-lddraw -ldxguid" ],
68 [ dummy=no ], 89 [ dummy=no ],
69 [ #include <Evas.h> ] 90 [ #include <Evas.h> ]
70) 91)
71CFLAGS=$PCFLAGS 92CFLAGS=$PCFLAGS
72 93
94if test "x$have_xlib" = "xyes" -o "x$have_xlib_16" = "xyes" -o "x$have_xlib_render" = "xyes" "x$have_xlib_opengl" = "xyes" ; then
73AC_PATH_XTRA 95AC_PATH_XTRA
74x_dir=${x_dir:-/usr/X11R6} 96x_dir=${x_dir:-/usr/X11R6}
75x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} 97x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
76x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext" 98x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
99fi
100
77AC_SUBST(x_cflags) 101AC_SUBST(x_cflags)
78AC_SUBST(x_libs) 102AC_SUBST(x_libs)
103AC_SUBST(ddraw_libs)
79 104
80AC_OUTPUT([ 105AC_OUTPUT([
81Makefile 106Makefile
@@ -83,3 +108,17 @@ src/Makefile
83src/bin/Makefile 108src/bin/Makefile
84data/Makefile 109data/Makefile
85]) 110])
111
112echo
113echo " $PACKAGE $VERSION"
114echo
115echo " Engines:"
116echo " Software Xlib...........: ${have_xlib}"
117echo " Software Xlib 16 bits...: ${have_xlib_16}"
118echo " X Render Xlib...........: ${have_xlib_render}"
119echo " Open GL Xlib............: ${have_xlib_opengl}"
120echo " Software DirectDraw.....: ${have_ddraw}"
121echo
122echo " Installation:"
123echo " prefix..................: ${prefix}"
124echo