⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 GTK+-2.0源码之pango-1.15.6.tar.gz
💻 IN
📖 第 1 页 / 共 3 页
字号:
dnl Process this file with autoconf to create configure.AC_PREREQ(2.56)dnl ==========================================================================dnl                               Versioning              dnl ==========================================================================dnl Making releases:dnl   PANGO_VERSION_MICRO += 1;dnl   PANGO_INTERFACE_AGE += 1;dnl   PANGO_BINARY_AGE += 1;dnl if any functions have been added, set PANGO_INTERFACE_AGE to 0.dnl if backwards compatibility has been broken,dnl set PANGO_BINARY_AGE _and_ PANGO_INTERFACE_AGE to 0.dnldnl We do the version number components as m4 macrosdnl so that we can base configure --help output offdnl of them.dnldnl The triplet m4_define([pango_version_major], [1])m4_define([pango_version_minor], [15])m4_define([pango_version_micro], [6])m4_define([pango_version],          [pango_version_major.pango_version_minor.pango_version_micro])dnl The X.Y in -lpango-X.Y line. This is expected to stay 1.0 until Pango 2.m4_define([pango_api_version], [1.0])dnl Number of releases since we've added interfacesm4_define([pango_interface_age], [2])dnl Number of releases since we've broken binary compatibility.m4_define([pango_binary_age],          [m4_eval(100 * pango_version_minor + pango_version_micro)])dnl Module API version.  This should be stepped up when a change causesdnl older modules to not work with new pango.m4_define([pango_module_version], [1.6.0])AC_INIT(pango, pango_version(),        [http://bugzilla.gnome.org/enter_bug.cgi?product=pango])AC_CONFIG_SRCDIR([ChangeLog])AM_INIT_AUTOMAKE(1.9 gnits dist-bzip2 no-dist-gzip)AM_CONFIG_HEADER([config.h])PANGO_VERSION_MAJOR=pango_version_major()PANGO_VERSION_MINOR=pango_version_minor()PANGO_VERSION_MICRO=pango_version_micro()PANGO_VERSION=pango_version()PANGO_API_VERSION=pango_api_version()PANGO_INTERFACE_AGE=pango_interface_age()PANGO_BINARY_AGE=pango_binary_age()PANGO_MODULE_VERSION=pango_module_version()AC_SUBST(PANGO_VERSION_MAJOR)AC_SUBST(PANGO_VERSION_MINOR)AC_SUBST(PANGO_VERSION_MICRO)AC_SUBST(PANGO_VERSION)AC_SUBST(PANGO_API_VERSION)AC_SUBST(PANGO_INTERFACE_AGE)AC_SUBST(PANGO_BINARY_AGE)AC_SUBST(PANGO_MODULE_VERSION)AC_DEFINE(MODULE_VERSION, "pango_module_version()", [Module interface version])AC_DEFINE(PANGO_BINARY_AGE, pango_binary_age(), [PANGO binary age])AC_DEFINE(PANGO_INTERFACE_AGE, pango_interface_age(), [PANGO interface age])AC_DEFINE(PANGO_VERSION_MAJOR, pango_version_major(), [PANGO major version])AC_DEFINE(PANGO_VERSION_MINOR, pango_version_minor(), [PANGO minor version])AC_DEFINE(PANGO_VERSION_MICRO, pango_version_micro(), [PANGO micro version])dnl libtool versioningm4_define([lt_current], [m4_eval(100 * pango_version_minor + pango_version_micro - pango_interface_age)])m4_define([lt_revision], [pango_interface_age])m4_define([lt_age], [m4_eval(pango_binary_age - pango_interface_age)])VERSION_INFO="lt_current():lt_revision():lt_age()"PANGO_CURRENT_MINUS_AGE=m4_eval(lt_current - lt_age)AC_SUBST(PANGO_CURRENT_MINUS_AGE)dnl ==========================================================================AC_CANONICAL_HOSTAC_MSG_CHECKING([for native Win32])case "$host" in  *-*-mingw*)    pango_os_win32=yes    ;;  *)    pango_os_win32=no    ;;esacAC_MSG_RESULT([$pango_os_win32])AM_CONDITIONAL(OS_WIN32, test "$pango_os_win32" = "yes")AC_PROG_CC	dnl dnl Check for a working C++ compiler, but do not bail out, if none is found.dnl We use this for an automated test for C++ header correctness.dnl AC_CHECK_PROGS(CXX, [$CCC c++ g++ gcc CC cxx cc++ cl], gcc)AC_LANG_SAVEAC_LANG_CPLUSPLUSAC_TRY_COMPILE(,[class a { int b; } c;], ,CXX=)AM_CONDITIONAL(HAVE_CXX, test "$CXX" != "")AC_LANG_RESTOREAC_LIBTOOL_WIN32_DLLAM_DISABLE_STATICif test "$pango_os_win32" = "yes"; then  if test x$enable_static = xyes -o x$enable_static = x; then    AC_MSG_WARN([Disabling static library build, must build as DLL on Windows.])    enable_static=no  fi  if test x$enable_shared = xno; then    AC_MSG_WARN([Enabling shared library build, must build as DLL on Windows.])  fi  enable_shared=yesfiAM_PROG_LIBTOOLAC_MSG_CHECKING([for some Win32 platform])case "$host" in  *-*-mingw*|*-*-cygwin*)    pango_platform_win32=yes    ;;  *)    pango_platform_win32=no    ;;esacAC_MSG_RESULT([$pango_platform_win32])AM_CONDITIONAL(PLATFORM_WIN32, test "$pango_platform_win32" = "yes")if test "$pango_os_win32" = "yes"; then  AC_CHECK_TOOL(WINDRES, windres, no)  if test "$WINDRES" = no; then    AC_MSG_ERROR([*** Could not find an implementation of windres in your PATH.])  fi  AC_CHECK_PROG(ms_librarian, lib.exe, yes, no)fiAM_CONDITIONAL(MS_LIB_AVAILABLE, test x$ms_librarian = xyes)changequote(,)dnlif test "x$GCC" = "xyes"; then  case " $CFLAGS " in  *[\ \	]-Wall[\ \	]*) ;;  *) CFLAGS="$CFLAGS -Wall" ;;  esacfichangequote([,])dnldnl declare --enable-* args and collect ac_help stringsm4_define([debug_default],          m4_if(m4_eval(pango_version_minor() % 2), [1], [yes], [minimum]))AC_ARG_ENABLE(debug,              AC_HELP_STRING([--enable-debug=@<:@no/minimum/yes@:>@],                             [turn on debugging @<:@default=debug_default()@:>@]),	      ,              enable_debug=debug_default())if test "x$enable_debug" = "xyes"; then  PANGO_DEBUG_FLAGS="-DPANGO_ENABLE_DEBUG"else  PANGO_DEBUG_FLAGS="-DG_DISABLE_CAST_CHECKS"  if test "x$enable_debug" = "xno"; then    PANGO_DEBUG_FLAGS="$GLIB_DEBUG_FLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS $PANGO_DEBUG_FLAGS"  fifiAC_SUBST(PANGO_DEBUG_FLAGS)AC_ARG_ENABLE(rebuilds,              [AC_HELP_STRING([--disable-rebuilds],                              [disable all source autogeneration rules])],,              [enable_rebuilds=yes])AM_CONDITIONAL(CROSS_COMPILING, [test $cross_compiling = yes])# define a MAINT-like variable REBUILD which is set if Perl# is found, so autogenerated sources can be rebuiltAC_CHECK_PROGS(PERL, perl5 perl)REBUILD=\#if test "x$enable_rebuilds" = "xyes" && \     test -n "$PERL" && \     $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 ; then  REBUILD=fiAC_SUBST(REBUILD)have_x=falseif test "x$pango_os_win32" != xyes; then  AC_PATH_XTRA  if test x$no_x = xyes ; then    AC_MSG_WARN([X development libraries not found])    have_x=false  else    X_LIBS="$X_LIBS -lX11"    have_x=true    AC_DEFINE(HAVE_X, 1, [Have X libraries])  fifiAM_CONDITIONAL(HAVE_X, $have_x) have_fontconfig=falsehave_freetype=falsehave_xft=false## Check for fontconfig#PKG_CHECK_MODULES(FONTCONFIG, fontconfig >= 1.0.1, have_fontconfig=true, AC_MSG_RESULT([no]))if $have_fontconfig ; then  #  # Checks for FreeType  #  FREETYPE_LIBS=  FREETYPE_CFLAGS=  AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no)  if test "x$FREETYPE_CONFIG" != "xno" ; then    FREETYPE_CFLAGS=`$FREETYPE_CONFIG --cflags`    FREETYPE_LIBS=`$FREETYPE_CONFIG --libs`    pango_save_ldflags=$LDFLAGS    LDFLAGS="$LDFLAGS $FREETYPE_LIBS"    AC_CHECK_LIB(freetype, FT_Get_Next_Char, have_freetype=true, :)    LDFLAGS=$pango_save_ldflags  fi  FREETYPE_LIBS="$FONTCONFIG_LIBS $FREETYPE_LIBS"  FREETYPE_CFLAGS="$FONTCONFIG_CFLAGS $FREETYPE_CFLAGS"  AC_SUBST(FREETYPE_LIBS)  AC_SUBST(FREETYPE_CFLAGS)  AC_DEFINE(HAVE_FREETYPE, 1, [Have FreeType 2 library])  #  # Checks for Xft/XRender  #  if $have_x && $have_freetype ; then    PKG_CHECK_MODULES(XFT, xft >= 2.0.0, have_xft=true, AC_MSG_RESULT([no]))    if $have_xft ; then      AC_DEFINE(HAVE_XFT, 1, [Have Xft library])    fi  fielif test "x$pango_os_win32" != xyes; then  AC_MSG_WARN([No fontconfig found, skipping tests for FreeType and Xft])fiAM_CONDITIONAL(HAVE_FREETYPE, $have_freetype)AM_CONDITIONAL(HAVE_XFT, $have_xft)## Checks for Win32 GDI#have_win32=falseWIN32_LIBS=""WIN32_CFLAGS=""# The following doesn't work with autoconf-2.13, so we check $host instead# AC_CHECK_LIB(gdi32, GetTextMetricsA@8, have_win32=true, : )case "$host" in  *-*-mingw*|*-*-cygwin*) have_win32=true ;;esacif test $have_win32 = true; then  WIN32_LIBS="-lgdi32"fiAC_SUBST(WIN32_LIBS)AM_CONDITIONAL(HAVE_WIN32, $have_win32) # Ensure MSVC-compatible struct packing convention is used when# compiling for Win32 with gcc.# What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while# gcc2 uses "-fnative-struct".if test "$pango_os_win32" = "yes"; then  if test x"$GCC" = xyes; then    msnative_struct=''    AC_MSG_CHECKING([how to get MSVC-compatible struct packing])    if test -z "$ac_cv_prog_CC"; then      our_gcc="$CC"    else      our_gcc="$ac_cv_prog_CC"    fi    case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in      2.)	if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then	  msnative_struct='-fnative-struct'	fi	;;      *)	if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then	  msnative_struct='-mms-bitfields'	fi	;;    esac    if test x"$msnative_struct" = x ; then      AC_MSG_RESULT([no way])      AC_MSG_WARN([produced libraries might be incompatible with MSVC-compiled code])    else      CFLAGS="$CFLAGS $msnative_struct"      AC_MSG_RESULT([${msnative_struct}])    fi  fifi## Checks for ATSUI#AC_CHECK_HEADER(Carbon/Carbon.h, [have_atsui=true], [have_atsui=true])## Checks for Cairo#

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -