1
AC_DEFUN([AX_PATH_PORTMIDI],
3
AC_ARG_WITH(portmidi-prefix,
4
AC_HELP_STRING([--with-portmidi-prefix=PREFIX],[Prefix where PortMidi was installed.]),
5
[_portmidi_prefix="$withval"],[_portmidi_prefix="/usr"])
7
AC_MSG_CHECKING(for PortMidi compatible library)
9
if test -e "${_portmidi_prefix}/lib/libportmidi.so" -a -e "${_portmidi_prefix}/lib/libporttime.so"
12
# AC_CHECK_LIB(porttime, main)
13
# AC_CHECK_LIB(portmidi, main)
16
AC_MSG_ERROR([cannot find PortMidi])
20
PORTMIDI_LDFLAGS="-L${_portmidi_prefix}/lib -lportmidi -lporttime"
21
AC_SUBST(PORTMIDI_CFLAGS)
22
AC_SUBST(PORTMIDI_LDFLAGS)
24
unset _portmidi_prefix