mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Merged revisions 67026 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r67026 | russell | 2007-06-04 11:02:31 -0500 (Mon, 04 Jun 2007) | 6 lines Change the configure script to build a test program against libcurl to make sure the results from curl-config can be used to compile successfully. This is intended to help prevent a situation where you are cross compiling, and the configure script finds the curl library installed on the host. (issue #9865, reported and patched by zandbelt) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67029 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		
							
								
								
									
										23
									
								
								configure.ac
									
									
									
									
									
								
							
							
						
						
									
										23
									
								
								configure.ac
									
									
									
									
									
								
							| @@ -1016,8 +1016,27 @@ if test "${USE_CURL}" != "no"; then | ||||
|       if test $(printf "%d" 0x$(${CURL_CONFIG} --vernum)) -ge $(printf "%d" 0x070907); then | ||||
|          CURL_INCLUDE=$(${CURL_CONFIG} --cflags) | ||||
|          CURL_LIB=$(${CURL_CONFIG} --libs) | ||||
|          PBX_CURL=1 | ||||
|          AC_DEFINE([HAVE_CURL], 1, [Define if your system has the curl libraries.]) | ||||
|  | ||||
|          AC_MSG_CHECKING(for curl_version() in curl/curl.h) | ||||
|          saved_cppflags="${CPPFLAGS}" | ||||
|          CPPFLAGS="${CPPFLAGS} ${CURL_INCLUDE}" | ||||
|          AC_COMPILE_IFELSE( | ||||
|             [AC_LANG_PROGRAM( | ||||
|                 [#include <curl/curl.h>], | ||||
|                     [curl_version();]) | ||||
|             ],[ | ||||
|                 AC_MSG_RESULT(yes) | ||||
|                 ac_cv_curl_h="yes" | ||||
|             ],[ | ||||
|                 AC_MSG_RESULT(no) | ||||
|                 ac_cv_curl_h="no" | ||||
|             ] | ||||
| 	 ) | ||||
| 	 CPPFLAGS="${saved_cppflags}" | ||||
|          if test "${ac_cv_curl_h}" = "yes"; then | ||||
|              PBX_CURL=1 | ||||
|              AC_DEFINE([HAVE_CURL], 1, [Define if your system has the curl libraries.]) | ||||
|          fi | ||||
|       fi | ||||
|    fi | ||||
| fi | ||||
|   | ||||
		Reference in New Issue
	
	Block a user