summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-08-20 11:50:46 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-08-20 11:50:46 +0200
commita1bd5fac22b51da3d0593de04e26c1215f6730e9 (patch)
treea1c6de01bfc58b3d3a348223c7db1e36f84be188 /configure
parent551a3b5c0364446f1c244e6aac0e5099eaf251e4 (diff)
configure: Do not require Perl 5.10.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files 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 <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+).*/) {