AC_INIT([capifax], 0.7.3, http://capifax.v3v.de) AC_PREFIX_DEFAULT(/usr) AC_ARG_ENABLE(capifax, [ --disable-capifax do not build capifax app (default: enabled) ], [ DISABLE_CAPIFAX="1" ], [ DISABLE_CAPIFAX="0" ]) AC_ARG_ENABLE(boost, [ --disable-boost do not increase process priority (default: enabled) ], [ WITH_BOOST="0" ], [ WITH_BOOST="1" ]) AC_ARG_WITH(spandsp, [ --with-spandsp=(4|5|6) specify spandsp version (default: 6) ], [SPANDSP_VERSION="$withval"], [SPANDSP_VERSION='0']) AC_ARG_WITH(cip, [ --with-cip=(4|17) set CIP value 17=Fax/G3, 4=Speech (default: 17) ], [CAPI_CIP="$withval"], [CAPI_CIP='17']) AC_ARG_WITH(connections, [ --with-connections=X max. number of connections (default: 5) ], [CAPI_CONNECTIONS="$withval"], [CAPI_CONNECTIONS='5']) AC_ARG_WITH(packets, [ --with-packets=X number of CAPI packets (default: 160) ], [CAPI_PACKETS="$withval"], [CAPI_PACKETS='160']) AC_ARG_WITH(buffer-cnt, [ --with-buffer-cnt=X number if CAPI buffer blocks (default: 6) ], [CAPI_BUFFERCNT="$withval"], [CAPI_BUFFERCNT='6']) AC_ARG_WITH(bchannels, [ --with-bchannels=X number of bchannels to use (default: 2) ], [CAPI_BCHANNELS="$withval"], [CAPI_BCHANNELS='2']) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([.]) AC_CONFIG_HEADER(config_compile.h) AC_PROG_LIBTOOL AC_PROG_CC AC_SUBST(SPANDSP_VERSION) AC_SUBST(WITH_BOOST) AC_SUBST(CAPI_CONNECTIONS) AC_SUBST(CAPI_PACKETS) AC_SUBST(CAPI_BUFFERCNT) AC_SUBST(CAPI_BCHANNELS) AC_SUBST(CAPI_CIP) AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS([stdlib.h string.h unistd.h]) AC_CONFIG_FILES([Makefile]) AC_CONFIG_SUBDIRS([libcapifax]) if test "$DISABLE_CAPIFAX" == "0" then AC_CONFIG_SUBDIRS([capifax]) fi AC_OUTPUT