configure: slightly extended compile_module config helper

Allow to pass many includes along with creating function.

Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
This commit is contained in:
Michal Rakowski 2019-07-22 12:32:39 +02:00
parent a3c44d4645
commit 18b879884e

View File

@ -23,7 +23,11 @@ add_function() {
compile_module(){
if [ $# -gt 2 ]
then
INCLUDE="#include <$3>"
i=3
while [ "$i" -le "$#" ]; do
INCLUDE+=$(echo -e "\n#include <${!i}>\\n")
i=$((i + 1))
done
else
INCLUDE=""
fi