]> git.pond.sub.org Git - empserver/blob - src/client/configure.ac
New build process for the standalone client distribution.
[empserver] / src / client / configure.ac
1 #                                               -*- Autoconf -*-
2 # Copyright (C) 2005 Markus Armbruster
3 # Process this file with autoconf to produce a configure script.
4
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.
9
10 AC_PREREQ(2.59)
11 AC_INIT([Empire Client], [4.3.0], [wolfpack@wolfpackempire.com])
12 AC_CONFIG_SRCDIR([empire.6])
13 AC_CONFIG_HEADERS([config.h])
14
15
16 ### Checks for programs.
17 AC_PROG_CC
18 AC_PROG_INSTALL
19
20
21 ### Checks for libraries.
22 LIB_SOCKET_NSL
23 AC_SEARCH_LIBS([setupterm], [termlib termcap])
24 # TODO merge this into LIB_SOCKET_NSL?
25 case "$host_os" in
26 *mingw32)
27     LIBS="-lws2_32 $LIBS" ;;
28 esac
29
30
31 ### Checks for header files.
32
33
34 ### Checks for typedefs, structures, and compiler characteristics.
35
36
37 ### Checks for library functions.
38
39 AC_CHECK_FUNCS(getaddrinfo)
40
41
42 ### Site configuration
43
44 AC_ARG_VAR([EMPIREHOST], [Default host [blitz.wolfpackempire.com]])
45 test "$EMPIREHOST" || EMPIREHOST=blitz.wolfpackempire.com
46
47 AC_ARG_VAR([EMPIREPORT], [Default port [6789]])
48 test "$EMPIREPORT" || EMPIREPORT=6789
49
50
51 ### Output
52
53 AC_CONFIG_FILES([Makefile ipglob.c])
54 AC_OUTPUT