Ticket #44765: patch-configure.diff

File patch-configure.diff, 924 bytes (added by jprosser (Justin Prosser), 10 years ago)
  • configure

    old new  
    1723317233  ENABLE_THREADSAFE_FALSE=
    1723417234fi
    1723517235
     17236# newer gcc are configured to fail to resolve references to libraries not
     17237# explicitly listed on the linker commandline.
     17238# So to make build add explicitly gcrypt library.
     17239if test "$enable_threadsafe" != "no" -a "$with_gnutls" = "yes"; then
     17240        if test "$PKG_CONFIG" != "" && "$PKG_CONFIG" --exists gcrypt> /dev/null 2>&1; then
     17241                CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags gcrypt`"
     17242                NETWORK_LIBS="$NETWORK_LIBS `$PKG_CONFIG --libs gcrypt`"
     17243        else
     17244                CPPFLAGS="$CPPFLAGS `libgcrypt-config --cflags`"
     17245                NETWORK_LIBS="$NETWORK_LIBS `libgcrypt-config --libs`"
     17246        fi
     17247fi
    1723617248
    1723717249# we don't need to check netdb functions if they are already threadsafe
    1723817250if test $netdb_reentrant != yes; then