Ticket #75: avahi-cxxcheck.2.patch

File avahi-cxxcheck.2.patch, 0.6 KB (added by tedp, 5 years ago)
  • configure.ac

     
    5656# libtool stuff 
    5757AC_PROG_LIBTOOL 
    5858 
     59AC_CACHE_CHECK([whether the C++ compiler works], [avahi_cv_sys_cxx_works], [ 
     60    AC_LANG_PUSH([C++]) 
     61    AC_COMPILE_IFELSE([int main() { }], [avahi_cv_sys_cxx_works=yes], 
     62        [avahi_cv_sys_cxx_works=no]) 
     63    AC_LANG_POP([C++]) 
     64    ]) 
     65[ if [ "x$avahi_cv_sys_cxx_works" = "xno" ]; then ] 
     66    AC_MSG_FAILURE([The C++ compiler does not work]) 
     67[ fi ] 
     68 
    5969ACX_PTHREAD(,AC_MSG_ERROR([Missing POSIX Threads support])) 
    6070 
    6171#