for word in progoutput(['pkg-config', '--cflags', spec]).split():
if word.startswith('-I'): INCLUDEDIRS.append(word[2:])
- else: weird('--cflags', word)
+ else: weird('CFLAGS', word)
for word in progoutput(['pkg-config', '--libs', spec]).split():
if word.startswith('-L'): LIBDIRS.append(word[2:])
elif word.startswith('-l'): LIBS.append(word[2:])
- else: weird('--libs', word)
+ else: weird('LIBS', word)
###--------------------------------------------------------------------------
### Substituting variables in files.