summaryrefslogtreecommitdiff
path: root/legacy/evas/configure.in
blob: 2b4fa1b02f52598a3da6ed43ef8ef297a82c79bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
dnl Process this file with autoconf to produce a configure script.

# get rid of that stupid cache mechanism
rm -f config.cache

AC_INIT(configure.in)
AC_ISC_POSIX
AM_INIT_AUTOMAKE(evas, 1.0.0_pre5)
AM_CONFIG_HEADER(config.h)

AC_C_BIGENDIAN
AC_PROG_CC
AC_PROG_CXX
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_C_CONST
AM_ENABLE_SHARED
AM_PROG_LIBTOOL

dnl Add the languages which your application supports here.

if test "x${exec_prefix}" = "xNONE"; then
  if test "x${prefix}" = "xNONE"; then
    bindir="${ac_default_prefix}/bin";
  else
    bindir="${prefix}/bin";
  fi
else
  if test "x${prefix}" = "xNONE"; then
    bindir="${ac_default_prefix}/bin";
  else
    bindir="${prefix}/bin";
  fi
fi

if test "x${exec_prefix}" = "xNONE"; then
  if test "x${prefix}" = "xNONE"; then
    libdir="${ac_default_prefix}/lib";
  else
    libdir="${prefix}/lib";
  fi
else
  if test "x${prefix}" = "xNONE"; then
    libdir="${ac_default_prefix}/lib";
  else
    libdir="${prefix}/lib";
  fi
fi

dnl Set PACKAGE_DATA_DIR in config.h.
if test "x${datadir}" = 'x${prefix}/share'; then
  if test "x${prefix}" = "xNONE"; then
    AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}")
  else
    AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}")
  fi
else
  AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}")
fi

dnl Set PACKAGE_BIN_DIR in config.h.
if test "x${bindir}" = 'xNONE'; then
  if test "x${prefix}" = "xNONE"; then
    AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${ac_default_prefix}/bin")
  else
    AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${prefix}/bin")
  fi
else
  AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${bindir}")
fi

dnl Set PACKAGE_LIB_DIR in config.h.
if test "x${libdir}" = 'xNONE'; then
  if test "x${prefix}" = "xNONE"; then
    AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${ac_default_prefix}/lib")
  else
    AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${prefix}/lib")
  fi
else
  AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${libdir}")
fi

dnl Set PACKAGE_SOURCE_DIR in config.h.
packagesrcdir=`cd $srcdir && pwd`
AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}")

x_dir=""
x_cflags=""
x_libs=""
gl_dir=""
gl_cflags=""
gl_libs=""
qt_dir=""
qt_cflags=""
qt_libs=""				 
qt_moc="moc"

# blah-config style checks
# qtdir setting
AC_ARG_WITH(qtdir,
[  --with-qtdir=QT_DIR                       use qt directory specified ],
[ 
  qt_dir=$withval;
  echo "using "$qt_dir" for qt directory.";
],[
  qt_dir="/opt/Qtopia";
])
# check for freetype
AC_ARG_WITH(freetype-config,
[  --with-freetype-config=FREETYPE_CONFIG    use freetype-config specified ],
[ 
  PROG_CONFIG=$withval;
  echo "using "$PROG_CONFIG" for freetype-config";
],[
  PROG="freetype-config";
  AC_PATH_PROG(PROG_CONFIG, $PROG, "", $PATH)
])
if [ test -z $PROG_CONFIG ]; then
  echo $PROG " is not in your \$PATH. Please ensure it is.";
  echo "You may need to install the librarya and/or development packages";
  echo "that contain this configure-script.";
  echo "FATAL ERROR. ABORT.";
  exit -1;
fi
freetype_cflags=`$PROG_CONFIG --cflags`
freetype_libs=`$PROG_CONFIG --libs`

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], [
	   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"
        ], [
	   AC_MSG_RESULT(no)
	   AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_X11, false)
	   ENGINE_SOFTWARE_X11_PRG=""
	]
)

AC_MSG_CHECKING(whether directfb backend is to be built)

AC_ARG_ENABLE(directfb, [  --enable-directfb                enable the DirectFB rendering backend], [
	   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"
	], [
	   AC_MSG_RESULT(no)
	   AM_CONDITIONAL(BUILD_ENGINE_DIRECTFB, false)
	   ENGINE_DIRECTFB_PRG=""
	]
)

AC_MSG_CHECKING(whether fb backend is to be built)

AC_ARG_ENABLE(fb, [  --enable-fb                     enable the FB rendering backend], [
	   AC_MSG_RESULT(yes)
	   AM_CONDITIONAL(BUILD_ENGINE_FB, true)
	   AC_DEFINE(BUILD_ENGINE_FB)
	   ENGINE_FB_PRG="evas_fb_test"
	], [
	   AC_MSG_RESULT(no)
	   AM_CONDITIONAL(BUILD_ENGINE_FB, false)
	   ENGINE_FB_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], [
	   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"
        ], [
	   AC_MSG_RESULT(no)
	   AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_QTOPIA, false)
	   ENGINE_SOFTWARE_QTOPIA_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], [
	   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"
	   gl_dir=""
	   ENGINE_GL_X11_PRG="evas_gl_x11_test"
        ], [
	   AC_MSG_RESULT(no)
	   AM_CONDITIONAL(BUILD_ENGINE_GL_X11, false)
	   AM_CONDITIONAL(BUILD_ENGINE_GL_COMMON, false)
	   ENGINE_GL_X11_PRG=""
	]
)

########### image loaders

AC_MSG_CHECKING(whether to enable png image loader)

AC_ARG_ENABLE(image-loader-png, 
  [  --enable-image-loader-png       enable png image loader], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_LOADER_PNG)
      png_cflags=""
      png_libs="-lpng -lz"
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to enable jpeg image loader)

AC_ARG_ENABLE(image-loader-jpeg, 
  [  --enable-image-loader-jpeg      enable jpeg image loader], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_LOADER_JPEG)
      jpeg_cflags=""
      jpeg_libs="-ljpeg"
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to enable eet image loader)

AC_ARG_ENABLE(image-loader-eet, 
  [  --enable-image-loader-eet       enable eet image loader], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_LOADER_EET)
      eet_cflags=`eet-config --cflags`
      eet_libs=`eet-config --libs`
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to enable edb image loader)

AC_ARG_ENABLE(image-loader-edb, 
  [  --enable-image-loader-edb       enable edb image loader], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_LOADER_EDB)
      edb_cflags=`edb-config --cflags`
      edb_libs=`edb-config --libs`" -lz"
  ], AC_MSG_RESULT(no)
)

########### dither mask

AC_MSG_CHECKING(whether to build small dither mask code)

AC_ARG_ENABLE(small-dither-mask, 
  [  --enable-small-dither-mask      enable small dither mask code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_SMALL_DITHER_MASK)
  ], AC_MSG_RESULT(no)
)

########### hard coded cpu assumptions

AC_MSG_CHECKING(whether to build code assuming a pentium2/amd and up)

AC_ARG_ENABLE(cpu-p2-only, 
  [  --enable-cpu-p2-only            enable assumption of pentium2/amd cpu], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(HARD_CODED_P2)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build code assuming a pentium3 and up)

AC_ARG_ENABLE(cpu-p3-only, 
  [  --enable-cpu-p3-only            enable assumption of pentium3 and up cpu], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(HARD_CODED_P3)
  ], AC_MSG_RESULT(no)
)

########### cpu modes

AC_MSG_CHECKING(whether to build mmx code)

AC_ARG_ENABLE(cpu-mmx, 
  [  --enable-cpu-mmx                enable mmx code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_MMX)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build sse code)

AC_ARG_ENABLE(cpu-sse, 
  [  --enable-cpu-sse                enable sse code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_SSE)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build c code)

AC_ARG_ENABLE(cpu-c, 
  [  --enable-cpu-c                  enable C code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_C)
  ], AC_MSG_RESULT(no)
)

########### scaling modes

AC_MSG_CHECKING(whether to build sampling scaler)

AC_ARG_ENABLE(scale-sample, 
  [  --enable-scale-sample           enable sampling scaler code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_SCALE_SAMPLE)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build smooth scaler)

AC_ARG_ENABLE(scale-smooth, 
  [  --enable-scale-smooth           enable sampling scaler code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_SCALE_SMOOTH)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build tri-linear scaler)

AC_ARG_ENABLE(scale-trilinear, 
  [  --enable-scale-trilinear        enable tri-linear scaler code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_SCALE_TRILINEAR)
  ], AC_MSG_RESULT(no)
)

########### converter modes 

AC_MSG_CHECKING(whether to build 8bpp 332 converter code)

AC_ARG_ENABLE(convert-8-rgb-332, 
  [  --enable-convert-8-rgb-332      enable 8bpp 332 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_8_RGB_332)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 8bpp 332 converter code)

AC_ARG_ENABLE(convert-8-rgb-666, 
  [  --enable-convert-8-rgb-666      enable 8bpp 666 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_8_RGB_666)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 8bpp 232 converter code)

AC_ARG_ENABLE(convert-8-rgb-232, 
  [  --enable-convert-8-rgb-232      enable 8bpp 232 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_8_RGB_232)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 8bpp 222 converter code)

AC_ARG_ENABLE(convert-8-rgb-222, 
  [  --enable-convert-8-rgb-222      enable 8bpp 222 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_8_RGB_222)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 8bpp 221 converter code)

AC_ARG_ENABLE(convert-8-rgb-221, 
  [  --enable-convert-8-rgb-221      enable 8bpp 221 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_8_RGB_221)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 8bpp 111 converter code)

AC_ARG_ENABLE(convert-8-rgb-111, 
  [  --enable-convert-8-rgb-111      enable 8bpp 111 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_8_RGB_111)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 16bpp 565 converter code)

AC_ARG_ENABLE(convert-16-rgb-565, 
  [  --enable-convert-16-rgb-565     enable 16bpp 565 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_16_RGB_565)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 16bpp 555 converter code)

AC_ARG_ENABLE(convert-16-rgb-555, 
  [  --enable-convert-16-rgb-555     enable 16bpp 555 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_16_RGB_555)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 16bpp 444 converter code)

AC_ARG_ENABLE(convert-16-rgb-444, 
  [  --enable-convert-16-rgb-444     enable 16bpp 444 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_16_RGB_444)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 16bpp 565 (444 ipaq) converter code)

AC_ARG_ENABLE(convert-16-rgb-ipq, 
  [  --enable-convert-16-rgb-ipq     enable 16bpp 565 (444 ipaq) converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_16_RGB_454645)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 16bpp rotation 0 converter code)

AC_ARG_ENABLE(convert-16-rgb-rot-0, 
  [  --enable-convert-16-rgb-rot-0   enable 16bpp rotation 0 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_16_RGB_ROT0)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 16bpp rotation 270 converter code)

AC_ARG_ENABLE(convert-16-rgb-rot-270, 
  [  --enable-convert-16-rgb-rot-270 enable 16bpp rotation 270 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_16_RGB_ROT270)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 16bpp rotation 90 converter code)

AC_ARG_ENABLE(convert-16-rgb-rot-90, 
  [  --enable-convert-16-rgb-rot-90  enable 16bpp rotation 90 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_16_RGB_ROT90)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 24bpp 888 rgb converter code)

AC_ARG_ENABLE(convert-24-rgb-888, 
  [  --enable-convert-24-rgb-888     enable 24bpp rgb 888 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_24_RGB_888)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 24bpp 888 bgr converter code)

AC_ARG_ENABLE(convert-24-bgr-888, 
  [  --enable-convert-24-bgr-888     enable 24bpp bgr 888 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_24_BGR_888)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 32bpp 8888 rgb converter code)

AC_ARG_ENABLE(convert-32-rgb-8888, 
  [  --enable-convert-32-rgb-8888    enable 32bpp rgb 8888 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_32_RGB_8888)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 32bpp 8888 rgbx converter code)

AC_ARG_ENABLE(convert-32-rgbx-8888, 
  [  --enable-convert-32-rgbx-8888    enable 32bpp rgbx 8888 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_32_RGBX_8888)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 32bpp 8888 bgr converter code)

AC_ARG_ENABLE(convert-32-bgr-8888, 
  [  --enable-convert-32-bgr-8888    enable 32bpp bgr 8888 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_32_BGR_8888)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 32bpp 8888 bgrx converter code)

AC_ARG_ENABLE(convert-32-bgrx-8888, 
  [  --enable-convert-32-bgrx-8888    enable 32bpp bgrx 8888 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_32_BGRX_8888)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 32bpp rotation 0 converter code)

AC_ARG_ENABLE(convert-32-rgb-rot-0, 
  [  --enable-convert-32-rgb-rot-0   enable 32bpp rotation 0 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_32_RGB_ROT0)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 32bpp rotation 270 converter code)

AC_ARG_ENABLE(convert-32-rgb-rot-270, 
  [  --enable-convert-32-rgb-rot-270 enable 32bpp rotation 270 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_32_RGB_ROT270)
  ], AC_MSG_RESULT(no)
)

AC_MSG_CHECKING(whether to build 32bpp rotation 90 converter code)

AC_ARG_ENABLE(convert-32-rgb-rot-90, 
  [  --enable-convert-32-rgb-rot-90 enable 32bpp rotation 90 converter code], [
      AC_MSG_RESULT(yes)
      AC_DEFINE(BUILD_CONVERT_32_RGB_ROT90)
  ], AC_MSG_RESULT(no)
)



AC_SUBST(freetype_cflags)
AC_SUBST(freetype_libs)

AC_SUBST(x_cflags)
AC_SUBST(x_libs)

AC_SUBST(gl_cflags)
AC_SUBST(gl_libs)

AC_SUBST(qt_cflags)
AC_SUBST(qt_libs)
AC_SUBST(qt_moc)

AC_SUBST(png_cflags)
AC_SUBST(png_libs)
AC_SUBST(jpeg_cflags)
AC_SUBST(jpeg_libs)
AC_SUBST(eet_cflags)
AC_SUBST(eet_libs)
AC_SUBST(edb_cflags)
AC_SUBST(edb_libs)

AC_SUBST(ENGINE_SOFTWARE_X11_PRG)
AC_SUBST(ENGINE_DIRECTFB_PRG)
AC_SUBST(ENGINE_FB_PRG)
AC_SUBST(ENGINE_SOFTWARE_QTOPIA_PRG)
AC_SUBST(ENGINE_GL_X11_PRG)

AC_OUTPUT([
Makefile
src/Makefile
src/bin/Makefile
src/bin/evas_software_win32/Makefile
src/lib/Makefile
src/lib/canvas/Makefile
src/lib/data/Makefile
src/lib/file/Makefile
src/lib/engines/Makefile
src/lib/engines/common/Makefile
src/lib/engines/software_x11/Makefile
src/lib/engines/fb/Makefile
src/lib/engines/software_win32_gdi/Makefile
src/lib/engines/software_qtopia/Makefile
src/lib/engines/directfb/Makefile
src/lib/engines/gl_common/Makefile
src/lib/engines/gl_x11/Makefile
src/lib/include/Makefile
proj/Makefile
proj/win32_gdi/Makefile
evas-config
],[
chmod +x evas-config
touch evas_docs.tar.gz
])