Changeset 837
- Timestamp:
- Apr 22, 2006, 8:54:38 PM (15 years ago)
- Location:
- libcaca/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/configure.ac
r835 r837 52 52 dnl language bindings 53 53 AC_ARG_ENABLE(cpp, 54 [ --enable-cpp C++ bindings ( autodetected)])54 [ --enable-cpp C++ bindings (default disabled)]) 55 55 56 56 dnl example programs features … … 85 85 86 86 AC_CHECK_LIB(m, sin, MATH_LIBS="${MATH_LIBS} -lm") 87 88 89 if test "${enable_cpp}" != "no"; then90 ac_cv_my_have_cpp="yes"91 AC_DEFINE(USE_CPP, 1,92 Define to 1 to enable C++ bindigs)93 fi94 87 95 88 CACA_DRIVERS="" … … 251 244 CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare" 252 245 253 # Build the PIC library? 254 case "${target_os}" in 255 *mingw32* | *cygwin* | *djgpp*) 256 NEED_PIC=false 257 ;; 258 *) 259 NEED_PIC=: 260 ;; 261 esac 262 AM_CONDITIONAL(NEED_PIC, ${NEED_PIC}) 246 # Build the C++ bindings? 247 ac_cv_my_have_cpp="no" 248 if test "${enable_cpp}" = "yes"; then 249 ac_cv_my_have_cpp="yes" 250 fi 251 AM_CONDITIONAL(USE_CPP, test "${ac_cv_my_have_cpp}" = "yes") 263 252 264 253 # Use Imlib2? -
libcaca/trunk/cpp/Makefile.am
r830 r837 3 3 AM_CPPFLAGS = -I$(top_srcdir)/cucul -I$(top_srcdir)/caca 4 4 5 if USE_CPP 5 6 include_HEADERS = cucul++.h caca++.h 6 7 lib_LTLIBRARIES = libcucul++.la libcaca++.la 8 endif 7 9 8 10 libcucul___la_SOURCES = cucul++.cpp cucul++.h … … 14 16 libcaca___la_LIBADD = ../caca/libcaca.la 15 17 18 if USE_CPP 16 19 noinst_PROGRAMS = cpptest 20 endif 17 21 18 22 cpptest_SOURCES = cpptest.cpp
Note: See TracChangeset
for help on using the changeset viewer.