configure.ac 963 Bytes
AC_PREREQ(2.59)
AC_INIT(gameserver, 0.0.0, BUG-REPORT-ADDRESS)
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_SRCDIR([src/gameserver.c])
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE

AC_CANONICAL_HOST

# Checks for programs.
AC_PROG_CC
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([getopt.h libintl.h locale.h stdlib.h string.h unistd.h wchar.h])


# Checks for libraries.
AM_GNU_GETTEXT([external])
AC_MSG_CHECKING([intl])
AC_MSG_RESULT([$LIBINTL])
AM_GNU_GETTEXT_VERSION(0.13.1)
localedir=`eval echo $datadir/locale`
AC_DEFINE_UNQUOTED(LOCALEDIR, "$localedir", [Name of gettext locale directory])
THREAD_LIB=
THREAD_CFLAGS=
AC_SUBST(SOCK_LIB)
AC_SUBST(THREAD_LIB)
AC_SUBST(THREAD_CFLAGS)

AM_PROG_CC_C_O

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST

# Checks for library functions.
AC_CHECK_FUNCS([memset setlocale])

AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([src/Makefile])

AC_OUTPUT