libquicktime-1.2.4-faad2.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. diff -ruN a/configure.ac b/configure.ac
  2. --- a/configure.ac 2012-03-29 21:44:28.000000000 +0200
  3. +++ b/configure.ac 2020-02-09 18:27:31.599127781 +0100
  4. @@ -728,82 +728,9 @@
  5. if test "x$with_faad2" != "xno"; then
  6. -OLD_CFLAGS=$CFLAGS
  7. -OLD_LIBS=$LIBS
  8. -
  9. CFLAGS="$CFLAGS"
  10. LIBS="$LIBS -lfaad -lm"
  11. -AC_MSG_CHECKING(for neaacdec.h usability for faad2)
  12. -
  13. -
  14. -AC_TRY_RUN([
  15. - #include <neaacdec.h>
  16. - #include <stdio.h>
  17. - main()
  18. - {
  19. - int faad_major;
  20. - int faad_minor;
  21. - faacDecHandle dec;
  22. -
  23. - if(sscanf(FAAD2_VERSION, "%d.%d", &faad_major, &faad_minor) < 2)
  24. - return -1;
  25. - dec = faacDecOpen();
  26. - if(!dec)
  27. - return -1;
  28. - return 0;
  29. - }
  30. - ],
  31. - [
  32. - # program could be run
  33. - have_faad2="true"
  34. - AC_MSG_RESULT(yes)
  35. - FAAD2_CFLAGS=$CFLAGS
  36. - FAAD2_LIBS=$LIBS
  37. - AC_DEFINE(HAVE_NEAACDEC_H)
  38. - ],
  39. - # program could not be run
  40. - AC_MSG_RESULT(no)
  41. -)
  42. -
  43. -if test "x$have_faad2" != "xtrue"; then
  44. -
  45. -AC_MSG_CHECKING(for faad.h usability for faad2)
  46. -
  47. -AC_TRY_RUN([
  48. - #include <faad.h>
  49. - #include <stdio.h>
  50. - main()
  51. - {
  52. - int faad_major;
  53. - int faad_minor;
  54. - faacDecHandle dec;
  55. -
  56. - if(sscanf(FAAD2_VERSION, "%d.%d", &faad_major, &faad_minor) < 2)
  57. - return -1;
  58. - dec = faacDecOpen();
  59. - if(!dec)
  60. - return -1;
  61. - return 0;
  62. - }
  63. - ],
  64. - [
  65. - # program could be run
  66. - have_faad2="true"
  67. - AC_MSG_RESULT(yes)
  68. - FAAD2_CFLAGS=$CFLAGS
  69. - FAAD2_LIBS=$LIBS
  70. -
  71. -
  72. - ],
  73. - # program could not be run
  74. - AC_MSG_RESULT(no)
  75. -)
  76. -
  77. -fi
  78. -
  79. -CFLAGS=$OLD_CFLAGS
  80. -LIBS=$OLD_LIBS
  81. fi