]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add --disbale-cpp configure argument to disable the c++ build for the core
authorMichael Jerris <mike@jerris.com>
Mon, 30 Nov 2009 12:31:24 +0000 (12:31 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 30 Nov 2009 12:31:24 +0000 (12:31 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15717 d0543943-73ff-0310-b7d9-9358b9ac24b2

Makefile.am
configure.in

index 29fbdcf03d9314b3e0f7ee2fb5ab8cc89d5ed4f7..7d0c775287bded30d5d85304bb9f72ca6e2de072 100644 (file)
@@ -107,7 +107,6 @@ src/switch_config.c\
 src/switch_time.c\
 src/switch_odbc.c \
 libs/stfu/stfu.c\
-src/switch_cpp.cpp\
 src/g711.c\
 src/switch_pcm.c\
 libs/libteletone/src/libteletone_detect.c\
@@ -124,6 +123,10 @@ libs/miniupnpc/upnperrors.c \
 libs/libnatpmp/natpmp.c \
 libs/libnatpmp/getgateway.c
 
+if ENABLE_CPP
+libfreeswitch_la_SOURCES += src/switch_cpp.cpp
+endif
+
 library_includedir      = $(PREFIX)/include
 
 library_include_HEADERS = \
index a88fa8cff306cc78a891ef1cbd51467060814e94..e3a2db228d0c178d04eed364f8d735c3379c3e4a 100644 (file)
@@ -270,6 +270,11 @@ if test "${enable_debug}" = "yes"; then
 
 fi
 
+AC_ARG_ENABLE(cpp,
+[AC_HELP_STRING([--disable-cpp],[build without cpp code])],[enable_cpp="$enableval"],[enable_cpp="yes"])
+
+AM_CONDITIONAL([ENABLE_CPP],[test "${enable_cpp}" = "yes"])
+
 AC_ARG_ENABLE(zrtp,
        [AS_HELP_STRING([--enable-zrtp], [Compile with zrtp Support])],,[enable_zrtp="no"])
 if test "x$enable_zrtp" = "xyes" ; then