~ubuntu-branches/ubuntu/lucid/tidy/lucid

« back to all changes in this revision

Viewing changes to build/gnuauto/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Jason Thomas
  • Date: 2008-01-20 21:46:03 UTC
  • mfrom: (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080120214603-poklofici9og61tx
Tags: 20080116cvs-2
* debian/control: build depends on xsltproc
  (closes: #461608)
* debian/tidy.preinst,postinst: add code to move old config file
  (closes: #461623)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# configure.in - HTML TidyLib GNU autoconf input file
2
 
#
3
 
# Copyright (c) 2003-2004 World Wide Web Consortium
4
 
# (Massachusetts Institute of Technology, European Research 
5
 
# Consortium for Informatics and Mathematics, Keio University).
6
 
# All Rights Reserved.
7
 
#
8
 
# CVS Info :
9
 
#
10
 
#   $Author: terry_teague $ 
11
 
#   $Date: 2004/08/02 02:13:09 $ 
12
 
#   $Revision: 1.2 $ 
13
 
#
14
 
 
15
 
AC_INIT([include/tidy.h])
16
 
 
17
 
# Making releases:
18
 
19
 
#   TIDY_MICRO_VERSION += 1;
20
 
#   TIDY_INTERFACE_AGE += 1;
21
 
#   TIDY_BINARY_AGE += 1;
22
 
23
 
# if any functions have been added, set TIDY_INTERFACE_AGE to 0.
24
 
# if backwards compatibility has been broken,
25
 
# set TIDY_BINARY_AGE and TIDY_INTERFACE_AGE to 0.
26
 
27
 
TIDY_MAJOR_VERSION=0
28
 
TIDY_MINOR_VERSION=99
29
 
TIDY_MICRO_VERSION=0
30
 
TIDY_INTERFACE_AGE=0
31
 
TIDY_BINARY_AGE=0
32
 
 
33
 
LIBTIDY_VERSION=$TIDY_MAJOR_VERSION.$TIDY_MINOR_VERSION.$TIDY_MICRO_VERSION
34
 
 
35
 
AC_SUBST(LIBTIDY_VERSION)
36
 
 
37
 
# libtool versioning
38
 
39
 
LT_RELEASE=$TIDY_MAJOR_VERSION.$TIDY_MINOR_VERSION
40
 
LT_CURRENT=`expr $TIDY_MICRO_VERSION - $TIDY_INTERFACE_AGE`
41
 
LT_REVISION=$TIDY_INTERFACE_AGE
42
 
LT_AGE=`expr $TIDY_BINARY_AGE - $TIDY_INTERFACE_AGE`
43
 
 
44
 
AC_SUBST(LT_RELEASE)
45
 
AC_SUBST(LT_CURRENT)
46
 
AC_SUBST(LT_REVISION)
47
 
AC_SUBST(LT_AGE)
48
 
 
49
 
AM_INIT_AUTOMAKE(tidy,$LIBTIDY_VERSION)
50
 
 
51
 
# Checks for programs.
52
 
 
53
 
# =============================================
54
 
# AC_PROG_CC has a habit of adding -g to CFLAGS
55
 
56
 
save_cflags="$CFLAGS"
57
 
 
58
 
AC_PROG_CC
59
 
if test "x$GCC" = "xyes"; then
60
 
        WARNING_CFLAGS="-Wall -Wno-switch -Wno-parentheses -Wno-unused"
61
 
else
62
 
        WARNING_CFLAGS=""
63
 
fi
64
 
AC_SUBST(WARNING_CFLAGS)
65
 
 
66
 
debug_build=no
67
 
AC_ARG_ENABLE(debug,[  --enable-debug          add -g (instead of -O2) to CFLAGS],[
68
 
        if test "x$enableval" = "xyes"; then
69
 
                debug_build=yes
70
 
        fi
71
 
])
72
 
if test $debug_build = yes; then
73
 
        CFLAGS="$save_cflags -g"
74
 
else
75
 
        CFLAGS="-O2 $save_cflags"
76
 
fi
77
 
78
 
# =============================================
79
 
 
80
 
AC_PROG_CPP
81
 
AC_PROG_CXX
82
 
AC_PROG_INSTALL
83
 
AC_PROG_LN_S
84
 
AC_PROG_LIBTOOL
85
 
AC_PROG_MAKE_SET
86
 
 
87
 
support_access=yes
88
 
AC_ARG_ENABLE(access,[  --enable-access         support accessibility checks],[
89
 
        if test "x$enableval" = "xno"; then
90
 
                support_access=no
91
 
        fi
92
 
])
93
 
if test $support_access = yes; then
94
 
        AC_DEFINE(SUPPORT_ACCESSIBILITY_CHECKS,1)
95
 
else
96
 
        AC_DEFINE(SUPPORT_ACCESSIBILITY_CHECKS,0)
97
 
fi
98
 
 
99
 
support_utf16=yes
100
 
AC_ARG_ENABLE(utf16,[  --enable-utf16          support UTF-16 encoding],[
101
 
        if test "x$enableval" = "xno"; then
102
 
                support_utf16=no
103
 
        fi
104
 
])
105
 
if test $support_utf16 = yes; then
106
 
        AC_DEFINE(SUPPORT_UTF16_ENCODINGS,1)
107
 
else
108
 
        AC_DEFINE(SUPPORT_UTF16_ENCODINGS,0)
109
 
fi
110
 
 
111
 
support_asian=yes
112
 
AC_ARG_ENABLE(asian,[  --enable-asian          support asian encodings],[
113
 
        if test "x$enableval" = "xno"; then
114
 
                support_asian=no
115
 
        fi
116
 
])
117
 
if test $support_asian = yes; then
118
 
        AC_DEFINE(SUPPORT_ASIAN_ENCODINGS,1)
119
 
else
120
 
        AC_DEFINE(SUPPORT_ASIAN_ENCODINGS,0)
121
 
fi
122
 
 
123
 
# TODO: this defines "WITH_DMALLOC" but tidy expects "DMALLOC"
124
 
#       need to do: #if defined(DMALLOC) || defined(WITH_DMALLOC)
125
 
126
 
AM_WITH_DMALLOC
127
 
 
128
 
AC_OUTPUT([
129
 
        Makefile
130
 
        src/Makefile
131
 
        console/Makefile
132
 
        include/Makefile
133
 
])