soundkonverter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure.in.in 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. #MIN_CONFIG(3.2.0)
  2. KDE_ENABLE_HIDDEN_VISIBILITY
  3. AM_INIT_AUTOMAKE(soundkonverter, 0.3.7)
  4. AC_C_BIGENDIAN
  5. AC_CHECK_KDEMAXPATHLEN
  6. ###############################################################################
  7. # BEGIN CDPARANOIA CHECK
  8. ###############################################################################
  9. #
  10. #AC_CHECK_HEADER([cdda_interface.h], [with_cdparanoia=yes], [with_cdparanoia=no])
  11. #
  12. #if test "$with_cdparanoia" != "yes" ; then
  13. # soundkonverter_error_nocdparanoia=yes
  14. # DO_NOT_COMPILE="$DO_NOT_COMPILE soundkonverter"
  15. # no_soundkonverter=yes
  16. #
  17. # echo ""
  18. # echo "-----------------------------------------"
  19. # echo "ERROR: Could not find cdparanoia headers."
  20. # echo "-----------------------------------------"
  21. # echo ""
  22. #
  23. # AC_MSG_ERROR([could not find cdparanoia headers])
  24. #fi
  25. #
  26. ###############################################################################
  27. # END CDPARANOIA CHECK
  28. ###############################################################################
  29. dnl -------------------------------------
  30. dnl cdparanoia check
  31. dnl -------------------------------------
  32. AC_CHECK_HEADERS(cdda_interface.h, have_paranoia="yes", have_paranoia="no" )
  33. if test x$have_paranoia != xyes; then
  34. AC_CHECK_HEADERS(cdda/cdda_interface.h, have_paranoia="yes", have_paranoia="no" )
  35. if test x$have_paranoia = xyes; then
  36. cdda_includes="-I/usr/include/cdda"
  37. fi
  38. fi
  39. AC_SUBST(cdda_includes)
  40. dnl ----------------------------------
  41. dnl Can soundkonverter be compiled?
  42. dnl ----------------------------------
  43. if test x$have_paranoia != xyes; then
  44. DO_NOT_COMPILE="$DO_NOT_COMPILE soundkonverter"
  45. no_paranoia=yes
  46. fi
  47. ###############################################################################
  48. # BEGIN TAGLIB CHECK
  49. ###############################################################################
  50. TAGLIB_REQ_VERSION="1.4.0";
  51. AC_DEFUN([VERSION_TO_NUMBER], [`$1 | awk 'BEGIN { FS = "."; } { printf "%d", ([$]1* 1000 + [$]2) * 1000 + [$]3;}'`])
  52. AC_PATH_PROG(TAGLIB_CONFIG, taglib-config, no)
  53. if test "x$TAGLIB_CONFIG" = "xno" ; then
  54. soundkonverter_error_notaglib=yes
  55. DO_NOT_COMPILE="$DO_NOT_COMPILE soundkonverter"
  56. no_soundkonverter=yes
  57. else
  58. AC_DEFINE(HAVE_TAGLIB, 1, [have TagLib])
  59. taglib_includes=[`$TAGLIB_CONFIG --cflags`]
  60. taglib_libs=[`$TAGLIB_CONFIG --libs`]
  61. taglib_version=[`$TAGLIB_CONFIG --version`]
  62. if test VERSION_TO_NUMBER(echo $taglib_version) -lt VERSION_TO_NUMBER(echo $TAGLIB_REQ_VERSION); then
  63. soundkonverter_error_taglibold=yes
  64. DO_NOT_COMPILE="$DO_NOT_COMPILE soundkonverter"
  65. no_soundkonverter=yes
  66. fi
  67. fi
  68. AC_SUBST(taglib_includes)
  69. AC_SUBST(taglib_libs)
  70. ###############################################################################
  71. # END TAGLIB CHECK
  72. ###############################################################################
  73. ###############################################################################
  74. # BEGIN MP4V2 CHECK
  75. ###############################################################################
  76. # m4a/aac tag reading and writing needs libmp4v2 from faad2 or better mpeg4ip
  77. AC_ARG_WITH(mp4v2,
  78. AC_HELP_STRING([--with-mp4v2],[build soundkonverter with M4A/AAC tag support from mp4v2/faad2]),
  79. [have_mp4v2=$withval],
  80. [have_mp4v2=no]
  81. )
  82. AC_ARG_WITH(mp4v2-dir,
  83. AC_HELP_STRING([--with-mp4v2-dir],[path to mp4v2 [default=/usr]]),
  84. [mp4v2_dir="$withval"],
  85. [mp4v2_dir=/usr]
  86. )
  87. if test "$have_mp4v2" != "no"; then
  88. AC_LANG_SAVE
  89. AC_LANG_CPLUSPLUS
  90. ac_cxxflags_save=$CXXFLAGS
  91. CXXFLAGS="$CXXFLAGS -I$mp4v2_dir/include"
  92. ac_ldflags_save=$LDFLAGS
  93. LDFLAGS="$LDFLAGS -L$mp4v2_dir/lib"
  94. # not even everyone using faad2 has <systems.h>
  95. if ! test -f config.h; then
  96. echo "#include \"confdefs.h\"" > config.h
  97. fi
  98. ac_cppflags_save=$CPPFLAGS
  99. CPPFLAGS="$CPPFLAGS -I."
  100. AC_CHECK_HEADERS(systems.h)
  101. AC_CHECK_HEADERS([mp4.h], [have_mp4_h=yes], [],
  102. [#ifdef HAVE_SYSTEMS_H
  103. # include <systems.h>
  104. #endif
  105. ])
  106. AC_CHECK_LIB( mp4v2, MP4Read, have_mp4v2=yes, have_mp4v2=no )
  107. if test "$have_mp4v2" = "yes" -a "$have_mp4_h" = "yes"; then
  108. AC_DEFINE(HAVE_MP4V2, 1, [have mp4v2])
  109. MP4V2_INCLUDES="-I$mp4v2_dir/include"
  110. MP4V2_LIBS="-L$mp4v2_dir/lib -lmp4v2"
  111. else
  112. have_mp4v2=no
  113. fi
  114. CPPFLAGS=$ac_cppflags_save
  115. CXXFLAGS=$ac_cxxflags_save
  116. LDFLAGS=$ac_ldflags_save
  117. AC_LANG_RESTORE
  118. fi
  119. AC_SUBST(MP4V2_INCLUDES)
  120. AC_SUBST(MP4V2_LIBS)
  121. AM_CONDITIONAL(with_mp4v2, [test x$have_mp4v2 != xno ])
  122. ###############################################################################
  123. # END MP4V2 CHECK
  124. ###############################################################################