FIND_PATH(SPEEX_INCLUDE_DIR speex/speex.h)
FIND_LIBRARY(SPEEX_LIBRARIES NAMES speex)

IF(SPEEX_INCLUDE_DIR AND SPEEX_LIBRARIES)
	SET(SPEEX_FOUND TRUE)
ENDIF(SPEEX_INCLUDE_DIR AND SPEEX_LIBRARIES)

IF(SPEEX_FOUND)
	IF (NOT Speex_FIND_QUIETLY)
		MESSAGE(STATUS "Found speex includes:	${SPEEX_INCLUDE_DIR}/speex/speex.h")
		MESSAGE(STATUS "Found speex library: ${SPEEX_LIBRARIES}")
	ENDIF (NOT Speex_FIND_QUIETLY)
ELSE(SPEEX_FOUND)
	IF (Speex_FIND_REQUIRED)
		MESSAGE(FATAL_ERROR "Could NOT find speex development files")
	ENDIF (Speex_FIND_REQUIRED)
ENDIF(SPEEX_FOUND)
