diff --git a/plugins/php/versions/53/fileinfo.sh b/plugins/php/versions/53/fileinfo.sh index fc2a3adab..6966d6aaa 100755 --- a/plugins/php/versions/53/fileinfo.sh +++ b/plugins/php/versions/53/fileinfo.sh @@ -46,7 +46,13 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make clean && make && make install && make clean + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi + + make && make install && make clean fi diff --git a/plugins/php/versions/54/fileinfo.sh b/plugins/php/versions/54/fileinfo.sh index fc2a3adab..6966d6aaa 100755 --- a/plugins/php/versions/54/fileinfo.sh +++ b/plugins/php/versions/54/fileinfo.sh @@ -46,7 +46,13 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make clean && make && make install && make clean + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi + + make && make install && make clean fi diff --git a/plugins/php/versions/55/fileinfo.sh b/plugins/php/versions/55/fileinfo.sh index fc2a3adab..6966d6aaa 100755 --- a/plugins/php/versions/55/fileinfo.sh +++ b/plugins/php/versions/55/fileinfo.sh @@ -46,7 +46,13 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make clean && make && make install && make clean + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi + + make && make install && make clean fi diff --git a/plugins/php/versions/56/fileinfo.sh b/plugins/php/versions/56/fileinfo.sh index fc2a3adab..6966d6aaa 100755 --- a/plugins/php/versions/56/fileinfo.sh +++ b/plugins/php/versions/56/fileinfo.sh @@ -46,7 +46,13 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make clean && make && make install && make clean + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi + + make && make install && make clean fi diff --git a/plugins/php/versions/70/fileinfo.sh b/plugins/php/versions/70/fileinfo.sh index fc2a3adab..6966d6aaa 100755 --- a/plugins/php/versions/70/fileinfo.sh +++ b/plugins/php/versions/70/fileinfo.sh @@ -46,7 +46,13 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make clean && make && make install && make clean + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi + + make && make install && make clean fi diff --git a/plugins/php/versions/71/fileinfo.sh b/plugins/php/versions/71/fileinfo.sh index fc2a3adab..6966d6aaa 100755 --- a/plugins/php/versions/71/fileinfo.sh +++ b/plugins/php/versions/71/fileinfo.sh @@ -46,7 +46,13 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make clean && make && make install && make clean + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi + + make && make install && make clean fi diff --git a/plugins/php/versions/72/fileinfo.sh b/plugins/php/versions/72/fileinfo.sh index fc2a3adab..6966d6aaa 100755 --- a/plugins/php/versions/72/fileinfo.sh +++ b/plugins/php/versions/72/fileinfo.sh @@ -46,7 +46,13 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make clean && make && make install && make clean + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi + + make && make install && make clean fi diff --git a/plugins/php/versions/73/fileinfo.sh b/plugins/php/versions/73/fileinfo.sh index fc2a3adab..6966d6aaa 100755 --- a/plugins/php/versions/73/fileinfo.sh +++ b/plugins/php/versions/73/fileinfo.sh @@ -46,7 +46,13 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make clean && make && make install && make clean + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi + + make && make install && make clean fi diff --git a/plugins/php/versions/74/fileinfo.sh b/plugins/php/versions/74/fileinfo.sh index fc2a3adab..6966d6aaa 100755 --- a/plugins/php/versions/74/fileinfo.sh +++ b/plugins/php/versions/74/fileinfo.sh @@ -46,7 +46,13 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make clean && make && make install && make clean + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi + + make && make install && make clean fi diff --git a/plugins/php/versions/80/fileinfo.sh b/plugins/php/versions/80/fileinfo.sh index fc2a3adab..6966d6aaa 100755 --- a/plugins/php/versions/80/fileinfo.sh +++ b/plugins/php/versions/80/fileinfo.sh @@ -46,7 +46,13 @@ Install_lib() $serverPath/php/$version/bin/phpize ./configure --with-php-config=$serverPath/php/$version/bin/php-config - make clean && make && make install && make clean + + FIND_C99=`cat Makefile|grep c99` + if [ "$FIND_C99" == "" ];then + sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile + fi + + make && make install && make clean fi diff --git a/plugins/php/versions/81/fileinfo.sh b/plugins/php/versions/81/fileinfo.sh index 78c035840..6966d6aaa 100755 --- a/plugins/php/versions/81/fileinfo.sh +++ b/plugins/php/versions/81/fileinfo.sh @@ -52,7 +52,7 @@ Install_lib() sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile fi - make clean && make && make install && make clean + make && make install && make clean fi