mISDNuser/configure.ac

67 lines
1.8 KiB
Plaintext
Raw Normal View History

# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.63])
AC_INIT([mISDNuser], [0.99], [i4ldeveloper@isdn4linux.de])
AC_CONFIG_SRCDIR([tools/])
AC_CONFIG_HEADERS([include/config.h])
AM_INIT_AUTOMAKE(mISDNuser,0.99)
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_INSTALL
AC_CHECK_LIB([pthread], [pthread_create])
# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
LT_INIT
AC_ARG_ENABLE([example],
[ --enable-example Include example programs],
[case "${enableval}" in
yes) example=true ;;
no) example=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-example]) ;;
esac],
[example=false])
AM_CONDITIONAL([OPT_EXAMPLE], [test "x$example" = xtrue])
# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_CHECK_FUNCS([gethostbyname gettimeofday inet_ntoa memset select socket strcasecmp strchr strdup strerror strstr strtol])
AC_CONFIG_FILES([Makefile
include/Makefile
lib/Makefile
bridge/Makefile
l1oip/Makefile
tools/Makefile
example/Makefile
])
#AC_CONFIG_FILES([Makefile
# bridge/Makefile
# debugtool/Makefile
# example/Makefile
# l1oip/Makefile
# lib/Makefile
# suppserv/Makefile
# tools/Makefile])
AC_OUTPUT