From: <enl...@li...> - 2003-12-18 07:55:23
|
Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/evas Dir : e17/libs/evas Modified Files: configure.in Log Message: Enable most features by default, and disable them if needed. CPU specific features are disabled by default. I've tested most of the options pretty thoroughly, but I haven't found anyone with the qtopia environment to test that or the ARM cross compile script. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/evas/configure.in,v retrieving revision 1.65 retrieving revision 1.66 diff -u -3 -r1.65 -r1.66 --- configure.in 16 Dec 2003 17:37:26 -0000 1.65 +++ configure.in 18 Dec 2003 07:55:21 -0000 1.66 @@ -125,205 +125,342 @@ freetype_cflags=`$PROG_CONFIG --cflags` freetype_libs=`$PROG_CONFIG --libs` +have_evas_software_x11=""; +ENGINE_SOFTWARE_X11_PRG=""; + AC_MSG_CHECKING(whether software x11 backend is to be built) AC_ARG_ENABLE(software-x11, [ --enable-software-x11 enable the Software X11 rendering backend], [ if [ test "$enableval" = "yes" ]; then AC_MSG_RESULT(yes) - AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_X11, test "$enableval" = "yes") - AC_DEFINE(BUILD_ENGINE_SOFTWARE_X11) - x_dir="/usr/X11R6"; - x_cflags="-I"$x_dir"/include" - x_libs="-L"$x_dir"/lib -lX11 -lXext" - ENGINE_SOFTWARE_X11_PRG="evas_software_x11_test evas_software_x11_perf_test evas_software_x11_perf_load" + have_evas_software_x11="yes" else AC_MSG_RESULT(no) - AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_X11, false) - ENGINE_SOFTWARE_X11_PRG="" fi ], [ - AC_MSG_RESULT(no) - AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_X11, false) - ENGINE_SOFTWARE_X11_PRG="" + AC_MSG_RESULT(yes) + have_evas_software_x11="yes" ] ) +if test "x$have_evas_software_x11" = "xyes"; then + AC_CHECK_HEADER(X11/X.h, + [ + AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_X11, true) + AC_DEFINE(BUILD_ENGINE_SOFTWARE_X11) + x_dir="/usr/X11R6"; + x_cflags="-I"$x_dir"/include" + x_libs="-L"$x_dir"/lib -lX11 -lXext" + ENGINE_SOFTWARE_X11_PRG="evas_software_x11_test evas_software_x11_perf_test evas_software_x11_perf_load" + ], + [ + AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_X11, false) + AC_MSG_RESULT(disabling software X11 engine) + ] + ) +else + AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_X11, false) +fi + +have_evas_directfb=""; +ENGINE_DIRECTFB_PRG=""; + AC_MSG_CHECKING(whether directfb backend is to be built) AC_ARG_ENABLE(directfb, [ --enable-directfb enable the DirectFB rendering backend], [ if [ test "$enableval" = "yes" ]; then AC_MSG_RESULT(yes) - AM_CONDITIONAL(BUILD_ENGINE_DIRECTFB, true) - AC_DEFINE(BUILD_ENGINE_DIRECTFB) - PKG_CHECK_MODULES(DIRECTFB, directfb >= 0.9.16) - ENGINE_DIRECTFB_PRG="evas_directfb_test evas_directfb_window" + have_evas_directfb="yes" else AC_MSG_RESULT(no) - AM_CONDITIONAL(BUILD_ENGINE_DIRECTFB, false) - ENGINE_DIRECTFB_PRG="" fi ], [ - AC_MSG_RESULT(no) - AM_CONDITIONAL(BUILD_ENGINE_DIRECTFB, false) - ENGINE_DIRECTFB_PRG="" + AC_MSG_RESULT(yes) + have_evas_directfb="yes" ] ) +if test "x$have_evas_directfb" = "xyes"; then + PKG_CHECK_MODULES(DIRECTFB, directfb >= 0.9.16, + [ + AM_CONDITIONAL(BUILD_ENGINE_DIRECTFB, true) + AC_DEFINE(BUILD_ENGINE_DIRECTFB) + ENGINE_DIRECTFB_PRG="evas_directfb_test evas_directfb_window" + ], [ + AM_CONDITIONAL(BUILD_ENGINE_DIRECTFB, false) + AC_MSG_RESULT(disabling directfb engine) + ] + ) +else + AM_CONDITIONAL(BUILD_ENGINE_DIRECTFB, false) +fi + +have_evas_fb=""; +ENGINE_FB_PRG=""; + AC_MSG_CHECKING(whether fb backend is to be built) AC_ARG_ENABLE(fb, [ --enable-fb enable the FB rendering backend], [ if [ test "$enableval" = "yes" ]; then AC_MSG_RESULT(yes) - AM_CONDITIONAL(BUILD_ENGINE_FB, true) - AC_DEFINE(BUILD_ENGINE_FB) - ENGINE_FB_PRG="evas_fb_test" + have_evas_fb="yes" else AC_MSG_RESULT(no) - AM_CONDITIONAL(BUILD_ENGINE_FB, false) - ENGINE_FB_PRG="" fi ], [ - AC_MSG_RESULT(no) - AM_CONDITIONAL(BUILD_ENGINE_FB, false) - ENGINE_FB_PRG="" + AC_MSG_RESULT(yes) + have_evas_fb="yes" ] ) +if test "x$have_evas_fb" = "xyes"; then + AC_CHECK_HEADER(linux/fb.h, + [ + AM_CONDITIONAL(BUILD_ENGINE_FB, true) + AC_DEFINE(BUILD_ENGINE_FB) + ENGINE_FB_PRG="evas_fb_test" + ], [ + AM_CONDITIONAL(BUILD_ENGINE_FB, false) + AC_MSG_RESULT(disabling fb engine) + ] + ) +else + AM_CONDITIONAL(BUILD_ENGINE_FB, false) +fi + +have_evas_buffer=""; +ENGINE_BUFFER_PRG=""; + AC_MSG_CHECKING(whether buffer backend is to be built) AC_ARG_ENABLE(buffer, [ --enable-buffer enable the Buffer rendering backend], [ if [ test "$enableval" = "yes" ]; then AC_MSG_RESULT(yes) - AM_CONDITIONAL(BUILD_ENGINE_BUFFER, true) - AC_DEFINE(BUILD_ENGINE_BUFFER) - ENGINE_BUFFER_PRG="evas_buffer_test" + have_evas_buffer="yes" else AC_MSG_RESULT(no) - AM_CONDITIONAL(BUILD_ENGINE_BUFFER, false) - ENGINE_BUFFER_PRG="" fi ], [ - AC_MSG_RESULT(no) - AM_CONDITIONAL(BUILD_ENGINE_BUFFER, false) - ENGINE_BUFFER_PRG="" + AC_MSG_RESULT(yes) + have_evas_buffer="yes" ] ) +if test "x$have_evas_buffer" = "xyes"; then + AM_CONDITIONAL(BUILD_ENGINE_BUFFER, true) + AC_DEFINE(BUILD_ENGINE_BUFFER) + ENGINE_BUFFER_PRG="evas_buffer_test" +else + AM_CONDITIONAL(BUILD_ENGINE_BUFFER, false) +fi + +have_evas_qtopia=""; +ENGINE_SOFTWARE_QTOPIA_PRG=""; + AC_MSG_CHECKING(whether software qtopia backend is to be built) AC_ARG_ENABLE(software-qtopia, [ --enable-software-qtopia enable the Software Qtopia rendering backend], [ if [ test "$enableval" = "yes" ]; then AC_MSG_RESULT(yes) - AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_QTOPIA, test "$enableval" = "yes") - AC_DEFINE(BUILD_ENGINE_SOFTWARE_QTOPIA) - qt_cflags="-fno-exceptions -fno-rtti -I"$qt_dir"/include" - qt_libs="-L"$qt_dir"/lib -lqte -lqpe" - qt_moc=$qt_dir"/bin/moc" - ENGINE_SOFTWARE_QTOPIA_PRG="evas_software_qtopia_test" + have_evas_qtopia="yes" else AC_MSG_RESULT(no) - AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_QTOPIA, false) - ENGINE_SOFTWARE_QTOPIA_PRG="" fi ], [ - AC_MSG_RESULT(no) - AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_QTOPIA, false) - ENGINE_SOFTWARE_QTOPIA_PRG="" + AC_MSG_RESULT(yes) + have_evas_qtopia="yes" ] ) +if test "x$have_evas_qtopia" = "xyes"; then + AC_CHECK_HEADER(qdirectpainter_qws.h, + [ + AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_QTOPIA, test "$enableval" = "yes") + AC_DEFINE(BUILD_ENGINE_SOFTWARE_QTOPIA) + qt_cflags="-fno-exceptions -fno-rtti -I"$qt_dir"/include" + qt_libs="-L"$qt_dir"/lib -lqte -lqpe" + qt_moc=$qt_dir"/bin/moc" + ENGINE_SOFTWARE_QTOPIA_PRG="evas_software_qtopia_test" + ], [ + AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_QTOPIA, false) + AC_MSG_RESULT(disabling qtopia engine) + ], + [ + #include <qwidget.h> + #include <qnamespace.h> + #include <qbrush.h> + #include <qpainter.h> + ] + ) +else + AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_QTOPIA, false) +fi + +have_evas_gl_x11=""; +ENGINE_GL_X11_PRG=""; + AC_MSG_CHECKING(whether gl x11 backend is to be built) AC_ARG_ENABLE(gl-x11, [ --enable-gl-x11 enable the OpenGL X11 display engine], [ if [ test "$enableval" = "yes" ]; then AC_MSG_RESULT(yes) - AM_CONDITIONAL(BUILD_ENGINE_GL_X11, test "$enableval" = "yes") - AC_DEFINE(BUILD_ENGINE_GL_X11) - AM_CONDITIONAL(BUILD_ENGINE_GL_COMMON, test "$enableval" = "yes") - AC_DEFINE(BUILD_ENGINE_GL_COMMON) - x_dir="/usr/X11R6"; - x_cflags="-I"$x_dir"/include" - x_libs="-L"$x_dir"/lib -lX11 -lXext" - gl_cflags="-I/usr/include" - gl_libs="-L/usr/lib -lGL -lGLU -lpthread" - gl_dir="" - ENGINE_GL_X11_PRG="evas_gl_x11_test" + have_evas_gl_x11="yes" else AC_MSG_RESULT(no) - AM_CONDITIONAL(BUILD_ENGINE_GL_X11, false) - AM_CONDITIONAL(BUILD_ENGINE_GL_COMMON, false) - ENGINE_GL_X11_PRG="" fi ], [ - AC_MSG_RESULT(no) - AM_CONDITIONAL(BUILD_ENGINE_GL_X11, false) - AM_CONDITIONAL(BUILD_ENGINE_GL_COMMON, false) - ENGINE_GL_X11_PRG="" + AC_MSG_RESULT(yes) + have_evas_gl_x11="yes" ] ) +if test "x$have_evas_gl_x11" = "xyes"; then + AC_CHECK_HEADER(GL/gl.h, + [ + AC_CHECK_HEADER(X11/X.h, + [ + AM_CONDITIONAL(BUILD_ENGINE_GL_X11, true) + AC_DEFINE(BUILD_ENGINE_GL_X11) + AM_CONDITIONAL(BUILD_ENGINE_GL_COMMON, true) + AC_DEFINE(BUILD_ENGINE_GL_COMMON) + x_dir="/usr/X11R6"; + x_cflags="-I"$x_dir"/include" + x_libs="-L"$x_dir"/lib -lX11 -lXext" + gl_cflags="-I/usr/include" + gl_libs="-L/usr/lib -lGL -lGLU -lpthread" + gl_dir="" + ENGINE_GL_X11_PRG="evas_gl_x11_test" + ], [ + AM_CONDITIONAL(BUILD_ENGINE_GL_X11, false) + AM_CONDITIONAL(BUILD_ENGINE_GL_COMMON, false) + AC_MSG_RESULT(disabling GL X11 engine) + ] + ) + ], [ + AM_CONDITIONAL(BUILD_ENGINE_GL_X11, false) + AM_CONDITIONAL(BUILD_ENGINE_GL_COMMON, false) + AC_MSG_RESULT(disabling GL X11 engine) + ] + ) +else + AM_CONDITIONAL(BUILD_ENGINE_GL_X11, false) + AM_CONDITIONAL(BUILD_ENGINE_GL_COMMON, false) +fi + ########### image loaders +have_png=""; + AC_MSG_CHECKING(whether to enable png image loader) AC_ARG_ENABLE(image-loader-png, [ --enable-image-loader-png enable png image loader], [ if [ test "$enableval" = "yes" ]; then AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_LOADER_PNG) - png_cflags="" - png_libs="-lpng -lz" + have_png="yes" else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + have_png="yes" + ] ) +if test "x$have_png" = "xyes"; then + AC_CHECK_LIB(png, png_access_version_number, + [ + AC_DEFINE(BUILD_LOADER_PNG) + png_cflags="" + png_libs="-lpng -lz" + ] + ) +fi + +have_jpeg=""; + AC_MSG_CHECKING(whether to enable jpeg image loader) AC_ARG_ENABLE(image-loader-jpeg, [ --enable-image-loader-jpeg enable jpeg image loader], [ if [ test "$enableval" = "yes" ]; then AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_LOADER_JPEG) - jpeg_cflags="" - jpeg_libs="-ljpeg" + have_jpeg="yes" else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + have_jpeg="yes" + ] ) +if test "x$have_jpeg" = "xyes"; then + AC_CHECK_LIB(jpeg, jpeg_set_quality, + [ + AC_DEFINE(BUILD_LOADER_JPEG) + jpeg_cflags="" + jpeg_libs="-ljpeg" + ] + ) +fi + +have_eet=""; + AC_MSG_CHECKING(whether to enable eet image loader) AC_ARG_ENABLE(image-loader-eet, [ --enable-image-loader-eet enable eet image loader], [ if [ test "$enableval" = "yes" ]; then AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_LOADER_EET) - eet_cflags=`eet-config --cflags` - eet_libs=`eet-config --libs` + have_eet="yes" else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + have_eet="yes" + ] ) +if test "x$have_eet" = "xyes"; then + AC_CHECK_LIB(eet, eet_open, + [ + AC_DEFINE(BUILD_LOADER_EET) + eet_cflags=`eet-config --cflags` + eet_libs=`eet-config --libs` + ] + ) +fi + +have_edb=""; + AC_MSG_CHECKING(whether to enable edb image loader) AC_ARG_ENABLE(image-loader-edb, [ --enable-image-loader-edb enable edb image loader], [ if [ test "$enableval" = "yes" ]; then AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_LOADER_EDB) - edb_cflags=`edb-config --cflags` - edb_libs=`edb-config --libs`" -lz" + have_edb="yes" else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + have_edb="yes" + ] ) +if test "x$have_edb" = "xyes"; then + AC_CHECK_LIB(edb, e_db_open, + [ + AC_DEFINE(BUILD_LOADER_EDB) + edb_cflags=`edb-config --cflags` + edb_libs=`edb-config --libs`" -lz" + ] + ) +fi + ########### dither mask AC_MSG_CHECKING(whether to build small dither mask code) @@ -336,7 +473,10 @@ else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_SMALL_DITHER_MASK) + ] ) ########### hard coded cpu assumptions @@ -445,7 +585,10 @@ else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_C) + ] ) ########### scaling modes @@ -460,7 +603,10 @@ else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_SCALE_SAMPLE) + ] ) AC_MSG_CHECKING(whether to build smooth scaler) @@ -473,21 +619,27 @@ else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_SCALE_SMOOTH) + ] ) -AC_MSG_CHECKING(whether to build tri-linear scaler) +# AC_MSG_CHECKING(whether to build tri-linear scaler) -AC_ARG_ENABLE(scale-trilinear, - [ --enable-scale-trilinear enable tri-linear scaler code], [ - if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_SCALE_TRILINEAR) - else - AC_MSG_RESULT(no) - fi - ], AC_MSG_RESULT(no) -) +# AC_ARG_ENABLE(scale-trilinear, +# [ --enable-scale-trilinear enable tri-linear scaler code], [ +# if [ test "$enableval" = "yes" ]; then +# AC_MSG_RESULT(yes) +# AC_DEFINE(BUILD_SCALE_TRILINEAR) +# else +# AC_MSG_RESULT(no) +# fi +# ], [ +# AC_MSG_RESULT(yes) +# AC_DEFINE(BUILD_SCALE_TRILINEAR) +# ] +#) ########### converter modes @@ -501,7 +653,10 @@ else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_8_RGB_332) + ] ) AC_MSG_CHECKING(whether to build 8bpp 332 converter code) @@ -509,12 +664,15 @@ AC_ARG_ENABLE(convert-8-rgb-666, [ --enable-convert-8-rgb-666 enable 8bpp 666 converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_8_RGB_666) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_8_RGB_666) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_8_RGB_666) + ] ) AC_MSG_CHECKING(whether to build 8bpp 232 converter code) @@ -522,12 +680,15 @@ AC_ARG_ENABLE(convert-8-rgb-232, [ --enable-convert-8-rgb-232 enable 8bpp 232 converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_8_RGB_232) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_8_RGB_232) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_8_RGB_232) + ] ) AC_MSG_CHECKING(whether to build 8bpp 222 converter code) @@ -535,12 +696,15 @@ AC_ARG_ENABLE(convert-8-rgb-222, [ --enable-convert-8-rgb-222 enable 8bpp 222 converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_8_RGB_222) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_8_RGB_222) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_8_RGB_222) + ] ) AC_MSG_CHECKING(whether to build 8bpp 221 converter code) @@ -548,12 +712,15 @@ AC_ARG_ENABLE(convert-8-rgb-221, [ --enable-convert-8-rgb-221 enable 8bpp 221 converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_8_RGB_221) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_8_RGB_221) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_8_RGB_221) + ] ) AC_MSG_CHECKING(whether to build 8bpp 111 converter code) @@ -561,12 +728,15 @@ AC_ARG_ENABLE(convert-8-rgb-111, [ --enable-convert-8-rgb-111 enable 8bpp 111 converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_8_RGB_111) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_8_RGB_111) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_8_RGB_111) + ] ) AC_MSG_CHECKING(whether to build 16bpp 565 converter code) @@ -574,12 +744,15 @@ AC_ARG_ENABLE(convert-16-rgb-565, [ --enable-convert-16-rgb-565 enable 16bpp 565 converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_16_RGB_565) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_16_RGB_565) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_16_RGB_565) + ] ) AC_MSG_CHECKING(whether to build 16bpp 555 converter code) @@ -587,12 +760,15 @@ AC_ARG_ENABLE(convert-16-rgb-555, [ --enable-convert-16-rgb-555 enable 16bpp 555 converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_16_RGB_555) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_16_RGB_555) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_16_RGB_555) + ] ) AC_MSG_CHECKING(whether to build 16bpp 444 converter code) @@ -600,12 +776,15 @@ AC_ARG_ENABLE(convert-16-rgb-444, [ --enable-convert-16-rgb-444 enable 16bpp 444 converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_16_RGB_444) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_16_RGB_444) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_16_RGB_444) + ] ) AC_MSG_CHECKING(whether to build 16bpp 565 (444 ipaq) converter code) @@ -613,12 +792,15 @@ AC_ARG_ENABLE(convert-16-rgb-ipq, [ --enable-convert-16-rgb-ipq enable 16bpp 565 (444 ipaq) converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_16_RGB_454645) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_16_RGB_454645) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_16_RGB_454645) + ] ) AC_MSG_CHECKING(whether to build 16bpp rotation 0 converter code) @@ -626,12 +808,15 @@ AC_ARG_ENABLE(convert-16-rgb-rot-0, [ --enable-convert-16-rgb-rot-0 enable 16bpp rotation 0 converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_16_RGB_ROT0) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_16_RGB_ROT0) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_16_RGB_ROT0) + ] ) AC_MSG_CHECKING(whether to build 16bpp rotation 270 converter code) @@ -639,12 +824,15 @@ AC_ARG_ENABLE(convert-16-rgb-rot-270, [ --enable-convert-16-rgb-rot-270 enable 16bpp rotation 270 converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_16_RGB_ROT270) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_16_RGB_ROT270) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_16_RGB_ROT270) + ] ) AC_MSG_CHECKING(whether to build 16bpp rotation 90 converter code) @@ -652,12 +840,15 @@ AC_ARG_ENABLE(convert-16-rgb-rot-90, [ --enable-convert-16-rgb-rot-90 enable 16bpp rotation 90 converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_16_RGB_ROT90) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_16_RGB_ROT90) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_16_RGB_ROT90) + ] ) AC_MSG_CHECKING(whether to build 24bpp 888 rgb converter code) @@ -665,12 +856,15 @@ AC_ARG_ENABLE(convert-24-rgb-888, [ --enable-convert-24-rgb-888 enable 24bpp rgb 888 converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_24_RGB_888) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_24_RGB_888) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_24_RGB_888) + ] ) AC_MSG_CHECKING(whether to build 24bpp 888 bgr converter code) @@ -678,12 +872,15 @@ AC_ARG_ENABLE(convert-24-bgr-888, [ --enable-convert-24-bgr-888 enable 24bpp bgr 888 converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_24_BGR_888) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_24_BGR_888) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_24_BGR_888) + ] ) AC_MSG_CHECKING(whether to build 32bpp 8888 rgb converter code) @@ -691,12 +888,15 @@ AC_ARG_ENABLE(convert-32-rgb-8888, [ --enable-convert-32-rgb-8888 enable 32bpp rgb 8888 converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_32_RGB_8888) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_32_RGB_8888) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_32_RGB_8888) + ] ) AC_MSG_CHECKING(whether to build 32bpp 8888 rgbx converter code) @@ -704,12 +904,15 @@ AC_ARG_ENABLE(convert-32-rgbx-8888, [ --enable-convert-32-rgbx-8888 enable 32bpp rgbx 8888 converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_32_RGBX_8888) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_32_RGBX_8888) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_32_RGBX_8888) + ] ) AC_MSG_CHECKING(whether to build 32bpp 8888 bgr converter code) @@ -717,12 +920,15 @@ AC_ARG_ENABLE(convert-32-bgr-8888, [ --enable-convert-32-bgr-8888 enable 32bpp bgr 8888 converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_32_BGR_8888) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_32_BGR_8888) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_32_BGR_8888) + ] ) AC_MSG_CHECKING(whether to build 32bpp 8888 bgrx converter code) @@ -730,12 +936,15 @@ AC_ARG_ENABLE(convert-32-bgrx-8888, [ --enable-convert-32-bgrx-8888 enable 32bpp bgrx 8888 converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_32_BGRX_8888) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_32_BGRX_8888) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_32_BGRX_8888) + ] ) AC_MSG_CHECKING(whether to build 32bpp rotation 0 converter code) @@ -743,12 +952,15 @@ AC_ARG_ENABLE(convert-32-rgb-rot-0, [ --enable-convert-32-rgb-rot-0 enable 32bpp rotation 0 converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_32_RGB_ROT0) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_32_RGB_ROT0) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_32_RGB_ROT0) + ] ) AC_MSG_CHECKING(whether to build 32bpp rotation 270 converter code) @@ -756,12 +968,15 @@ AC_ARG_ENABLE(convert-32-rgb-rot-270, [ --enable-convert-32-rgb-rot-270 enable 32bpp rotation 270 converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_32_RGB_ROT270) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_32_RGB_ROT270) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_32_RGB_ROT270) + ] ) AC_MSG_CHECKING(whether to build 32bpp rotation 90 converter code) @@ -769,12 +984,15 @@ AC_ARG_ENABLE(convert-32-rgb-rot-90, [ --enable-convert-32-rgb-rot-90 enable 32bpp rotation 90 converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_32_RGB_ROT90) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_32_RGB_ROT90) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_32_RGB_ROT90) + ] ) AC_MSG_CHECKING(whether to build yuv converter code) @@ -782,12 +1000,15 @@ AC_ARG_ENABLE(convert-yuv, [ --enable-convert-yuv enable yuv converter code], [ if [ test "$enableval" = "yes" ]; then - AC_MSG_RESULT(yes) - AC_DEFINE(BUILD_CONVERT_YUV) + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_YUV) else AC_MSG_RESULT(no) fi - ], AC_MSG_RESULT(no) + ], [ + AC_MSG_RESULT(yes) + AC_DEFINE(BUILD_CONVERT_YUV) + ] ) |