1dnl Process this file with autoconf to produce a configure script.
2
3AC_INIT(include/directfb.h)
4
5AC_PREREQ(2.52)
6
7#
8# Making releases:
9#   DIRECTFB_MICRO_VERSION += 1;
10#   DIRECTFB_INTERFACE_AGE += 1;
11#   DIRECTFB_BINARY_AGE += 1;
12# if any functions have been added, set DIRECTFB_INTERFACE_AGE to 0.
13# if backwards compatibility has been broken,
14# set DIRECTFB_BINARY_AGE and DIRECTFB_INTERFACE_AGE to 0.
15#
16#
17DIRECTFB_MAJOR_VERSION=1
18DIRECTFB_MINOR_VERSION=4
19DIRECTFB_MICRO_VERSION=17
20DIRECTFB_INTERFACE_AGE=11
21DIRECTFB_BINARY_AGE=11
22DIRECTFB_VERSION=$DIRECTFB_MAJOR_VERSION.$DIRECTFB_MINOR_VERSION.$DIRECTFB_MICRO_VERSION
23
24#fluxcomp 1.3.0
25FLUXCOMP_REQUIRED_VERSIONCODE=1003000
26
27AC_SUBST(DIRECTFB_MAJOR_VERSION)
28AC_SUBST(DIRECTFB_MINOR_VERSION)
29AC_SUBST(DIRECTFB_MICRO_VERSION)
30AC_SUBST(DIRECTFB_INTERFACE_AGE)
31AC_SUBST(DIRECTFB_BINARY_AGE)
32AC_SUBST(DIRECTFB_VERSION)
33
34AC_DEFINE_UNQUOTED(DIRECTFB_VERSION,"$DIRECTFB_VERSION",[The DirectFB version])
35
36# libtool versioning
37LT_RELEASE=$DIRECTFB_MAJOR_VERSION.$DIRECTFB_MINOR_VERSION
38LT_CURRENT=`expr $DIRECTFB_MICRO_VERSION - $DIRECTFB_INTERFACE_AGE`
39LT_BINARY=`expr $DIRECTFB_MICRO_VERSION - $DIRECTFB_BINARY_AGE`
40LT_REVISION=$DIRECTFB_INTERFACE_AGE
41LT_AGE=`expr $DIRECTFB_BINARY_AGE - $DIRECTFB_INTERFACE_AGE`
42
43AC_SUBST(LT_RELEASE)
44AC_SUBST(LT_CURRENT)
45AC_SUBST(LT_BINARY)
46AC_SUBST(LT_REVISION)
47AC_SUBST(LT_AGE)
48
49# The earliest version that this release has binary compatibility with.
50# This is used for module locations.
51BINARY_VERSION=$DIRECTFB_MAJOR_VERSION.$DIRECTFB_MINOR_VERSION-$LT_BINARY
52
53
54VERSION=$DIRECTFB_VERSION
55PACKAGE=DirectFB
56
57AC_CANONICAL_HOST
58AC_CANONICAL_TARGET
59
60AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
61PKG_PROG_PKG_CONFIG
62
63#
64# Enable silent compilation showing just CC or CCLD rather than the full
65# compile-time GCC output.
66#
67AM_SILENT_RULES([no])
68
69AC_CONFIG_HEADER([config.h])
70AM_MAINTAINER_MODE
71AC_DISABLE_STATIC
72
73
74case x"$target" in
75  xNONE | x)
76    target_or_host="$host" ;;
77  *)
78    target_or_host="$target" ;;
79esac
80
81
82case "$target_or_host" in
83  *-cygwin)
84dnl    AC_ENABLE_STATIC
85dnl    AC_DISABLE_SHARED
86    ;;
87esac
88
89
90AC_PROG_CC
91AM_PROG_CC_C_O
92AC_PROG_CXX
93ifdef([AM_PROG_AS],[AM_PROG_AS],[])
94AM_PROG_LIBTOOL
95AM_SANITY_CHECK
96AC_SUBST(LD)
97AC_ISC_POSIX
98AC_PROG_INSTALL
99AC_PROG_MAKE_SET
100AC_HEADER_STDC
101AC_C_BIGENDIAN
102
103AC_CHECK_SIZEOF(int)
104AC_CHECK_SIZEOF(long)
105AC_CHECK_SIZEOF(long long)
106AC_CHECK_FUNCS(fork)
107
108
109## Work around libstuhl during cross build...
110if test "$host" != "$build"; then
111  sys_lib_dlsearch_path_spec=""
112  sys_lib_search_path_spec=""
113fi
114
115AC_PATH_PROGS(PERL, perl5 perl)
116
117AC_PATH_PROG(MAN2HTML, man2html, no)
118AC_SUBST(MAN2HTML)
119AM_CONDITIONAL(HAVE_MAN2HTML, test "$MAN2HTML" != "no")
120
121AC_PATH_TOOL(FLUXCOMP, fluxcomp)
122AC_SUBST(FLUXCOMP)
123if test -z "$FLUXCOMP"; then
124  if ! test -e src/core/CoreDFB.c; then
125    AC_MSG_ERROR([
126*** DirectFB compilation requires fluxcomp ***
127
128Unless you are compiling from a distributed tarball you need fluxcomp
129available from git://git.directfb.org/git/directfb/core/flux installed
130in your PATH.
131])
132  fi
133else
134  FLUXCOMP_VERSIONCODE=`$FLUXCOMP -V`
135  if test $FLUXCOMP_VERSIONCODE -lt $FLUXCOMP_REQUIRED_VERSIONCODE ; then
136    AC_MSG_ERROR([
137*** DirectFB compilation requires a newer fluxcomp ***
138available from git://git.directfb.org/git/directfb/core/flux
139])
140  fi
141fi
142
143dnl Test for OSX
144AC_ARG_ENABLE(osx,
145              AC_HELP_STRING([--enable-osx],
146                             [build with Mac OS X support @<:@default=auto@:>@]),
147              [], [enable_osx=yes])
148if test "$enable_osx" = "yes"; then
149  AC_CHECK_HEADER(Carbon/Carbon.h, osx_found=yes, osx_found=no)
150  if test "$osx_found" = no; then
151    enable_osx=no
152    AC_MSG_WARN([
153*** no Carbon/Carbon.h found -- building without Mac OS X support.])
154  else
155    OSX_LIBS="-framework Carbon"
156  fi
157fi
158
159AM_CONDITIONAL(OSX_CORE, test "$enable_osx" = "yes")
160
161dnl Test for X11
162AC_ARG_ENABLE(x11,
163              AC_HELP_STRING([--enable-x11],
164                             [build with X11 support @<:@default=auto@:>@]),
165              [], [enable_x11=yes])
166if test "$enable_x11" = "yes"; then
167  PKG_CHECK_MODULES([X11], [xproto x11 xext], [enable_x11="yes"], [enable_x11="no"
168    AC_MSG_WARN([*** no X11 found -- building without X11 support])])
169fi
170
171AM_CONDITIONAL(X11_CORE, test "$enable_x11" = "yes")
172
173
174AC_CHECK_HEADERS(linux/compiler.h linux/unistd.h asm/page.h signal.h)
175
176
177dnl Clear default CFLAGS
178if test x"$CFLAGS" = x"-g -O2"; then
179  CFLAGS=
180fi
181
182CFLAGS="-O3 -ffast-math -pipe $CFLAGS"
183
184DFB_INTERNAL_CFLAGS="-D_GNU_SOURCE $DFB_INTERNAL_CFLAGS"
185
186AC_ARG_ENABLE(extra-warnings,
187              AC_HELP_STRING([--enable-extra-warnings],
188                             [enable extra warnings @<:@default=no@:>@]),
189              [], [enable_extra_warnings=no])
190if test "$enable_extra_warnings" = "yes"; then
191  CFLAGS="-W -Wno-sign-compare -Wno-unused-parameter -Wundef -Wcast-qual -Wcast-align -Waggregate-return -Wmissing-declarations -Winline $CFLAGS"
192fi
193
194# FIXME
195#if test "$GCC" = "yes"; then
196#  CFLAGS="-Wall -Wno-strict-aliasing $CFLAGS"
197#fi
198
199if test "$GCC" = "yes"; then
200  CFLAGS_STD="-std=gnu99"
201fi
202
203
204#
205# check target architecture
206#
207have_x86=no
208have_x86_64=no
209have_arm=no
210have_ppc=no
211have_sh4=no
212
213case "$target_or_host" in
214  i*86-*-*)
215    have_x86=yes
216    AC_DEFINE(ARCH_X86,1,[Define to 1 if you are compiling for ix86.])
217    ;;
218
219  x86_64-*)
220    have_x86=yes
221    have_x86_64=yes
222    AC_DEFINE(ARCH_X86_64,1,[Define to 1 if you are compiling for AMD64.])
223    ;;
224
225  *arm* | *aarch64* )
226    have_arm=yes
227	AC_DEFINE(ARCH_ARM,1,[Define to 1 if you are compiling for ARM.])
228    ;;
229
230  ppc-*-linux* | powerpc*)
231    have_ppc=yes
232    AC_DEFINE(ARCH_PPC,1,[Define to 1 if you are compiling for PowerPC.])
233    ;;
234
235  sh4-* | sh3-* | sh-*)
236    have_sh4=yes
237    AC_DEFINE(ARCH_SH4,1,[Define to 1 if you are compiling for SH4.])
238    ;;
239
240  *)
241    ;;
242esac
243
244
245have_linux=no
246have_cygwin=no
247have_kos=no
248need_libc_r=no
249need_libdl=yes
250want_ppcasm=yes
251want_armasm=yes
252
253case "$target_or_host" in
254  *-*linux*)
255    have_linux=yes
256    ;;
257
258  *-cygwin)
259    have_cygwin=yes
260    need_libdl=no
261    ;;
262
263  *-freebsd*)
264    need_libc_r=yes
265    need_libdl=no
266    want_ppcasm=yes
267	want_armasm=yes
268    CPPFLAGS="$CPPFLAGS -I/usr/local/include"
269    LDFLAGS="$LDFLAGS -L/usr/local/lib"
270    ;;
271
272  *-openbsd*)
273    need_libc_r=yes
274    need_libdl=no
275    want_ppcasm=no
276	want_armasm=no
277    CPPFLAGS="$CPPFLAGS -I/usr/local/include"
278    LDFLAGS="$LDFLAGS -L/usr/local/lib"
279    ;;
280
281  *-netbsd*)
282    need_libc_r=no
283    need_libdl=no
284    want_ppcasm=yes
285	want_armasm=yes
286    CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
287    LDFLAGS="$LDFLAGS -L/usr/pkg/lib"
288    ;;
289
290  *-darwin*)
291    need_libc_r=no
292    need_libdl=yes
293    want_ppcasm=no
294	want_armasm=no
295    CPPFLAGS="$CPPFLAGS -I/sw/include"
296    LDFLAGS="$LDFLAGS -L/sw/lib"
297    ;;
298
299  sh-*-elf)
300    if test "$CC" = "kos-cc"; then
301      need_libc_r=no
302      need_libdl=no
303      have_kos=yes
304    fi
305    ;;
306esac
307
308AM_CONDITIONAL(HAVE_LINUX, test "$have_linux" = "yes")
309
310AM_CONDITIONAL(BUILDPPCASM, test "$have_ppc" = "yes" && test "$want_ppcasm" = "yes")
311
312if test "$have_ppc" = "yes" && test "$want_ppcasm" = "yes"; then
313    AC_DEFINE(USE_PPCASM,1,[Define to 1 if ppc assembly is available.])
314fi
315
316
317AM_CONDITIONAL(BUILDARMASM, test "$have_arm" = "yes" && test "$want_armasm" = "yes")
318
319if test "$have_arm" = "yes" && test "$want_armasm" = "yes"; then
320    AC_DEFINE(USE_ARMASM,1,[Define to 1 if arm assembly is available.])
321fi
322
323if test "$have_kos" = "yes"; then
324    AC_DEFINE(USE_KOS,1,[Define to 1 if compiling on KallistiOS.])
325fi
326
327dnl Threads
328
329THREADFLAGS="-D_REENTRANT"
330
331if test "$have_kos" = "no"; then
332  if test "$need_libc_r" = "yes"; then
333    AC_CHECK_LIB(c_r, pthread_attr_init, ,
334      AC_MSG_ERROR([
335*** DirectFB requires phtreads in libc_r.]))
336    THREADLIB="-lc_r"
337  else
338    AC_CHECK_LIB(pthread, pthread_attr_init, ,
339      AC_MSG_ERROR([
340*** DirectFB requires libpthread.]))
341    THREADLIB="-lpthread"
342  fi
343fi
344
345AC_CHECK_DECLS(PTHREAD_MUTEX_RECURSIVE,,
346  AC_MSG_WARN([
347*** PTHREAD_MUTEX_RECURSIVE is not defined! Dead locks might occur!]), [
348#define _GNU_SOURCE
349#include <pthread.h>])
350
351AC_CHECK_DECLS(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP,,
352  AC_MSG_WARN([
353*** PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP is not defined! Dead locks might occur!]), [
354#define _GNU_SOURCE
355#include <pthread.h>])
356
357AC_SUBST(THREADFLAGS)
358AC_SUBST(THREADLIB)
359
360CPPFLAGS="$THREADFLAGS $CPPFLAGS"
361
362
363dnl Dynamic Linker
364DYNLIB=""
365if test "$need_libdl" = "yes"; then
366  if test "$enable_shared" = "yes"; then
367    AC_CHECK_LIB(dl, dlopen, ,
368      AC_MSG_ERROR([
369*** DirectFB requires libdl.]))
370    DYNLIB="-ldl"
371  fi
372fi
373
374AC_SUBST(DYNLIB)
375
376
377if test "$have_x86" = "yes"; then
378##
379## HACK HACK HACK automake uses @AS@ like a gcc
380##
381  AS=$CC
382  ASFLAGS=$CFLAGS
383  AC_SUBST(AS)
384  AC_SUBST(ASFLAGS)
385
386  AC_DEFINE(HAVE_INB_OUTB_IOPL,1,
387            [Define to 1 if inb, outb and iopl are available.])
388  AC_MSG_CHECKING([for sys/io.h])
389  AC_TRY_COMPILE([#include <sys/io.h>], [char x = inb(0); (void)x;],
390    AC_DEFINE(HAVE_SYSIO,1,
391              [Define to 1 if you have the <sys/io.h> header file.])
392    have_sysio=yes
393    AC_MSG_RESULT(yes),
394    AC_MSG_RESULT(no))
395else
396  have_sysio=no
397fi
398
399
400AC_ARG_ENABLE(profiling,
401              AC_HELP_STRING([--enable-profiling],
402                             [enable profiling support @<:@default=no@:>@]),
403              [], [enable_profiling=no])
404if test "$enable_profiling" = "yes"; then
405    CFLAGS="$CFLAGS -pg -g3"
406else
407    DFB_CFLAGS_OMIT_FRAME_POINTER="-fomit-frame-pointer"
408fi
409
410
411AC_ARG_ENABLE(debug,
412              AC_HELP_STRING([--enable-debug],
413                             [enable debugging @<:@default=no@:>@]),
414              [], [enable_debug=no])
415if test "$enable_debug" = "yes"; then
416    CFLAGS="$CFLAGS -g3 -fno-inline -Wno-inline"
417    DIRECT_BUILD_DEBUG=1
418else
419    DIRECT_BUILD_DEBUG=0
420fi
421AM_CONDITIONAL(ENABLE_DEBUG, test "$enable_debug" = "yes")
422
423AC_SUBST(DIRECT_BUILD_DEBUG)
424
425
426AC_ARG_ENABLE(debug-support,
427              AC_HELP_STRING([--enable-debug-support],
428                             [enable debugging support @<:@default=yes@:>@]),
429              [], [enable_debug_support=yes])
430if test "$enable_debug_support" = "yes" || test "$enable_debug" = "yes"; then
431    enable_debug_support=yes
432    DIRECT_BUILD_DEBUGS=1
433else
434    DIRECT_BUILD_DEBUGS=0
435fi
436AM_CONDITIONAL(ENABLE_DEBUGS, test "$enable_debug_support" = "yes")
437
438AC_SUBST(DIRECT_BUILD_DEBUGS)
439
440
441AC_ARG_ENABLE(trace,
442              AC_HELP_STRING([--enable-trace],
443                             [enable call tracing @<:@default=no@:>@]),
444              [], [enable_trace=no])
445if test "$enable_trace" = "yes"; then
446    DFB_INTERNAL_CFLAGS="$DFB_INTERNAL_CFLAGS -finstrument-functions"
447    DIRECT_BUILD_TRACE=1
448else
449    DIRECT_BUILD_TRACE=0
450fi
451AM_CONDITIONAL(ENABLE_TRACE, test "$enable_trace" = "yes")
452
453AC_SUBST(DIRECT_BUILD_TRACE)
454
455
456AC_ARG_ENABLE(text,
457              AC_HELP_STRING([--enable-text],
458                             [enable text output @<:@default=yes@:>@]),
459              [], [enable_text=yes])
460if test "$enable_text" = "no"; then
461    DIRECT_BUILD_TEXT=0
462else
463    DIRECT_BUILD_TEXT=1
464fi
465
466AC_SUBST(DIRECT_BUILD_TEXT)
467
468
469AC_ARG_ENABLE(gettid,
470              AC_HELP_STRING([--enable-gettid],
471                             [enable usage of gettid() @<:@default=yes@:>@]),
472              [], [enable_gettid=yes])
473if test "$enable_gettid" = "no"; then
474    DIRECT_BUILD_GETTID=0
475else
476    DIRECT_BUILD_GETTID=1
477fi
478
479AC_SUBST(DIRECT_BUILD_GETTID)
480
481
482AC_ARG_ENABLE(network,
483              AC_HELP_STRING([--enable-network],
484                             [enable network support @<:@default=yes@:>@]),
485              [], [enable_network=yes])
486if test "$enable_network" = "no"; then
487    DIRECT_BUILD_NETWORK=0
488else
489    DIRECT_BUILD_NETWORK=1
490fi
491
492AC_SUBST(DIRECT_BUILD_NETWORK)
493
494
495AC_CHECK_HEADER(stdbool.h, DIRECT_BUILD_STDBOOL=1, DIRECT_BUILD_STDBOOL=0)
496
497AC_SUBST(DIRECT_BUILD_STDBOOL)
498
499
500linux_fusion="N/A"
501AC_ARG_ENABLE(multi,
502              AC_HELP_STRING([--enable-multi],
503                             [enable multi application core @<:@default=no@:>@]),
504              [], [enable_multi=no])
505if test "$enable_multi" = "yes"; then
506  dnl Test for Fusion Kernel Device
507  linux_fusion=yes
508  AC_CHECK_HEADER( [linux/fusion.h],, linux_fusion=no)
509  if test "$linux_fusion" = "yes"; then
510     FUSION_BUILD_KERNEL=1
511  else
512     fusion_warning="
513Linux-Fusion header not found. Using EXPERIMENTAL Builtin Multi application core!"
514     AC_MSG_WARN([*** $fusion_warning *** ])
515     FUSION_BUILD_KERNEL=0
516  fi
517  FUSION_BUILD_MULTI=1
518else
519  FUSION_BUILD_MULTI=0
520  FUSION_BUILD_KERNEL=0
521fi
522
523AC_ARG_ENABLE(one,
524              AC_HELP_STRING([--enable-one],
525                             [enable One (IPC) @<:@default=no@:>@]),
526              [], [enable_one=no])
527if test "$enable_one" = "yes"; then
528    DIRECTFB_BUILD_ONE=1
529    DEP_ONE=one
530else
531    DIRECTFB_BUILD_ONE=0
532    enable_one=no
533    DEP_ONE=
534fi
535
536AC_ARG_ENABLE(voodoo,
537              AC_HELP_STRING([--enable-voodoo],
538                             [enable Voodoo (network support) @<:@default=no@:>@]),
539              [], [enable_voodoo=no])
540if test "$enable_voodoo" = "yes"; then
541    DIRECTFB_BUILD_VOODOO=1
542    DEP_VOODOO=voodoo
543else
544    DIRECTFB_BUILD_VOODOO=0
545    enable_voodoo=no
546    DEP_VOODOO=
547fi
548
549
550AC_ARG_ENABLE(pure_voodoo,
551              AC_HELP_STRING([--enable-pure-voodoo],
552                             [enable pure Voodoo mode @<:@default=no@:>@]),
553              [], [enable_pure_voodoo=no])
554if test "$enable_pure_voodoo" = "yes"; then
555    enable_voodoo=yes
556    DIRECTFB_BUILD_VOODOO=1
557    DIRECTFB_BUILD_PURE_VOODOO=1
558    DEP_VOODOO=voodoo
559
560    enable_multi=no
561
562    FUSION_BUILD_MULTI=0
563    FUSION_BUILD_KERNEL=0
564else
565    DIRECTFB_BUILD_PURE_VOODOO=0
566    enable_pure_voodoo=no
567fi
568
569AC_SUBST(DIRECTFB_BUILD_VOODOO)
570AM_CONDITIONAL(DIRECTFB_BUILD_VOODOO, test "$DIRECTFB_BUILD_VOODOO" = "1")
571
572AC_SUBST(DIRECTFB_BUILD_PURE_VOODOO)
573AM_CONDITIONAL(DIRECTFB_BUILD_PURE_VOODOO, test "$DIRECTFB_BUILD_PURE_VOODOO" = "1")
574
575AC_SUBST(DEP_VOODOO)
576
577dnl If we're not building a pure voodoo lib, we need sqrt sin cos for
578dnl various files
579LIBM=""
580if test "$enable_pure_voodoo" = "no"; then
581    safe_LIBS=$LIBS
582    AC_SEARCH_LIBS([sqrt], [m], [LIBM=$ac_cv_search_sqrt], [LIBM=no], [])
583    LIBS=$safe_LIBS
584    if test "$LIBM" = "none required" ; then
585        LIBM=""
586    elif test "$LIBM" = "no" ; then
587        AC_MSG_ERROR([*** DirectFB requires libm.])
588    fi
589fi
590AC_SUBST(LIBM)
591
592AM_CONDITIONAL(ENABLE_MULTI, test "$enable_multi" = "yes")
593
594AC_SUBST(FUSION_BUILD_MULTI)
595AC_SUBST(FUSION_BUILD_KERNEL)
596
597AM_CONDITIONAL(ENABLE_ONE, test "$enable_one" = "yes")
598AM_CONDITIONAL(ENABLE_VOODOO, test "$enable_voodoo" = "yes")
599
600
601AC_ARG_ENABLE(unique,
602              AC_HELP_STRING([--enable-unique],
603                             [enable Unique (WM Module) @<:@default=no@:>@]),
604              [], [enable_unique=no])
605
606AM_CONDITIONAL(ENABLE_UNIQUE, test "$enable_unique" = "yes")
607
608
609AC_ARG_ENABLE(mmx,
610              AC_HELP_STRING([--enable-mmx],
611                             [enable MMX support @<:@default=auto@:>@]),
612              [], [enable_mmx=$have_x86])
613
614AC_ARG_ENABLE(sse,
615              AC_HELP_STRING([--enable-sse],
616                             [enable SSE support @<:@default=auto@:>@]),
617              [], [enable_sse=$have_x86])
618
619if test "$enable_mmx" = "yes"; then
620
621  dnl Necessary for assembler sources
622  save_ac_ext="$ac_ext"
623  ac_ext=S
624
625  AC_MSG_CHECKING(whether the binutils support MMX)
626
627  echo "       movq 0, %mm0" > conftest.S
628  if AC_TRY_EVAL(ac_compile); then
629    AC_DEFINE(USE_MMX,1,[Define to 1 if MMX assembly is available.])
630    AC_MSG_RESULT(yes)
631
632    if test "$enable_sse" = "yes"; then
633
634      AC_MSG_CHECKING(whether the binutils support SSE)
635
636      echo "       movntps %xmm0, 0" > conftest.S
637      if AC_TRY_EVAL(ac_compile); then
638        AC_DEFINE(USE_SSE,1,[Define to 1 if SSE assembly is available.])
639        AC_MSG_RESULT(yes)
640      else
641        enable_sse=no
642        AC_MSG_RESULT(no)
643        AC_MSG_WARN([
644****************************************************************
645 The installed assembler does not support the SSE command set.
646 Update your binutils package, if you want to compile SSE code.
647****************************************************************])
648      fi
649
650    fi
651
652  else
653    enable_mmx=no
654    AC_MSG_RESULT(no)
655    AC_MSG_WARN([
656****************************************************************
657 The installed assembler does not support the MMX command set.
658 Update your binutils package, if you want to compile MMX code.
659****************************************************************])
660  fi
661
662  rm conftest*
663  ac_ext="$save_ac_ext"
664
665else
666  enable_sse=no
667fi
668
669AM_CONDITIONAL(BUILDMMX, test "$enable_mmx" = "yes")
670
671
672
673dnl Test for DevMem system
674AC_ARG_ENABLE(devmem,
675              AC_HELP_STRING([--enable-devmem],
676                             [build with generic /dev/mem support @<:@default=yes@:>@]),
677              [], [enable_devmem=yes])
678
679AM_CONDITIONAL(DEVMEM_CORE, test "$enable_devmem" = "yes")
680
681
682
683dnl Test for Linux frame buffer device
684AC_ARG_ENABLE(fbdev,
685              AC_HELP_STRING([--enable-fbdev],
686                             [build with linux fbdev support @<:@default=auto@:>@]),
687              [], [enable_fbdev=yes])
688
689if test "$have_linux" = "no"; then
690  enable_fbdev=no
691  AC_MSG_WARN([
692*** no linux kernel -- building without linux fbdev support.])
693fi
694
695if test "$enable_fbdev" = "yes"; then
696  AC_DEFINE(LINUX_INPUT_USE_FBDEV,1,[Define to 1 if Linux Input driver should use FBDev system module for console keymap queries.])
697fi
698
699AM_CONDITIONAL(FBDEV_CORE, test "$enable_fbdev" = "yes")
700
701
702
703dnl Test for SDL
704AC_ARG_ENABLE(sdl,
705              AC_HELP_STRING([--enable-sdl],
706                             [build with SDL support @<:@default=no@:>@]),
707              [], [enable_sdl=no])
708if test "$enable_sdl" = "yes"; then
709  if test "$enable_osx" = "yes"; then
710    AC_MSG_WARN([
711*** SDL is now unsupported on OSX.])
712    enable_sdl=no
713  else
714    PKG_CHECK_MODULES([SDL], [sdl],
715                      [enable_sdl=yes],
716                      [
717                        enable_sdl=no
718                        AC_MSG_WARN([*** no sdl -- building without SDL support.])
719                      ])
720  fi
721fi
722
723AC_SUBST(OSX_LIBS)
724AM_CONDITIONAL(SDL_CORE, test "$enable_sdl" = "yes")
725
726
727
728dnl Test for VNC
729AC_ARG_ENABLE(vnc,
730              AC_HELP_STRING([--enable-vnc],
731                             [build with VNC support @<:@default=auto@:>@]),
732              [], [enable_vnc=yes])
733if test "$enable_vnc" = "yes"; then
734  AC_PATH_PROG(VNC_CONFIG, libvncserver-config, no)
735  if test "$VNC_CONFIG" = "no"; then
736    enable_vnc=no
737    AC_MSG_WARN([
738*** libvncserver-config not found -- building without VNC support. See http://libvncserver.sourceforge.net])
739  else
740    VNC_CFLAGS=`$VNC_CONFIG --cflags`
741    VNC_LIBS=`$VNC_CONFIG --libs`
742  fi
743fi
744
745AM_CONDITIONAL(VNC_CORE, test "$enable_vnc" = "yes")
746AC_SUBST(VNC_LIBS)
747AC_SUBST(VNC_CFLAGS)
748
749
750
751dnl Test for libsysfs
752AC_ARG_ENABLE(sysfs,
753              AC_HELP_STRING([--enable-sysfs],
754                             [build with sysfs support @<:@default=auto@:>@]),
755              [], [enable_sysfs=yes])
756
757use_sysfs=no
758SYSFS_LIBS=
759
760if test "$enable_sysfs" = "yes"; then
761  AC_CHECK_LIB(sysfs, sysfs_get_mnt_path,
762    [
763	AC_CHECK_HEADER(sysfs/libsysfs.h,
764	use_sysfs=yes
765        AC_DEFINE(USE_SYSFS,1,[Define to 1 to build with sysfs support.])
766	SYSFS_LIBS='-lsysfs',
767	AC_MSG_WARN([
768*** libsysfs header files not found -- Building without sysfs support.]))
769    ],[
770	AC_MSG_WARN([ *** libsysfs not found -- Building without sysfs support.])
771    ])
772fi
773
774AC_SUBST(SYSFS_LIBS)
775
776
777
778dnl Test for libjpeg
779JPEG=no
780
781AC_ARG_ENABLE(jpeg,
782              AC_HELP_STRING([--enable-jpeg],
783                             [build JPEG image provider @<:@default=yes@:>@]),
784              [], [enable_jpeg=yes])
785
786if test "$enable_jpeg" = "yes"; then
787  if test -z "$LIBJPEG"; then
788    AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
789      jpeg_ok=yes,
790      jpeg_ok=no)
791    if test "$jpeg_ok" = yes; then
792      AC_CHECK_HEADER(jpeglib.h,
793        jpeg_ok=yes,
794        jpeg_ok=no)
795      if test "$jpeg_ok" = yes; then
796	JPEG=yes
797	LIBJPEG='-ljpeg'
798      else
799	JPEG=no
800	AC_MSG_WARN([
801*** JPEG header files not found. JPEG image provider will not be built.])
802      fi
803    else
804      JPEG=no
805      AC_MSG_WARN([
806*** JPEG library not found. JPEG image provider will not be built.])
807    fi
808  else
809    JPEG=yes
810  fi
811fi
812
813AM_CONDITIONAL(JPEG_PROVIDER, test "$JPEG" = "yes")
814
815if test "$enable_jpeg" != "no" && test "$JPEG" != "yes"; then
816  jpeg_warning="
817JPEG support is missing - many applications won't work correctly!"
818fi
819
820
821
822AC_ARG_ENABLE(zlib,
823              AC_HELP_STRING([--enable-zlib],
824                             [use zlib, e.g. for screen shots @<:@default=no@:>@]),
825              [], [enable_zlib=no])
826
827use_zlib=no
828ZLIB_LIBS=
829
830if test "$enable_zlib" = "yes"; then
831  dnl Test for libz
832  AC_CHECK_LIB(z, gzsetparams,
833    [
834	AC_CHECK_HEADER(zlib.h,
835	use_zlib=yes
836        AC_DEFINE(USE_ZLIB,1,[Define to 1 to build with zlib compression.])
837	ZLIB_LIBS='-lz',
838	AC_MSG_ERROR([
839*** libz header files not found.]))
840    ],[
841	AC_MSG_ERROR([ *** libz not found.])
842    ])
843fi
844
845AC_SUBST(ZLIB_LIBS)
846
847
848
849dnl Test for libpng
850PNG=no
851
852AC_ARG_ENABLE(png,
853              AC_HELP_STRING([--enable-png],
854                             [build PNG image provider, @<:@default=yes@:>@]),
855              [], [enable_png=yes])
856if test "$enable_png" = "yes"; then
857  PKG_CHECK_MODULES([LIBPNG], [libpng >= 1.2.2], [PNG=yes], [PNG=no
858    AC_MSG_WARN([*** PNG library not found. PNG image provider will not be built.])])
859fi
860
861AM_CONDITIONAL(PNG_PROVIDER, test "$PNG" = "yes")
862AM_CONDITIONAL(BUILD_DIRECTFB_CSOURCE, test "$PNG" = "yes")
863
864if test "$enable_png" != "no" && test "$PNG" != "yes"; then
865  png_warning="
866PNG support is missing - many applications won't work correctly!"
867fi
868
869
870
871dnl Allow to disable GIF support
872AC_ARG_ENABLE(gif,
873              AC_HELP_STRING([--enable-gif],
874                             [build GIF image/video provider @<:@default=yes@:>@]),
875              [], [enable_gif=yes])
876
877AM_CONDITIONAL(GIF_PROVIDER, test "$enable_gif" = "yes")
878
879
880
881dnl Test for freetype
882AC_ARG_ENABLE(freetype,
883              AC_HELP_STRING([--enable-freetype],
884                             [build FreeType2 font provider @<:@default=yes@:>@]),
885              [], [enable_freetype=yes])
886if test "$enable_freetype" = "yes"; then
887  PKG_CHECK_MODULES(FREETYPE, freetype2, FREETYPE="yes", [FREETYPE="no"
888    AC_MSG_WARN([*** no freetype -- FreeType font provider will not be built.])])
889fi
890
891AM_CONDITIONAL(FREETYPE_PROVIDER, test "$FREETYPE" = "yes")
892
893if test "$enable_freetype" != "no" && test "$FREETYPE" != "yes"; then
894  freetype_warning="
895FreeType2 support is missing - many applications won't work correctly!"
896fi
897
898
899
900
901dnl Test for linotype
902AC_ARG_ENABLE(linotype,
903              AC_HELP_STRING([--enable-linotype],
904                             [build LinoType font provider @<:@default=yes@:>@]),
905              [], [])
906if test "x$enable_linotype" != "xno"; then
907  PKG_CHECK_MODULES(LINOTYPE, linotype, LINOTYPE="yes", [LINOTYPE="no"
908    AC_MSG_WARN([*** no linotype -- LinoType font provider will not be built.])])
909fi
910
911AM_CONDITIONAL(LINOTYPE_PROVIDER, test "$LINOTYPE" = "yes")
912
913
914dnl Test for video4linux
915V4L=no
916
917if test "$have_linux" = "yes"; then
918  AC_ARG_ENABLE(video4linux,
919                AC_HELP_STRING([--enable-video4linux],
920                               [build Video4Linux video provider @<:@default=yes@:>@]),
921                [], [enable_video4linux=yes])
922  if test "$enable_video4linux" = "yes"; then
923    V4L=yes
924  fi
925fi
926
927AM_CONDITIONAL(V4L_PROVIDER, test "$V4L" = "yes")
928
929
930
931dnl Test for video4linux
932V4L2=no
933
934if test "$V4L" = "yes"; then
935  AC_ARG_ENABLE(video4linux2,
936                AC_HELP_STRING([--enable-video4linux2],
937                               [build with Video4Linux2 support @<:@default=no@:>@]),
938                [], [enable_video4linux2=no])
939  if test "$enable_video4linux2" = "yes"; then
940    V4L2=yes
941    AC_DEFINE( DFB_HAVE_V4L2, 1, [Define to 1 if Video4Linux 2 is supported.] )
942  fi
943fi
944
945
946dnl check which gfxdrivers to build
947ati128=no
948cle266=no
949cyber5k=no
950davinci=no
951ep9x=no
952gl=no
953glx=no
954i810=no
955i830=no
956mach64=no
957matrox=no
958neomagic=no
959nsc=no
960nvidia=no
961omap=no
962pxa3xx=no
963radeon=no
964savage=no
965sh772x=no
966sis315=no
967tdfx=no
968unichrome=no
969vmware=no
970
971if test "$have_linux" = "yes"; then
972
973AC_MSG_CHECKING(which gfxdrivers should be built)
974AC_ARG_WITH(gfxdrivers,
975            AC_HELP_STRING([--with-gfxdrivers=LIST],
976                           [LIST is a comma separated selection of gfxdrivers]
977                           [to build. Possible gfxdrivers are: all (builds all]
978                           [drivers), none (builds none), ati128, cle266,]
979                           [cyber5k, davinci, ep9x, gl, i810, i830, mach64,]
980                           [matrox, neomagic, nsc, nvidia, omap, pxa3xx,]
981                           [radeon, savage, sh772x, sis315, tdfx, unichrome,]
982                           [vmware. @<:@default=all@:>@]),
983            [gfxdrivers="$withval"], [gfxdrivers=all])
984if test "$gfxdrivers" = "all"; then
985  checkfor_ati128=yes
986  checkfor_cle266=no
987  checkfor_cyber5k=yes
988  checkfor_davinci="$have_arm"
989  checkfor_ep9x=yes
990  checkfor_gl=yes
991  checkfor_i810=yes
992  checkfor_i830=yes
993  checkfor_mach64=yes
994  checkfor_matrox=yes
995  checkfor_neomagic=yes
996  checkfor_nsc=yes
997  checkfor_nvidia=yes
998  checkfor_omap="$have_arm"
999  checkfor_pxa3xx=yes
1000  checkfor_radeon=yes
1001  checkfor_savage=yes
1002  checkfor_sh772x=yes
1003  checkfor_sis315=yes
1004  checkfor_tdfx=yes
1005  checkfor_unichrome=yes
1006  checkfor_vmware=yes
1007
1008  AC_MSG_RESULT(all)
1009else
1010  if test "$gfxdrivers" != "none"; then
1011    gfxdrivers=`echo $gfxdrivers | sed 's/,/ /g'`
1012    for gfxdriver in $gfxdrivers
1013    do
1014      case "$gfxdriver" in
1015          ati128)
1016                  checkfor_ati128=yes
1017                  ;;
1018          cle266)
1019                  checkfor_cle266=yes
1020                  ;;
1021          cyber5k)
1022                  checkfor_cyber5k=yes
1023                  ;;
1024          davinci)
1025                  checkfor_davinci=yes
1026                  ;;
1027          ep9x)
1028                  checkfor_ep9x=yes
1029                  ;;
1030          gl)
1031                  checkfor_gl=yes
1032                  ;;
1033          i810)
1034                  checkfor_i810=yes
1035                  ;;
1036          i830)
1037                  checkfor_i830=yes
1038                  ;;
1039          mach64)
1040                  checkfor_mach64=yes
1041                  ;;
1042          matrox)
1043                  checkfor_matrox=yes
1044                  ;;
1045          neomagic)
1046                  checkfor_neomagic=yes
1047                  ;;
1048          nsc)
1049                  checkfor_nsc=yes
1050                  ;;
1051          nvidia)
1052                  checkfor_nvidia=yes
1053                  ;;
1054          omap)
1055                  checkfor_omap=yes
1056                  ;;
1057          pxa3xx)
1058                  checkfor_pxa3xx=yes
1059                  ;;
1060          radeon)
1061                  checkfor_radeon=yes
1062                  ;;
1063          savage)
1064                  checkfor_savage=yes
1065                  ;;
1066          sh772x)
1067                  checkfor_sh772x=yes
1068                  ;;
1069          sis315)
1070                  checkfor_sis315=yes
1071                  ;;
1072          tdfx)
1073                  checkfor_tdfx=yes
1074                  ;;
1075          unichrome)
1076                  checkfor_unichrome=yes
1077                  ;;
1078          vmware)
1079                  checkfor_vmware=yes
1080                  ;;
1081          *)
1082                  echo "Unknown gfxdriver $gfxdriver, exiting!"
1083                  exit 1
1084                  ;;
1085      esac
1086    done
1087    AC_MSG_RESULT($gfxdrivers)
1088  fi
1089fi
1090
1091if test "$checkfor_ati128" = "yes"; then
1092  ati128=yes
1093fi
1094
1095if test "$checkfor_cle266" = "yes" && test "$have_sysio" = "yes"; then
1096  cle266=yes
1097fi
1098
1099if test "$checkfor_cyber5k" = "yes"; then
1100  cyber5k=yes
1101fi
1102
1103if test "$checkfor_davinci" = "yes"; then
1104  davinci=yes
1105fi
1106
1107if test "$checkfor_ep9x" = "yes"; then
1108  ep9x=yes
1109fi
1110
1111if test "$checkfor_gl" = "yes"; then
1112  AC_CHECK_HEADER(GL/gl.h, gl=yes)
1113  AC_CHECK_HEADER(GL/glx.h, [
1114                  glx=yes
1115                  AC_DEFINE(USE_GLX,1,[Define to 1 if GLX has been selected or detected])
1116                  ])
1117fi
1118
1119if test "$checkfor_i810" = "yes" && test "$have_sysio" = "yes"; then
1120  i810=yes
1121fi
1122
1123if test "$checkfor_i830" = "yes" && test "$have_sysio" = "yes"; then
1124  i830=yes
1125fi
1126
1127if test "$checkfor_mach64" = "yes"; then
1128  mach64=yes
1129fi
1130
1131if test "$checkfor_matrox" = "yes"; then
1132  matrox=yes
1133fi
1134
1135if test "$checkfor_neomagic" = "yes" && test "$have_sysio" = "yes"; then
1136  neomagic=yes
1137fi
1138
1139if test "$checkfor_nsc" = "yes"; then
1140  nsc=yes
1141fi
1142
1143if test "$checkfor_nvidia" = "yes"; then
1144  nvidia=yes
1145fi
1146
1147if test "$checkfor_omap" = "yes"; then
1148  omap=yes
1149fi
1150
1151if test "$checkfor_pxa3xx" = "yes"; then
1152  pxa3xx=yes
1153fi
1154
1155if test "$checkfor_radeon" = "yes"; then
1156  radeon=yes
1157fi
1158
1159if test "$checkfor_savage" = "yes" && test "$have_sysio" = "yes"; then
1160  savage=yes
1161fi
1162
1163if test "$checkfor_sh772x" = "yes" && test "$have_sh4" = "yes"; then
1164  PKG_CHECK_MODULES([SH772X_DEP],
1165    [uiomux >= 1.5.0 shbeu >= 1.0.2], [sh772x=yes], [sh772x=no])
1166  if test "$sh772x" = "no"; then
1167       AC_MSG_WARN([*** Missing UIOMUX or SHBEU library -- sh772x driver will not be built.])
1168  fi
1169  PKG_CHECK_MODULES([SH772X_SHJPEG_DEP], [shjpeg >= 1.3.3], [sh772x_shjpeg=yes], [sh772x_shjpeg=no])
1170  if test "$sh772x_shjpeg" = "no"; then
1171       AC_MSG_WARN([*** Missing SHJPEG library -- sh772x driver will be build without shjpeg support.])
1172  fi
1173fi
1174if test "$sh772x" = "yes"; then
1175  AC_DEFINE(HAVE_GFX_SH772X, [], [Define to 1 if sh772x])
1176fi
1177
1178if test "$checkfor_sis315" = "yes"; then
1179  sis315=yes
1180fi
1181
1182if test "$checkfor_tdfx" = "yes"; then
1183  tdfx=yes
1184fi
1185
1186if test "$checkfor_unichrome" = "yes" && test "$have_sysio" = "yes"; then
1187  unichrome=yes
1188fi
1189
1190if test "$checkfor_vmware" = "yes"; then
1191  vmware=yes
1192fi
1193
1194# lets check for input driver
1195
1196checkfor_dbox2remote=no
1197checkfor_dreamboxremote=no
1198checkfor_dynapro=no
1199checkfor_elo=no
1200checkfor_gunze=no
1201checkfor_h3600ts=no
1202checkfor_joystick=no
1203checkfor_keyboard=no
1204checkfor_linux_input=no
1205checkfor_lirc=no
1206checkfor_mutouch=no
1207checkfor_zytronic=no
1208checkfor_penmount=no
1209checkfor_ps2mouse=no
1210checkfor_serialmouse=no
1211checkfor_sonypijogdial=no
1212checkfor_tslib=no
1213checkfor_ucb1x00=no
1214checkfor_wm97xx=no
1215
1216AC_MSG_CHECKING(which inputdrivers should be built)
1217AC_ARG_WITH(inputdrivers,
1218            AC_HELP_STRING([--with-inputdrivers=LIST],
1219                           [LIST is a comma separated selection of]
1220                           [inputdrivers to build. Possible inputdrivers]
1221                           [are: all (builds all drivers), none (builds none),]
1222                           [dbox2remote, dreamboxremote, dynapro, elo-input,]
1223                           [gunze, h3600_ts, joystick, keyboard, linuxinput,]
1224                           [lirc, mutouch, penmount, ps2mouse, serialmouse,]
1225                           [sonypijogdial, tslib, ucb1x00, wm97xx, zytronic.]
1226                           [@<:@default=all@:>@]),
1227            [inputdrivers="$withval"], [inputdrivers=all])
1228
1229if test "$inputdrivers" = "all"; then
1230  checkfor_dbox2remote=yes
1231  checkfor_dreamboxremote=yes
1232  checkfor_dynapro=no
1233  checkfor_elo=no
1234  checkfor_gunze=no
1235  checkfor_h3600ts=yes
1236  checkfor_joystick=yes
1237  checkfor_keyboard=yes
1238  checkfor_linux_input=yes
1239  checkfor_lirc=yes
1240  checkfor_mutouch=yes
1241  checkfor_zytronic=yes
1242  checkfor_penmount=yes
1243  checkfor_ps2mouse=yes
1244  checkfor_serialmouse=yes
1245  checkfor_sonypijogdial=yes
1246  checkfor_tslib=yes
1247  checkfor_ucb1x00="$have_arm"
1248  checkfor_wm97xx=yes
1249  AC_MSG_RESULT(all)
1250else
1251  if test "$inputdrivers" != "none"; then
1252    inputdrivers=`echo $inputdrivers | sed 's/,/ /g'`
1253    for inputdriver in $inputdrivers
1254    do
1255      case "$inputdriver" in
1256          dbox2remote)
1257                  checkfor_dbox2remote=yes
1258                  ;;
1259          dreamboxremote)
1260                  checkfor_dreamboxremote=yes
1261                  ;;
1262          dynapro)
1263                  checkfor_dynapro=yes
1264                  ;;
1265          elo-input)
1266                  checkfor_elo=yes
1267                  ;;
1268          gunze)
1269                  checkfor_gunze=yes
1270                  ;;
1271          h3600_ts)
1272                  checkfor_h3600ts=yes
1273                  ;;
1274          joystick)
1275                  checkfor_joystick=yes
1276                  ;;
1277          keyboard)
1278                  checkfor_keyboard=yes
1279                  ;;
1280          linuxinput)
1281                  checkfor_linux_input=yes
1282                  ;;
1283          lirc)
1284                  checkfor_lirc=yes
1285                  ;;
1286          mutouch)
1287                  checkfor_mutouch=yes
1288                  ;;
1289          zytronic)
1290                  checkfor_zytronic=yes
1291                  ;;
1292          penmount)
1293                  checkfor_penmount=yes
1294                  ;;
1295          ps2mouse)
1296                  checkfor_ps2mouse=yes
1297                  ;;
1298          serialmouse)
1299                  checkfor_serialmouse=yes
1300                  ;;
1301          sonypijogdial)
1302                  checkfor_sonypijogdial=yes
1303                  ;;
1304          tslib)
1305                  checkfor_tslib=yes
1306                  ;;
1307          ucb1x00)
1308                  checkfor_ucb1x00=yes
1309                  ;;
1310          wm97xx)
1311                  checkfor_wm97xx=yes
1312                  ;;
1313          *)
1314                  echo "Unknown inputdriver $inputdriver, exiting!"
1315                  exit 1
1316                  ;;
1317      esac
1318    done
1319    AC_MSG_RESULT($inputdrivers)
1320  fi
1321fi
1322
1323enable_dbox2remote=no
1324if test "$checkfor_dbox2remote" = "yes"; then
1325  dnl Test for dbox2 remote support in the kernel
1326    AC_CHECK_HEADER( [dbox/fp.h], enable_dbox2remote=yes, enable_dbox2remote=no
1327    AC_MSG_WARN([*** DBox2 Remote input driver will not be built.]))
1328fi
1329
1330enable_dreamboxremote=no
1331if test "$checkfor_dreamboxremote" = "yes"; then
1332  dnl Test for dreambox remote support in the kernel
1333    AC_CHECK_HEADER( [dbox/fp.h], enable_dreamboxremote=yes, enable_dreamboxremote=no
1334    AC_MSG_WARN([*** DreamBox Remote input driver will not be built.]))
1335fi
1336
1337enable_dynapro_ts=no
1338if test "$checkfor_dynapro" = "yes"; then
1339  dnl Test for Dynapro Touchscreen support
1340  enable_dynapro_ts=yes
1341fi
1342
1343enable_elo_input=no
1344if test "$checkfor_elo" = "yes"; then
1345  dnl Test for ELO Touchscreen support
1346  enable_elo_input=yes
1347fi
1348
1349enable_gunze_input=no
1350if test "$checkfor_gunze" = "yes"; then
1351  dnl Test for Gunze Touchscreen support
1352  enable_gunze_input=yes
1353fi
1354
1355enable_h3600_ts=no
1356if test "$checkfor_h3600ts" = "yes"; then
1357  dnl Test for H3600 Touchscreen support
1358  AC_CHECK_HEADER( [linux/h3600_ts.h], enable_h3600_ts=yes, enable_h3600_ts=no
1359    AC_MSG_WARN([*** H3600 Touchscreen driver will not be built.]))
1360fi
1361
1362enable_joystick=no
1363if test "$checkfor_joystick" = "yes"; then
1364  dnl Test for linux/joystick.h in the kernel
1365
1366  AC_CHECK_HEADER([linux/joystick.h], enable_joystick=yes, enable_joystick=no
1367     AC_MSG_WARN([*** no linux/joystick.h -- Joystick driver will not be built.]))
1368fi
1369
1370enable_keyboard=no
1371if test "$checkfor_keyboard" = "yes"; then
1372    enable_keyboard=yes
1373fi
1374
1375enable_linux_input=no
1376if test "$checkfor_linux_input" = "yes"; then
1377  AC_CHECK_HEADER([linux/input.h], enable_linux_input=yes, enable_linux_input=no
1378    AC_MSG_WARN([*** no linux/input.h -- Linux Input driver will not be built.]))
1379
1380  if test "$enable_linux_input" = "yes"; then
1381    AC_MSG_CHECKING([for struct input_absinfo in linux/input.h])
1382    AC_TRY_COMPILE([#include <linux/input.h>], [struct input_absinfo x; (void)x;],
1383       AC_DEFINE(HAVE_INPUT_ABSINFO,1,
1384         [Define to 1 if struct input_absinfo is defined in linux/input.h.])
1385       AC_MSG_RESULT(yes),
1386       AC_MSG_RESULT(no))
1387  fi
1388fi
1389
1390enable_lirc=no
1391if test "$checkfor_lirc" = "yes"; then
1392    enable_lirc=yes
1393fi
1394
1395enable_mutouch=no
1396if test "$checkfor_mutouch" = "yes"; then
1397  dnl Allow to enable driver for Microtouch serial touchscreen
1398  dnl This driver is not built by default since it needs to be configured
1399  dnl by changing some defines in the source.
1400    enable_mutouch=yes
1401fi
1402
1403enable_zytronic=no
1404if test "$checkfor_zytronic" = "yes"; then
1405    enable_zytronic=yes
1406fi
1407
1408enable_penmount=no
1409if test "$checkfor_penmount" = "yes"; then
1410    enable_penmount=yes
1411fi
1412
1413enable_ps2mouse=no
1414if test "$checkfor_ps2mouse" = "yes"; then
1415    enable_ps2mouse=yes
1416fi
1417
1418enable_serial_mouse=no
1419if test "$checkfor_serialmouse" = "yes"; then
1420  dnl Test for linux/serial.h in the kernel
1421  AC_CHECK_HEADER([linux/serial.h], enable_serial_mouse=yes, enable_serial_mouse=no
1422     AC_MSG_WARN([*** no linux/serial.h -- serial mouse driver will not be built.]))
1423fi
1424
1425enable_sonypi_jogdial=no
1426if test "$checkfor_sonypijogdial" = "yes"; then
1427  dnl Test for SonyPI Jogdial support
1428  AC_CHECK_HEADER([linux/sonypi.h], enable_sonypi_jogdial=yes, enable_sonypi_jogdial=no
1429    AC_MSG_WARN([*** no linux/sonypi.h -- SonyPI Jogdial driver will not be built.]))
1430fi
1431
1432enable_tslib=no
1433if test "$checkfor_tslib" = "yes"; then
1434  PKG_CHECK_MODULES([TSLIB], [tslib-1.0 >= 1.0.0], [enable_tslib=yes], [enable_tslib=no])
1435  if test "$enable_tslib" = "no"; then
1436     PKG_CHECK_MODULES([TSLIB], [tslib-0.0], [enable_tslib=yes], [enable_tslib=no
1437       AC_MSG_WARN([*** no tslib -- tslib driver will not be built.])])
1438  fi
1439fi
1440
1441enable_ucb1x00_ts=no
1442if test "$checkfor_ucb1x00" = "yes"; then
1443  dnl Test for UCB1x00 Touchscreen support
1444  enable_ucb1x00_ts=yes
1445fi
1446
1447enable_wm97xx_ts=no
1448if test "$checkfor_wm97xx" = "yes"; then
1449  dnl Test for WM97xx Touchscreen support
1450  enable_wm97xx_ts=yes
1451fi
1452
1453 dnl *** end of if $testlinux ***
1454fi
1455
1456
1457
1458AC_ARG_WITH(software,
1459            AC_HELP_STRING([--without-software],
1460                           [build without software rendering (can decrease binary size by >100k)]),
1461            [], [])
1462if test "$with_software" != "no"; then
1463  with_software=yes
1464fi
1465
1466AM_CONDITIONAL(SOFTWARE_RENDERING, test "$with_software" != "no")
1467
1468
1469
1470AC_ARG_WITH(smooth-scaling,
1471            AC_HELP_STRING([--with-smooth-scaling],
1472                           [build with smooth software scaling code (can increase binary size by >100k)]),
1473            [], [])
1474if test "$with_smooth_scaling" != "yes" -o "$with_software" != "yes"; then
1475  with_smooth_scaling=no
1476else
1477  AC_DEFINE(DFB_SMOOTH_SCALING,1,[Define to 1 if smooth scaling code should be built.])
1478fi
1479
1480AC_SUBST(DFB_SMOOTH_SCALING)
1481
1482
1483
1484AC_DEFINE(DFB_DITHER_SIMPLE,1,[Simple dithering, uses small dither table])
1485AC_DEFINE(DFB_DITHER_ADVANCED,2,[Advanced dithering, uses large dither table])
1486
1487AC_ARG_WITH(dither-rgb16,
1488            AC_HELP_STRING([--with-dither-rgb16=TYPE],
1489                           [dithering to use when loading images into RGB16]
1490                           [surfaces. Possible values for TYPE are: none]
1491                           [(no dithering), simple (simple dithering, which]
1492                           [increases the data section by 256 bytes), advanced]
1493                           [(advanced dithering, which increases the data]
1494                           [section by 64 KBytes). @<:@default=none@:>@]),
1495            [], [with_dither_rgb16=none])
1496case x"$with_dither_rgb16" in
1497     x | xnone)
1498          with_dither_rgb16=none
1499          ;;
1500     xsimple)
1501          AC_DEFINE(DFB_DITHER565,DFB_DITHER_SIMPLE,[Dithering to use when rendering to RGB16 surfaces])
1502          ;;
1503     xadvanced)
1504          AC_DEFINE(DFB_DITHER565,DFB_DITHER_ADVANCED,[Dithering to use when rendering to RGB16 surfaces])
1505          ;;
1506     *)
1507          echo "Unknown dithering type $with_dither_rgb16, exiting!"
1508          exit 1
1509          ;;
1510esac
1511
1512
1513
1514AC_ARG_WITH(dither,
1515            AC_HELP_STRING([--with-dither=TYPE],
1516                           [dithering to use when loading images into non-RGB16]
1517                           [surfaces. Possible values for TYPE are: none]
1518                           [(no dithering), simple (simple dithering, which]
1519                           [increases the data section by 64 bytes), advanced]
1520                           [(advanced dithering, which increases the data]
1521                           [section by 16 KBytes). @<:@default=none@:>@]),
1522            [], [with_dither=none])
1523case x"$with_dither" in
1524     x | xnone)
1525          with_dither=none
1526          ;;
1527     xsimple)
1528          AC_DEFINE(DFB_DITHER,DFB_DITHER_SIMPLE,[Dithering to use when rendering to non-RGB16 surfaces])
1529          ;;
1530     xadvanced)
1531          AC_DEFINE(DFB_DITHER,DFB_DITHER_ADVANCED,[Dithering to use when rendering to non-RGB16 surfaces])
1532          ;;
1533     *)
1534          echo "Unknown dithering type $with_dither, exiting!"
1535          exit 1
1536          ;;
1537esac
1538
1539
1540
1541
1542AC_ARG_WITH(setsockopt,
1543            AC_HELP_STRING([--without-setsockopt],
1544                           [build without setsockopt]),
1545            [], [])
1546if test "$with_setsockopt" != "no"; then
1547  with_setsockopt=yes
1548  VOODOO_BUILD_NO_SETSOCKOPT=0
1549else
1550  VOODOO_BUILD_NO_SETSOCKOPT=1
1551fi
1552
1553AC_SUBST(VOODOO_BUILD_NO_SETSOCKOPT)
1554
1555
1556AC_ARG_WITH(tests,
1557            AC_HELP_STRING([--with-tests],
1558                           [build test programs]),
1559            [], [])
1560if test "$with_tests" != "yes"; then
1561  with_tests=no
1562fi
1563
1564
1565
1566# How big of a buffer fusion uses to read messages from the fusion device
1567AC_ARG_WITH(message-size,
1568            AC_HELP_STRING([--with-message-size=SIZE],
1569                           [allow fusion messages up to SIZE bytes @<:@default=1024@:>@]),
1570            [], [with_message_size=no])
1571test x"$with_message_size" = x"no" && with_message_size=16384
1572FUSION_MESSAGE_SIZE=$with_message_size
1573AC_SUBST(FUSION_MESSAGE_SIZE)
1574
1575
1576
1577# Build tools?
1578AC_ARG_WITH(tools,
1579            AC_HELP_STRING([--without-tools],
1580                           [do not build any tools]),
1581            [], [])
1582if test "$with_tools" != "no"; then
1583  with_tools=yes
1584fi
1585
1586
1587
1588# Sysroot used for runtime module loading, etc.
1589AC_ARG_WITH(sysroot,
1590            AC_HELP_STRING([--with-sysroot=DIR],
1591                           [search for lib/share et al within DIR at runtime,]
1592                           [e.g. when loading modules]),
1593            [RUNTIME_SYSROOT="$withval"], [RUNTIME_SYSROOT=])
1594test x"$RUNTIME_SYSROOT" = x"no" && RUNTIME_SYSROOT=
1595AC_SUBST(RUNTIME_SYSROOT)
1596
1597
1598
1599dnl *** Look for directfb-csource in PATH if we are cross-compiling ***
1600
1601if test "$enable_unique" = "yes"; then
1602  if test "$cross_compiling" = "yes" || test "$with_tools" = "no"; then
1603    AC_PATH_PROG(DIRECTFB_CSOURCE, directfb-csource, no)
1604    if test "x$DIRECTFB_CSOURCE" = "xno"; then
1605      AC_MSG_ERROR(Could not find a directfb-csource in your PATH)
1606    fi
1607  fi
1608fi
1609
1610
1611
1612AM_CONDITIONAL(GFX_ATI128, test "$ati128" = "yes")
1613AM_CONDITIONAL(GFX_CLE266, test "$cle266" = "yes")
1614AM_CONDITIONAL(GFX_CYBER5K, test "$cyber5k" = "yes")
1615AM_CONDITIONAL(GFX_DAVINCI, test "$davinci" = "yes")
1616AM_CONDITIONAL(GFX_EP9X, test "$ep9x" = "yes")
1617AM_CONDITIONAL(GFX_GL, test "$gl" = "yes")
1618AM_CONDITIONAL(GFX_GLX, test "$glx" = "yes")
1619AM_CONDITIONAL(GFX_I810, test "$i810" = "yes")
1620AM_CONDITIONAL(GFX_I830, test "$i830" = "yes")
1621AM_CONDITIONAL(GFX_MACH64, test "$mach64" = "yes")
1622AM_CONDITIONAL(GFX_MATROX, test "$matrox" = "yes")
1623AM_CONDITIONAL(GFX_NEOMAGIC, test "$neomagic" = "yes")
1624AM_CONDITIONAL(GFX_NSC, test "$nsc" = "yes")
1625AM_CONDITIONAL(GFX_NVIDIA, test "$nvidia" = "yes")
1626AM_CONDITIONAL(GFX_OMAP, test "$omap" = "yes")
1627AM_CONDITIONAL(GFX_PXA3XX, test "$pxa3xx" = "yes")
1628AM_CONDITIONAL(GFX_RADEON, test "$radeon" = "yes")
1629AM_CONDITIONAL(GFX_SAVAGE, test "$savage" = "yes")
1630AM_CONDITIONAL(GFX_SH772X, test "$sh772x" = "yes")
1631AM_CONDITIONAL(GFX_SIS315, test "$sis315" = "yes")
1632AM_CONDITIONAL(GFX_TDFX, test "$tdfx" = "yes")
1633AM_CONDITIONAL(GFX_UNICHROME, test "$unichrome" = "yes")
1634AM_CONDITIONAL(GFX_VMWARE, test "$vmware" = "yes")
1635
1636AM_CONDITIONAL(SH772X_SHJPEG, test "$sh772x_shjpeg" = "yes")
1637
1638AM_CONDITIONAL(DBOX2REMOTE, test "$enable_dbox2remote" = "yes")
1639AM_CONDITIONAL(DREAMBOXREMOTE, test "$enable_dreamboxremote" = "yes")
1640AM_CONDITIONAL(DYNAPRO_INPUT, test "$enable_dynapro_ts" = "yes")
1641AM_CONDITIONAL(ELO_INPUT, test "$enable_elo_input" = "yes")
1642AM_CONDITIONAL(GUNZE_INPUT, test "$enable_gunze_input" = "yes")
1643AM_CONDITIONAL(H3600_TS, test "$enable_h3600_ts" = "yes")
1644AM_CONDITIONAL(JOYSTICK_INPUT, test "$enable_joystick" = "yes")
1645AM_CONDITIONAL(KEYBOARD_INPUT, test "$enable_keyboard" = "yes")
1646AM_CONDITIONAL(LINUX_INPUT, test "$enable_linux_input" = "yes")
1647AM_CONDITIONAL(LIRC_INPUT, test "$enable_lirc" = "yes")
1648AM_CONDITIONAL(MUTOUCH_TS, test "$enable_mutouch" = "yes")
1649AM_CONDITIONAL(ZYTRONIC_TS, test "$enable_zytronic" = "yes")
1650AM_CONDITIONAL(PENMOUNT_TS, test "$enable_penmount" = "yes" )
1651AM_CONDITIONAL(PS2MOUSE_INPUT, test "$enable_ps2mouse" = "yes")
1652AM_CONDITIONAL(SERIAL_MOUSE_INPUT, test "$enable_serial_mouse" = "yes")
1653AM_CONDITIONAL(SONYPI, test "$enable_sonypi_jogdial" = "yes")
1654AM_CONDITIONAL(TSLIB, test "$enable_tslib" = "yes")
1655AM_CONDITIONAL(UCB1X00_TS, test "$enable_ucb1x00_ts" = "yes")
1656AM_CONDITIONAL(WM97XX_TS, test "$enable_wm97xx_ts" = "yes")
1657
1658AM_CONDITIONAL(BUILD_TESTS, test "$with_tests" = "yes")
1659AM_CONDITIONAL(BUILD_TOOLS, test "$with_tools" = "yes")
1660AM_CONDITIONAL(CROSS_COMPILING, test "$cross_compiling" = "yes")
1661
1662CFLAGS="$CFLAGS $DFB_INTERNAL_CFLAGS"
1663DFB_LDFLAGS="$LDFLAGS $ZLIB_LIBS"
1664
1665CFLAGS="$CFLAGS $CFLAGS_STD"
1666
1667
1668# Honor aclocal flags
1669ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
1670
1671
1672AM_CONDITIONAL(BUILD_SHARED, test "$enable_shared" = "yes")
1673AM_CONDITIONAL(BUILD_STATIC, test "$enable_static" = "yes")
1674
1675
1676# Change the module directory only for builds that don't *support* debug
1677if test "$enable_debug_support" = "no"; then
1678  MODULEDIRNAME=directfb-$BINARY_VERSION-pure
1679else
1680  MODULEDIRNAME=directfb-$BINARY_VERSION
1681fi
1682
1683MODULEDIR=$libdir/$MODULEDIRNAME
1684DATADIR=$datadir/directfb-$VERSION
1685INCLUDEDIR=$includedir/directfb
1686INTERNALINCLUDEDIR=$includedir/directfb-internal
1687
1688SOPATH=$libdir/libdirectfb-$LT_RELEASE.so.$LT_CURRENT
1689AC_SUBST(SOPATH)
1690
1691AC_SUBST(HAVE_LINUX)
1692AC_SUBST(DFB_CFLAGS_OMIT_FRAME_POINTER)
1693AC_SUBST(DFB_LDFLAGS)
1694AC_SUBST(DFB_INTERNAL_CFLAGS)
1695AC_SUBST(X11_CFLAGS)
1696AC_SUBST(X11_LIBS)
1697AC_SUBST(SDL_CFLAGS)
1698AC_SUBST(SDL_LIBS)
1699AC_SUBST(TSLIB_CFLAGS)
1700AC_SUBST(TSLIB_LIBS)
1701AC_SUBST(ZLIB_LIBS)
1702AC_SUBST(GIF_PROVIDER)
1703AC_SUBST(JPEG_PROVIDER)
1704AC_SUBST(LIBJPEG)
1705AC_SUBST(PNG_PROVIDER)
1706AC_SUBST(LIBPNG_CFLAGS)
1707AC_SUBST(LIBPNG_LIBS)
1708AC_SUBST(FREETYPE_PROVIDER)
1709AC_SUBST(FREETYPE_CFLAGS)
1710AC_SUBST(FREETYPE_LIBS)
1711
1712AC_SUBST(DATADIR)
1713AC_SUBST(MODULEDIR)
1714AC_SUBST(MODULEDIRNAME)
1715AC_SUBST(INCLUDEDIR)
1716AC_SUBST(INTERNALINCLUDEDIR)
1717AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
1718
1719CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
1720
1721
1722AC_OUTPUT([
1723
1724directfb-config
1725directfb.pc
1726directfb-internal.pc
1727directfb.spec
1728
1729Makefile
1730
1731include/Makefile
1732include/directfb_build.h
1733include/directfb_version.h
1734
1735lib/Makefile
1736
1737lib/direct/Makefile
1738lib/direct/build.h
1739lib/direct/direct.pc
1740
1741lib/fusion/Makefile
1742lib/fusion/build.h
1743lib/fusion/fusion.pc
1744lib/fusion/shm/Makefile
1745
1746lib/One/Makefile
1747lib/One/one.pc
1748lib/One/linux-one/Makefile
1749
1750lib/voodoo/Makefile
1751lib/voodoo/build.h
1752lib/voodoo/voodoo.pc
1753
1754patches/Makefile
1755
1756proxy/Makefile
1757proxy/dispatcher/Makefile
1758proxy/requestor/Makefile
1759
1760rules/Makefile
1761
1762src/Makefile
1763src/core/Makefile
1764src/display/Makefile
1765src/gfx/Makefile
1766src/gfx/generic/Makefile
1767src/input/Makefile
1768src/media/Makefile
1769src/misc/Makefile
1770src/windows/Makefile
1771
1772systems/Makefile
1773systems/devmem/Makefile
1774systems/dummy/Makefile
1775systems/fbdev/Makefile
1776systems/x11/Makefile
1777systems/osx/Makefile
1778systems/sdl/Makefile
1779systems/vnc/Makefile
1780
1781wm/Makefile
1782wm/default/Makefile
1783wm/unique/Makefile
1784wm/unique/classes/Makefile
1785wm/unique/data/Makefile
1786wm/unique/devices/Makefile
1787
1788gfxdrivers/Makefile
1789gfxdrivers/ati128/Makefile
1790gfxdrivers/cle266/Makefile
1791gfxdrivers/cyber5k/Makefile
1792gfxdrivers/davinci/Makefile
1793gfxdrivers/ep9x/Makefile
1794gfxdrivers/gl/Makefile
1795gfxdrivers/i810/Makefile
1796gfxdrivers/i830/Makefile
1797gfxdrivers/mach64/Makefile
1798gfxdrivers/matrox/Makefile
1799gfxdrivers/neomagic/Makefile
1800gfxdrivers/nsc/Makefile
1801gfxdrivers/nsc/include/Makefile
1802gfxdrivers/nvidia/Makefile
1803gfxdrivers/omap/Makefile
1804gfxdrivers/pxa3xx/Makefile
1805gfxdrivers/radeon/Makefile
1806gfxdrivers/savage/Makefile
1807gfxdrivers/sh772x/Makefile
1808gfxdrivers/sis315/Makefile
1809gfxdrivers/tdfx/Makefile
1810gfxdrivers/unichrome/Makefile
1811gfxdrivers/vmware/Makefile
1812
1813inputdrivers/Makefile
1814inputdrivers/dbox2remote/Makefile
1815inputdrivers/dreamboxremote/Makefile
1816inputdrivers/dynapro/Makefile
1817inputdrivers/elo/Makefile
1818inputdrivers/gunze/Makefile
1819inputdrivers/h3600_ts/Makefile
1820inputdrivers/joystick/Makefile
1821inputdrivers/keyboard/Makefile
1822inputdrivers/linux_input/Makefile
1823inputdrivers/lirc/Makefile
1824inputdrivers/mutouch/Makefile
1825inputdrivers/zytronic/Makefile
1826inputdrivers/penmount/Makefile
1827inputdrivers/ps2mouse/Makefile
1828inputdrivers/serialmouse/Makefile
1829inputdrivers/sonypi/Makefile
1830inputdrivers/tslib/Makefile
1831inputdrivers/ucb1x00_ts/Makefile
1832inputdrivers/wm97xx_ts/Makefile
1833
1834interfaces/Makefile
1835interfaces/ICoreResourceManager/Makefile
1836interfaces/IDirectFBFont/Makefile
1837interfaces/IDirectFBImageProvider/Makefile
1838interfaces/IDirectFBVideoProvider/Makefile
1839
1840data/Makefile
1841
1842tests/Makefile
1843tests/voodoo/Makefile
1844tools/Makefile
1845
1846docs/Makefile
1847docs/dfbg.1
1848docs/directfb-csource.1
1849docs/directfbrc.5
1850docs/html/Makefile
1851
1852], [chmod +x directfb-config])
1853
1854
1855
1856AC_MSG_RESULT([
1857Build options:
1858  Version                   $VERSION
1859  Linux powered             $have_linux
1860  Install prefix            $prefix
1861  Config files in           $SYSCONFDIR
1862  Build shared libs         $enable_shared
1863  Build static libs         $enable_static
1864  Module directory          $MODULEDIR
1865  CPPFLAGS                  $CPPFLAGS
1866  CFLAGS                    $CFLAGS
1867  LDFLAGS                   $LDFLAGS
1868  LIBS                      $LIBS
1869  DYNLIB                    $DYNLIB
1870  THREADFLAGS               $THREADFLAGS
1871  THREADLIB                 $THREADLIB
1872
1873Misc options:
1874  Multi Application Core    $enable_multi
1875  Fusion Kernel Device      $linux_fusion
1876  Fusion message size       $with_message_size
1877  One (IPC)                 $enable_one
1878  Voodoo (network support)  $enable_voodoo
1879  Pure Voodoo (net only)    $enable_pure_voodoo
1880  Debug supported           $enable_debug_support
1881  Debug enabled             $enable_debug
1882  Trace support             $enable_trace
1883  MMX support               $enable_mmx
1884  SSE support               $enable_sse
1885  Network support           $enable_network
1886  Include all strings       $enable_text
1887  Software Rendering        $with_software
1888  Smooth SW Scaling         $with_smooth_scaling
1889  Dithering                 $with_dither
1890  Dithering 565             $with_dither_rgb16
1891  zlib compression          $use_zlib                 $ZLIB_LIBS
1892  sysfs support             $use_sysfs                 $SYSFS_LIBS
1893  Using setsockopt          $with_setsockopt
1894
1895Building Tests              $with_tests
1896Building Tools              $with_tools
1897
1898Building System Modules:
1899  Linux FBDev support       $enable_fbdev
1900  Generic /dev/mem support  $enable_devmem
1901  X11 support               $enable_x11                 $X11_CFLAGS $X11_LIBS
1902  OSX support               $enable_osx                 $OSX_CFLAGS $OSX_LIBS
1903  SDL support               $enable_sdl                 $SDL_CFLAGS $SDL_LIBS
1904  VNC support               $enable_vnc                 $VNC_CFLAGS $VNC_LIBS
1905
1906Building Window Manager Modules:
1907  Default                   yes
1908  UniQuE                    $enable_unique
1909
1910Building Image Provider Modules:
1911  GIF                       $enable_gif
1912  JPEG                      $JPEG                 $LIBJPEG
1913  PNG                       $PNG                 $LIBPNG_CFLAGS $LIBPNG_LIBS
1914
1915Building Video Provider Modules:
1916  GIF                       $enable_gif
1917  Video4Linux               $V4L (v2: $V4L2)
1918
1919Building Font Modules:
1920  FreeType2                 $FREETYPE                 $FREETYPE_CFLAGS $FREETYPE_LIBS
1921  LinoType                  $LINOTYPE                 $LINOTYPE_CFLAGS $LINOTYPE_LIBS
1922  Default font              yes]);
1923
1924if test "$have_linux" = "yes"; then
1925AC_MSG_RESULT([
1926Building Graphics Drivers:
1927  3Dfx Voodoo               $tdfx
1928  ATI Mach64                $mach64
1929  ATI Rage 128              $ati128
1930  ATI Radeon                $radeon
1931  Cirrus EP9X               $ep9x
1932  Intel i810                $i810
1933  Intel i830                $i830
1934  Matrox                    $matrox
1935  NeoMagic                  $neomagic
1936  NSC Geode                 $nsc
1937  nVidia                    $nvidia
1938  PXA 3xx                   $pxa3xx
1939  Renesas SH7722/SH7723     $sh772x
1940  S3 Savage                 $savage
1941  SiS 315                   $sis315
1942  TI Davinci                $davinci
1943  TI OMAP                   $omap
1944  TVIA CyberPro             $cyber5k
1945  VIA CLE266                $cle266
1946  VIA UniChrome             $unichrome
1947  VMWare                    $vmware
1948  --
1949  OpenGL                    $gl (GLX: $glx)
1950
1951Building Input Drivers:
1952  DBox2 Remote              $enable_dbox2remote
1953  DreamBox Remote           $enable_dreamboxremote
1954  Dynapro Touchscreen       $enable_dynapro_ts
1955  ELO Touchscreen           $enable_elo_input
1956  Gunze Touchscreen         $enable_gunze_input
1957  H3600 Touchscreen         $enable_h3600_ts
1958  Joystick                  $enable_joystick
1959  Keyboard                  $enable_keyboard
1960  Linux Input               $enable_linux_input
1961  LiRC                      $enable_lirc
1962  MuTouch touchscreen       $enable_mutouch
1963  Zytronic touchscreen      $enable_zytronic
1964  PS/2 Mouse                $enable_ps2mouse
1965  Serial Mouse              $enable_serial_mouse
1966  SonyPI Jogdial            $enable_sonypi_jogdial
1967  tslib                     $enable_tslib                 $TSLIB_CFLAGS $TSLIB_LIBS
1968  ucb1x00 Touchscreen       $enable_ucb1x00_ts
1969  WM97xx Touchscreen        $enable_wm97xx_ts]);
1970fi
1971
1972AC_MSG_RESULT([$fusion_warning $png_warning $jpeg_warning $freetype_warning
1973]);
1974