changeset 15185:0b29c16a2645

pkg: check cURL library when using -forge
author Carnë Draug <carandraug+dev@gmail.com>
date Thu, 16 Aug 2012 16:25:15 +0100
parents 8b9b3677a4d6
children 82d51d6e470c
files scripts/pkg/pkg.m
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/pkg/pkg.m
+++ b/scripts/pkg/pkg.m
@@ -317,6 +317,9 @@
         ## Send verbose output to pager immediately.  Change setting locally.
         page_output_immediately (true, "local");
       case "-forge"
+        if (! octave_config_info ("CURL_LIBS"))
+          error ("pkg: can't download from forge without the cURL library")
+        endif
         octave_forge = true;
       case "-local"
         global_install = false;