configure.ac: add variable $host_is_solaris

This commit is contained in:
Max Kellermann 2013-12-19 12:55:43 +01:00
parent 45ad7696fe
commit c476305149
1 changed files with 6 additions and 13 deletions

View File

@ -66,6 +66,7 @@ dnl ---------------------------------------------------------------------------
AC_CANONICAL_HOST
host_is_darwin=no
host_is_solaris=no
host_is_windows=no
case "$host_os" in
@ -83,6 +84,10 @@ mingw32* | windows*)
darwin*)
host_is_darwin=yes
;;
solaris*)
host_is_solaris=yes
;;
esac
AM_CONDITIONAL([HAVE_WINDOWS], [test x$host_is_windows = xyes])
@ -456,7 +461,7 @@ AC_ARG_ENABLE(sndfile,
AC_ARG_ENABLE(solaris_output,
AS_HELP_STRING([--enable-solaris-output],
[enables the Solaris /dev/audio output]),,
[enable_solaris_output=auto])
[enable_solaris_output=$host_is_solaris])
AC_ARG_ENABLE(sqlite,
AS_HELP_STRING([--enable-sqlite],
@ -1465,18 +1470,6 @@ AM_CONDITIONAL(HAVE_SHOUT, test x$enable_shout = xyes)
dnl --------------------------------- Solaris ---------------------------------
if test x$enable_solaris_output = xauto; then
case "$host_os" in
solaris*)
enable_solaris_output=yes
;;
*)
enable_solaris_output=no
;;
esac
fi
if test x$enable_solaris_output = xyes; then
AC_DEFINE(ENABLE_SOLARIS_OUTPUT, 1, [Define to enable Solaris /dev/audio support])
fi