📄 configure.in
字号:
dynamic_modules=""case x$with_dynamic_modules in xyes|x) dynamic_modules=$all_modules ;; xno) dynamic_modules="" ;; *) dynamic_modules=$with_dynamic_modules ;;esacAC_MSG_RESULT([$dynamic_modules (those built into Pango will be excluded)])AM_CONDITIONAL(HAVE_DYNAMIC_MODULES, test "x$dynamic_modules" != x)INCLUDED_X_MODULES=INCLUDED_FC_MODULES=INCLUDED_WIN32_MODULES=INCLUDED_ATSUI_MODULES=INCLUDED_LANG_MODULES=AC_SUBST(INCLUDED_X_MODULES)AC_SUBST(INCLUDED_FC_MODULES)AC_SUBST(INCLUDED_WIN32_MODULES)AC_SUBST(INCLUDED_ATSUI_MODULES)AC_SUBST(INCLUDED_LANG_MODULES)IFS="${IFS= }"; pango_save_ifs="$IFS"; IFS=", "for module in $included_modules; do case $indic_modules in *$module*) dir=indic ;; *) dir=`echo $module | sed "s/-.*//"` ;; esac included_path="\$(top_builddir)/modules/$dir/libpango-$module.la" case $module in *-x) INCLUDED_X_MODULES="$INCLUDED_X_MODULES $included_path" ;; *-fc) INCLUDED_FC_MODULES="$INCLUDED_FC_MODULES $included_path" ;; *-win32) INCLUDED_WIN32_MODULES="$INCLUDED_WIN32_MODULES $included_path" ;; *-atsui) INCLUDED_ATSUI_MODULES="$INCLUDED_ATSUI_MODULES $included_path" ;; *-lang) INCLUDED_LANG_MODULES="$INCLUDED_LANG_MODULES $included_path" ;; *) AC_MSG_ERROR([specified module $module not recognized]) ;; esacdoneIFS="$pango_save_ifs"AM_CONDITIONAL(INCLUDE_ARABIC_FC, echo $included_modules | egrep '(^|,)arabic-fc($|,)' > /dev/null)AM_CONDITIONAL(INCLUDE_ARABIC_LANG, echo $included_modules | egrep '(^|,)arabic-lang($|,)' > /dev/null)AM_CONDITIONAL(INCLUDE_BASIC_FC, echo $included_modules | egrep '(^|,)basic-fc($|,)' > /dev/null)AM_CONDITIONAL(INCLUDE_BASIC_WIN32, echo $included_modules | egrep '(^|,)basic-win32($|,)' > /dev/null)AM_CONDITIONAL(INCLUDE_BASIC_X, echo $included_modules | egrep '(^|,)basic-x($|,)' > /dev/null)AM_CONDITIONAL(INCLUDE_BASIC_ATSUI, echo $included_modules | egrep '(^|,)basic-atsui($|,)' > /dev/null)AM_CONDITIONAL(INCLUDE_HANGUL_FC, echo $included_modules | egrep '(^|,)hangul-fc($|,)' > /dev/null)AM_CONDITIONAL(INCLUDE_HEBREW_FC, echo $included_modules | egrep '(^|,)hebrew-fc($|,)' > /dev/null)AM_CONDITIONAL(INCLUDE_INDIC_FC, echo $included_modules | egrep '(^|,)indic-fc($|,)' > /dev/null)AM_CONDITIONAL(INCLUDE_INDIC_LANG, echo $included_modules | egrep '(^|,)indic-lang($|,)' > /dev/null)AM_CONDITIONAL(INCLUDE_KHMER_FC, echo $included_modules | egrep '(^|,)khmer-fc($|,)' > /dev/null)AM_CONDITIONAL(INCLUDE_SYRIAC_FC, echo $included_modules | egrep '(^|,)syriac-fc($|,)' > /dev/null)AM_CONDITIONAL(INCLUDE_THAI_FC, echo $included_modules | egrep '(^|,)thai-fc($|,)' > /dev/null)AM_CONDITIONAL(INCLUDE_THAI_LANG, echo $included_modules | egrep '(^|,)thai-lang($|,)' > /dev/null)AM_CONDITIONAL(INCLUDE_TIBETAN_FC, echo $included_modules | egrep '(^|,)tibetan-fc($|,)' > /dev/null)AM_CONDITIONAL(DYNAMIC_ARABIC_FC, echo $dynamic_modules | egrep '(^|,)arabic-fc($|,)' > /dev/null)AM_CONDITIONAL(DYNAMIC_ARABIC_LANG, echo $dynamic_modules | egrep '(^|,)arabic-lang($|,)' > /dev/null)AM_CONDITIONAL(DYNAMIC_BASIC_FC, echo $dynamic_modules | egrep '(^|,)basic-fc($|,)' > /dev/null)AM_CONDITIONAL(DYNAMIC_BASIC_WIN32, echo $dynamic_modules | egrep '(^|,)basic-win32($|,)' > /dev/null)AM_CONDITIONAL(DYNAMIC_BASIC_X, echo $dynamic_modules | egrep '(^|,)basic-x($|,)' > /dev/null)AM_CONDITIONAL(DYNAMIC_BASIC_ATSUI, echo $dynamic_modules | egrep '(^|,)basic-atsui($|,)' > /dev/null)AM_CONDITIONAL(DYNAMIC_HANGUL_FC, echo $dynamic_modules | egrep '(^|,)hangul-fc($|,)' > /dev/null)AM_CONDITIONAL(DYNAMIC_HEBREW_FC, echo $dynamic_modules | egrep '(^|,)hebrew-fc($|,)' > /dev/null)AM_CONDITIONAL(DYNAMIC_INDIC_FC, echo $dynamic_modules | egrep '(^|,)indic-fc($|,)' > /dev/null)AM_CONDITIONAL(DYNAMIC_INDIC_LANG, echo $dynamic_modules | egrep '(^|,)indic-lang($|,)' > /dev/null)AM_CONDITIONAL(DYNAMIC_KHMER_FC, echo $dynamic_modules | egrep '(^|,)khmer-fc($|,)' > /dev/null)AM_CONDITIONAL(DYNAMIC_SYRIAC_FC, echo $dynamic_modules | egrep '(^|,)syriac-fc($|,)' > /dev/null)AM_CONDITIONAL(DYNAMIC_THAI_FC, echo $dynamic_modules | egrep '(^|,)thai-fc($|,)' > /dev/null)AM_CONDITIONAL(DYNAMIC_THAI_LANG, echo $dynamic_modules | egrep '(^|,)thai-lang($|,)' > /dev/null)AM_CONDITIONAL(DYNAMIC_TIBETAN_FC, echo $dynamic_modules | egrep '(^|,)tibetan-fc($|,)' > /dev/null)## We use flockfile to implement pango_getline() - should be moved to GLib# strtok_r isn't present on some systems#AC_CHECK_FUNCS(flockfile strtok_r)dnl **************************dnl *** Checks for gtk-doc ***dnl **************************if $have_cairo ; then : ; else if test x$enable_gtk_doc = xyes ; then AC_MSG_WARN([Cairo not present, disabling doc building]) enable_gtk_doc=no fifiGTK_DOC_CHECK([1.0])AC_ARG_ENABLE(man, AC_HELP_STRING([--enable-man], [regenerate man pages from Docbook @<:@default=no@:>@]), enable_man=yes, enable_man=no)if test "x$enable_man" != xno ; then dnl dnl Check for xsltproc dnl AC_PATH_PROG([XSLTPROC], [xsltproc]) if test -z "$XSLTPROC"; then enable_man=no fifiif test "x$enable_man" != xno ; then dnl check for DocBook DTD and stylesheets in the local catalog. JH_CHECK_XML_CATALOG([-//OASIS//DTD DocBook XML V4.1.2//EN], [DocBook XML DTD V4.1.2],,enable_man=no) JH_CHECK_XML_CATALOG([http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl], [DocBook XSL Stylesheets],,enable_man=no)fiAM_CONDITIONAL(ENABLE_MAN, test x$enable_man != xno)AC_ARG_ENABLE(doc-cross-references, AC_HELP_STRING([--disable-doc-cross-references], [cross reference glib and cairo symbols @<:@default=yes@:>@]), enable_doc_cross_references=$enableval, enable_doc_cross_references=yes)if test "x$enable_doc_cross_references" != xno ; then GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`" CAIRO_PREFIX="`pkg-config --variable=prefix cairo`" AC_SUBST(GLIB_PREFIX) AC_SUBST(CAIRO_PREFIX)fiAM_CONDITIONAL(ENABLE_DOC_CROSS_REFERENCES, test x$enable_doc_cross_references != xno)dnl ********************************************************dnl * Options to pass to libtooldnl ********************************************************# Note that -module isn't included here since automake needs to see it to know# that something like pango-arabic-fc.la is a valid libtool archive#LIBRARY_LIBTOOL_OPTIONS="-version-info $VERSION_INFO"MODULE_LIBTOOL_OPTIONS="-export-dynamic -avoid-version"if test "$pango_os_win32" = yes; then # We currently use .def files on Windows true LIBRARY_LIBTOOL_OPTIONS="$LIBRARY_LIBTOOL_OPTIONS -no-undefined" MODULE_LIBTOOL_OPTIONS="$MODULE_LIBTOOL_OPTIONS -no-undefined"else # libtool option to control which symbols are exported # right now, symbols starting with '_' are not exported LIBRARY_LIBTOOL_OPTIONS="$LIBRARY_LIBTOOL_OPTIONS "'-export-symbols-regex "^pango_.*"' MODULE_LIBTOOL_OPTIONS="$MODULE_LIBTOOL_OPTIONS "'-export-symbols-regex "^script_engine_.*"'fiAC_SUBST(LIBRARY_LIBTOOL_OPTIONS)AC_SUBST(MODULE_LIBTOOL_OPTIONS)dnl ********************************************************dnl * See whether we need to load our modules as .la files *dnl ********************************************************use_la_modules=false# is there any platform that we have to use .la files?if $use_la_modules ; then AC_DEFINE(USE_LA_MODULES, 1, [Whether to load modules via .la files rather than directly])fidnl ******************************************************dnl * See whether to include shared library dependencies *dnl ******************************************************AC_ARG_ENABLE(explicit-deps, AC_HELP_STRING([--enable-explicit-deps=@<:@no/auto/yes@:>@], [use explicit dependencies in .pc files @<:@default=auto@:>@]), enable_explicit_deps="$enableval", enable_explicit_deps=auto)AC_MSG_CHECKING([Whether to write dependencies into .pc files])case $enable_explicit_deps in auto) export SED deplibs_check_method=`(./libtool --config; echo 'eval echo $deplibs_check_method') | sh` if test "x$deplibs_check_method" '!=' xpass_all || test "x$enable_static" = xyes ; then enable_explicit_deps=yes else enable_explicit_deps=no fi ;; yes|no) ;; *) AC_MSG_ERROR([Value given to --enable-explicit-deps must be one of yes, no or auto]) ;;esacAC_MSG_RESULT($enable_explicit_deps)PKGCONFIG_MATH_LIBS=PKGCONFIG_CAIRO_REQUIRES=if test $enable_explicit_deps = yes ; then PKGCONFIG_MATH_LIBS=-lm X_LIBS="$X_LIBS $X_EXTRA_LIBS" if $have_cairo_freetype; then PKGCONFIG_CAIRO_REQUIRES="$PKGCONFIG_CAIRO_REQUIRES pangoft2" fi if $have_cairo_win32; then PKGCONFIG_CAIRO_REQUIRES="$PKGCONFIG_CAIRO_REQUIRES pangowin32" fifiAC_SUBST(PKGCONFIG_MATH_LIBS)AC_SUBST(PKGCONFIG_CAIRO_REQUIRES)AM_CONDITIONAL(DISABLE_EXPLICIT_DEPS, test $enable_explicit_deps = no)AC_CONFIG_COMMANDS([pango/module-defs.h],[cat > pango/module-defs.h <<EOTEXT/* Autogenerated by configure. Do not edit */#include "modules.h"EOTEXTIFS="${IFS= }"; pango_save_ifs="$IFS"; IFS=","for module in $included_modules; do module_c=`echo $module | sed s/-/_/` cat >> pango/module-defs.h <<EOTEXTextern void _pango_${module_c}_script_engine_list (PangoEngineInfo **engines, int *n_engines);extern PangoEngine *_pango_${module_c}_script_engine_init (GTypeModule *module);extern void _pango_${module_c}_script_engine_exit (void);extern void _pango_${module_c}_script_engine_create (const char *id);EOTEXTdone IFS="$pango_save_ifs"],[included_modules=$included_modules])AC_CONFIG_COMMANDS([pango/module-defs-x.c],[### X modulescat > pango/module-defs-x.c <<EOTEXT/* Autogenerated by configure. Do not edit */#include "module-defs.h"PangoIncludedModule _pango_included_x_modules@<:@@:>@ = {EOTEXTIFS="${IFS= }"; pango_save_ifs="$IFS"; IFS=","for module in $included_modules; do if echo $module | egrep -- "-x($|,)" > /dev/null; then module_c=`echo $module | sed s/-/_/` cat >> pango/module-defs-x.c <<EOTEXT { _pango_${module_c}_script_engine_list, _pango_${module_c}_script_engine_init, _pango_${module_c}_script_engine_exit, _pango_${module_c}_script_engine_create },EOTEXT fidoneIFS="$pango_save_ifs"cat >> pango/module-defs-x.c <<EOTEXT { NULL, NULL, NULL, NULL },};EOTEXT])AC_CONFIG_COMMANDS([pango/module-defs-fc.c],[### FC modulescat > pango/module-defs-fc.c <<EOTEXT/* Autogenerated by configure. Do not edit */#include "module-defs.h"PangoIncludedModule _pango_included_fc_modules@<:@@:>@ = {EOTEXTIFS="${IFS= }"; pango_save_ifs="$IFS"; IFS=","for module in $included_modules; do if echo $module | egrep -- "-fc($|,)" > /dev/null; then module_c=`echo $module | sed s/-/_/` cat >> pango/module-defs-fc.c <<EOTEXT { _pango_${module_c}_script_engine_list, _pango_${module_c}_script_engine_init, _pango_${module_c}_script_engine_exit, _pango_${module_c}_script_engine_create },EOTEXT fidoneIFS="$pango_save_ifs"cat >> pango/module-defs-fc.c <<EOTEXT { NULL, NULL, NULL, NULL },};EOTEXT])AC_CONFIG_COMMANDS([pango/module-defs-win32.c],[### Win32 modulescat > pango/module-defs-win32.c <<EOTEXT/* Autogenerated by configure. Do not edit */#include "module-defs.h"PangoIncludedModule _pango_included_win32_modules@<:@@:>@ = {EOTEXTIFS="${IFS= }"; pango_save_ifs="$IFS"; IFS=","for module in $included_modules; do if echo $module | egrep -- "-win32($|,)" > /dev/null; then module_c=`echo $module | sed s/-/_/` cat >> pango/module-defs-win32.c <<EOTEXT { _pango_${module_c}_script_engine_list, _pango_${module_c}_script_engine_init, _pango_${module_c}_script_engine_exit, _pango_${module_c}_script_engine_create },EOTEXT fidoneIFS="$pango_save_ifs"cat >> pango/module-defs-win32.c <<EOTEXT { NULL, NULL, NULL, NULL },};EOTEXT])AC_CONFIG_COMMANDS([pango/module-defs-atsui.c],[### ATSUI modulescat > pango/module-defs-atsui.c <<EOTEXT/* Autogenerated by configure. Do not edit */#include "module-defs.h"PangoIncludedModule _pango_included_atsui_modules@<:@@:>@ = {EOTEXTIFS="${IFS= }"; pango_save_ifs="$IFS"; IFS=","for module in $included_modules; do if echo $module | egrep -- "-atsui($|,)" > /dev/null; then module_c=`echo $module | sed s/-/_/` cat >> pango/module-defs-atsui.c <<EOTEXT { _pango_${module_c}_script_engine_list, _pango_${module_c}_script_engine_init, _pango_${module_c}_script_engine_exit, _pango_${module_c}_script_engine_create },EOTEXT fidoneIFS="$pango_save_ifs"cat >> pango/module-defs-atsui.c <<EOTEXT { NULL, NULL, NULL, NULL },};EOTEXT])AC_CONFIG_COMMANDS([pango/module-defs-lang.c],[### lang modulescat > pango/module-defs-lang.c <<EOTEXT/* Autogenerated by configure. Do not edit */#include "module-defs.h"PangoIncludedModule _pango_included_lang_modules@<:@@:>@ = {EOTEXTIFS="${IFS= }"; pango_save_ifs="$IFS"; IFS=","for module in $included_modules; do if echo $module | egrep -- "-lang($|,)" > /dev/null; then module_c=`echo $module | sed s/-/_/` cat >> pango/module-defs-lang.c <<EOTEXT { _pango_${module_c}_script_engine_list, _pango_${module_c}_script_engine_init, _pango_${module_c}_script_engine_exit, _pango_${module_c}_script_engine_create },EOTEXT fidoneIFS="$pango_save_ifs"cat >> pango/module-defs-lang.c <<EOTEXT { NULL, NULL, NULL, NULL },};EOTEXT])AC_HEADER_DIRENTAC_CHECK_HEADERS(unistd.h)# Honor aclocal flagsACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"dnl ===========================================================================AC_CONFIG_COMMANDS([pango/pango-features.h], [featuresfile=pango/pango-features.h outfile=$featuresfile.tmp AC_MSG_NOTICE([creating $featuresfile]) cat >$outfile <<_EOF/* Generated by configure. Do not edit */#ifndef PANGO_FEATURES_H#define PANGO_FEATURES_H#define PANGO_VERSION_MAJOR $PANGO_VERSION_MAJOR#define PANGO_VERSION_MINOR $PANGO_VERSION_MINOR#define PANGO_VERSION_MICRO $PANGO_VERSION_MICRO#define PANGO_VERSION_STRING "$PANGO_VERSION_MAJOR.$PANGO_VERSION_MINOR.$PANGO_VERSION_MICRO"_EOF # TODO: define macros for enabled features/backends here echo '' >>$outfile echo '#endif' >>$outfile if cmp -s $outfile $featuresfile; then AC_MSG_NOTICE([$featuresfile is unchanged]) rm -f $outfile else mv $outfile $featuresfile fi],[ PANGO_VERSION_MAJOR=$PANGO_VERSION_MAJOR PANGO_VERSION_MINOR=$PANGO_VERSION_MINOR PANGO_VERSION_MICRO=$PANGO_VERSION_MICRO])AC_CONFIG_FILES([Makefile pango/Makefilepango/mini-fribidi/Makefilepango/opentype/Makefilepango/pango.rcpango/pangoft2.rcpango/pangowin32.rcpango-view/Makefilemodules/Makefilemodules/arabic/Makefilemodules/basic/Makefilemodules/hangul/Makefilemodules/hebrew/Makefilemodules/indic/Makefilemodules/khmer/Makefilemodules/syriac/Makefilemodules/thai/Makefilemodules/tibetan/Makefileexamples/Makefiledocs/Makefiledocs/version.xmltools/Makefiletests/Makefilepango.pcpangox.pcpangowin32.pcpangoft2.pcpangoxft.pcpangocairo.pcpango-uninstalled.pcpangox-uninstalled.pcpangowin32-uninstalled.pcpangoft2-uninstalled.pcpangoxft-uninstalled.pcpangocairo-uninstalled.pcpango-zip.sh])AC_CONFIG_FILES([tests/runtests.sh], [chmod +x tests/runtests.sh])AC_OUTPUTbackends=""if $have_freetype && $have_fontconfig ; then backends="$backends FreeType"; fiif $have_x ; then backends="$backends X"; fiif $have_xft ; then backends="$backends Xft"; fiif $have_cairo ; then backends="$backends Cairo"; fiif $have_win32 ; then backends="$backends Win32"; fi echo "configuration: backends:$backends"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -