AC_PREREQ(2.57) AC_INIT([ASTERISK-OOH323C],[0.5],[Objective Systems ],[asterisk-ooh323c]) PACKAGE=asterisk-ooh323c VERSION=0.5 AC_CONFIG_AUX_DIR(config) AM_INIT_AUTOMAKE($PACKAGE, $VERSION) AC_CONFIG_SRCDIR([src/chan_h323.c]) AM_CONFIG_HEADER(config.h) dnl should include it in src files before using here OOH323CDRIVERDIR=`pwd` AC_SUBST(OOH323CDRIVERDIR) if test "x$prefix" = "xNONE"; then INSTALLPREFIX=. else INSTALLPREFIX="${prefix}" fi AC_SUBST(INSTALLPREFIX) OOH323CFLAGS="-DGNU -D_GNU_SOURCE -D_REENTRANT -D_COMPACT" AC_SUBST(OOH323CFLAGS) DEBUG_THREADS="-DDUMP_SCHEDULER -DDEBUG_SCHEDULER -DDEBUG_THREADS -DDETECT_DEADLOCKS #-DDO_CRASH" AC_SUBST(DEBUG_THREADS) AC_PROG_CC AC_PROG_LIBTOOL AC_LANG_C dnl not required as using libtool AC_PROG_RANLIB AC_HEADER_STDC AC_CHECK_FILE(/usr/include/asterisk/channel.h,, AC_MSG_ERROR([No asterisk installation found])) AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stddef.h stdlib.h string.h sys/socket.h unistd.h sys/ioctl.h]) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_SIZE_T AC_HEADER_TIME AC_STRUCT_TM dnl Checks for library functions. AC_FUNC_MALLOC AC_FUNC_SELECT_ARGTYPES AC_FUNC_STRFTIME AC_FUNC_VPRINTF AC_CHECK_FUNCS([gettimeofday inet_ntoa memchr memset select socket gethostbyname gethostname pipe]) dnl AC_OUTPUT AC_OUTPUT(Makefile)