annotate configure.ac @ 0:3c209338e596

Ur/Web module initializes libcurl
author Adam Chlipala <adam@chlipala.net>
date Sun, 26 Dec 2010 12:04:08 -0500
parents
children c230e6da3ff6
rev   line source
adam@0 1 AC_INIT([urweb_openid], [1.0])
adam@0 2 AC_USE_SYSTEM_EXTENSIONS
adam@0 3 AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define])
adam@0 4 AC_PROG_CC()
adam@0 5 AC_PROG_LIBTOOL()
adam@0 6 AC_CONFIG_MACRO_DIR([m4])
adam@0 7
adam@0 8 AX_CHECK_OPENSSL([echo >/dev/null], [echo "You must install OpenSSL development files."; exit 1])
adam@0 9
adam@0 10 LIBCURL_CHECK_CONFIG(yes, [], [echo >/dev/null], [echo "You must install libcurl development files."; exit 1])
adam@0 11
adam@0 12 if test [$prefix = "NONE"]; then
adam@0 13 prefix=/usr/local
adam@0 14 fi
adam@0 15
adam@0 16 if test [-z $LIB]; then
adam@0 17 LIB=$prefix/lib/urweb
adam@0 18 fi
adam@0 19
adam@0 20 if test [-z $INCLUDE]; then
adam@0 21 INCLUDE=$prefix/include/urweb
adam@0 22 fi
adam@0 23
adam@0 24 AC_SUBST(LIB)
adam@0 25 AC_SUBST(INCLUDE)
adam@0 26
adam@0 27 AC_CONFIG_FILES([
adam@0 28 Makefile
adam@0 29 src/c/Makefile
adam@0 30 src/ur/config.urp
adam@0 31 ])
adam@0 32
adam@0 33 AC_OUTPUT()
adam@0 34
adam@0 35 cat <<EOF
adam@0 36
adam@0 37 Ur/Web OpenID library configuration:
adam@0 38 lib directory: LIB $LIB
adam@0 39 include directory: INCLUDE $INCLUDE
adam@0 40 Extra GCC args: GCCARGS $GCCARGS
adam@0 41 EOF