Ignore:
Timestamp:
Apr 17, 2006, 12:41:30 PM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Added preliminary C++ bindings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r772 r781  
    1212AM_PROG_CC_C_O
    1313AC_PROG_CPP
     14AC_PROG_CXX
    1415AM_PROG_AS
    1516
    1617AC_LIBTOOL_WIN32_DLL
    1718AM_PROG_LIBTOOL
     19AC_LIBTOOL_CXX
     20
    1821
    1922AC_C_CONST
     
    2427dnl now otherwise it might be set in an obscure if statement. Same thing for
    2528dnl PKG_PROG_PKG_CONFIG which needs to be called first.
    26 AC_EGREP_CPP(foo, foo)
     29AC_EGREP_CPP(yes, foo)
    2730PKG_PROG_PKG_CONFIG()
     31
     32dnl Check the C++ compiler and preprocessor.
     33AC_PROG_CXX
     34AC_PROG_CXXCPP
     35
     36dnl Set the test language as C++
     37AC_LANG([C++])
     38
    2839
    2940dnl output driver features
     
    4556  [  --enable-vga            VGA support (default disabled)])
    4657
     58AC_ARG_ENABLE(cpp,
     59  [  --enable-cpp            C++ bindings (autodetected)])
     60
    4761dnl example programs features
    4862AC_ARG_ENABLE(imlib2,
     
    7690
    7791AC_CHECK_LIB(m, sin, MATH_LIBS="${MATH_LIBS} -lm")
     92
     93
     94if test "${enable_cpp}" != "no"; then
     95  ac_cv_my_have_cpp="yes"
     96  AC_DEFINE(USE_CPP, 1,
     97                Define to 1 to enable C++ bindigs)
     98fi
    7899
    79100CACA_DRIVERS=""
     
    222243fi
    223244
     245
     246
     247
     248
    224249AC_SUBST(MATH_LIBS)
    225250AC_SUBST(CACA_LIBS)
    226251AC_SUBST(CUCUL_LIBS)
     252AC_SUBST(CUCUL++_LIBS)
    227253
    228254# Optimizations
     
    302328  test/Makefile
    303329  tools/Makefile
     330  cpp/Makefile
    304331  doc/Makefile
    305332  autotools/Makefile
Note: See TracChangeset for help on using the changeset viewer.