Remove old pngs
[nekobee.git] / configure.in
blob376b6340243412f595f66f9a4965b250d055bcdb
1 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT(nekobee, 0.1.x, gordon@gjcp.net)
5 AC_CONFIG_SRCDIR(src/nekobee-dssi.c)
6 AM_INIT_AUTOMAKE
7 AM_CONFIG_HEADER(config.h)
9 AC_ISC_POSIX
10 AC_PROG_CC
11 AM_PROG_CC_STDC
12 AC_HEADER_STDC
14 AC_ENABLE_STATIC(no)
15 AC_ENABLE_SHARED(yes)
16 AC_LIBTOOL_DLOPEN
17 dnl AC_DISABLE_STATIC
18 AC_PROG_LIBTOOL
20 AC_C_BIGENDIAN
22 dnl Check for GTK+
23 AC_ARG_WITH(gtk2, AC_HELP_STRING([--with-gtk2], [use GTK+ 2.0 default=yes]),
24             [ if test $withval = "yes"; then try_gtk2=yes ;
25               else try_gtk2=no ; fi ], try_gtk2=yes)
26 with_gtk=no
27 dnl First look for GTK+ 2.x, unless '--without-gtk2' was specified.
28 if test "x${try_gtk2}" = 'xyes'; then
29     AM_PATH_GTK_2_0(2.0.0, with_gtk='yes (version 2.0)', with_gtk=no)
31 AM_CONDITIONAL(BUILD_GUI, test "x${with_gtk}" != 'xno')
32 echo "GTK support: $with_gtk"
34 dnl Require DSSI and liblo
35 PKG_CHECK_MODULES(MODULE, dssi >= 0.9 liblo >= 0.12)
37 PKG_CHECK_MODULES(LV2_DEPS, lv2core >= 1, LV2_ENABLED="yes", LV2_ENABLED="no")
39 if test "$LV2_ENABLED" = "yes"; then
40   AC_MSG_CHECKING([whether to allow LV2])
41   AC_ARG_WITH(lv2,
42     AC_HELP_STRING([--without-lv2],[disable LV2 interface]),
43       [if test "$withval" = "no"; then LV2_ENABLED="no"; fi],[])
44   AC_MSG_RESULT($LV2_ENABLED)
47 if test "$LV2_ENABLED" == "yes"; then
48   AC_MSG_CHECKING(where to install LV2 plugins)
49   AC_ARG_WITH(lv2_dir,
50     AC_HELP_STRING([--with-lv2-dir],[install LV2 calf.lv2 bundle to DIR (default=$prefix/lib/lv2/)]),
51     ,
52     [with_lv2_dir="$prefix/lib/lv2/"])
53   AC_MSG_RESULT($with_lv2_dir)
54   AC_SUBST(with_lv2_dir)
57 AM_CONDITIONAL(USE_LV2, test "$LV2_ENABLED" = "yes")
59 if test "$LV2_ENABLED" = "yes"; then
60   AC_DEFINE(USE_LV2, 1, [LV2 support])
63 AC_MSG_CHECKING([where to install DSSI plugins])
64 AC_ARG_WITH(dssi-dir, AS_HELP_STRING([--with-dssi-dir=DIR], [the directory that 
65 DSSI plugins should be installed in]), [dssidir=$withval], [dssidir=$libdir/dssi
67 AC_MSG_RESULT($dssidir)
68 AC_SUBST(dssidir)
70 dnl Use lotsa flags if we have gcc.
71 dnl !FIX! the '-finline-limit=5000' is apparently a problem for gcc 2.9x?
72 CFLAGS="$CFLAGS $MODULE_CFLAGS"
73 LDFLAGS="$LDFLAGS $MODULE_LIBS"
74 changequote(,)dnl
75 if test "x$GCC" = "xyes"; then
76   case " $CFLAGS " in
77   *[\ \ ]-Wall[\ \      ]*) ;;
78   *) CFLAGS="$CFLAGS -Wall" ;;
79   esac
80   case " $CFLAGS " in
81   *[\ \ ]-O[1-9][\ \    ]*) ;;
82   *) CFLAGS="$CFLAGS -O2" ;;
83   esac
84   case " $CFLAGS " in
85   *[\ \ ]-ffast-math[\ \        ]*) ;;
86   *) CFLAGS="$CFLAGS -fomit-frame-pointer -funroll-loops -finline-functions -ffast-math -finline-limit=5000 -Winline" ;;
87   esac
89 changequote([,])dnl
91 AC_OUTPUT([
92 Makefile
93 src/Makefile