"Fossies" - the Fresh Open Source Software Archive

Member "bayonne-1.2.16/configure.ac" (27 May 2006, 9432 Bytes) of package /linux/misc/old/bayonne-1.2.16.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "configure.ac": 2.2.4_vs_1.2.16.

    1 # Copyright (C) 2000-2001 Open Source Telecom Corporation.
    2 #  
    3 # This file is free software; as a special exception the author gives
    4 # unlimited permission to copy and/or distribute it, with or without 
    5 # modifications, as long as this notice is preserved.
    6 # 
    7 # This program is distributed in the hope that it will be useful, but
    8 # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
    9 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   10 
   11 AC_INIT(reconfig)
   12 VERSION="1.2.16"
   13 REQUIRES="1.0.0"
   14 if test "$sysconfdir" == '${prefix}/etc' ; then
   15 	sysconfdir="/etc"
   16 fi
   17 AC_CONFIG_AUX_DIR(config)
   18 AC_CANONICAL_SYSTEM
   19 AC_PROG_CXX
   20 AC_PROG_CXXCPP
   21 AM_PROG_LIBTOOL
   22 AM_INIT_AUTOMAKE(bayonne,[$VERSION])
   23 AM_CONFIG_HEADER(server/ivrconfig.h)
   24 AC_CHECK_HEADERS(execinfo.h)
   25 #AC_CHECK_FUNCS(mkstemp)
   26 OST_PROG_COMMON
   27 OST_AUTOMAKE_MODE
   28 OST_MAINTAINER_MODE
   29 OST_CCXX2_VERSION([$REQUIRES])
   30 OST_CCXX2_DYNLOADER
   31 
   32 AC_PATH_PROG(CCSCRIPT, ccscript, no)
   33 if test "$CCSCRIPT" == "no" ; then
   34         ccrelease="2"
   35 else
   36         ccrelease=`$CCSCRIPT --version | sed "s/\..*$//"`
   37 fi
   38 
   39 CCSCRIPT="-lccscript$ccrelease"
   40 AC_SUBST(CCSCRIPT)
   41 
   42 # if pre 1.0.10 Common C++, we must do a default for this...
   43 
   44 if test -z "$MODULE_FLAGS" ; then
   45         MODULE_FLAGS="-module -shared"
   46         AC_SUBST(MODULE_FLAGS)
   47 fi
   48 
   49 EXTLIBS="$LIBS"
   50 LIBS=""
   51 OST_CCXX2_HOARD
   52 OST_CCXX2_FOX
   53 OST_PORTIO
   54 AC_CHECK_HEADER(security/pam_appl.h,
   55 	[
   56 		LIBS="-lpam $LIBS"
   57 		AC_DEFINE(HAVE_PAM, [1], [pam authentication])
   58 	],[
   59 		AC_CHECK_LIB(crypt, crypt, [LIBS="$LIBS -lcrypt"])
   60 	])
   61 
   62 AC_ARG_ENABLE(aio,    [--enable-aio            Enable async i/o])
   63 if test "x$enable_aio" = "xyes" ; then
   64 	OST_AIO
   65 else
   66 	AIO_LIB=""
   67 	ost_cv_aio=false
   68 	AC_SUBST(AIO_LIB)
   69 fi
   70 
   71 AC_ARG_WITH(unsafe,   [--without-unsafe        Disable unsafe drivers],
   72 	ost_cv_unsafe=true,
   73 	ost_cv_unsafe=false)
   74 
   75 AC_ARG_WITH(tgi,      [--without-tgi           Disable TGI gateway support],
   76 	, [AC_DEFINE(HAVE_TGI, [1], [enable tgi support])])
   77 
   78 AC_ARG_WITH(sunrpc,   [--without-sunrpc        Disable sunrpc support],
   79 	ost_cv_sunrpc=false,
   80 	[OST_LIB_SUNRPC])
   81 
   82 AC_ARG_WITH(streams,  [--without-streams       Disable streams support],
   83 	[OST_NOSTREAMS],
   84 	[OST_STREAMS])
   85 
   86 AC_ARG_WITH(perl,     [--without-perl          Disable perl tgi module],
   87 	ost_cv_perl_embed=false,
   88 	[OST_PERL])
   89 
   90 AC_ARG_WITH(python,   [--without-python        Disable python tgi module],
   91 	ost_cv_python_embed=false,
   92 	[OST_PYTHON])
   93 
   94 if test $ost_cv_unsafe = false ; then
   95 #AC_ARG_WITH(tcl,      [--without-tcl           Disable tcl tgi module],
   96 #	ost_cv_tcl_embed=false,
   97 #	[OST_TCL])
   98 
   99 AC_ARG_WITH(pnet,     [--without-pnet          Disable pnet support],
  100 	ost_cv_pnet_embed=false,
  101 	[OST_PNET])
  102 
  103 AC_ARG_WITH(js,       [--without-js            Disable javascript  support],
  104 	ost_cv_js_embed=false,
  105 	[OST_JS])
  106 
  107 else
  108 	ost_cv_tcl_embed=false
  109 	ost_cv_js_embed=false
  110 fi
  111 
  112 
  113 AC_ARG_WITH(phonedev, [--without-phonedev      Disable phonedev support],
  114 	ost_cv_phonedev_driver=false,
  115 	[OST_PHONEDEV])
  116 
  117 if test $ost_cv_unsafe = false ; then
  118 
  119 AC_ARG_WITH(pika,     [--without-pika          Disable pika support],
  120 	ost_cv_pika_montecarlo=false,
  121 	[OST_PIKA])
  122 
  123 else
  124 	ost_cv_pika_montecarlo=false
  125 fi
  126 
  127 AC_ARG_WITH(aculab,   [--with-aculab=DIR       Enable aculab and set prefix],
  128 	[if test "$withval" = "" ; then
  129 		ost_cv_aculab_driver=false
  130 	 else
  131 		aculab_prefix=$withval
  132 		OST_ACULAB
  133 	 fi],
  134 	[aculab_prefix=""
  135 	 OST_ACULAB])
  136 
  137 if test $ost_cv_unsafe = false ; then
  138 
  139 AC_ARG_WITH(openh323, [--without-openh323      Disable openh323 support],
  140 	ost_cv_openh323=false,
  141 	[OST_OPENH323])
  142 
  143 else
  144 	ost_cv_openh323=false
  145 fi
  146 
  147 if test "$ost_cv_unix_streams" = "true" ; then
  148    AC_ARG_WITH(dialogic, [--without-dialogic      Disable dialogic support],
  149 	ost_cv_dialogic_unix=none,
  150 	[OST_DIALOGIC])
  151 else
  152 	ost_cv_dialogic_unix=none
  153 fi
  154 
  155 if test $ost_cv_unsafe = false ; then
  156 
  157 AC_ARG_WITH(eccs,     [--without-eccs          Disable ECCS driver support],
  158 	ost_cv_dialogic_eccs=false,
  159 	[OST_ECCS])
  160 
  161 else
  162 	ost_cv_dialogic_eccs=false
  163 fi
  164 
  165 AC_ARG_WITH(vpb,      [--without-vpb           Disable Voicetronix support],
  166 	ost_cv_vpb2_driver=false,
  167 	[OST_VPB2])
  168 
  169 AC_ARG_WITH(dummy,    [--without-dummy         Disable the dummy driver],
  170 	ost_cv_dummy_driver=false,
  171 	[OST_DUMMY])
  172 
  173 if test $ost_cv_unsafe = false ; then
  174 
  175 AC_ARG_WITH(zapata,   [--without-zapata        Disable Zapata support],
  176 	ost_cv_zapata_driver=false,
  177 	[OST_ZAPATA])
  178 
  179 else
  180 	ost_cv_zapata_driver=false
  181 fi
  182 
  183 AC_ARG_WITH(capi20,     [--without-capi          Disable Capi support],
  184 	ost_cv_capi20_driver=false,
  185 	[OST_CAPI20])
  186 
  187 AC_ARG_WITH(xml,     [--without-xml           Disable XML support],
  188 	[ost_cv_postgres_database=false
  189 	ost_cv_mysql_database=false
  190 	ost_cv_xml_scripts=false],
  191 	[OST_XML_PARSING
  192 	OST_MYSQL
  193 	OST_POSTGRES]
  194 )
  195 
  196 AC_ARG_WITH(users,     [--without-users         Disable user hosting],
  197 	,[AC_DEFINE(USER_HOSTING, [1], [enable user hosting support])])
  198 
  199 AC_ARG_WITH(nodes,     [--without-nodes         Disable network nodes],
  200 	,[AC_DEFINE(NODE_SERVICES, [1], [enable network services])])
  201 
  202 ost_dll_server="no"
  203 
  204 AC_ARG_WITH(dllserver,     [--with-dllserver        Build server as DLL],
  205 	ost_dll_server="yes")
  206 
  207 AC_ARG_WITH(cygwindll,     [--with-cygwindll        Build server as DLL],
  208 	ost_dll_server="yes")
  209 
  210 OST_NETSNMP
  211 
  212 OST_FLITE
  213 
  214 if test $ost_cv_xml_scripts = true ; then 
  215 	CXXFLAGS="$CXXFLAGS -DXML_SCRIPTS"
  216 	XML_MODULE=xml
  217 	LIBS="$EXTLIBS $LIBS"
  218 else 
  219 	LIBS="$GNULIBS $LIBS"
  220 	XML_MOUDLE=""
  221 fi
  222 AC_SUBST(XML_MODULE)
  223 
  224 if test $ost_cv_perl_embed = true ; then PERL_MODULE=perl
  225 else PERL_MODULE="" ; fi ; AC_SUBST(PERL_MODULE)
  226 
  227 if test $ost_cv_python_embed = true ; then PYTHON_MODULE=python
  228 else PYTHON_MODULE="" ; fi ; AC_SUBST(PYTHON_MODULE)
  229 
  230 #if test $ost_cv_tcl_embed = true ; then TCL_MODULE=tcl
  231 #else TCL_MODULE="" ; fi ; AC_SUBST(TCL_MODULE)
  232 
  233 if test $ost_cv_phonedev_driver = true ; then PHONEDEV_DRIVER=phonedev 
  234 else PHONEDEV_DRIVER="" ; fi ; AC_SUBST(PHONEDEV_DRIVER)
  235 
  236 if test $ost_cv_pika_montecarlo = true ; then PIKA_DRIVER=pika
  237 else PIKA_DRIVER="" ; fi ; AC_SUBST(PIKA_DRIVER)
  238 
  239 if test $ost_cv_dialogic_unix = single
  240 then 
  241 	DIALOGIC_DRIVER=dialogic
  242 	GLOBAL_DRIVER=globalcall
  243 else 
  244 	GLOBAL_DRIVER=""
  245 	DIALOGIC_DRIVER="" 
  246 fi
  247 AC_SUBST(DIALOGIC_DRIVER)
  248 AC_SUBST(GLOBAL_DRIVER)
  249 
  250 if test $ost_cv_dialogic_eccs = true ; then ECCS_DRIVER=eccs
  251 else ECCS_DRIVER="" ; fi ; AC_SUBST(ECCS_DRIVER)
  252 
  253 if test $ost_cv_dummy_driver = true ; then DUMMY_DRIVER=dummy
  254 else DUMMY_DRIVER="" ; fi ; AC_SUBST(DUMMY_DRIVER)
  255 
  256 if test $ost_cv_vpb2_driver = true ; then VPB_DRIVER=vpb
  257 else VPB_DRIVER="" ; fi ; AC_SUBST(VPB_DRIVER)
  258 
  259 if test $ost_cv_aculab_driver = true ; then ACULAB_DRIVER=aculab
  260 else ACULAB_DRIVER="" ; fi ; AC_SUBST(ACULAB_DRIVER)
  261 
  262 if test $ost_cv_zapata_driver = true ; then ZAPATA_DRIVER=zapata
  263 else ZAPATA_DRIVER="" ; fi ; AC_SUBST(ZAPATA_DRIVER)
  264 
  265 ost_cv_openh323=false
  266 if test $ost_cv_openh323 = true ; then OH323_DRIVER=oh323
  267 else OH323_DRIVER="" ; fi ; AC_SUBST(OH323_DRIVER)
  268 
  269 if test $ost_cv_capi20_driver = true ; then CAPI20_DRIVER=capi20
  270 else CAPI20_DRIVER="" ; fi ; AC_SUBST(CAPI20_DRIVER)
  271 
  272 if test $ost_cv_lib_fox = true 
  273 then 
  274 	GUI_MODULE=gui
  275 	GUI_SITEMON=sitemon
  276 else 
  277 	GUI_MODULE=""
  278 	GUI_SITEMON="" 
  279 fi
  280 AC_SUBST(GUI_MODULE)
  281 AC_SUBST(GUI_SITEMON)
  282 
  283 if test $ost_cv_sunrpc = true ; then SUNRPC_MODULE=sunrpc
  284 else SUNRPC_MODULE="" ; fi ; AC_SUBST(SUNRPC_MODULE)
  285 
  286 if test $ost_cv_flite_tts = true ; then FLITE_MODULE=flite
  287 else FLITE_MODULE="" ; fi ; AC_SUBST(FLITE_MODULE)
  288 
  289 if test $ost_cv_postgres_database = true ; then POSTGRES_MODULE=postgres
  290 else POSTGRES_MODULE="" ; fi ; AC_SUBST(POSTGRES_MODULE)
  291 
  292 if test $ost_cv_netsnmp = true ; then NETSNMP_MODULE=snmp
  293 else NETSNMP_MODULE="" ; fi ; AC_SUBST(NETSNMP_MODULE)
  294 
  295 if test $ost_cv_mysql_database = true ; then MYSQL_MODULE=mysql
  296 else MYSQL_MODULE="" ; fi ; AC_SUBST(MYSQL_MODULE)
  297 
  298 SERVER_FLAGS=""
  299 
  300 if test $ost_dll_server = yes ; then
  301 	SERVER_LIB="\$(top_builddir)/server/libbayonne.la"
  302 	SERVER_FLAGS="$SERVER_FLAGS -DDLL_SERVER"
  303 else
  304 	SERVER_LIB=""
  305 fi
  306 AC_SUBST(SERVER_FLAGS)
  307 AC_SUBST(SERVER_LIB)
  308 
  309 AM_CONDITIONAL(DLL_SERVER, test $ost_dll_server = yes)
  310 
  311 AC_OUTPUT(m4/Makefile config/Makefile server/Makefile Makefile
  312 drivers/Makefile drivers/phonedev/Makefile drivers/pika/Makefile
  313 drivers/vpb/Makefile data/tgi/Makefile drivers/globalcall/Makefile 
  314 drivers/aculab/Makefile drivers/dialogic/Makefile drivers/eccs/Makefile
  315 drivers/zapata/Makefile drivers/vmodem/Makefile drivers/dummy/Makefile
  316 drivers/oh323/Makefile drivers/capi20/Makefile
  317 bayonne.spec server/bayonne.conf modules/Makefile
  318 modules/postgres/Makefile modules/mysql/Makefile
  319 modules/translators/Makefile modules/flite/Makefile
  320 modules/auditing/Makefile modules/sunrpc/Makefile
  321 modules/protocols/Makefile modules/xml/Makefile modules/perl/Makefile
  322 modules/gui/Makefile modules/switch/Makefile
  323 modules/python/Makefile modules/snmp/Makefile data/sys/Makefile
  324 data/sys/survey/Makefile data/sys/bts/Makefile
  325 data/sys/playrec/Makefile data/sys/down/Makefile
  326 data/Makefile data/script/Makefile  data/config/Makefile doc/Makefile
  327 data/UsEngM/Makefile data/UsEngF/Makefile 
  328 admin/Makefile
  329 admin/sitemon/Makefile
  330 contrib/dist/streams.spec contrib/dist/native.spec
  331 contrib/Makefile freebsd/Makefile freebsd/pkg-plist server/bayonne
  332 )
  333 
  334 chmod +x server/bayonne
  335 
  336 #apps/Makefile apps/acd/Makefile apps/acd/script/Makefile apps/acd/module/Makefile
  337 #apps/msgbox/Makefile apps/msgbox/script/Makefile apps/msgbox/module/Makefile
  338 #apps/debit/Makefile apps/debit/script/Makefile apps/debit/module/Makefile
  339