diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-20 11:50:46 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-20 11:50:46 +0200 |
commit | a1bd5fac22b51da3d0593de04e26c1215f6730e9 (patch) | |
tree | a1c6de01bfc58b3d3a348223c7db1e36f84be188 /configure | |
parent | 551a3b5c0364446f1c244e6aac0e5099eaf251e4 (diff) |
configure: Do not require Perl 5.10.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -18,12 +18,12 @@ ## along with this program. If not, see <http://www.gnu.org/licenses/>. -$CC = $ENV{'CC'} // "gcc"; -$CFLAGS = $ENV{'CFLAGS'} // ""; -$OBJCFLAGS = $ENV{'OBJCFLAGS'} // $CFLAGS; -$MAKE = $ENV{'MAKE'} // "make"; -$XCODEBUILD = $ENV{'XCODEBUILD'} // "xcodebuild"; -$LLVM_CONFIG = $ENV{'LLVM_CONFIG'} // "llvm-config"; +$CC = defined($ENV{'CC'}) ? $ENV{'CC'} : "gcc"; +$CFLAGS = defined($ENV{'CFLAGS'}) ? $ENV{'CFLAGS'} : ""; +$OBJCFLAGS = defined($ENV{'OBJCFLAGS'}) ? $ENV{'OBJCFLAGS'} : $CFLAGS; +$MAKE = defined($ENV{'MAKE'}) ? $ENV{'MAKE'} : "make"; +$XCODEBUILD = defined($ENV{'XCODEBUILD'}) ? $ENV{'XCODEBUILD'} : "xcodebuild"; +$LLVM_CONFIG = defined($ENV{'LLVM_CONFIG'}) ? $ENV{'LLVM_CONFIG'} : "llvm-config"; $llvm = `$LLVM_CONFIG --version`; if ($llvm =~ /(\d+)\.(\d+).*/) { |