Mouse wheel now scrolls horizontally in piano roll.
[epichord.git] / configure.ac
blob2aa59c9c933115dbe12aeab1cbe6eeb9094cc34b
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.61)
5 AC_INIT(epichord, 0.0.0, evanrinehart@gmail.com)
6 AM_INIT_AUTOMAKE(epichord, 0.0.0)
7 AC_CONFIG_SRCDIR([src/ui.h])
8 AC_CONFIG_HEADER([config.h])
12 # Checks for programs.
13 AC_PROG_CXX
14 #AC_PROG_CC
16 # Checks for libraries.
18 # Checks for header files.
19 AC_HEADER_STDC
20 #AC_CHECK_HEADERS([arpa/inet.h stdlib.h string.h unistd.h])
22 # Checks for typedefs, structures, and compiler characteristics.
23 AC_C_CONST
24 AC_C_INLINE
25 AC_TYPE_SIZE_T
26 AC_TYPE_UINT16_T
27 AC_TYPE_UINT32_T
28 AC_TYPE_UINT64_T
29 AC_TYPE_UINT8_T
31 # Checks for library functions.
32 #AC_FUNC_MALLOC
33 #AC_CHECK_FUNCS([floor sqrt])
35 AC_CHECK_HEADER([jack/jack.h],[],[
36   AC_MSG_ERROR([
37     Cannot find JACK header file.
38     Please install JACK.
39   ])
40 ],[])
41 AC_CHECK_LIB([jack],[jack_midi_event_write],[],[
42   AC_MSG_ERROR([
43      JACK midi support missing.
44      Upgrade to a recent version of JACK.
45   ])
46 ],[])
48 AC_CHECK_PROG(fltk2found,fltk2-config,[yes],[no])
49 if test "$fltk2found" == "no"; then
50   AC_MSG_ERROR([
51     FLTK 2 not found. 
52     Make sure FLTK 2 is installed correctly.
53   ])
56 PKG_CHECK_MODULES(LASH, lash-1.0 >= 0.5.0, HAVE_LASH="yes", HAVE_LASH="no");
57 if test "$HAVE_LASH" = "yes"
58 then
59   AC_DEFINE([HAVE_LASH], 1, [Defined if LASH is present.])
61 AM_CONDITIONAL(HAVE_LASH, test "$HAVE_LASH" = "yes")
63 AC_OUTPUT(Makefile src/Makefile doc/Makefile gfx/Makefile)
65 AC_MSG_RESULT([])
66 AC_MSG_RESULT([========================])
67 AC_MSG_RESULT([Prefix                    : $prefix])
68 AC_MSG_RESULT([LASH support              : $HAVE_LASH])