diff options
author | Martin-Éric Racine <martin-eric.racine@iki.fi> | 2011-11-13 03:10:01 +0200 |
---|---|---|
committer | Martin-Éric Racine <martin-eric.racine@iki.fi> | 2011-11-13 03:10:01 +0200 |
commit | f6745f544feeb7443405f4b87043be9b721236b5 (patch) | |
tree | ceffac7c8857289f6b12ef81917761ce811cc326 | |
parent | f15f4da59a80533f3864aa6c54b4471e272d5c80 (diff) |
Only enable z4l.c on Linux.
-rw-r--r-- | Makefile.am | 9 | ||||
-rw-r--r-- | configure.ac | 10 |
2 files changed, 19 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 74e0bd3..50d8aa9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -31,3 +31,12 @@ ChangeLog: $(CHANGELOG_CMD) dist-hook: ChangeLog INSTALL + +#if BUILD_Z4L + ztv_drv_la_LTLIBRARIES = ztv_drv.la + ztv_drv_la_LDFLAGS = -module -avoid-version + ztv_drv_ladir = @moduledir@/drivers + + ztv_drv_la_SOURCES = \ + z4l.c +#endif diff --git a/configure.ac b/configure.ac index 483caff..d3cedb3 100644 --- a/configure.ac +++ b/configure.ac @@ -114,6 +114,16 @@ AC_SUBST([XORG_CFLAGS]) AC_SUBST([moduledir]) AC_SUBST([AMD_CFLAGS]) +case $host_os in + *linux*) + BUILD_Z4L=yes + ;; + *) + BUILD_Z4l=no + ;; +esac + +AM_CONDITIONAL(BUILD_Z4L, [test "x$BUILD_Z4L" = xyes]) is386=false case $host_cpu in |