1 # Process this file with autoconf to produce a configure script.
4 AC_INIT([NeonServ], [5.0], [bugs@pk910.de], [neonserv], [http://neonserv.krypton-bouncer.de])
5 AM_INIT_AUTOMAKE([foreign subdir-objects])
6 AC_CONFIG_HEADERS([config.h])
12 # Checks for libraries.
13 # Get MySQL library and include locations
15 [AS_HELP_STRING([--with-mysql=DIR],
16 [location of the MySQL headers, defaults to /usr/include/mysql])],
17 [MYSQL_CFLAGS="-I$withval"],
18 [MYSQL_CFLAGS='-I/usr/include/mysql'])
19 AC_SUBST([MYSQL_CFLAGS])
21 AC_ARG_WITH([mysql-lib],
22 [AS_HELP_STRING([--with-mysql-lib=DIR], [location of the MySQL libraries])],
23 [MYSQL_LIBS="-L$withval -lmysqlclient"],
24 [MYSQL_LIBS='-lmysqlclient'])
25 AC_SUBST([MYSQL_LIBS])
27 AC_ARG_WITH([winsock],
28 [AS_HELP_STRING([--with-winsock], [use winsock (WIN32 systems)])],
29 [WINSOCK_LIBS='-lws2_32'],
31 AC_SUBST([WINSOCK_LIBS])
33 # Checks for header files.
34 AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h windows.h winsock2.h])
36 # Checks for typedefs, structures, and compiler characteristics.
38 # Checks for library functions.
40 AC_CHECK_FUNCS([gethostbyname memset select socket strchr strdup strstr])
42 AC_CONFIG_FILES([Makefile])