Merge pull request #7788 from orbea/quotes

qb: Minor cleanup.
This commit is contained in:
Twinaphex 2018-12-22 19:45:37 +01:00 committed by GitHub
commit 456b891994
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -236,9 +236,7 @@ check_val '' ALSA -lasound alsa
check_lib '' CACA -lcaca
check_lib '' SIXEL -lsixel
if [ "$HAVE_AUDIOIO" != 'no' ]; then
check_macro AUDIOIO AUDIO_SETINFO sys/audioio.h
fi
check_macro AUDIOIO AUDIO_SETINFO sys/audioio.h
if [ "$HAVE_OSS" != 'no' ]; then
check_header OSS sys/soundcard.h

View File

@ -140,9 +140,9 @@ check_header() #$1 = HAVE_$1 $2, $3, ... = header files
check_macro() #$1 = HAVE_$1 $2 = macro name $3 = header name [included only if non-empty]
{ tmpval="$(eval "printf %s \"\$HAVE_$1\"")"
[ "$tmpval" = 'no' ] && return 0
if [ $3 ]; then
if [ "${3}" ]; then
ECHOBUF="Checking presence of predefined macro $2 in $3"
header_include=$(printf '#include <%s>' "$3")
header_include="#include <$3>"
else
ECHOBUF="Checking presence of predefined macro $2"
header_include=""