소스 검색

* configure.ac:

+ Search for <slang/slang.h> in addition of <slang.h>.
tags/v0.99.beta14
Sam Hocevar sam 22 년 전
부모
커밋
9d47c48cb2
4개의 변경된 파일18개의 추가작업 그리고 7개의 파일을 삭제
  1. +3
    -4
      configure.ac
  2. +5
    -1
      src/caca.c
  3. +5
    -1
      src/graphics.c
  4. +5
    -1
      src/io.c

+ 3
- 4
configure.ac 파일 보기

@@ -49,15 +49,14 @@ if test "${enable_conio}" != "no"; then
fi

if test "${enable_slang}" != "no"; then
AC_CHECK_HEADERS(slang.h,
AC_CHECK_HEADERS(slang.h slang/slang.h,
ac_cv_my_have_slang="no"
[AC_CHECK_LIB(slang, SLkp_init,
[ac_cv_my_have_slang="yes"
AC_DEFINE(USE_SLANG, 1, Define to activate the slang backend driver)
CPPFLAGS="${CPPFLAGS} -DOPTIMISE_SLANG_PALETTE=1"
CACA_LIBS="${CACA_LIBS} -lslang"
CACA_DRIVERS="${CACA_DRIVERS} slang"],
[ac_cv_my_have_slang="no"])],
[ac_cv_my_have_slang="no"])
CACA_DRIVERS="${CACA_DRIVERS} slang"])])
if test "${ac_cv_my_have_slang}" = "no" -a "${enable_slang}" = "yes"; then
AC_MSG_ERROR([cannot find slang development files])
fi


+ 5
- 1
src/caca.c 파일 보기

@@ -32,7 +32,11 @@
#include "config.h"

#if defined(USE_SLANG)
# include <slang.h>
# if defined(HAVE_SLANG_SLANG_H)
# include <slang/slang.h>
# else
# include <slang.h>
# endif
#endif
#if defined(USE_NCURSES)
# include <curses.h>


+ 5
- 1
src/graphics.c 파일 보기

@@ -30,7 +30,11 @@
#include "config.h"

#if defined(USE_SLANG)
# include <slang.h>
# if defined(HAVE_SLANG_SLANG_H)
# include <slang/slang.h>
# else
# include <slang.h>
# endif
#endif
#if defined(USE_NCURSES)
# include <curses.h>


+ 5
- 1
src/io.c 파일 보기

@@ -30,7 +30,11 @@
#include "config.h"

#if defined(USE_SLANG)
# include <slang.h>
# if defined(HAVE_SLANG_SLANG_H)
# include <slang/slang.h>
# else
# include <slang.h>
# endif
#endif
#if defined(USE_NCURSES)
# include <curses.h>


불러오는 중...
취소
저장