X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=configure.ac;h=becfda3886de82b6984996c38275453995b69323;hb=c575e458c6257e75b97884847143b20965a5dfda;hp=308d5f4284472e475e8ca63bec8dd089e5de5dcc;hpb=0f1dc61921eef1db8e404a5a82372e2d1cd55daa;p=NeonServV5.git diff --git a/configure.ac b/configure.ac index 308d5f4..becfda3 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,8 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.67]) -AC_INIT([NeonServ], [5.0], [bugs@pk910.de], [neonserv], [http://neonserv.krypton-bouncer.de]) +AC_INIT([NeonServ], [5.2], [bugs@pk910.de], [neonserv], [http://neonserv.krypton-bouncer.de]) +AC_PREFIX_DEFAULT([~/neonserv]) AM_INIT_AUTOMAKE([foreign subdir-objects]) AC_CONFIG_HEADERS([config.h]) @@ -11,21 +12,27 @@ AC_PROG_AWK # Checks for libraries. # Get MySQL library and include locations -AC_ARG_WITH([mysql-include-path], - [AS_HELP_STRING([--with-mysql-include-path], +AC_ARG_WITH([mysql], + [AS_HELP_STRING([--with-mysql=DIR], [location of the MySQL headers, defaults to /usr/include/mysql])], [MYSQL_CFLAGS="-I$withval"], [MYSQL_CFLAGS='-I/usr/include/mysql']) AC_SUBST([MYSQL_CFLAGS]) -AC_ARG_WITH([mysql-lib-path], - [AS_HELP_STRING([--with-mysql-lib-path], [location of the MySQL libraries])], +AC_ARG_WITH([mysql-lib], + [AS_HELP_STRING([--with-mysql-lib=DIR], [location of the MySQL libraries])], [MYSQL_LIBS="-L$withval -lmysqlclient"], [MYSQL_LIBS='-lmysqlclient']) AC_SUBST([MYSQL_LIBS]) +AC_ARG_WITH([winsock], + [AS_HELP_STRING([--with-winsock], [use winsock (WIN32 systems)])], + [WINSOCK_LIBS='-lws2_32'], + [WINSOCK_LIBS='']) +AC_SUBST([WINSOCK_LIBS]) + # Checks for header files. -AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h]) +AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h windows.h winsock2.h]) # Checks for typedefs, structures, and compiler characteristics.