Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, April 20, 2024

File: [Platon] / ep / configure.in (download)

Revision 1.9, Fri May 31 17:05:20 2002 UTC (21 years, 10 months ago) by jombik9

Changes since 1.8: +8 -4 lines

C++ compiler tests removed.

dnl $Id: configure.in,v 1.9 2002/05/31 17:05:20 jombik9 Exp $

dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/main.c, 1.0, platon@pobox.sk)

PACKAGE="ep"
VERSION="1.0"

# AC_CONFIG_HEADER {{{
AC_CONFIG_HEADER(config.h)
# }}} AC_CONFIG_HEADER

dnl Checks for programs.
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_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_CHECK_PROG(STRIP, strip, strip, :)

dnl Checks for library functions.
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
AC_HAVE_FUNCS(select strstr)

dnl Checks for libraries.
dnl Replace `main' with a function in -lncurses:
dnl AC_CHECK_LIB(ncurses, main)

dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
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.
AC_C_CONST

dnl Checks for library functions.
AC_CHECK_FUNCS(select strstr)

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)


Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top