~ubuntu-branches/ubuntu/natty/curl/natty-proposed

« back to all changes in this revision

Viewing changes to .pc/no_com_err/configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-11-29 17:26:37 UTC
  • mfrom: (3.4.9 sid)
  • Revision ID: james.westby@ubuntu.com-20101129172637-7wwnlut14uxp2kfx
Tags: 7.21.2-1ubuntu1
* Merge with Debian unstable, remaining Ubuntu changes: (LP: #682286)
* debian/control:
  - (Keep build deps in main)
  - Drop build dependencies: stunnel, libssh2-1-dev
  - Add build-dependency on openssh-server
  - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
AC_PREREQ(2.57)
25
25
 
26
26
dnl We don't know the version number "statically" so we use a dash here
27
 
AC_INIT([curl], [-], [a suitable curl mailing list => http://curl.haxx.se/mail/])
 
27
AC_INIT([curl], [-], [a suitable curl mailing list: http://curl.haxx.se/mail/])
28
28
 
29
29
CURL_OVERRIDE_AUTOCONF
30
30
 
53
53
AC_SUBST(CONFIGURE_OPTIONS)
54
54
 
55
55
CURL_CFLAG_EXTRAS=""
56
 
if test X"$want_werror" == Xyes; then
 
56
if test X"$want_werror" = Xyes; then
57
57
  CURL_CFLAG_EXTRAS="-Werror"
58
58
fi
59
59
AC_SUBST(CURL_CFLAG_EXTRAS)
416
416
         AC_MSG_RESULT(yes)
417
417
         AC_DEFINE(HAVE_LDAP_SSL, 1, [Use LDAPS implementation])
418
418
         AC_SUBST(HAVE_LDAP_SSL, [1])
419
 
         curl_ldaps_msg="enabled"
420
419
       fi
421
420
       ;;
422
421
  esac ],[
428
427
         AC_MSG_RESULT(yes)
429
428
         AC_DEFINE(HAVE_LDAP_SSL, 1, [Use LDAPS implementation])
430
429
         AC_SUBST(HAVE_LDAP_SSL, [1])
431
 
         curl_ldaps_msg="enabled"
432
430
       fi ]
433
431
)
434
432
 
570
568
       AC_MSG_RESULT(yes)
571
569
)
572
570
 
 
571
AC_MSG_CHECKING([whether to support gopher])
 
572
AC_ARG_ENABLE(gopher,
 
573
AC_HELP_STRING([--enable-gopher],[Enable Gopher support])
 
574
AC_HELP_STRING([--disable-gopher],[Disable Gopher support]),
 
575
[ case "$enableval" in
 
576
  no)
 
577
       AC_MSG_RESULT(no)
 
578
       AC_DEFINE(CURL_DISABLE_GOPHER, 1, [to disable Gopher])
 
579
       AC_SUBST(CURL_DISABLE_GOPHER, [1])
 
580
       ;;
 
581
  *)   AC_MSG_RESULT(yes)
 
582
       ;;
 
583
  esac ],
 
584
       AC_MSG_RESULT(yes)
 
585
)
 
586
 
573
587
 
574
588
dnl **********************************************************************
575
589
dnl Check for built-in manual
876
890
  fi
877
891
fi
878
892
 
 
893
if test x$CURL_DISABLE_LDAPS != x1 ; then
 
894
    curl_ldaps_msg="enabled"
 
895
fi
 
896
 
879
897
dnl **********************************************************************
880
898
dnl Checks for IPv6
881
899
dnl **********************************************************************
1718
1736
 
1719
1737
fi dnl OPENSSL != 1
1720
1738
 
 
1739
dnl ---
 
1740
dnl If GnuTLS is enabled, we MUST verify that it uses libgcrypt since
 
1741
dnl curl code relies on that but recent GnuTLS versions can in fact build
 
1742
dnl with different crypto libraries which curl right now cannot handle
 
1743
dnl ---
 
1744
 
 
1745
if test "$GNUTLS_ENABLED" = "1"; then
 
1746
  AC_CHECK_LIB(gcrypt,
 
1747
               gcry_control, ,
 
1748
    [
 
1749
      AC_MSG_ERROR([need GnuTLS built with gcrypt to function with GnuTLS])
 
1750
    ])
 
1751
fi
 
1752
 
1721
1753
dnl ----------------------------------------------------
1722
1754
dnl check for PolarSSL
1723
1755
dnl ----------------------------------------------------
2035
2067
    ;;
2036
2068
  off)
2037
2069
    dnl no --with-librtmp option given, just check default places
 
2070
    LIB_RTMP="-lrtmp"
2038
2071
    ;;
2039
2072
  *)
2040
2073
    dnl use the given --with-librtmp spot
2053
2086
  CPPFLAGS="$CPPFLAGS $CPP_RTMP"
2054
2087
  LIBS="$LIBS $LIB_RTMP"
2055
2088
 
2056
 
  AC_CHECK_LIB(rtmp, RTMP_Init)
2057
 
 
2058
 
  AC_CHECK_HEADERS(librtmp/rtmp.h,
2059
 
    curl_rtmp_msg="enabled (librtmp)"
2060
 
    LIBRTMP_ENABLED=1
2061
 
    AC_DEFINE(USE_LIBRTMP, 1, [if librtmp is in use])
2062
 
    AC_SUBST(USE_LIBRTMP, [1])
 
2089
  AC_CHECK_LIB(rtmp, RTMP_Init,
 
2090
    [
 
2091
     AC_CHECK_HEADERS(librtmp/rtmp.h,
 
2092
        curl_rtmp_msg="enabled (librtmp)"
 
2093
        LIBRTMP_ENABLED=1
 
2094
        AC_DEFINE(USE_LIBRTMP, 1, [if librtmp is in use])
 
2095
        AC_SUBST(USE_LIBRTMP, [1])
 
2096
     )
 
2097
    ],
 
2098
      dnl not found, revert back to clean variables
 
2099
      LDFLAGS=$CLEANLDFLAGS
 
2100
      CPPFLAGS=$CLEANCPPFLAGS
 
2101
      LIBS=$CLEANLIBS
2063
2102
  )
2064
2103
 
2065
2104
  if test X"$OPT_LIBRTMP" != Xoff &&
2067
2106
    AC_MSG_ERROR([librtmp libs and/or directories were not found where specified!])
2068
2107
  fi
2069
2108
 
2070
 
  if test "$LIBRTMP_ENABLED" != "1"; then
2071
 
    dnl no librtmp, revert back to clean variables
2072
 
    LDFLAGS=$CLEANLDFLAGS
2073
 
    CPPFLAGS=$CLEANCPPFLAGS
2074
 
    LIBS=$CLEANLIBS
2075
 
  fi
2076
2109
fi
2077
2110
 
2078
2111
dnl **********************************************************************
2738
2771
if test "x$CURL_DISABLE_TFTP" != "x1"; then
2739
2772
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
2740
2773
fi
 
2774
if test "x$CURL_DISABLE_GOPHER" != "x1"; then
 
2775
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
 
2776
fi
2741
2777
if test "x$CURL_DISABLE_POP3" != "x1"; then
2742
2778
  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
2743
2779
  if test "x$SSL_ENABLED" = "x1"; then