📄 configure.in
字号:
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) 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_X_LIBS=PKGCONFIG_XFT_LIBS=PKGCONFIG_FREETYPE_LIBS=PKGCONFIG_MATH_LIBS=PKGCONFIG_CAIRO_LIBS=if test $enable_explicit_deps = yes ; then PKGCONFIG_X_LIBS="$X_LIBS $X_EXTRA_LIBS" PKGCONFIG_XFT_LIBS=$XFT_LIBS PKGCONFIG_FREETYPE_LIBS=$FREETYPE_LIBS PKGCONFIG_MATH_LIBS=-lm PKGCONFIG_CAIRO_LIBS=$FREETYPE_LIBS if $have_cairo_freetype ; then PKGCONFIG_CAIRO_REQUIRES=pangoft2 fifiAC_SUBST(PKGCONFIG_X_LIBS)AC_SUBST(PKGCONFIG_XFT_LIBS)AC_SUBST(PKGCONFIG_FREETYPE_LIBS)AC_SUBST(PKGCONFIG_MATH_LIBS)AC_SUBST(PKGCONFIG_CAIRO_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 + -