| 1 |
# -*- Autoconf -*- |
# -*- Autoconf -*- |
| 2 |
# Process this file with autoconf to produce a configure script. |
# Process this file with autoconf to produce a configure script. |
| 3 |
|
|
| 4 |
AC_PREREQ([2.71]) |
AC_PREREQ([2.69]) |
| 5 |
AC_INIT([bbsd],[1.0]) |
AC_INIT([bbsd],[1.0]) |
| 6 |
AC_CONFIG_SRCDIR([src/]) |
AC_CONFIG_SRCDIR([src/]) |
| 7 |
# AM_CONFIG_HEADERS(config.h) |
# AM_CONFIG_HEADERS(config.h) |
| 8 |
AM_INIT_AUTOMAKE |
AC_CONFIG_MACRO_DIRS([m4]) |
| 9 |
|
AM_INIT_AUTOMAKE() |
| 10 |
|
|
| 11 |
# Checks for programs. |
# Checks for programs. |
| 12 |
AC_PROG_GCC_TRADITIONAL |
AC_PROG_GCC_TRADITIONAL |
| 13 |
LT_INIT |
LT_INIT |
|
AC_PROG_RANLIB |
|
| 14 |
AC_PROG_CXX |
AC_PROG_CXX |
| 15 |
AC_PROG_CC |
AC_PROG_CC |
| 16 |
AC_PROG_CPP |
AC_PROG_CPP |
| 22 |
AC_CHECK_LIB([mysqlclient], [mysql_connect]) |
AC_CHECK_LIB([mysqlclient], [mysql_connect]) |
| 23 |
AC_CHECK_LIB([z], [unzip]) |
AC_CHECK_LIB([z], [unzip]) |
| 24 |
|
|
|
# Autoupdate added the next two lines to ensure that your configure |
|
|
# script's behavior did not change. They are probably safe to remove. |
|
|
AC_CHECK_INCLUDES_DEFAULT |
|
|
AC_PROG_EGREP |
|
|
|
|
| 25 |
AC_HEADER_SYS_WAIT |
AC_HEADER_SYS_WAIT |
| 26 |
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]) |
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 mysql.h]) |
| 27 |
|
|
| 28 |
# Checks for typedefs, structures, and compiler characteristics. |
# Checks for typedefs, structures, and compiler characteristics. |
| 29 |
AC_C_CONST |
AC_C_CONST |
| 30 |
AC_TYPE_SIZE_T |
AC_TYPE_SIZE_T |
| 31 |
AC_CHECK_HEADERS_ONCE([sys/time.h]) |
AC_CHECK_HEADERS_ONCE([sys/time.h]) |
|
# Obsolete code to be removed. |
|
|
if test $ac_cv_header_sys_time_h = yes; then |
|
|
AC_DEFINE([TIME_WITH_SYS_TIME],[1],[Define to 1 if you can safely include both <sys/time.h> |
|
|
and <time.h>. This macro is obsolete.]) |
|
|
fi |
|
|
# End of obsolete code. |
|
| 32 |
|
|
| 33 |
AC_STRUCT_TM |
AC_STRUCT_TM |
| 34 |
|
|
| 47 |
AC_CONFIG_FILES([Makefile |
AC_CONFIG_FILES([Makefile |
| 48 |
src/Makefile |
src/Makefile |
| 49 |
utils/Makefile |
utils/Makefile |
| 50 |
utils/game/Makefile]) |
utils/game/Makefile]) |
| 51 |
AC_OUTPUT |
AC_OUTPUT |