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

📄 configure.ac

📁 字体缩放显示
💻 AC
字号:
dnl This file is part of the ttf2pk packagednl Process this file with autoconf to produce a configure script.dnl Some tests are omitted since we assume that you've built thednl FreeType library successfully.AC_INITAC_CONFIG_SRCDIR([../../lib/freetype.h])AC_CANONICAL_TARGET([])AC_PROG_CCAC_PROG_CPPAC_ARG_WITH(kpathsea-include,            [  --with-kpathsea-include=DIR                          location of the kpathsea include dir],[  if test x$withval = xyes; then    AC_MSG_WARN(Usage is: --with-kpathsea-include=includedir)  else    if test x$withval = xno; then      AC_MSG_WARN(Usage is: --with-kpathsea-include=includedir)    else      kpathsea_include=$withval    fi  fi])dnl Checks for libraries.AC_ARG_WITH(kpathsea-lib,            [  --with-kpathsea-lib=DIR location of the kpathsea lib dir],[  if test x$withval = xyes; then    AC_MSG_WARN(Usage is: --with-kpathsea-lib=libdir)  else    if test x$withval = xno; then      AC_MSG_WARN(Usage is: --with-kpathsea-lib=libdir)    else      kpathsea_lib=$withval    fi  fi])if test -n "$kpathsea_include" -o -n "$kpathsea_lib"; then  LIBS="$LIBS -L$kpathsea_lib"  CPPFLAGS="$CPPFLAGS -I$kpathsea_include -I$srcdir"  dnl the function kpse_set_program_name() is available since kpathsea 3.2  AC_CHECK_LIB(kpathsea, kpse_set_program_name, , AC_DEFINE(OLD_KPATHSEA))  AC_CHECK_LIB(kpathsea, kpse_init_prog, ,[               AC_MSG_ERROR([Can't find kpathsea library! Use --with-kpathsea-lib option.])])  dnl the header file kpathsea.h doesn't exist in kpathsea 2.6 and before  AC_CHECK_HEADER(kpathsea/kpathsea.h, , AC_DEFINE(VERY_OLD_KPATHSEA))  AC_CHECK_HEADER(kpathsea/c-auto.h, ,[                  AC_MSG_ERROR([Can't find kpathsea include files! Use --with-kpathsea-include option.])])else  CPPFLAGS="$CPPFLAGS -I$srcdir"fiAC_CHECK_LIB(m, floor)AC_CHECK_LIB(intl, gettext)OLDLIBS=$LIBSLIBS="$LIBS -L../../lib/.libs"CPPFLAGS="-I$srcdir/../../lib $CPPFLAGS"AC_CHECK_LIB(ttf, TT_Init_FreeType, LIBS="$LIBS -lttf",[             AC_MSG_ERROR([Can't find ttf library! Compile FreeType first.])])LIBS=$OLDLIBSdnl get Compiler flags right.if test "x$CC" = xgcc; then	XX_CFLAGS="-Wall -pedantic"else	case "$host" in  		alpha-dec-osf*)        	XX_CFLAGS="-std1 -O2 -g3"       		;;  		*)          	XX_CFLAGS=       		;;	esacfiAC_SUBST(XX_CFLAGS)AC_CHECK_PROG(RM, rm, rm)AC_CHECK_PROG(RMDIR, rmdir, rmdir)AC_PROG_INSTALLif test -z "$kpathsea_include" -o -z "$kpathsea_lib"; then  AC_MSG_WARN([    The binaries will be compiled without file search library support!    For kpathsea support use the --with-kpathsea-lib and    --with-kpathsea-include options.              ])fiAC_CONFIG_FILES([Makefile MakeSub])AC_OUTPUTdnl end of configure.in

⌨️ 快捷键说明

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