1 dnl Process this file with autoconf to produce a configure script.
3 AM_INIT_AUTOMAKE(aseqjoy, 0.0.1)
4 AM_CONFIG_HEADER(config.h)
6 dnl Checks for programs.
11 AC_CHECK_HEADERS(fcntl.h limits.h sys/ioctl.h alsa/asoundlib.h linux/joystick.h unistd.h)
13 dnl Checks for typedefs, structures, and compiler characteristics.
17 AC_CHECK_LIB(asound, snd_seq_event_output_direct,alsalib=yes,alsalib=no)
18 AC_CHECK_HEADERS(alsa/asoundlib.h,alsaheader=yes,alsaheader=no)
20 if test "$alsalib" = "yes"; then
21 if test "$alsaheader" = "yes"; then
24 AC_MSG_ERROR([** Coulnd't find ALSA header file sys/asoundlib.h **])
27 AC_MSG_ERROR([** Coulnd'f find ALSA library libasound. **])