Problem with compilation

ffmpeg-qsv # ./configure --enable-libmfx --enable-memalign-hack --extra-libs="-lsupc++ -lstdc++"
<SKIP>
gcc: warning: /usr/local/lib/libmfx.a: linker input file unused because linking not done
gcc -Wl,--as-needed -I/usr/local/include -I/root/streamer/mfx_dispatch -L/usr/local/lib /usr/local/lib/libmfx.a -o /tmp/ffconf.PLygV6dm /tmp/ffconf.qC7LiZiJ.o -lsupc++ -lm -lbz2 -lz -pthread -lsupc++ -lstdc++
/tmp/ffconf.qC7LiZiJ.o: In function `check_MFXInit':
ffconf.NJ1xLSeR.c:(.text+0x1): undefined reference to `MFXInit'
collect2: error: ld returned 1 exit status
ERROR: libmfx not found
<END>
Do you know how to fix that?
Thank you.