patch-configure 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. $OpenBSD: patch-configure,v 1.18 2016/11/01 13:03:14 jsg Exp $
  2. --- configure.orig Tue Oct 11 08:50:16 2016
  3. +++ configure Tue Nov 1 19:50:55 2016
  4. @@ -1973,22 +1973,6 @@ if test "$_use_cxx11" = "yes" ; then
  5. fi
  6. echo $_use_cxx11
  7. -# By default, we add -pedantic to the CXXFLAGS to catch some potentially
  8. -# non-portable constructs, like use of GNU extensions.
  9. -# However, some platforms use GNU extensions in system header files, so
  10. -# for these we must not use -pedantic.
  11. -case $_host_os in
  12. -android | androidsdl | gamecube | psp | tizen | wii | webos)
  13. - ;;
  14. -*)
  15. - # ICC does not support pedantic, while GCC and clang do.
  16. - if test "$have_icc" = no ; then
  17. - # We *do* want the 'long long' extension.
  18. - append_var CXXFLAGS "-pedantic -Wno-long-long"
  19. - fi
  20. - ;;
  21. -esac
  22. -
  23. # If possible, we want to use -Wglobal-constructors
  24. # However, not all compilers support that, so check whether the active one does.
  25. echocheck "whether -Wglobal-constructors work"
  26. @@ -3838,18 +3822,16 @@ if test "$_flac" = auto ; then
  27. int main(void) { return FLAC__STREAM_SYNC_LEN >> 30; /* guaranteed to be 0 */ }
  28. EOF
  29. if test "$_vorbis" = yes ; then
  30. - cc_check $FLAC_CFLAGS $FLAC_LIBS $OGG_CFLAGS $OGG_LIBS \
  31. - -lFLAC -logg && _flac=yes
  32. + cc_check `pkg-config --cflags --libs flac ogg` && _flac=yes
  33. else
  34. - cc_check $FLAC_CFLAGS $FLAC_LIBS \
  35. - -lFLAC && _flac=yes
  36. + cc_check `pkg-config --cflags --libs flac` && _flac=yes
  37. fi
  38. fi
  39. if test "$_flac" = yes ; then
  40. if test "$_vorbis" = yes ; then
  41. - append_var LIBS "$FLAC_LIBS $OGG_LIBS -lFLAC -logg"
  42. + append_var LIBS "`pkg-config --libs flac ogg`"
  43. else
  44. - append_var LIBS "$FLAC_LIBS -lFLAC"
  45. + append_var LIBS "`pkg-config --libs flac`"
  46. fi
  47. append_var INCLUDES "$FLAC_CFLAGS"
  48. fi