build: Fix --disable-apidoc configure option

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>