2 # Copyright (C) 2005 Markus Armbruster
3 # Process this file with autoconf to produce a configure script.
5 # Autoconf makes checking for and programming around assorted ancient
6 # crap relatively painless. But why bother? Just rely on C89 and
7 # POSIX, and when something breaks on some oddball machine, see
8 # whether it's worth fixing.
11 AC_INIT([Empire Client], [4.3.0], [wolfpack@wolfpackempire.com])
12 AC_CONFIG_SRCDIR([empire.6])
13 AC_CONFIG_HEADERS([config.h])
16 ### Checks for programs.
21 ### Checks for libraries.
23 AC_SEARCH_LIBS([setupterm], [termlib termcap])
24 # TODO merge this into LIB_SOCKET_NSL?
27 LIBS="-lws2_32 $LIBS" ;;
31 ### Checks for header files.
34 ### Checks for typedefs, structures, and compiler characteristics.
37 ### Checks for library functions.
39 AC_CHECK_FUNCS(getaddrinfo)
42 ### Site configuration
44 AC_ARG_VAR([EMPIREHOST], [Default host [blitz.wolfpackempire.com]])
45 test "$EMPIREHOST" || EMPIREHOST=blitz.wolfpackempire.com
47 AC_ARG_VAR([EMPIREPORT], [Default port [6789]])
48 test "$EMPIREPORT" || EMPIREPORT=6789
53 AC_CONFIG_FILES([Makefile ipglob.c])