| 1 |
# -*- Autoconf -*-
|
| 2 |
# Process this file with autoconf to produce a configure script.
|
| 3 |
|
| 4 |
AC_PREREQ([2.71])
|
| 5 |
AC_INIT([bbsd],[1.0])
|
| 6 |
AC_CONFIG_SRCDIR([src/])
|
| 7 |
# AM_CONFIG_HEADERS(config.h)
|
| 8 |
AM_INIT_AUTOMAKE
|
| 9 |
|
| 10 |
# Checks for programs.
|
| 11 |
AC_PROG_GCC_TRADITIONAL
|
| 12 |
LT_INIT
|
| 13 |
AC_PROG_RANLIB
|
| 14 |
AC_PROG_CXX
|
| 15 |
AC_PROG_CC
|
| 16 |
AC_PROG_CPP
|
| 17 |
AC_PROG_INSTALL
|
| 18 |
AC_PROG_LN_S
|
| 19 |
AC_PROG_MAKE_SET
|
| 20 |
|
| 21 |
# Checks for libraries.
|
| 22 |
AC_CHECK_LIB([mysqlclient], [mysql_connect])
|
| 23 |
AC_CHECK_LIB([z], [unzip])
|
| 24 |
|
| 25 |
# Autoupdate added the next two lines to ensure that your configure
|
| 26 |
# script's behavior did not change. They are probably safe to remove.
|
| 27 |
AC_CHECK_INCLUDES_DEFAULT
|
| 28 |
AC_PROG_EGREP
|
| 29 |
|
| 30 |
AC_HEADER_SYS_WAIT
|
| 31 |
AC_CHECK_HEADERS([arpa/inet.h dflcn.h fcntl.h memory.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h unistd.h])
|
| 32 |
|
| 33 |
# Checks for typedefs, structures, and compiler characteristics.
|
| 34 |
AC_C_CONST
|
| 35 |
AC_TYPE_SIZE_T
|
| 36 |
AC_CHECK_HEADERS_ONCE([sys/time.h])
|
| 37 |
# Obsolete code to be removed.
|
| 38 |
if test $ac_cv_header_sys_time_h = yes; then
|
| 39 |
AC_DEFINE([TIME_WITH_SYS_TIME],[1],[Define to 1 if you can safely include both <sys/time.h>
|
| 40 |
and <time.h>. This macro is obsolete.])
|
| 41 |
fi
|
| 42 |
# End of obsolete code.
|
| 43 |
|
| 44 |
AC_STRUCT_TM
|
| 45 |
|
| 46 |
# Checks for library functions.
|
| 47 |
AC_FUNC_FORK
|
| 48 |
AC_FUNC_MALLOC
|
| 49 |
AC_FUNC_SELECT_ARGTYPES
|
| 50 |
|
| 51 |
AC_DEFINE_UNQUOTED([RETSIGTYPE],[$ac_cv_type_signal],[Define as the return type of signal handlers
|
| 52 |
(`int' or `void').])
|
| 53 |
|
| 54 |
AC_FUNC_STRFTIME
|
| 55 |
AC_FUNC_VPRINTF
|
| 56 |
AC_CHECK_FUNCS([bzero dup2 gethostbyname inet_ntoa memset mkdir rmdir regcomp select socket strstr])
|
| 57 |
|
| 58 |
AC_CONFIG_FILES([Makefile
|
| 59 |
src/Makefile
|
| 60 |
utils/Makefile
|
| 61 |
utils/game/Makefile])
|
| 62 |
AC_OUTPUT
|