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