Ticket #8466: gnutls-2.8.6-no-cxx.patch

File gnutls-2.8.6-no-cxx.patch, 682 bytes (added by W. Michael Petullo <mike@…>, 5 years ago)
  • lib/configure.ac

    diff -u --recursive gnutls-2.8.6-vanilla/lib/configure.ac gnutls-2.8.6/lib/configure.ac
    old new  
    9090AC_SUBST([WARN_CFLAGS]) 
    9191AC_SUBST([WERROR_CFLAGS]) 
    9292AC_PROG_CXX 
     93AC_ARG_ENABLE(cxx, 
     94  AS_HELP_STRING([--disable-cxx], [unconditionally disable the C++ library]), 
     95    use_cxx=$enableval, use_cxx=yes) 
     96if test "$use_cxx" != "no"; then 
     97  AC_LANG_PUSH(C++) 
     98  AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], use_cxx=yes, use_cxx=no) 
     99  AC_LANG_POP(C++) 
     100fi 
    93101AM_CONDITIONAL(ENABLE_CXX, test "$use_cxx" != "no") 
    94102 
    95103AC_CONFIG_FILES([