-
Notifications
You must be signed in to change notification settings - Fork 2
/
configure.ac
31 lines (25 loc) · 855 Bytes
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
dnl Process this file with autoconf to produce a configure script.
AC_INIT([aseqjoy], 0.0.2)
AC_CONFIG_SRCDIR([aseqjoy.c])
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
dnl Checks for programs.
AC_PROG_AWK
AC_PROG_CC
dnl Check for headers
AC_CHECK_HEADERS(fcntl.h limits.h sys/ioctl.h alsa/asoundlib.h linux/joystick.h unistd.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
dnl Check for ALSA
AC_CHECK_LIB(asound, snd_seq_event_output_direct,alsalib=yes,alsalib=no)
AC_CHECK_HEADERS(alsa/asoundlib.h,alsaheader=yes,alsaheader=no)
if test "$alsalib" = "yes"; then
if test "$alsaheader" = "yes"; then
LIBS="$LIBS -lasound"
else
AC_MSG_ERROR([** Coulnd't find ALSA header file sys/asoundlib.h **])
fi
else
AC_MSG_ERROR([** Coulnd'f find ALSA library libasound. **])
fi
AC_OUTPUT(Makefile aseqjoy.1)