configure.ac (fb6b49d1) configure.ac (a44fea77)
1dnl /******************************************************************
2dnl * vi:set sw=3 ts=3 et:
3dnl *
4dnl * Name: configure.in
5dnl * Auth: Willem van Dorp, Ross Nicholson, Oisin Boydell - Sun Microsystems Ireland
6dnl * Date: $Date: 2008-09-08 07:38:40 $
7dnl *
8dnl * Desc: This file serves as input for the GNU autoconf package

--- 532 unchanged lines hidden (view full) ---

541 plugin
542],,)
543AC_ARG_WITH(system-neon,
544[ --with-system-neon Use neon already on system
545],,)
546AC_ARG_WITH(system-agg,
547[ --with-system-agg Use AGG already on system
548],,)
1dnl /******************************************************************
2dnl * vi:set sw=3 ts=3 et:
3dnl *
4dnl * Name: configure.in
5dnl * Auth: Willem van Dorp, Ross Nicholson, Oisin Boydell - Sun Microsystems Ireland
6dnl * Date: $Date: 2008-09-08 07:38:40 $
7dnl *
8dnl * Desc: This file serves as input for the GNU autoconf package

--- 532 unchanged lines hidden (view full) ---

541 plugin
542],,)
543AC_ARG_WITH(system-neon,
544[ --with-system-neon Use neon already on system
545],,)
546AC_ARG_WITH(system-agg,
547[ --with-system-agg Use AGG already on system
548],,)
549AC_ARG_ENABLE(hunspell,
550[ --enable-hunspell Determines whether to enable the Hunspell library.
551 If enabled, the library will be built unless you
552 specify --with-system-hunspell to use the library
553 already present on your system.
554 If disabled, the Spell Checking component will also
555 be disabled.
556 (Default: hunspell disabled)
557],,enable_hunspell=no)
549AC_ARG_WITH(system-hunspell,
558AC_ARG_WITH(system-hunspell,
550[ --with-system-hunspell Use libhunspell already on system
559[ --with-system-hunspell Use libhunspell already on system
551],,)
552AC_ARG_WITH(system-mythes,
553[ --with-system-mythes Use mythes already on system
554],,)
560],,)
561AC_ARG_WITH(system-mythes,
562[ --with-system-mythes Use mythes already on system
563],,)
555AC_ARG_WITH(system-altlinuxhyph,
556[ --with-system-altlinuxhyph Use ALTLinuxhyph already on system
564AC_ARG_ENABLE(hyphen,
565[ --enable-hyphen Determines whether to enable the Hyphen library.
566 If enabled, the library will be built unless you
567 specify --with-system-hyphen to use the library
568 already present on your system.
569 If disabled, the Hyphenator component will also
570 be disabled.
571 (Default: hyphen disabled)
572],,enable_hyphen=no)
573AC_ARG_WITH(system-hyphen,
574[ --with-system-hyphen Use libhypeh already on system
557],,)
558AC_ARG_WITH(system-libtextcat,
559[ --with-system-libtextcat Use libtextcat already on system
560],,)
561AC_ARG_WITH(external-libtextcat-data,
562[ --with-system-libtextcat-data Use libtextcat data already on system
563],,)
564AC_ARG_WITH(system-cppunit,

--- 678 unchanged lines hidden (view full) ---

1243AC_MSG_CHECKING([whether to enable copyleft components])
1244if test "$enable_copyleft" != "yes"; then
1245
1246 enable_mozilla="no"
1247 enable_nss_module="no"
1248 enable_gstreamer="no"
1249 with_myspell_dicts="no"
1250
575],,)
576AC_ARG_WITH(system-libtextcat,
577[ --with-system-libtextcat Use libtextcat already on system
578],,)
579AC_ARG_WITH(external-libtextcat-data,
580[ --with-system-libtextcat-data Use libtextcat data already on system
581],,)
582AC_ARG_WITH(system-cppunit,

--- 678 unchanged lines hidden (view full) ---

1261AC_MSG_CHECKING([whether to enable copyleft components])
1262if test "$enable_copyleft" != "yes"; then
1263
1264 enable_mozilla="no"
1265 enable_nss_module="no"
1266 enable_gstreamer="no"
1267 with_myspell_dicts="no"
1268
1251 DISABLE_HUNSPELL="TRUE"
1252 DISABLE_HYPHEN="TRUE"
1253 DISABLE_SAXON="TRUE"
1254
1255 BUILD_EPM="NO"
1256
1257 AC_MSG_RESULT([yes])
1258
1259else
1260
1269 DISABLE_SAXON="TRUE"
1270
1271 BUILD_EPM="NO"
1272
1273 AC_MSG_RESULT([yes])
1274
1275else
1276
1261 DISABLE_HUNSPELL=
1262 DISABLE_HYPHEN=
1263 DISABLE_SAXON=
1264
1265 AC_MSG_RESULT([no])
1266
1267fi
1277 DISABLE_SAXON=
1278
1279 AC_MSG_RESULT([no])
1280
1281fi
1268AC_SUBST(DISABLE_HUNSPELL)
1269AC_SUBST(DISABLE_HYPHEN)
1270AC_SUBST(DISABLE_SAXON)
1271AC_SUBST(BUILD_EPM)
1272
1273
1274AC_MSG_CHECKING([whether to enable native CUPS support])
1275if test "$test_cups" = "yes" -a \( "$enable_cups" = "yes" -o "$enable_cups" = "TRUE" \) ; then
1276 ENABLE_CUPS="TRUE"
1277 AC_MSG_RESULT([yes])

--- 3872 unchanged lines hidden (view full) ---

5150 BUILD_TYPE="$BUILD_TYPE REDLAND"
5151 SYSTEM_REDLAND=NO
5152fi
5153AC_SUBST(SYSTEM_REDLAND)
5154AC_SUBST(REDLAND_CFLAGS)
5155AC_SUBST(REDLAND_LIBS)
5156
5157dnl ===================================================================
1282AC_SUBST(DISABLE_SAXON)
1283AC_SUBST(BUILD_EPM)
1284
1285
1286AC_MSG_CHECKING([whether to enable native CUPS support])
1287if test "$test_cups" = "yes" -a \( "$enable_cups" = "yes" -o "$enable_cups" = "TRUE" \) ; then
1288 ENABLE_CUPS="TRUE"
1289 AC_MSG_RESULT([yes])

--- 3872 unchanged lines hidden (view full) ---

5162 BUILD_TYPE="$BUILD_TYPE REDLAND"
5163 SYSTEM_REDLAND=NO
5164fi
5165AC_SUBST(SYSTEM_REDLAND)
5166AC_SUBST(REDLAND_CFLAGS)
5167AC_SUBST(REDLAND_LIBS)
5168
5169dnl ===================================================================
5158dnl Check for system hunspell
5170dnl Check for hunspell
5159dnl ===================================================================
5171dnl ===================================================================
5172AC_MSG_CHECKING([whether to build the Spell Checking component])
5173ENABLE_HUNSPELL=
5160
5174
5161if test -n "$enable_copyleft" -a "$enable_copyleft" != "no"; then
5162
5163AC_MSG_CHECKING([which libhunspell to use])
5164if test -n "$with_system_hunspell" -o -n "$with_system_libs" && \
5165 test "$with_system_hunspell" != "no"; then
5166 AC_MSG_RESULT([external])
5167 SYSTEM_HUNSPELL=YES
5168 AC_LANG_PUSH([C++])
5169 PKG_CHECK_MODULES(HUNSPELL, hunspell, HUNSPELL_PC="TRUE", HUNSPELL_PC="" )
5170 if test "$HUNSPELL_PC" != "TRUE"; then
5171 AC_CHECK_HEADER(hunspell.hxx, [],
5172 [
5173 AC_CHECK_HEADER(hunspell/hunspell.hxx, [ HUNSPELL_CFLAGS=-I/usr/include/hunspell ],
5174 [AC_MSG_ERROR(hunspell headers not found.)], [])
5175 ], [])
5176 AC_CHECK_LIB(hunspell, main, [],
5177 [ AC_MSG_ERROR(hunspell library not found.) ], [])
5178 HUNSPELL_LIBS=-lhunspell
5179 fi
5180 AC_LANG_POP([C++])
5175if test "x$enable_hunspell" != "xno" ; then
5176 AC_MSG_CHECKING([which libhunspell to use])
5177 if test -n "$with_system_hunspell" -o -n "$with_system_libs" && \
5178 test "$with_system_hunspell" != "no"; then
5179 AC_MSG_RESULT([external])
5180 SYSTEM_HUNSPELL=YES
5181 AC_LANG_PUSH([C++])
5182 PKG_CHECK_MODULES(HUNSPELL, hunspell, HUNSPELL_PC="TRUE", HUNSPELL_PC="" )
5183 if test "$HUNSPELL_PC" != "TRUE"; then
5184 AC_CHECK_HEADER(hunspell.hxx, [],
5185 [AC_CHECK_HEADER(hunspell/hunspell.hxx, [ HUNSPELL_CFLAGS=-I/usr/include/hunspell ],
5186 [AC_MSG_ERROR(hunspell headers not found.)], [])
5187 ], [])
5188 AC_CHECK_LIB(hunspell, main, [],
5189 [ AC_MSG_ERROR(hunspell library not found.) ], [])
5190 HUNSPELL_LIBS=-lhunspell
5191 fi
5192 AC_LANG_POP([C++])
5193 else
5194 AC_MSG_RESULT([internal])
5195 SYSTEM_HUNSPELL=NO
5196 BUILD_TYPE="$BUILD_TYPE HUNSPELL"
5197 fi
5198 ENABLE_HUNSPELL=YES
5199 AC_SUBST(SYSTEM_HUNSPELL)
5200 AC_SUBST(HUNSPELL_CFLAGS)
5201 AC_SUBST(HUNSPELL_LIBS)
5181else
5202else
5182 AC_MSG_RESULT([internal])
5183 SYSTEM_HUNSPELL=NO
5184 BUILD_TYPE="$BUILD_TYPE HUNSPELL"
5203 AC_MSG_RESULT([no])
5185fi
5204fi
5186AC_SUBST(SYSTEM_HUNSPELL)
5187AC_SUBST(HUNSPELL_CFLAGS)
5188AC_SUBST(HUNSPELL_LIBS)
5205AC_SUBST(ENABLE_HUNSPELL)
5189
5190dnl ===================================================================
5206
5207dnl ===================================================================
5191dnl Checking for altlinuxhyph
5208dnl Checking for libhyphen
5192dnl ===================================================================
5209dnl ===================================================================
5193AC_MSG_CHECKING([which altlinuxhyph to use])
5194if test -n "$with_system_altlinuxhyph" -o -n "$with_system_libs" && \
5195 test "$with_system_altlinuxhyph" != "no"; then
5196 AC_MSG_RESULT([external])
5197 SYSTEM_HYPH=YES
5198 AC_CHECK_HEADER(hyphen.h, [],
5199 [ AC_MSG_ERROR(altlinuxhyph headers not found.)], [])
5200 AC_CHECK_MEMBER(struct _HyphenDict.cset, [],
5201 [ AC_MSG_ERROR(no. You are sure you have altlinuyhyph headers?)],
5202 [#include <hyphen.h>])
5203 AC_CHECK_LIB(hyphen, hnj_hyphen_hyphenate2, [HYPHEN_LIB=-lhyphen],
5204 [ AC_MSG_ERROR(altlinuxhyph library not found or too old.)], [])
5205 if test -z "$HYPHEN_LIB"; then
5206 AC_CHECK_LIB(hyph, hnj_hyphen_hyphenate2, [HYPHEN_LIB=-lhyph],
5207 [ AC_MSG_ERROR(altlinuxhyph library not found or too old.)], [])
5210AC_MSG_CHECKING([whether to build the Hyphenator component])
5211ENABLE_HYPHEN=
5212
5213if test "x$enable_hyphen" != "xno" ; then
5214 AC_MSG_CHECKING([which libhyphen to use])
5215 if test -n "$with_system_hyphen" -o -n "$with_system_libs" && \
5216 test "$with_system_hyphen" != "no"; then
5217 AC_MSG_RESULT([external])
5218 SYSTEM_HYPH=YES
5219 AC_CHECK_HEADER(hyphen.h, [],
5220 [ AC_MSG_ERROR(libhyphen headers not found.)], [])
5221 AC_CHECK_MEMBER(struct _HyphenDict.cset, [],
5222 [ AC_MSG_ERROR(no. You are sure you have libhyphen headers?)],
5223 [#include <hyphen.h>])
5224 AC_CHECK_LIB(hyphen, hnj_hyphen_hyphenate2, [HYPHEN_LIB=-lhyphen],
5225 [ AC_MSG_ERROR(libhyphen not found or too old.)], [])
5226 if test -z "$HYPHEN_LIB"; then
5227 AC_CHECK_LIB(hyph, hnj_hyphen_hyphenate2, [HYPHEN_LIB=-lhyph],
5228 [ AC_MSG_ERROR(libhyphen not found or too old.)], [])
5229 fi
5230 if test -z "$HYPHEN_LIB"; then
5231 AC_CHECK_LIB(hnj, hnj_hyphen_hyphenate2, [HYPHEN_LIB=-lhnj],
5232 [ AC_MSG_ERROR(libhyphen not found or too old.)], [])
5233 fi
5234 else
5235 AC_MSG_RESULT([internal])
5236 SYSTEM_HYPH=NO
5237 BUILD_TYPE="$BUILD_TYPE HYPHEN"
5208 fi
5238 fi
5209 if test -z "$HYPHEN_LIB"; then
5210 AC_CHECK_LIB(hnj, hnj_hyphen_hyphenate2, [HYPHEN_LIB=-lhnj],
5211 [ AC_MSG_ERROR(altlinuxhyph library not found or too old.)], [])
5212 fi
5239 ENABLE_HYPHEN=YES
5240 AC_SUBST(SYSTEM_HYPH)
5241 AC_SUBST(HYPHEN_LIB)
5213else
5242else
5214 AC_MSG_RESULT([internal])
5215 SYSTEM_HYPH=NO
5216 BUILD_TYPE="$BUILD_TYPE HYPHEN"
5243 AC_MSG_RESULT([no])
5217fi
5244fi
5218AC_SUBST(SYSTEM_HYPH)
5219AC_SUBST(HYPHEN_LIB)
5245AC_SUBST(ENABLE_HYPHEN)
5220
5221dnl ===================================================================
5222dnl Checking for mythes
5223dnl ===================================================================
5224AC_MSG_CHECKING([which mythes to use])
5225if test -n "$with_system_mythes" -o -n "$with_system_libs" && \
5226 test "$with_system_mythes" != "no"; then
5227 AC_MSG_RESULT([external])

--- 18 unchanged lines hidden (view full) ---

5246 AC_MSG_RESULT([internal])
5247 SYSTEM_MYTHES=NO
5248 BUILD_TYPE="$BUILD_TYPE MYTHES"
5249fi
5250AC_SUBST(SYSTEM_MYTHES)
5251AC_SUBST(MYTHES_CFLAGS)
5252AC_SUBST(MYTHES_LIBS)
5253
5246
5247dnl ===================================================================
5248dnl Checking for mythes
5249dnl ===================================================================
5250AC_MSG_CHECKING([which mythes to use])
5251if test -n "$with_system_mythes" -o -n "$with_system_libs" && \
5252 test "$with_system_mythes" != "no"; then
5253 AC_MSG_RESULT([external])

--- 18 unchanged lines hidden (view full) ---

5272 AC_MSG_RESULT([internal])
5273 SYSTEM_MYTHES=NO
5274 BUILD_TYPE="$BUILD_TYPE MYTHES"
5275fi
5276AC_SUBST(SYSTEM_MYTHES)
5277AC_SUBST(MYTHES_CFLAGS)
5278AC_SUBST(MYTHES_LIBS)
5279
5254fi
5255
5256dnl ===================================================================
5257dnl Checking for libtextcat
5258dnl ===================================================================
5259AC_MSG_CHECKING([which libtextcat to use])
5260if test -n "$with_system_libtextcat" && test "$with_system_libtextcat" != "no"; then
5261 AC_MSG_RESULT([external])
5262 SYSTEM_LIBTEXTCAT=YES

--- 1958 unchanged lines hidden ---
5280
5281dnl ===================================================================
5282dnl Checking for libtextcat
5283dnl ===================================================================
5284AC_MSG_CHECKING([which libtextcat to use])
5285if test -n "$with_system_libtextcat" && test "$with_system_libtextcat" != "no"; then
5286 AC_MSG_RESULT([external])
5287 SYSTEM_LIBTEXTCAT=YES

--- 1958 unchanged lines hidden ---