version 1.2, 2001/09/21 19:40:13 |
version 1.9, 2002/05/31 17:05:20 |
|
|
dnl $Log$ |
dnl $Id$ |
dnl Revision 1.2 2001/09/21 19:40:13 host8 |
|
dnl Added $Log$ keyword substitution |
|
dnl |
|
|
|
dnl Process this file with autoconf to produce a configure script. |
dnl Process this file with autoconf to produce a configure script. |
AC_INIT(src/main.c) |
AC_INIT(src/main.c, 1.0, platon@pobox.sk) |
AM_INIT_AUTOMAKE(ep, 1.0.1nosig) |
|
AM_CONFIG_HEADER(config.h) |
PACKAGE="ep" |
|
VERSION="1.0" |
|
|
|
# AC_CONFIG_HEADER {{{ |
|
AC_CONFIG_HEADER(config.h) |
|
# }}} AC_CONFIG_HEADER |
|
|
dnl Checks for programs. |
dnl Checks for programs. |
AC_PROG_CC |
AC_PROG_CC |
|
|
|
# We don't need C++ compiler test now |
|
# Nepto [30/5/2002] |
|
#AC_PROG_CXX |
|
#AC_PROG_CPP |
|
|
|
AC_GCC_TRADITIONAL |
|
if test "X$CC" = "Xgcc"; then |
|
CFLAGS="-Wall $CFLAGS" |
|
fi |
AC_PROG_AWK |
AC_PROG_AWK |
AC_PROG_INSTALL |
AC_PROG_INSTALL |
AC_PROG_LN_S |
AC_PROG_LN_S |
AC_PROG_MAKE_SET |
AC_PROG_MAKE_SET |
|
AC_PROG_RANLIB |
|
AC_CHECK_PROG(STRIP, strip, strip, :) |
|
|
dnl Checks for library functions. |
dnl Checks for library functions. |
AC_PROG_GCC_TRADITIONAL |
|
AC_TYPE_SIGNAL |
AC_TYPE_SIGNAL |
AC_FUNC_VPRINTF |
AC_FUNC_VPRINTF |
AC_HAVE_FUNCS(select strstr) |
AC_HAVE_FUNCS(select strstr) |
Line 28 dnl AC_CHECK_LIB(ncurses, main) |
|
Line 41 dnl AC_CHECK_LIB(ncurses, main) |
|
dnl Checks for header files. |
dnl Checks for header files. |
AC_HEADER_STDC |
AC_HEADER_STDC |
AC_HEADER_SYS_WAIT |
AC_HEADER_SYS_WAIT |
AC_CHECK_HEADERS(malloc.h sys/time.h unistd.h) |
AC_CHECK_HEADERS(ctype.h errno.h float.h limits.h malloc.h \ |
|
math.h ncurses.h stdarg.h stdio.h stdlib.h \ |
|
string.h strings.h sys/time.h unistd.h) |
|
|
dnl Checks for typedefs, structures, and compiler characteristics. |
dnl Checks for typedefs, structures, and compiler characteristics. |
AC_C_CONST |
AC_C_CONST |
|
|
dnl Checks for library functions. |
dnl Checks for library functions. |
AC_CHECK_FUNCS(select strstr) |
AC_CHECK_FUNCS(select strstr) |
|
|
AC_OUTPUT(Makefile src/Makefile) |
dnl User defined features |
|
AC_MSG_CHECKING(--enable-debug argument) |
|
AC_ARG_ENABLE(debug, |
|
[ --enable-debug=N Turn on debuging.], |
|
debug="${enableval}"; DEBUG_FLAGS="-g -ggdb -DDEBUG=$debug"; |
|
AC_MSG_RESULT(${enableval}) ;, |
|
debug="no"; AC_MSG_RESULT(no)) |
|
if test "$debug" = "yes"; then |
|
dnl Commented by Nepto [27/5/2002] |
|
dnl DEBUG_FLAGS="-Wshadow -g -ggdb -DDEBUG=1" |
|
DEBUG_FLAGS="-g -ggdb -DDEBUG=1" |
|
fi |
|
AC_SUBST(DEBUG_FLAGS) |
|
|
|
AC_SUBST(PACKAGE) |
|
AC_SUBST(VERSION) |
|
|
|
AC_SUBST(MODULES) |
|
AC_SUBST(MODULES_FLAGS) |
|
AC_SUBST(MODULES_LIBS) |
|
AC_SUBST(MODULES_SRC) |
|
AC_SUBST(MODULES_HDR) |
|
AC_SUBST(MODULES_OBJ) |
|
|
|
|
|
AC_OUTPUT(Makefile src/Makefile config.h) |
|
|