2005-11-12 16:27:19 -05:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
|
|
AC_PREREQ(2.59)
|
|
|
|
AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
|
|
|
|
AM_INIT_AUTOMAKE(libfreeswitch,0.1)
|
|
|
|
AC_CONFIG_SRCDIR([src/switch.c])
|
|
|
|
AC_CONFIG_HEADER([src/include/config.h])
|
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
|
|
|
# Checks for header files.
|
|
|
|
AC_HEADER_DIRENT
|
|
|
|
AC_HEADER_STDC
|
2005-11-18 19:10:16 -05:00
|
|
|
AC_CHECK_HEADERS([sys/types.h])
|
2005-11-12 16:27:19 -05:00
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_HEADER_TIME
|
|
|
|
AC_STRUCT_TM
|
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_PROG_GCC_TRADITIONAL
|
|
|
|
AC_FUNC_MALLOC
|
|
|
|
AC_TYPE_SIGNAL
|
|
|
|
AC_FUNC_STRFTIME
|
2005-11-18 19:10:16 -05:00
|
|
|
AC_CHECK_FUNCS([gethostname])
|
2005-11-12 16:27:19 -05:00
|
|
|
|
2005-11-19 21:57:06 -05:00
|
|
|
AC_CONFIG_FILES([Makefile
|
|
|
|
libs/jrtp4c/Makefile
|
|
|
|
])
|
2005-11-12 16:27:19 -05:00
|
|
|
|
2005-11-18 19:10:16 -05:00
|
|
|
AM_CONDITIONAL(ISLINUX, [test `uname -s` = Linux])
|
2005-12-13 16:26:03 -05:00
|
|
|
AM_CONDITIONAL(ISMAC, [test `uname -s` = Darwin])
|
2005-11-18 19:10:16 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2005-11-12 16:27:19 -05:00
|
|
|
AC_OUTPUT
|