ソースを参照

* Removed --enable-network flag, but reused the test as a condition for

building cacaserver.
tags/v0.99.beta14
Sam Hocevar sam 18年前
コミット
3ebca8a6f3
2個のファイルの変更6行の追加17行の削除
  1. +4
    -15
      configure.ac
  2. +2
    -2
      src/Makefile.am

+ 4
- 15
configure.ac ファイルの表示

@@ -180,17 +180,6 @@ if test "${enable_gl}" != "no"; then
fi
fi

if test "${enable_network}" != "no"; then
ac_cv_my_have_network="no"
AC_CHECK_HEADERS(sys/socket.h,
[ac_cv_my_have_network="yes"
AC_DEFINE(USE_NETWORK, 1, Define to 1 to activate the network backend driver)
CACA_DRIVERS="${CACA_DRIVERS} network"])
if test "${ac_cv_my_have_network}" = "no" -a "${enable_network}" = "yes"; then
AC_MSG_ERROR([cannot find standard networking socket files])
fi
fi

if test "${enable_ncurses}" != "no"; then
ac_cv_my_have_ncurses="no"
AC_CHECK_HEADERS(ncursesw/ncurses.h ncurses/ncurses.h ncurses.h curses.h,
@@ -254,10 +243,10 @@ fi
AM_CONDITIONAL(USE_CXX, test "${ac_cv_my_have_cxx}" = "yes")

# Build cacaserver?
ac_cv_my_have_fcntl="no"
AC_CHECK_FUNC(fcntl,
[ac_cv_my_have_fcntl="yes"])
AM_CONDITIONAL(USE_FCNTL, test "${ac_cv_my_have_fcntl}" = "yes")
ac_cv_my_have_network="no"
AC_CHECK_HEADERS(sys/socket.h,
[ac_cv_my_have_network="yes"])
AM_CONDITIONAL(USE_NETWORK, test "${ac_cv_my_have_network}" = "yes")

# Use Imlib2?
ac_cv_my_have_imlib2="no"


+ 2
- 2
src/Makefile.am ファイルの表示

@@ -3,7 +3,7 @@
pkgdata_DATA = caca.txt

EXTRA_DIST = caca.txt
AM_CPPFLAGS = -I$(top_srcdir)/cucul -I$(top_srcdir)/caca -DLIBCACA=1 -DX_DISPLAY_MISSING=1
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul -I$(top_srcdir)/caca -DLIBCACA=1 -DX_DISPLAY_MISSING=1

bin_PROGRAMS = cacafire cacaball cacaplas cacamoir cacaplay cacaview img2irc $(fcntl_programs)
noinst_PROGRAMS = cacadraw
@@ -47,7 +47,7 @@ img_cflags =
img_ldflags =
endif

if USE_FCNTL
if USE_NETWORK
fcntl_programs = cacaserver
else
fcntl_programs =


読み込み中…
キャンセル
保存