Skip to content

Commit

Permalink
configure.ac: Fix HAVE_SNDIO_H handling
Browse files Browse the repository at this point in the history
Revert part of 3ab2093 to fix
the handling of HAVE_SNDIO_H.
  • Loading branch information
brad0 authored and evpobr committed Jun 27, 2024
1 parent 3ab2093 commit 58c05b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,10 @@ AS_IF([test "x$enable_alsa" != "xno"], [
dnl ====================================================================================
dnl Check for Sndio.

HAVE_SNDIO_H=0
AS_IF([test "x$enable_sndio" != "xno"], [
PKG_CHECK_MODULES([SNDIO], [sndio], [
AC_DEFINE([HAVE_SNDIO_H], [1], [Set to 1 if <sndio.h> is available.])
HAVE_SNDIO_H=1
ac_cv_sndio="yes"
], [
ac_cv_sndio="no"
Expand All @@ -495,6 +496,8 @@ AS_IF([test "x$enable_sndio" != "xno"], [
])
])

AC_DEFINE_UNQUOTED([HAVE_SNDIO_H], [${HAVE_SNDIO_H}], [Set to 1 if <sndio.h> is available.])

dnl ====================================================================================
dnl Test for sanity when cross-compiling.

Expand Down

0 comments on commit 58c05b8

Please sign in to comment.