Programmable real-time audio signal processing application
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

configure.ac 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. #
  2. # Use "autoreconf --force --install" to update depedent files after changing
  3. # this configure.ac or any of the Makefile.am files.
  4. #
  5. AC_INIT([kc],[1.0],[kc@larke.org])
  6. AC_CONFIG_AUX_DIR([build-aux]) # put aux files in build-aux
  7. AM_INIT_AUTOMAKE([1.9 -Wall foreign subdir-objects]) # subdir-objects needed for non-recursive make
  8. AC_CONFIG_SRCDIR([src/kc/kcMain.cpp])
  9. AC_CONFIG_HEADERS([config.h])
  10. AC_CONFIG_MACRO_DIR([m4])
  11. AM_PROG_AR
  12. LT_INIT
  13. # Check for programs
  14. AC_PROG_CC
  15. AC_PROG_CXX
  16. # AC_PROG_RANLIB # required for static librarires
  17. AM_PROG_CC_C_O
  18. # Checks for libraries.
  19. # AC_CHECK_LIB([cairo],[cairo_debug_reset_static_data],[AC_MSG_RESULT([The 'cairo' library was found.])],[AC_MSG_ERROR([The 'cairo' library was not found.])])
  20. #TODO: add more library checks
  21. # Checks for header files.
  22. AC_CHECK_HEADERS([arpa/inet.h fcntl.h float.h limits.h mach/mach.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h termios.h unistd.h])
  23. # Checks for typedefs, structures, and compiler characteristics.
  24. AC_HEADER_STDBOOL
  25. AC_C_INLINE
  26. AC_TYPE_OFF_T
  27. AC_TYPE_SSIZE_T
  28. AC_TYPE_UINT64_T
  29. # Checks for library functions.
  30. AC_FUNC_ERROR_AT_LINE
  31. AC_FUNC_FORK
  32. AC_FUNC_FSEEKO
  33. AC_FUNC_MALLOC
  34. AC_FUNC_REALLOC
  35. AC_FUNC_STRTOD
  36. AC_CHECK_FUNCS([clock_gettime floor memmove memset mkdir pow rint select socket sqrt strcasecmp strchr strcspn strerror strspn strstr strtol])
  37. # The following is a custom macro in ./m4/os_type.m4
  38. # be sure to also set "ACLOCAL_AMFLAGS = -I m4" in ./Makefile.am
  39. # Defines the config.h variable OS_LINUX or OS_OSX
  40. AX_FUNC_OS_TYPE
  41. AX_FUNC_OS_64
  42. # ac_cv_os_type is set by AX_FUNC_OS_TYPE
  43. AM_CONDITIONAL([OS_LINUX],[test x"${ax_cv_os_type}" = xLinux])
  44. AM_CONDITIONAL([OS_OSX],[test x"${ax_cv_os_type}" = xDarwin])
  45. echo "OS='${ax_cv_os_type}'"
  46. AM_CONDITIONAL([OS_64],[test x"${ax_cv_os_64}" == xx86_64])
  47. echo "ptr width='${ax_cv_os_64}'"
  48. AC_ARG_ENABLE([debug],
  49. [ --enable-debug Turn on debugging],
  50. [case "${enableval}" in
  51. yes) debug=true ;;
  52. no) debug=false ;;
  53. *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
  54. esac],[debug=false])
  55. echo "debug=${debug}"
  56. AM_CONDITIONAL([DEBUG], [test x$debug = xtrue])
  57. if test x$debug = xfalse; then
  58. AC_DEFINE([NDEBUG], 1,[Debugging off.])
  59. fi
  60. AC_ARG_ENABLE([vectop],
  61. [ --enable-vectop Turn on use of Lapack and Atlas vector/matrix operations. ],
  62. [case "${enableval}" in
  63. yes) vectop=true ;;
  64. no) vectop=false ;;
  65. *) AC_MSG_ERROR([bad value ${enableval} for --enable-vectop]) ;;
  66. esac],[vectop=true])
  67. echo "vectop=${vectop}"
  68. # if --enable-vectop then #define CM_VECTOP = 1 in config.h otherwise CM_VECTOP is undefined.
  69. if test x"$vectop" = xtrue; then
  70. AC_DEFINE([CM_VECTOP], 1,[Use Lapack and Atlas.])
  71. fi
  72. AC_ARG_ENABLE([memalign],
  73. [ --enable-memalign Turn on memory alignment on dynamic memory allocations. ],
  74. [case "${enableval}" in
  75. yes) memalign=true ;;
  76. no) memalign=false ;;
  77. *) AC_MSG_ERROR([bad value ${enableval} for --enable-memalign]) ;;
  78. esac],[memalign=true])
  79. echo "memalign=${memalign}"
  80. # if --enable-vectop then #define CM_MEMALIGN = 1 in config.h otherwise CM_MEMALIGN is undefined.
  81. if test x"$memalign" = xtrue; then
  82. AC_DEFINE([CM_MEMALIGN], 1,[Turn on dynamic memory alignment.])
  83. fi
  84. AC_ARG_ENABLE([sonicart],
  85. [ --enable-sonicart Enable use of Sonic Arts proprietary code. ],
  86. [case "${enableval}" in
  87. yes) sonicart=true ;;
  88. no) sonicart=false ;;
  89. *) AC_MSG_ERROR([bad value ${enableval} for --enable-sonicart]) ;;
  90. esac],[sonicart=true])
  91. echo "sonicart=${sonicart}"
  92. # if --enable-sonicart then #define CM_SONICART = 1 in config.h otherwise CM_SONICART is undefined.
  93. if test x"$sonicart" = xtrue; then
  94. AC_DEFINE([CM_SONICART], 1,[Include Sonic Arts proprietry code.])
  95. fi
  96. AM_CONDITIONAL([INC_SONICART], [test x$sonicart = xtrue])
  97. AC_CONFIG_FILES([ Makefile ])
  98. AC_OUTPUT