Skip to content

Commit 524b87f

Browse files
committed
configure.ac: add --enable-tools option as Linphone does
1 parent fc8d5b9 commit 524b87f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

configure.ac

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,21 @@ AC_CONFIG_COMMANDS([libtool-hacking],
256256
[mingw_found=$mingw_found]
257257
)
258258

259+
dnl conditionnal build of tools.
260+
AC_ARG_ENABLE(tools,
261+
[AS_HELP_STRING([--enable-tools=[yes/no]], [Turn on or off compilation of console interface (default=yes)])],
262+
[case "${enableval}" in
263+
yes) build_tools=true ;;
264+
no) build_tools=false ;;
265+
*)AC_MSG_ERROR(bad value ${enableval} for --enable-tools) ;;
266+
esac],
267+
[build_tools=check]
268+
)
269+
AM_CONDITIONAL(BUILD_TOOLS, test x$build_tools != xfalse)
270+
if test "$build_tools" != "false" ; then
271+
build_tools=true
272+
AC_DEFINE(BUILD_TOOLS, 1, [Define if tools enabled] )
273+
fi
259274

260275
dnl prefer fixed point computations
261276
AC_ARG_ENABLE(fixed_point,

0 commit comments

Comments
 (0)