lol

stdenv: don't complain about configure script not existing

Close #14335.
Since 89036ef76ab09a, when a package doesn't include a configure script,
the build complains with:

grep: : No such file or directory
grep: : No such file or directory

This prevents that.

authored by

Charles Strahan and committed by
Vladimír Čunát
bde82098 6c9ce23c

+2 -2
+2 -2
pkgs/stdenv/generic/setup.sh
··· 649 649 650 650 # Add --disable-dependency-tracking to speed up some builds. 651 651 if [ -z "$dontAddDisableDepTrack" ]; then 652 - if grep -q dependency-tracking "$configureScript"; then 652 + if [ -f "$configureScript" ] && grep -q dependency-tracking "$configureScript"; then 653 653 configureFlags="--disable-dependency-tracking $configureFlags" 654 654 fi 655 655 fi 656 656 657 657 # By default, disable static builds. 658 658 if [ -z "$dontDisableStatic" ]; then 659 - if grep -q enable-static "$configureScript"; then 659 + if [ -f "$configureScript" ] && grep -q enable-static "$configureScript"; then 660 660 configureFlags="--disable-static $configureFlags" 661 661 fi 662 662 fi