view configure.ac @ 0:ad85b8813e8a

Fetched a URL
author Adam Chlipala <adam@chlipala.net>
date Tue, 11 Jan 2011 10:31:48 -0500
parents
children
line wrap: on
line source
AC_INIT([urweb_feed], [1.0])
AC_USE_SYSTEM_EXTENSIONS
AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define])
AC_PROG_CC()
AC_PROG_LIBTOOL()
AC_CONFIG_MACRO_DIR([m4])

LIBCURL_CHECK_CONFIG(yes, [], [echo >/dev/null], [echo "You must install libcurl development files."; exit 1])

if test [$prefix = "NONE"]; then
    prefix=/usr/local
fi

if test [-z $LIB]; then
    LIB=$prefix/lib/urweb
fi

if test [-z $INCLUDE]; then
    INCLUDE=$prefix/include/urweb
fi

AC_SUBST(LIB)
AC_SUBST(INCLUDE)

AC_CONFIG_FILES([
        Makefile
        src/c/Makefile
        src/ur/config.urp
])

AC_OUTPUT()

cat <<EOF

Ur/Web XML feed library configuration:
  lib directory:       LIB            $LIB
  include directory:   INCLUDE        $INCLUDE
EOF