From a1bd5fac22b51da3d0593de04e26c1215f6730e9 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Wed, 20 Aug 2008 11:50:46 +0200 Subject: configure: Do not require Perl 5.10. --- configure | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 862f542..39fe2a6 100755 --- a/configure +++ b/configure @@ -18,12 +18,12 @@ ## along with this program. If not, see . -$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+).*/) { -- cgit v1.2.3