~ubuntu-branches/ubuntu/quantal/curl/quantal-security

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-05-28 12:21:13 UTC
  • mfrom: (3.4.29 sid)
  • Revision ID: package-import@ubuntu.com-20120528122113-i5f42lajprljoudn
Tags: 7.26.0-1ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from binary package Depends.
  - Add new libcurl3-udeb package.
  - Add new curl-udeb package.
* Adjust udeb configure flags handling to something easier to merge in
  future.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
include_directories(${PROJECT_BINARY_DIR}/include/curl)
58
58
include_directories( ${CURL_SOURCE_DIR}/include )
59
59
 
60
 
if(WIN32)
61
 
  set(NATIVE_WINDOWS ON)
62
 
endif()
63
 
 
64
60
option(BUILD_CURL_EXE "Set to ON to build cURL executable." ON)
65
61
option(BUILD_CURL_TESTS "Set to ON to build cURL tests." ON)
66
62
option(CURL_STATICLIB "Set to ON to build libcurl with static linking." OFF)
113
109
 
114
110
option(CURL_DISABLE_LDAPS "to disable LDAPS" OFF)
115
111
mark_as_advanced(CURL_DISABLE_LDAPS)
116
 
if(WIN32)
117
 
  set(CURL_DEFAULT_DISABLE_LDAP OFF)
118
 
  # some windows compilers do not have wldap32
119
 
  if( NOT HAVE_WLDAP32)
120
 
    set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
121
 
    message(STATUS "wldap32 not found CURL_DISABLE_LDAP set ON")
122
 
    option(CURL_LDAP_WIN "Use Windows LDAP implementation" OFF)
123
 
  else()
124
 
    option(CURL_LDAP_WIN "Use Windows LDAP implementation" ON)
125
 
  endif()
126
 
  mark_as_advanced(CURL_LDAP_WIN)
127
 
endif()
128
112
 
129
113
if(HTTP_ONLY)
130
114
  set(CURL_DISABLE_FTP ON)
131
115
  set(CURL_DISABLE_LDAP ON)
 
116
  set(CURL_DISABLE_LDAPS ON)
132
117
  set(CURL_DISABLE_TELNET ON)
133
118
  set(CURL_DISABLE_DICT ON)
134
119
  set(CURL_DISABLE_FILE ON)
221
206
check_library_exists_concat("winmm"  getch        HAVE_LIBWINMM)
222
207
check_library_exists("wldap32" cldap_open "" HAVE_WLDAP32)
223
208
 
 
209
if(WIN32)
 
210
  set(CURL_DEFAULT_DISABLE_LDAP OFF)
 
211
  # some windows compilers do not have wldap32
 
212
  if(NOT HAVE_WLDAP32)
 
213
    set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
 
214
    message(STATUS "wldap32 not found CURL_DISABLE_LDAP set ON")
 
215
    option(CURL_LDAP_WIN "Use Windows LDAP implementation" OFF)
 
216
  else()
 
217
    option(CURL_LDAP_WIN "Use Windows LDAP implementation" ON)
 
218
  endif()
 
219
  mark_as_advanced(CURL_LDAP_WIN)
 
220
endif()
 
221
 
 
222
 
224
223
# IF(NOT CURL_SPECIAL_LIBZ)
225
224
#  CHECK_LIBRARY_EXISTS_CONCAT("z"      inflateEnd   HAVE_LIBZ)
226
225
# ENDIF(NOT CURL_SPECIAL_LIBZ)
387
386
  set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
388
387
endif()
389
388
 
 
389
# No ldap, no ldaps.
 
390
if(CURL_DISABLE_LDAP)
 
391
  if(NOT CURL_DISABLE_LDAPS)
 
392
    message(STATUS "LDAP needs to be enabled to support LDAPS")
 
393
    set(CURL_DISABLE_LDAPS ON CACHE BOOL "" FORCE)
 
394
  endif()
 
395
endif()
390
396
 
391
397
check_type_size(size_t  SIZEOF_SIZE_T)
392
398
check_type_size(ssize_t  SIZEOF_SSIZE_T)
426
432
  set(CURL_FORMAT_CURL_OFF_TU "lu")
427
433
  set(CURL_FORMAT_OFF_T "%ld")
428
434
  set(CURL_SUFFIX_CURL_OFF_T L)
429
 
  set(CURL_SUFFIX_CURL_OFF_TU LU)
 
435
  set(CURL_SUFFIX_CURL_OFF_TU UL)
430
436
endif(SIZEOF_LONG EQUAL 8)
431
437
 
432
438
if(SIZEOF_LONG_LONG EQUAL 8)
436
442
  set(CURL_FORMAT_CURL_OFF_TU "llu")
437
443
  set(CURL_FORMAT_OFF_T "%lld")
438
444
  set(CURL_SUFFIX_CURL_OFF_T LL)
439
 
  set(CURL_SUFFIX_CURL_OFF_TU LLU)
 
445
  set(CURL_SUFFIX_CURL_OFF_TU ULL)
440
446
endif(SIZEOF_LONG_LONG EQUAL 8)
441
447
 
442
448
if(NOT CURL_TYPEOF_CURL_OFF_T)