source: trunk/third/libghttp/configure.in @ 15620

Revision 15620, 1.1 KB checked in by ghudson, 24 years ago (diff)
Add ATHTOOLROOT support.
Line 
1AC_INIT(ghttp.h)
2
3AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)
4GHTTP_MAJOR_VERSION=1
5GHTTP_MINOR_VERSION=0
6GHTTP_MICRO_VERSION=9
7GHTTP_VERSION=$GHTTP_MAJOR_VERSION.$GHTTP_MINOR_VERSION.$GHTTP_MICRO_VERSION
8AC_DIVERT_POP()
9
10AC_SUBST(GHTTP_MAJOR_VERSION)
11AC_SUBST(GHTTP_MINOR_VERSION)
12AC_SUBST(GHTTP_MICRO_VERSION)
13AC_SUBST(GHTTP_VERSION)
14
15VERSION=$GHTTP_VERSION
16
17AC_DEFINE_UNQUOTED(GHTTP_MAJOR_VERSION, $GHTTP_MAJOR_VERSION)
18AC_DEFINE_UNQUOTED(GHTTP_MINOR_VERSION, $GHTTP_MINOR_VERSION)
19AC_DEFINE_UNQUOTED(GHTTP_MICRO_VERSION, $GHTTP_MICRO_VERSION)
20
21AM_INIT_AUTOMAKE(libghttp, $VERSION)
22
23GHTTP_LIBDIR='-L$$ATHTOOLROOT${libdir}'
24GHTTP_INCLUDEDIR='-I$$ATHTOOLROOT${includedir}'
25GHTTP_LIBS="-lghttp"
26
27AM_MAINTAINER_MODE
28
29AC_ISC_POSIX
30AC_PROG_CC
31AC_STDC_HEADERS
32AC_ARG_PROGRAM
33AM_PROG_LIBTOOL
34
35AC_CANONICAL_HOST
36case $host in
37*-*-solaris*)
38        GHTTP_LIBDIR="${GHTTP_LIBDIR} -R${libdir}"
39        GHTTP_LIBS="${GHTTP_LIBS} -lsocket -lnsl"
40        ;;
41esac
42
43AC_SUBST(GHTTP_LIBDIR)
44AC_SUBST(GHTTP_LIBS)
45AC_SUBST(GHTTP_INCLUDEDIR)
46AC_SUBST(CFLAGS)
47AC_SUBST(CPPFLAGS)
48AC_SUBST(LDFLAGS)
49
50AC_OUTPUT([
51libghttp.spec
52Makefile])
Note: See TracBrowser for help on using the repository browser.