New build process for the standalone client distribution.

This commit is contained in:
Markus Armbruster 2006-01-22 21:57:06 +00:00
parent a9d92eb84c
commit c4ffd0a576
4 changed files with 178 additions and 35 deletions

54
src/client/configure.ac Normal file
View file

@ -0,0 +1,54 @@
# -*- Autoconf -*-
# Copyright (C) 2005 Markus Armbruster
# Process this file with autoconf to produce a configure script.
# Autoconf makes checking for and programming around assorted ancient
# crap relatively painless. But why bother? Just rely on C89 and
# POSIX, and when something breaks on some oddball machine, see
# whether it's worth fixing.
AC_PREREQ(2.59)
AC_INIT([Empire Client], [4.3.0], [wolfpack@wolfpackempire.com])
AC_CONFIG_SRCDIR([empire.6])
AC_CONFIG_HEADERS([config.h])
### Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
### Checks for libraries.
LIB_SOCKET_NSL
AC_SEARCH_LIBS([setupterm], [termlib termcap])
# TODO merge this into LIB_SOCKET_NSL?
case "$host_os" in
*mingw32)
LIBS="-lws2_32 $LIBS" ;;
esac
### Checks for header files.
### Checks for typedefs, structures, and compiler characteristics.
### Checks for library functions.
AC_CHECK_FUNCS(getaddrinfo)
### Site configuration
AC_ARG_VAR([EMPIREHOST], [Default host [blitz.wolfpackempire.com]])
test "$EMPIREHOST" || EMPIREHOST=blitz.wolfpackempire.com
AC_ARG_VAR([EMPIREPORT], [Default port [6789]])
test "$EMPIREPORT" || EMPIREPORT=6789
### Output
AC_CONFIG_FILES([Makefile ipglob.c])
AC_OUTPUT