Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update generated configure script

  • Loading branch information...
commit 90c20847d1265c7ef9721d952a7c27bcd664e5ed 1 parent 6264fc7
@samoht samoht authored
Showing with 61 additions and 1 deletion.
  1. +61 −1 configure
View
62 configure
@@ -636,6 +636,8 @@ OCAMLMKLIB
OCAMLDOC
OCAMLBUILD
AWK
+FETCH
+fetch
LIBOBJS
LTLIBOBJS'
ac_subst_files=''
@@ -3718,6 +3720,62 @@ echo "$as_me: error: Your version of OCaml: $OCAMLVERSION is not supported" >&2;
fi
+for ac_prog in curl wget
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_prog_FETCH+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$FETCH"; then
+ ac_cv_prog_FETCH="$FETCH" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_FETCH="$ac_prog"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+FETCH=$ac_cv_prog_FETCH
+if test -n "$FETCH"; then
+ { echo "$as_me:$LINENO: result: $FETCH" >&5
+echo "${ECHO_T}$FETCH" >&6; }
+else
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+ test -n "$FETCH" && break
+done
+test -n "$FETCH" || FETCH="no"
+
+
+if test x"$FETCH" = x"curl" ; then
+ fetch="curl -OL"
+
+elif test x"$FETCH" = x"wget" ; then
+ fetch="wget"
+
+else
+ { { echo "$as_me:$LINENO: error: You must have either curl or wget installed." >&5
+echo "$as_me: error: You must have either curl or wget installed." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
ac_config_files="$ac_config_files Makefile.config src/core/opamVersion.ml"
cat >confcache <<\_ACEOF
@@ -4407,11 +4465,13 @@ OCAMLMKLIB!$OCAMLMKLIB$ac_delim
OCAMLDOC!$OCAMLDOC$ac_delim
OCAMLBUILD!$OCAMLBUILD$ac_delim
AWK!$AWK$ac_delim
+FETCH!$FETCH$ac_delim
+fetch!$fetch$ac_delim
LIBOBJS!$LIBOBJS$ac_delim
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF
- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 62; then
break
elif $ac_last_try; then
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
Please sign in to comment.
Something went wrong with that request. Please try again.