参照元†
- ALSA のデバイスファイルが存在するディレクトリを定義するためのマクロ。
- デフォルト値は "/dev/snd/"
- configure の --with-alsa-devdir オプションで変更可能。
dnl Check for non-standard /dev directory
AC_MSG_CHECKING([for ALSA device file directory])
AC_ARG_WITH(alsa-devdir,
AS_HELP_STRING([--with-alsa-devdir=dir],
[directory with ALSA device files (default /dev/snd)]),
[alsa_dev_dir="$withval"],
[alsa_dev_dir="/dev/snd"])
dnl make sure it has a trailing slash
if echo "$alsa_dev_dir" | grep -v '/$' > /dev/null; then
alsa_dev_dir="$alsa_dev_dir/"
fi
AC_DEFINE_UNQUOTED(ALSA_DEVICE_DIRECTORY, "$alsa_dev_dir", [Directory with ALSA device files])
AC_MSG_RESULT([$alsa_dev_dir])
- configure の --with-alsa-devdir オプションで指定された文字列に、"/" を足した文字列を ALSA_DEVICE_DIRECTORY として定義する。
- configure 実行後は include/config.h に書き込まれているはず。
コメント†