Skip to content

Commit

Permalink
Fix declaration of PBX_CURL for ./configure --without-libcurl
Browse files Browse the repository at this point in the history
When `--without-libcurl` is used PBX_CURL is never set.  Set default
value 0 so the proper value is passed to menuselect.

Change-Id: I03e2842a00899cbca2dbde52bb1f6636d54bae1e
  • Loading branch information
coreyfarrell committed Jul 14, 2018
1 parent d137969 commit 0885ab8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions autoconf/libcurl.m4
Expand Up @@ -80,7 +80,7 @@ AC_DEFUN([AST_LIBCURL_CHECK_CONFIG],
AH_TEMPLATE([LIBCURL_PROTOCOL_POP3],[Defined if libcurl supports POP3])
AH_TEMPLATE([LIBCURL_PROTOCOL_IMAP],[Defined if libcurl supports IMAP])
AH_TEMPLATE([LIBCURL_PROTOCOL_SMTP],[Defined if libcurl supports SMTP])
AC_SUBST(PBX_CURL)
AC_SUBST(PBX_CURL, 0)
AC_ARG_WITH(libcurl,
AS_HELP_STRING([--with-libcurl=PREFIX],[look for the curl library in PREFIX/lib and headers in PREFIX/include]),
Expand Down Expand Up @@ -248,7 +248,6 @@ if (x) {;}
else
unset CURL_LIB
unset CURL_INCLUDE
PBX_CURL=0
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion configure
Expand Up @@ -10247,6 +10247,7 @@ fi



PBX_CURL=0



Expand Down Expand Up @@ -10586,7 +10587,6 @@ _ACEOF
else
unset CURL_LIB
unset CURL_INCLUDE
PBX_CURL=0
fi
fi

Expand Down

0 comments on commit 0885ab8

Please sign in to comment.