Browse Source

Re-order configure.ac statements

master
Damien Goutte-Gattat 10 years ago
parent
commit
7c528e6ba0
  1. 20
      configure.ac

20
configure.ac

@ -24,29 +24,27 @@ midi_default_port=
AC_ARG_WITH([alsa],
[AS_HELP_STRING([--with-alsa],
[use ALSA MIDI backend])],
[AS_IF([test "x$with_alsa" = xyes],
[midi_backend=alsa
midi_default_port="hw:1,0,0"])])
[AS_IF([test "x$with_alsa" = xyes], [midi_backend=alsa])])
AC_ARG_WITH([oss],
[AS_HELP_STRING([--with-oss],
[use OSS MIDI backend])],
[AS_IF([test "x$with_oss" = xyes],
[midi_backend=oss
midi_default_port="/dev/midi00"])])
AC_DEFINE_UNQUOTED([DEFAULT_MIDI_PORT], ["$midi_default_port"],
[Default MIDI port to use.])
AC_SUBST([DEFAULT_MIDI_PORT], [$midi_default_port])
[AS_IF([test "x$with_oss" = xyes], [midi_backend=oss])])
dnl Check for selected backend
AS_CASE(["x$midi_backend"],
[xalsa],
[AM_PATH_ALSA([1.0.0],
[AC_DEFINE([USE_ALSA_MIDI_API], [1],
[Define wether to use the ALSA MIDI API.])])],
[Define wether to use the ALSA MIDI API.])
midi_default_port="hw:1,0,0"])],
[xoss],
[AC_DEFINE([USE_OSS_MIDI_API], [1],
[Define whether to use the OSS MIDI API.])],
[Define whether to use the OSS MIDI API.])
midi_default_port="/dev/midi00"],
[AC_MSG_ERROR([No MIDI backend selected.])])
AC_DEFINE_UNQUOTED([DEFAULT_MIDI_PORT], ["$midi_default_port"],
[Default MIDI port to use.])
AC_SUBST([DEFAULT_MIDI_PORT], [$midi_default_port])
dnl Output files
AC_CONFIG_FILES([Makefile lib/Makefile src/Makefile

Loading…
Cancel
Save