version 1.15, 2002/10/14 22:36:33 |
version 1.21, 2003/11/28 17:35:10 |
|
|
dnl $Platon: ep/configure.in,v 1.14 2002/10/14 14:38:04 nepto Exp $ |
dnl $Platon: ep/configure.in,v 1.20 2003/06/19 11:38:00 nepto Exp $ |
|
|
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) |
|
|
PACKAGE="ep" |
PACKAGE="ep" |
VERSION="1.0pre3" |
VERSION="1.0pre5" |
|
DATE="2003-06-19" |
|
DATE_HUMAN="19th Juny 2003" |
|
MANVOLNUM=1 |
|
|
AC_SUBST(PACKAGE) |
AC_SUBST(PACKAGE) |
AC_SUBST(VERSION) |
AC_SUBST(VERSION) |
|
AC_SUBST(DATE) |
|
AC_SUBST(DATE_HUMAN) |
|
AC_SUBST(MANVOLNUM) |
|
|
PLATON_LIBCFGPLUS_NOT_FOUND=' |
PLATON_LIBCFGPLUS_NOT_FOUND=' |
============================================================ |
============================================================ |
Line 16 PLATON_LIBCFGPLUS_NOT_FOUND=' |
|
Line 22 PLATON_LIBCFGPLUS_NOT_FOUND=' |
|
libcfg+ is command line and config file parsing library. |
libcfg+ is command line and config file parsing library. |
You can get libcfg+ sources and binary packages from |
You can get libcfg+ sources and binary packages from |
|
|
http://www.platon.sk/projects/libcfg+/ |
http://platon.sk/projects/libcfg+/ |
|
|
============================================================'; |
============================================================'; |
|
|
Line 54 AC_HAVE_FUNCS(select strstr) |
|
Line 60 AC_HAVE_FUNCS(select strstr) |
|
|
|
dnl Checks for libraries. |
dnl Checks for libraries. |
# Checks for libraries. {{{ |
# Checks for libraries. {{{ |
dnl Replace `main' with a function in -lncurses: |
|
dnl AC_CHECK_LIB(ncurses, main) |
dnl |
|
dnl libcfg+ may be installed in not standard place, check for it |
|
dnl |
|
AC_ARG_WITH(libcfg-includes, |
|
[ --with-libcfg-includes=DIR Specify location of libcfg headers], |
|
[CFLAGS="$CFLAGS -I$withval"; CPPFLAGS="$CPPFLAGS -I$withval"] |
|
) |
|
AC_ARG_WITH(libcfg-libs, |
|
[ --with-libcfg-libs=DIR Specify location of libcfg libs], |
|
[LDFLAGS="$LDFLAGS -L$withval" libcfg_prefix=$withval] |
|
) |
|
|
|
AC_ARG_WITH(libcfg, |
|
[ --with-libcfg=DIR Specify prefix for libcfg files], |
|
if test x$withval = xyes; then |
|
want_libcfg=yes |
|
ifelse([$1], [], :, [$1]) |
|
else |
|
if test "x$withval" = xno; then |
|
want_libcfg=no |
|
else |
|
want_libcfg=yes |
|
CFLAGS="$CFLAGS -I$withval/include" |
|
CPPFLAGS="$CPPFLAGS -I$withval/include" |
|
LDFLAGS="$LDFLAGS -L$withval/lib" |
|
fi |
|
fi, |
|
want_libcfg=yes |
|
) |
|
|
|
|
|
|
AC_CHECK_LIB(cfg+, cfg_get_context, [], AC_ERROR(libcfg+ library not found\ |
AC_CHECK_LIB(cfg+, cfg_get_context, [], AC_ERROR(libcfg+ library not found\ |
$PLATON_LIBCFGPLUS_NOT_FOUND)) |
$PLATON_LIBCFGPLUS_NOT_FOUND)) |
# }}} Checks for libraries. |
# }}} Checks for libraries. |
|
|
|
|
AC_MSG_CHECKING(--enable-debug argument) |
AC_MSG_CHECKING(--enable-debug argument) |
AC_ARG_ENABLE(debug, |
AC_ARG_ENABLE(debug, |
[ --enable-debug=N Turn on debuging.], |
[ --enable-debug=N Turn on debuging.], |
debug="${enableval}"; DEBUG_FLAGS="-g -ggdb -DDEBUG=$debug"; |
debug="${enableval}"; DEBUG_FLAGS="-g -ggdb -DDEBUG=$debug"; |
AC_MSG_RESULT(${enableval}) ;, |
AC_MSG_RESULT(${enableval}) ;, |
debug="no"; AC_MSG_RESULT(no)) |
debug="no"; AC_MSG_RESULT(no)) |
Line 105 AC_SUBST(DEBUG_FLAGS) |
|
Line 142 AC_SUBST(DEBUG_FLAGS) |
|
|
|
AC_MSG_CHECKING(--enable-menu argument) |
AC_MSG_CHECKING(--enable-menu argument) |
AC_ARG_ENABLE(menu, |
AC_ARG_ENABLE(menu, |
[ --enable-menu=N Turn on user's menu.], |
[ --enable-menu=N Turn on user's menu.], |
menu="${enableval}"; |
menu="${enableval}"; |
AC_MSG_RESULT(${enableval}) ; |
AC_MSG_RESULT(${enableval}) ; |
if test "x$menu" = "xyes"; then |
if test "x$menu" = "xyes"; then |
Line 142 AC_SUBST(MODULES_DEP) |
|
Line 179 AC_SUBST(MODULES_DEP) |
|
# }}} User defined features. |
# }}} User defined features. |
|
|
|
|
AC_OUTPUT(config.h Makefile src/Makefile doc/Makefile) |
AC_OUTPUT(config.h |
|
Makefile |
|
Rules.make |
|
src/Makefile |
|
doc/Makefile |
|
doc/man/ep.1) |
|
|
# vim600: fdm=marker fdc=3 |
# vim600: fdm=marker fdc=3 |
|
|