comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:3c209338e596
1 AC_INIT([urweb_openid], [1.0])
2 AC_USE_SYSTEM_EXTENSIONS
3 AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define])
4 AC_PROG_CC()
5 AC_PROG_LIBTOOL()
6 AC_CONFIG_MACRO_DIR([m4])
7
8 AX_CHECK_OPENSSL([echo >/dev/null], [echo "You must install OpenSSL development files."; exit 1])
9
10 LIBCURL_CHECK_CONFIG(yes, [], [echo >/dev/null], [echo "You must install libcurl development files."; exit 1])
11
12 if test [$prefix = "NONE"]; then
13 prefix=/usr/local
14 fi
15
16 if test [-z $LIB]; then
17 LIB=$prefix/lib/urweb
18 fi
19
20 if test [-z $INCLUDE]; then
21 INCLUDE=$prefix/include/urweb
22 fi
23
24 AC_SUBST(LIB)
25 AC_SUBST(INCLUDE)
26
27 AC_CONFIG_FILES([
28 Makefile
29 src/c/Makefile
30 src/ur/config.urp
31 ])
32
33 AC_OUTPUT()
34
35 cat <<EOF
36
37 Ur/Web OpenID library configuration:
38 lib directory: LIB $LIB
39 include directory: INCLUDE $INCLUDE
40 Extra GCC args: GCCARGS $GCCARGS
41 EOF