soundKonverter – audio converter frontend
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 9.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. dnl =======================================================
  2. dnl FILE: ./admin/configure.in.min
  3. dnl =======================================================
  4. dnl This file is part of the KDE libraries/packages
  5. dnl Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
  6. dnl This file is free software; you can redistribute it and/or
  7. dnl modify it under the terms of the GNU Library General Public
  8. dnl License as published by the Free Software Foundation; either
  9. dnl version 2 of the License, or (at your option) any later version.
  10. dnl This library is distributed in the hope that it will be useful,
  11. dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. dnl Library General Public License for more details.
  14. dnl You should have received a copy of the GNU Library General Public License
  15. dnl along with this library; see the file COPYING.LIB. If not, write to
  16. dnl the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  17. dnl Boston, MA 02110-1301, USA.
  18. # Original Author was Kalle@kde.org
  19. # I lifted it in some mater. (Stephan Kulow)
  20. # I used much code from Janos Farkas
  21. dnl Process this file with autoconf to produce a configure script.
  22. AC_INIT(acinclude.m4) dnl a source file from your sub dir
  23. dnl This is so we can use kde-common
  24. AC_CONFIG_AUX_DIR(admin)
  25. dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
  26. unset CDPATH
  27. dnl Checking host/target/build systems, for make, install etc.
  28. AC_CANONICAL_SYSTEM
  29. dnl Perform program name transformation
  30. AC_ARG_PROGRAM
  31. dnl Automake doc recommends to do this only here. (Janos)
  32. AM_INIT_AUTOMAKE(soundkonverter, 0.3.7) dnl searches for some needed programs
  33. KDE_SET_PREFIX
  34. dnl generate the config header
  35. AM_CONFIG_HEADER(config.h) dnl at the distribution this done
  36. dnl Checks for programs.
  37. AC_CHECK_COMPILERS
  38. AC_ENABLE_SHARED(yes)
  39. AC_ENABLE_STATIC(no)
  40. KDE_PROG_LIBTOOL
  41. dnl for NLS support. Call them in this order!
  42. dnl WITH_NLS is for the po files
  43. AM_KDE_WITH_NLS
  44. KDE_USE_TQT(3.2.0)
  45. AC_PATH_KDE
  46. dnl =======================================================
  47. dnl FILE: configure.in.in
  48. dnl =======================================================
  49. #MIN_CONFIG(3.2.0)
  50. dnl PACKAGE set before
  51. AC_C_BIGENDIAN
  52. AC_CHECK_KDEMAXPATHLEN
  53. ###############################################################################
  54. # BEGIN CDPARANOIA CHECK
  55. ###############################################################################
  56. #
  57. #AC_CHECK_HEADER([cdda_interface.h], [with_cdparanoia=yes], [with_cdparanoia=no])
  58. #
  59. #if test "$with_cdparanoia" != "yes" ; then
  60. # soundkonverter_error_nocdparanoia=yes
  61. # DO_NOT_COMPILE="$DO_NOT_COMPILE soundkonverter"
  62. # no_soundkonverter=yes
  63. #
  64. # echo ""
  65. # echo "-----------------------------------------"
  66. # echo "ERROR: Could not find cdparanoia headers."
  67. # echo "-----------------------------------------"
  68. # echo ""
  69. #
  70. # AC_MSG_ERROR([could not find cdparanoia headers])
  71. #fi
  72. #
  73. ###############################################################################
  74. # END CDPARANOIA CHECK
  75. ###############################################################################
  76. dnl -------------------------------------
  77. dnl cdparanoia check
  78. dnl -------------------------------------
  79. AC_CHECK_HEADERS(cdda_interface.h, have_paranoia="yes", have_paranoia="no" )
  80. dnl ----------------------------------
  81. dnl Can soundkonverter be compiled?
  82. dnl ----------------------------------
  83. if test x$have_paranoia != xyes; then
  84. DO_NOT_COMPILE="$DO_NOT_COMPILE soundkonverter"
  85. no_paranoia=yes
  86. fi
  87. ###############################################################################
  88. # BEGIN TAGLIB CHECK
  89. ###############################################################################
  90. TAGLIB_REQ_VERSION="1.4.0";
  91. AC_DEFUN([VERSION_TO_NUMBER], [`$1 | awk 'BEGIN { FS = "."; } { printf "%d", ([$]1* 1000 + [$]2) * 1000 + [$]3;}'`])
  92. AC_PATH_PROG(TAGLIB_CONFIG, taglib-config, no)
  93. if test "x$TAGLIB_CONFIG" = "xno" ; then
  94. soundkonverter_error_notaglib=yes
  95. DO_NOT_COMPILE="$DO_NOT_COMPILE soundkonverter"
  96. no_soundkonverter=yes
  97. else
  98. AC_DEFINE(HAVE_TAGLIB, 1, [have TagLib])
  99. taglib_includes=[`$TAGLIB_CONFIG --cflags`]
  100. taglib_libs=[`$TAGLIB_CONFIG --libs`]
  101. taglib_version=[`$TAGLIB_CONFIG --version`]
  102. if test VERSION_TO_NUMBER(echo $taglib_version) -lt VERSION_TO_NUMBER(echo $TAGLIB_REQ_VERSION); then
  103. soundkonverter_error_taglibold=yes
  104. DO_NOT_COMPILE="$DO_NOT_COMPILE soundkonverter"
  105. no_soundkonverter=yes
  106. fi
  107. fi
  108. AC_SUBST(taglib_includes)
  109. AC_SUBST(taglib_libs)
  110. ###############################################################################
  111. # END TAGLIB CHECK
  112. ###############################################################################
  113. ###############################################################################
  114. # BEGIN MP4V2 CHECK
  115. ###############################################################################
  116. # m4a/aac tag reading and writing needs libmp4v2 from faad2 or better mpeg4ip
  117. AC_ARG_WITH(mp4v2,
  118. AC_HELP_STRING([--with-mp4v2],[build soundkonverter with M4A/AAC tag support from mp4v2/faad2]),
  119. [have_mp4v2=$withval],
  120. [have_mp4v2=no]
  121. )
  122. AC_ARG_WITH(mp4v2-dir,
  123. AC_HELP_STRING([--with-mp4v2-dir],[path to mp4v2 [default=/usr]]),
  124. [mp4v2_dir="$withval"],
  125. [mp4v2_dir=/usr]
  126. )
  127. if test "$have_mp4v2" != "no"; then
  128. AC_LANG_SAVE
  129. AC_LANG_CPLUSPLUS
  130. ac_cxxflags_save=$CXXFLAGS
  131. CXXFLAGS="$CXXFLAGS -I$mp4v2_dir/include"
  132. ac_ldflags_save=$LDFLAGS
  133. LDFLAGS="$LDFLAGS -L$mp4v2_dir/lib"
  134. # not even everyone using faad2 has <systems.h>
  135. if ! test -f config.h; then
  136. echo "#include \"confdefs.h\"" > config.h
  137. fi
  138. ac_cppflags_save=$CPPFLAGS
  139. CPPFLAGS="$CPPFLAGS -I."
  140. AC_CHECK_HEADERS(systems.h)
  141. AC_CHECK_HEADERS([mp4.h], [have_mp4_h=yes], [],
  142. [#ifdef HAVE_SYSTEMS_H
  143. # include <systems.h>
  144. #endif
  145. ])
  146. AC_CHECK_LIB( mp4v2, MP4Read, have_mp4v2=yes, have_mp4v2=no )
  147. if test "$have_mp4v2" = "yes" -a "$have_mp4_h" = "yes"; then
  148. AC_DEFINE(HAVE_MP4V2, 1, [have mp4v2])
  149. MP4V2_INCLUDES="-I$mp4v2_dir/include"
  150. MP4V2_LIBS="-L$mp4v2_dir/lib -lmp4v2"
  151. else
  152. have_mp4v2=no
  153. fi
  154. CPPFLAGS=$ac_cppflags_save
  155. CXXFLAGS=$ac_cxxflags_save
  156. LDFLAGS=$ac_ldflags_save
  157. AC_LANG_RESTORE
  158. fi
  159. AC_SUBST(MP4V2_INCLUDES)
  160. AC_SUBST(MP4V2_LIBS)
  161. AM_CONDITIONAL(with_mp4v2, [test x$have_mp4v2 != xno ])
  162. ###############################################################################
  163. # END MP4V2 CHECK
  164. ###############################################################################
  165. KDE_CREATE_SUBDIRSLIST
  166. AC_CONFIG_FILES([ Makefile ])
  167. AC_CONFIG_FILES([ doc/Makefile ])
  168. AC_CONFIG_FILES([ doc/en/Makefile ])
  169. AC_CONFIG_FILES([ po/Makefile ])
  170. AC_CONFIG_FILES([ src/Makefile ])
  171. AC_CONFIG_FILES([ src/amarokscript/Makefile ])
  172. AC_CONFIG_FILES([ src/metadata/Makefile ])
  173. AC_CONFIG_FILES([ src/metadata/aac/Makefile ])
  174. AC_CONFIG_FILES([ src/metadata/ape/Makefile ])
  175. AC_CONFIG_FILES([ src/metadata/asf/Makefile ])
  176. AC_CONFIG_FILES([ src/metadata/audible/Makefile ])
  177. AC_CONFIG_FILES([ src/metadata/m4a/Makefile ])
  178. AC_CONFIG_FILES([ src/metadata/mp4/Makefile ])
  179. AC_CONFIG_FILES([ src/metadata/optimfrog/Makefile ])
  180. AC_CONFIG_FILES([ src/metadata/rmff/Makefile ])
  181. AC_CONFIG_FILES([ src/metadata/speex/Makefile ])
  182. AC_CONFIG_FILES([ src/metadata/trueaudio/Makefile ])
  183. AC_CONFIG_FILES([ src/metadata/wav/Makefile ])
  184. AC_CONFIG_FILES([ src/metadata/wavpack/Makefile ])
  185. AC_CONFIG_FILES([ src/pics/Makefile ])
  186. AC_CONFIG_FILES([ src/pluginloader/Makefile ])
  187. AC_CONFIG_FILES([ src/plugins/Makefile ])
  188. AC_CONFIG_FILES([ src/plugins/format_infos/Makefile ])
  189. AC_CONFIG_FILES([ src/plugins/mime_types/Makefile ])
  190. AC_CONFIG_FILES([ src/plugins/plugins/Makefile ])
  191. AC_CONFIG_FILES([ src/plugins/rohling/Makefile ])
  192. AC_OUTPUT
  193. # Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
  194. if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
  195. # And if so, warn when they don't match
  196. if test "$kde_libs_prefix" != "$given_prefix"; then
  197. # And if kde doesn't know about the prefix yet
  198. echo ":"`tde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
  199. if test $? -ne 0; then
  200. echo ""
  201. echo "Warning: you chose to install this package in $given_prefix,"
  202. echo "but KDE was found in $kde_libs_prefix."
  203. echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
  204. echo "that TDEDIRS contains it, e.g. export TDEDIRS=$given_prefix:$kde_libs_prefix"
  205. echo "Then restart KDE."
  206. echo ""
  207. fi
  208. fi
  209. fi
  210. if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then
  211. echo ""
  212. echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"
  213. echo "was not included. Therefore, GCC symbol visibility support remains disabled."
  214. echo ""
  215. echo "For better performance, consider including the Qt visibility supporting patch"
  216. echo "located at:"
  217. echo ""
  218. echo "http://bugs.kde.org/show_bug.cgi?id=109386"
  219. echo ""
  220. echo "and recompile all of Qt and KDE. Note, this is entirely optional and"
  221. echo "everything will continue to work just fine without it."
  222. echo ""
  223. fi
  224. if test "$all_tests" = "bad"; then
  225. if test ! "$cache_file" = "/dev/null"; then
  226. echo ""
  227. echo "Please remove the file $cache_file after changing your setup"
  228. echo "so that configure will find the changes next time."
  229. echo ""
  230. fi
  231. else
  232. echo ""
  233. echo "Good - your configure finished. Start make now"
  234. echo ""
  235. fi