diff --git a/SconsTests/utils.py b/SconsTests/utils.py index 9b6a3de9fc..513d74f62b 100644 --- a/SconsTests/utils.py +++ b/SconsTests/utils.py @@ -116,9 +116,10 @@ def CheckSDL(context, version): return int(ret) def CheckPortaudio(context, version): - context.Message( 'Checking for lib portaudio version > %s... ' % version) - context.env.Append(LIBS = 'portaudio') - found = context.TryRun(""" + found = 0 + if CheckPKG(context, 'portaudio'): + context.Message( 'Checking for lib portaudio version > %s... ' % version) + found = context.TryRun(""" #include #include int main(int argc, char **argv) {