./common/autoconf/libraries.m4

Print this page
rev 741 : [mq]: system-icu


 255                # An SFW package seems to be installed!
 256                CUPS_FOUND=yes
 257                CUPS_CFLAGS="-I/opt/sfw/cups/include"
 258             elif test -s /opt/csw/include/cups/cups.h; then
 259                # A CSW package seems to be installed!
 260                CUPS_FOUND=yes
 261                CUPS_CFLAGS="-I/opt/csw/include"
 262             fi
 263             AC_MSG_RESULT([$CUPS_FOUND])
 264         fi
 265         if test "x$CUPS_FOUND" = xno; then 
 266             HELP_MSG_MISSING_DEPENDENCY([cups])
 267             AC_MSG_ERROR([Could not find cups! $HELP_MSG ])
 268         fi
 269 fi
 270 
 271 AC_SUBST(CUPS_CFLAGS)
 272 
 273 ])
 274 







































 275 AC_DEFUN_ONCE([LIB_SETUP_FREETYPE],
 276 [
 277 
 278 ###############################################################################
 279 #
 280 # The ubiquitous freetype2 library is used to render fonts.
 281 #
 282 AC_ARG_WITH(freetype, [AS_HELP_STRING([--with-freetype],
 283         [specify prefix directory for the freetype2 package
 284      (expecting the libraries under PATH/lib and the headers under PATH/include)])])
 285 
 286 # If we are using the OS installed system lib for freetype, then we do not need to copy it to the build tree
 287 USING_SYSTEM_FT_LIB=false
 288 
 289 if test "x$FREETYPE2_NOT_NEEDED" = xyes; then
 290         if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then
 291                 AC_MSG_WARN([freetype not used, so --with-freetype is ignored])
 292         fi
 293         FREETYPE2_CFLAGS=
 294         FREETYPE2_LIBS=




 255                # An SFW package seems to be installed!
 256                CUPS_FOUND=yes
 257                CUPS_CFLAGS="-I/opt/sfw/cups/include"
 258             elif test -s /opt/csw/include/cups/cups.h; then
 259                # A CSW package seems to be installed!
 260                CUPS_FOUND=yes
 261                CUPS_CFLAGS="-I/opt/csw/include"
 262             fi
 263             AC_MSG_RESULT([$CUPS_FOUND])
 264         fi
 265         if test "x$CUPS_FOUND" = xno; then 
 266             HELP_MSG_MISSING_DEPENDENCY([cups])
 267             AC_MSG_ERROR([Could not find cups! $HELP_MSG ])
 268         fi
 269 fi
 270 
 271 AC_SUBST(CUPS_CFLAGS)
 272 
 273 ])
 274 
 275 AC_DEFUN_ONCE([LIB_SETUP_ICU],
 276 [
 277 
 278 ###############################################################################
 279 #
 280 # The ICU LayoutEngine library is used to select the best glyphs to display
 281 #
 282 
 283 AC_ARG_WITH(icu-le, [AS_HELP_STRING([--with-icu-le],
 284         [use icu-le from build system or OpenJDK source (system, bundled) @<:@bundled@:>@])])
 285 
 286 # default is bundled
 287 DEFAULT_ICU_LE=bundled
 288 
 289 AC_MSG_CHECKING([for which icu-le to use])
 290 
 291 #
 292 # if user didn't specify, use DEFAULT_ICU_LE
 293 #
 294 
 295 if test "x${with_icu_le}" = "x"; then
 296     with_icu_le=${DEFAULT_ICU_LE}
 297 fi
 298 
 299 AC_MSG_RESULT(${with_icu_le})
 300 
 301 if test "x${with_icu_le}" = "xbundled"; then
 302     USE_EXTERNAL_ICU_LE=false
 303 else
 304     PKG_CHECK_MODULES(ICU_LE, icu-le)
 305     USE_EXTERNAL_ICU_LE=true
 306 fi
 307 
 308 AC_SUBST(USE_EXTERNAL_ICU_LE)
 309 AC_SUBST(ICU_LE_CFLAGS)
 310 AC_SUBST(ICU_LE_LIBS)
 311 
 312 ])
 313 
 314 AC_DEFUN_ONCE([LIB_SETUP_FREETYPE],
 315 [
 316 
 317 ###############################################################################
 318 #
 319 # The ubiquitous freetype2 library is used to render fonts.
 320 #
 321 AC_ARG_WITH(freetype, [AS_HELP_STRING([--with-freetype],
 322         [specify prefix directory for the freetype2 package
 323      (expecting the libraries under PATH/lib and the headers under PATH/include)])])
 324 
 325 # If we are using the OS installed system lib for freetype, then we do not need to copy it to the build tree
 326 USING_SYSTEM_FT_LIB=false
 327 
 328 if test "x$FREETYPE2_NOT_NEEDED" = xyes; then
 329         if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then
 330                 AC_MSG_WARN([freetype not used, so --with-freetype is ignored])
 331         fi
 332         FREETYPE2_CFLAGS=
 333         FREETYPE2_LIBS=