parent
74e1156bc2
commit
fe6bb7af2a
|
@ -57,11 +57,11 @@ IF (UNIX)
|
||||||
SET(CMAKE_FIND_FRAMEWORK NEVER)
|
SET(CMAKE_FIND_FRAMEWORK NEVER)
|
||||||
SET(X11_INC_SEARCH_PATH
|
SET(X11_INC_SEARCH_PATH
|
||||||
/usr/pkg/xorg/include
|
/usr/pkg/xorg/include
|
||||||
/usr/X11R6/include
|
/usr/X11R6/include
|
||||||
/usr/X11R7/include
|
/usr/X11R7/include
|
||||||
/usr/include/X11
|
/usr/include/X11
|
||||||
/usr/openwin/include
|
/usr/openwin/include
|
||||||
/usr/openwin/share/include
|
/usr/openwin/share/include
|
||||||
/opt/graphics/OpenGL/include
|
/opt/graphics/OpenGL/include
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ IF (UNIX)
|
||||||
/usr/pkg/xorg/lib
|
/usr/pkg/xorg/lib
|
||||||
/usr/X11R6/lib
|
/usr/X11R6/lib
|
||||||
/usr/X11R7/lib
|
/usr/X11R7/lib
|
||||||
/usr/openwin/lib
|
/usr/openwin/lib
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_PATH(X11_X11_INCLUDE_PATH X11/X.h ${X11_INC_SEARCH_PATH})
|
FIND_PATH(X11_X11_INCLUDE_PATH X11/X.h ${X11_INC_SEARCH_PATH})
|
||||||
|
@ -77,7 +77,7 @@ IF (UNIX)
|
||||||
|
|
||||||
# Look for includes; keep the list sorted by name of the cmake *_INCLUDE_PATH
|
# Look for includes; keep the list sorted by name of the cmake *_INCLUDE_PATH
|
||||||
# variable (which doesn't need to match the include file name).
|
# variable (which doesn't need to match the include file name).
|
||||||
|
|
||||||
# Solaris lacks XKBrules.h, so we should skip kxkbd there.
|
# Solaris lacks XKBrules.h, so we should skip kxkbd there.
|
||||||
FIND_PATH(X11_ICE_INCLUDE_PATH X11/ICE/ICE.h ${X11_INC_SEARCH_PATH})
|
FIND_PATH(X11_ICE_INCLUDE_PATH X11/ICE/ICE.h ${X11_INC_SEARCH_PATH})
|
||||||
FIND_PATH(X11_Xaccessrules_INCLUDE_PATH X11/extensions/XKBrules.h ${X11_INC_SEARCH_PATH})
|
FIND_PATH(X11_Xaccessrules_INCLUDE_PATH X11/extensions/XKBrules.h ${X11_INC_SEARCH_PATH})
|
||||||
|
@ -306,11 +306,11 @@ IF (UNIX)
|
||||||
CHECK_LIBRARY_EXISTS("${X11_LIBRARIES}" "XOpenDisplay" "${X11_LIBRARY_DIR}" X11_LIB_X11_SOLO)
|
CHECK_LIBRARY_EXISTS("${X11_LIBRARIES}" "XOpenDisplay" "${X11_LIBRARY_DIR}" X11_LIB_X11_SOLO)
|
||||||
IF(NOT X11_LIB_X11_SOLO)
|
IF(NOT X11_LIB_X11_SOLO)
|
||||||
# Find library needed for dnet_ntoa.
|
# Find library needed for dnet_ntoa.
|
||||||
CHECK_LIBRARY_EXISTS("dnet" "dnet_ntoa" "" X11_LIB_DNET_HAS_DNET_NTOA)
|
CHECK_LIBRARY_EXISTS("dnet" "dnet_ntoa" "" X11_LIB_DNET_HAS_DNET_NTOA)
|
||||||
IF (X11_LIB_DNET_HAS_DNET_NTOA)
|
IF (X11_LIB_DNET_HAS_DNET_NTOA)
|
||||||
SET (X11_X_EXTRA_LIBS ${X11_X_EXTRA_LIBS} -ldnet)
|
SET (X11_X_EXTRA_LIBS ${X11_X_EXTRA_LIBS} -ldnet)
|
||||||
ELSE (X11_LIB_DNET_HAS_DNET_NTOA)
|
ELSE (X11_LIB_DNET_HAS_DNET_NTOA)
|
||||||
CHECK_LIBRARY_EXISTS("dnet_stub" "dnet_ntoa" "" X11_LIB_DNET_STUB_HAS_DNET_NTOA)
|
CHECK_LIBRARY_EXISTS("dnet_stub" "dnet_ntoa" "" X11_LIB_DNET_STUB_HAS_DNET_NTOA)
|
||||||
IF (X11_LIB_DNET_STUB_HAS_DNET_NTOA)
|
IF (X11_LIB_DNET_STUB_HAS_DNET_NTOA)
|
||||||
SET (X11_X_EXTRA_LIBS ${X11_X_EXTRA_LIBS} -ldnet_stub)
|
SET (X11_X_EXTRA_LIBS ${X11_X_EXTRA_LIBS} -ldnet_stub)
|
||||||
ENDIF (X11_LIB_DNET_STUB_HAS_DNET_NTOA)
|
ENDIF (X11_LIB_DNET_STUB_HAS_DNET_NTOA)
|
||||||
|
@ -320,11 +320,11 @@ IF (UNIX)
|
||||||
# Find library needed for gethostbyname.
|
# Find library needed for gethostbyname.
|
||||||
CHECK_FUNCTION_EXISTS("gethostbyname" CMAKE_HAVE_GETHOSTBYNAME)
|
CHECK_FUNCTION_EXISTS("gethostbyname" CMAKE_HAVE_GETHOSTBYNAME)
|
||||||
IF(NOT CMAKE_HAVE_GETHOSTBYNAME)
|
IF(NOT CMAKE_HAVE_GETHOSTBYNAME)
|
||||||
CHECK_LIBRARY_EXISTS("nsl" "gethostbyname" "" CMAKE_LIB_NSL_HAS_GETHOSTBYNAME)
|
CHECK_LIBRARY_EXISTS("nsl" "gethostbyname" "" CMAKE_LIB_NSL_HAS_GETHOSTBYNAME)
|
||||||
IF (CMAKE_LIB_NSL_HAS_GETHOSTBYNAME)
|
IF (CMAKE_LIB_NSL_HAS_GETHOSTBYNAME)
|
||||||
SET (X11_X_EXTRA_LIBS ${X11_X_EXTRA_LIBS} -lnsl)
|
SET (X11_X_EXTRA_LIBS ${X11_X_EXTRA_LIBS} -lnsl)
|
||||||
ELSE (CMAKE_LIB_NSL_HAS_GETHOSTBYNAME)
|
ELSE (CMAKE_LIB_NSL_HAS_GETHOSTBYNAME)
|
||||||
CHECK_LIBRARY_EXISTS("bsd" "gethostbyname" "" CMAKE_LIB_BSD_HAS_GETHOSTBYNAME)
|
CHECK_LIBRARY_EXISTS("bsd" "gethostbyname" "" CMAKE_LIB_BSD_HAS_GETHOSTBYNAME)
|
||||||
IF (CMAKE_LIB_BSD_HAS_GETHOSTBYNAME)
|
IF (CMAKE_LIB_BSD_HAS_GETHOSTBYNAME)
|
||||||
SET (X11_X_EXTRA_LIBS ${X11_X_EXTRA_LIBS} -lbsd)
|
SET (X11_X_EXTRA_LIBS ${X11_X_EXTRA_LIBS} -lbsd)
|
||||||
ENDIF (CMAKE_LIB_BSD_HAS_GETHOSTBYNAME)
|
ENDIF (CMAKE_LIB_BSD_HAS_GETHOSTBYNAME)
|
||||||
|
@ -334,7 +334,7 @@ IF (UNIX)
|
||||||
# Find library needed for connect.
|
# Find library needed for connect.
|
||||||
CHECK_FUNCTION_EXISTS("connect" CMAKE_HAVE_CONNECT)
|
CHECK_FUNCTION_EXISTS("connect" CMAKE_HAVE_CONNECT)
|
||||||
IF(NOT CMAKE_HAVE_CONNECT)
|
IF(NOT CMAKE_HAVE_CONNECT)
|
||||||
CHECK_LIBRARY_EXISTS("socket" "connect" "" CMAKE_LIB_SOCKET_HAS_CONNECT)
|
CHECK_LIBRARY_EXISTS("socket" "connect" "" CMAKE_LIB_SOCKET_HAS_CONNECT)
|
||||||
IF (CMAKE_LIB_SOCKET_HAS_CONNECT)
|
IF (CMAKE_LIB_SOCKET_HAS_CONNECT)
|
||||||
SET (X11_X_EXTRA_LIBS -lsocket ${X11_X_EXTRA_LIBS})
|
SET (X11_X_EXTRA_LIBS -lsocket ${X11_X_EXTRA_LIBS})
|
||||||
ENDIF (CMAKE_LIB_SOCKET_HAS_CONNECT)
|
ENDIF (CMAKE_LIB_SOCKET_HAS_CONNECT)
|
||||||
|
@ -343,7 +343,7 @@ IF (UNIX)
|
||||||
# Find library needed for remove.
|
# Find library needed for remove.
|
||||||
CHECK_FUNCTION_EXISTS("remove" CMAKE_HAVE_REMOVE)
|
CHECK_FUNCTION_EXISTS("remove" CMAKE_HAVE_REMOVE)
|
||||||
IF(NOT CMAKE_HAVE_REMOVE)
|
IF(NOT CMAKE_HAVE_REMOVE)
|
||||||
CHECK_LIBRARY_EXISTS("posix" "remove" "" CMAKE_LIB_POSIX_HAS_REMOVE)
|
CHECK_LIBRARY_EXISTS("posix" "remove" "" CMAKE_LIB_POSIX_HAS_REMOVE)
|
||||||
IF (CMAKE_LIB_POSIX_HAS_REMOVE)
|
IF (CMAKE_LIB_POSIX_HAS_REMOVE)
|
||||||
SET (X11_X_EXTRA_LIBS ${X11_X_EXTRA_LIBS} -lposix)
|
SET (X11_X_EXTRA_LIBS ${X11_X_EXTRA_LIBS} -lposix)
|
||||||
ENDIF (CMAKE_LIB_POSIX_HAS_REMOVE)
|
ENDIF (CMAKE_LIB_POSIX_HAS_REMOVE)
|
||||||
|
@ -352,7 +352,7 @@ IF (UNIX)
|
||||||
# Find library needed for shmat.
|
# Find library needed for shmat.
|
||||||
CHECK_FUNCTION_EXISTS("shmat" CMAKE_HAVE_SHMAT)
|
CHECK_FUNCTION_EXISTS("shmat" CMAKE_HAVE_SHMAT)
|
||||||
IF(NOT CMAKE_HAVE_SHMAT)
|
IF(NOT CMAKE_HAVE_SHMAT)
|
||||||
CHECK_LIBRARY_EXISTS("ipc" "shmat" "" CMAKE_LIB_IPS_HAS_SHMAT)
|
CHECK_LIBRARY_EXISTS("ipc" "shmat" "" CMAKE_LIB_IPS_HAS_SHMAT)
|
||||||
IF (CMAKE_LIB_IPS_HAS_SHMAT)
|
IF (CMAKE_LIB_IPS_HAS_SHMAT)
|
||||||
SET (X11_X_EXTRA_LIBS ${X11_X_EXTRA_LIBS} -lipc)
|
SET (X11_X_EXTRA_LIBS ${X11_X_EXTRA_LIBS} -lipc)
|
||||||
ENDIF (CMAKE_LIB_IPS_HAS_SHMAT)
|
ENDIF (CMAKE_LIB_IPS_HAS_SHMAT)
|
||||||
|
|
Loading…
Reference in New Issue