diff --git a/cmake/KwaveLibaudiofileSupport.cmake b/cmake/KwaveLibaudiofileSupport.cmake index 2a67c047..79aa6b99 100644 --- a/cmake/KwaveLibaudiofileSupport.cmake +++ b/cmake/KwaveLibaudiofileSupport.cmake @@ -1,63 +1,65 @@ ############################################################################# ## Kwave - cmake/KwaveLibaudiofileSupport.txt ## ------------------- ## begin : Tue May 22 2007 ## copyright : (C) 2007 by Thomas Eschenbacher ## email : Thomas.Eschenbacher@gmx.de ############################################################################# # ############################################################################# # # # Redistribution and use in source and binary forms, with or without # # modification, are permitted provided that the following conditions # # are met: # # # # 1. Redistributions of source code must retain the above copyright # # notice, this list of conditions and the following disclaimer. # # 2. Redistributions in binary form must reproduce the above copyright # # notice, this list of conditions and the following disclaimer in the # # documentation and/or other materials provided with the distribution. # # # # For details see the accompanying cmake/COPYING-CMAKE-SCRIPTS file. # # # ############################################################################# INCLUDE(CheckLibraryExists) INCLUDE(FindPkgConfig) INCLUDE(UsePkgConfig) INCLUDE(CheckTypeSize) PKG_CHECK_MODULES(LIBAUDIOFILE REQUIRED audiofile>=0.3.0) ############################################################################# ### check if the system has audiofile.h ### FIND_PATH(HAVE_AUDIOFILE_H audiofile.h) FIND_PATH(HAVE_AFS_VFS_H af_vfs.h) ############################################################################# ### system libaudiofile can be used & header exists: check for functions ### IF (HAVE_AUDIOFILE_H AND HAVE_AFS_VFS_H) CHECK_LIBRARY_EXISTS(audiofile afOpenVirtualFile ${LIBAUDIOFILE_LIBDIR} HAVE_AF_OPEN_VIRTUAL_FILE) ENDIF (HAVE_AUDIOFILE_H AND HAVE_AFS_VFS_H) # check for compression types SET(CMAKE_EXTRA_INCLUDE_FILES "audiofile.h") CHECK_TYPE_SIZE("sizeof(AF_COMPRESSION_FLAC)" AF_COMPRESSION_FLAC) CHECK_TYPE_SIZE("sizeof(AF_COMPRESSION_ALAC)" AF_COMPRESSION_ALAC) SET(CMAKE_EXTRA_INCLUDE_FILES) ############################################################################# ### some verbose output of the result ### IF (HAVE_AF_OPEN_VIRTUAL_FILE) # system libaudiofile is ok and will be used MESSAGE(STATUS "Found libaudiofile") ELSE (HAVE_AF_OPEN_VIRTUAL_FILE) # system libaudiofile should be used but is not ok -> FAIL MESSAGE(FATAL_ERROR "system libaudiofile is missing or cannot be used") ENDIF (HAVE_AF_OPEN_VIRTUAL_FILE) +SET(HAVE_LIBAUDIOFILE ON) + ############################################################################# ############################################################################# diff --git a/config.h.cmake b/config.h.cmake index f5a08e3a..4c683660 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -1,106 +1,109 @@ /*************************************************************************** config.h.cmake - template config.h (cmake build system) ------------------- begin : Sun Jun 10 2007 copyright : (C) 2007 by Thomas Eschenbacher email : Thomas.Eschenbacher@gmx.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ /* use ppc target optimizations (from xine) */ #cmakedefine ARCH_PPC /* use ix86 target optimizations (from xine) */ #cmakedefine ARCH_X86 /* use X86_64 target optimizations (from xine) */ #cmakedefine ARCH_X86_64 /* use target optimized memcpy */ #cmakedefine WITH_OPTIMIZED_MEMCPY /* use target optimized memcpy using AVX assembler code */ #cmakedefine HAVE_AVX /* support playback/recording via ALSA */ #cmakedefine HAVE_ALSA_SUPPORT /* enable the debug plugin in the menu */ #cmakedefine HAVE_DEBUG_PLUGIN /* support playback/recording via PulseAudio */ #cmakedefine HAVE_PULSEAUDIO_SUPPORT /* support playback via Qt */ #cmakedefine HAVE_QT_AUDIO_SUPPORT +/* support libaudiofile */ +#cmakedefine HAVE_LIBAUDIOFILE + /* support libsamplerate */ #cmakedefine HAVE_LIBSAMPLERATE /* resource limits for the memory manager */ #cmakedefine HAVE_GETRLIMIT /* sysinfo is needed for the memory manager */ #cmakedefine HAVE_SYSINFO /* sysinfo structure has the "mem_unit" field? */ #cmakedefine HAVE_SYSINFO_MEMUNIT /* used for page size in context of swap files */ #cmakedefine HAVE_GETPAGESIZE /* used for determining the page size in context of swap file handling */ #cmakedefine HAVE_SYSCONF /* support playback/recording via OSS */ #cmakedefine HAVE_OSS_SUPPORT /* Define to 1 if you have the header file. */ #cmakedefine HAVE_SIGNAL_H /* we can include */ #cmakedefine HAVE_SYS_TIMES_H /* used for unlinking swap files */ #cmakedefine HAVE_UNLINK /* support FLAC */ #cmakedefine HAVE_FLAC /* support MP3 */ #cmakedefine HAVE_MP3 /* does libogg have the function ogg_stream_flush_fill ? (>= v1.3.0) */ #cmakedefine HAVE_OGG_STREAM_FLUSH_FILL /* support Vorbis in Ogg */ #cmakedefine HAVE_OGG_VORBIS /* support Opus in Ogg */ #cmakedefine HAVE_OGG_OPUS /* Name of package */ #cmakedefine PROJECT_NAME "@PROJECT_NAME@" /* version of the application */ #cmakedefine KWAVE_VERSION "@KWAVE_VERSION@" /* suffix of executable files */ #cmakedefine EXECUTABLE_SUFFIX @CMAKE_EXECUTABLE_SUFFIX@ /* enable memory management debug code */ #cmakedefine DEBUG_MEMORY /* libaudiofile knows FLAC compression */ #cmakedefine HAVE_AF_COMPRESSION_FLAC /***************************************************************************/ /***************************************************************************/