diff --git a/scripts/check-dependencies.sh b/scripts/check-dependencies.sh index c8ef5225..fad0026b 100755 --- a/scripts/check-dependencies.sh +++ b/scripts/check-dependencies.sh @@ -96,10 +96,10 @@ fontconfig_sysver() { fcpath=$1/include/fontconfig/fontconfig.h if [ ! -e $fcpath ]; then return; fi - fcmajor=`grep "define *FC_MAJOR *[0-9.]*" $fcpath | awk '{print $3}'` - fcminor=`grep "define *FC_MINOR *[0-9.]*" $fcpath | awk '{print $3}'` - fcrevison=`grep "define *FC_REVISION *[0-9.]*" $fcpath | awk '{print $3}'` - fontconfig_sysver="${fcmajor}.${fcminor}.${fcrevision}" + fcmajor=`grep "define *FC_MAJOR.*[0-9.]*" $fcpath | awk '{print $3}'` + fcminor=`grep "define *FC_MINOR.*[0-9.]*" $fcpath | awk '{print $3}'` + fcrevison=`grep "define *FC_REVISION.*[0-9.]*" $fcpath | awk '{print $3}'` + fontconfig_sysver_result="${fcmajor}.${fcminor}.${fcrevision}" } freetype2_sysver()