1 dnl Copyright (C) 2009 Nick Bowler
2 dnl Copying and distribution of this file, with or without modification,
3 dnl are permitted in any medium without royalty provided the copyright
4 dnl notice and this notice are preserved. This file is offered as-is,
5 dnl without any warranty.
8 AC_INIT([liblbx], [0.1], [toom-devel@lists.sourceforge.net])
9 AC_CONFIG_SRCDIR([src/lbx.c])
10 AC_CONFIG_HEADER([config.h])
11 AC_CONFIG_MACRO_DIR([m4])
13 AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign subdir-objects])
14 AM_SILENT_RULES([yes])
25 AC_ARG_ENABLE([lbximg],
26 [AS_HELP_STRING([--enable-lbximg],
27 [build the lbximg tool (requires libpng) [default=auto]])],
28 [enable_lbximg=$enableval],
32 if test x"$enable_lbximg" = x"auto"; then
33 DX_CHECK_LIBPNG([1.2], [have_libpng=yes], [have_libpng=no])
35 if test x"$enable_lbximg" = x"yes"; then
36 DX_CHECK_LIBPNG([1.2], [have_libpng=yes])
38 AM_CONDITIONAL([BUILD_LBXIMG], [test x"$have_libpng" = x"yes"])
40 AC_ARG_ENABLE([lbxgui],
41 [AS_HELP_STRING([--enable-lbxgui],
42 [build the lbxgui tool (requires GTK+) [default=auto]])],
43 [enable_lbxgui=$enableval],
47 if test x"$enable_lbxgui" = x"auto"; then
48 DX_CHECK_GTK2([2.16], [have_gtk=yes], [have_gtk=no])
50 if test x"$enable_lbxgui" = x"yes"; then
51 DX_CHECK_GTK2([2.16], [have_gtk=yes])
53 AM_CONDITIONAL([BUILD_LBXGUI], [test x"$have_gtk" = x"yes"])