Permalink
Browse files

Add _scproxy MacOSX module

  • Loading branch information...
1 parent 2ad3a17 commit a813b59647eb40b8c6a3411eee83268ae98c9452 @jcfr jcfr committed Apr 5, 2013
Showing with 11 additions and 0 deletions.
  1. +4 −0 cmake/ConfigureChecks.cmake
  2. +7 −0 cmake/extensions/CMakeLists.txt
@@ -203,6 +203,10 @@ find_library(HAVE_LIBREADLINE readline)
find_library(HAVE_LIBTERMCAP termcap)
find_library(HAVE_LIBUTIL util)
+if(APPLE)
+ find_library(HAVE_LIBSYSTEMCONFIGURATION SystemConfiguration)
+endif(APPLE)
+
if(WITH_THREAD)
set(CMAKE_HAVE_PTHREAD_H ${HAVE_PTHREAD_H}) # Skip checking for header a second time.
find_package(Threads)
@@ -64,6 +64,13 @@ add_python_extension(spwd REQUIRES UNIX HAVE_GETSPNAM HAVE_GETSPENT SOURCES spwd
add_python_extension(syslog REQUIRES UNIX SOURCES syslogmodule.c)
add_python_extension(termios REQUIRES UNIX SOURCES termios.c)
+# MacOSX-only extensions
+add_python_extension(_scproxy
+ REQUIRES APPLE HAVE_LIBSYSTEMCONFIGURATION
+ SOURCES ${SRC_DIR}/Mac/Modules/_scproxy.c
+ LIBRARIES ${HAVE_LIBSYSTEMCONFIGURATION}
+)
+
# Linux-only extensions
add_python_extension(linuxaudiodev REQUIRES LINUX SOURCES linuxaudiodev.c)
add_python_extension(ossaudiodev REQUIRES LINUX SOURCES ossaudiodev.c)

0 comments on commit a813b59

Please sign in to comment.