=================================================================== RCS file: /home/cvsd/home/cvs/ep/configure.in,v retrieving revision 1.15 retrieving revision 1.16 diff -u -p -r1.15 -r1.16 --- ep/configure.in 2002/10/14 22:36:33 1.15 +++ ep/configure.in 2002/10/29 15:44:49 1.16 @@ -1,4 +1,4 @@ -dnl $Platon: ep/configure.in,v 1.14 2002/10/14 14:38:04 nepto Exp $ +dnl $Platon: ep/configure.in,v 1.15 2002/10/14 22:36:33 nepto Exp $ dnl Process this file with autoconf to produce a configure script. AC_INIT(src/main.c) @@ -54,8 +54,39 @@ AC_HAVE_FUNCS(select strstr) dnl 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\ $PLATON_LIBCFGPLUS_NOT_FOUND)) # }}} Checks for libraries. @@ -92,7 +123,7 @@ MODULES_DEP="" AC_MSG_CHECKING(--enable-debug argument) AC_ARG_ENABLE(debug, - [ --enable-debug=N Turn on debuging.], + [ --enable-debug=N Turn on debuging.], debug="${enableval}"; DEBUG_FLAGS="-g -ggdb -DDEBUG=$debug"; AC_MSG_RESULT(${enableval}) ;, debug="no"; AC_MSG_RESULT(no)) @@ -105,7 +136,7 @@ AC_SUBST(DEBUG_FLAGS) AC_MSG_CHECKING(--enable-menu argument) AC_ARG_ENABLE(menu, - [ --enable-menu=N Turn on user's menu.], + [ --enable-menu=N Turn on user's menu.], menu="${enableval}"; AC_MSG_RESULT(${enableval}) ; if test "x$menu" = "xyes"; then