Browse Source

Port ioctl prototype check to CMake

Signed-off-by: OBATA Akio <obache@wizdas.com>
master
parent
commit
482eea48c7
2 changed files with 7 additions and 1 deletions
  1. +4
    -0
      CMakeLists.txt
  2. +3
    -1
      config.h.cmake

+ 4
- 0
CMakeLists.txt View File

@@ -17,6 +17,7 @@ cmake_minimum_required( VERSION 2.8 )
include( CheckCXXSourceCompiles )
include( CheckFunctionExists )
include( CheckSymbolExists )
include( CheckPrototypeDefinition )
include( CheckIncludeFile )
include( CheckLibraryExists )
include( FindPkgConfig )
@@ -114,6 +115,9 @@ check_function_exists( memcpy HAVE_MEMCPY )
check_function_exists( bcopy HAVE_BCOPY )
set( CMAKE_REQUIRED_LIBRARIES ${bak_CMAKE_REQUIRED_LIBRARIES} )
unset( bak_CMAKE_REQUIRED_LIBRARIES )
check_prototype_definition( ioctl "int ioctl(int d, int request, ...)" "-1" "unistd.h;sys/ioctl.h" HAVE_IOCTL_INT_INT_DOTS )
check_prototype_definition( ioctl "int ioctl(int d, unsigned long request, ...)" "-1" "unistd.h;sys/ioctl.h" HAVE_IOCTL_INT_ULONG_DOTS )
check_prototype_definition( ioctl "int ioctl(int d, unsigned long int request, ...)" "-1" "unistd.h;sys/ioctl.h" HAVE_IOCTL_INT_ULONGINT_DOTS )


##### check for audiofile #######################


+ 3
- 1
config.h.cmake View File

@@ -40,7 +40,9 @@

#cmakedefine HAVE_SYS_SOUNDCARD_H 1
#cmakedefine HAVE_LIBPTHREAD 1
#define HAVE_IOCTL_INT_ULONGINT_DOTS 3
#cmakedefine HAVE_IOCTL_INT_INT_DOTS 1
#cmakedefine HAVE_IOCTL_INT_ULONG_DOTS 2
#cmakedefine HAVE_IOCTL_INT_ULONGINT_DOTS 3

#cmakedefine HAVE_LIBJACK 1
#cmakedefine HAVE_LIBSNDIO 1

Loading…
Cancel
Save