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

📄 configure.in

📁 chm阅读器 用于在linux系统下chm文档的阅读
💻 IN
字号:
dnl =======================================================dnl FILE: configure.in.indnl =======================================================dnl Process this file with autoconf to produce a configure script.dnl Most of this file was shamelessly stolen from Licq Qt plugin, which has similar configuration optionsAC_INITAC_CONFIG_SRCDIR([src/main.cpp])AC_CONFIG_AUX_DIR(admin)AC_CANONICAL_SYSTEMAC_ARG_PROGRAMdnl All versioning is done via the following lineAM_CONFIG_HEADER(src/config.h)AM_INIT_AUTOMAKE(kchmviewer, 3.0)dnl Chuck #defines for PACKAGE and VERSION into config.hAC_DEFINE_UNQUOTED(APP_NAME, "$PACKAGE", [ Application name ] )AC_DEFINE_UNQUOTED(APP_VERSION, "$VERSION", [ Application version as text ])AC_DEFINE_UNQUOTED(APP_INT_VERSION,$INT_VERSION, [ Application version as integer ])dnl Checks for programs.AC_CHECK_COMPILERSdnl Check for X and extra X libs neededAC_PATH_XTRAif test "$no_x" = yes; then  AC_MSG_ERROR(You need to have the X11 libraries and headers installed)fiKDE_PROG_LIBTOOLAC_ENABLE_SHARED(yes)AC_ENABLE_STATIC(no)AC_PATH_QTCHMLIBDIR="lib/chmlib"EXTRA_SUBDIRS=""AC_ARG_WITH(kde,    AC_HELP_STRING([--with-kde],[enable KDE support]))if test "x$with_kde" = "xyes"; then	KDE_SET_PREFIX	AC_PATH_KDE	AM_KDE_WITH_NLS	AC_DEFINE(USE_KDE, 1, [use KDE support])fiif test "x$with_kde" != "xyes"; then	include_ARTS_FALSE="yes"	AC_PREFIX_DEFAULT(${prefix:-/usr/local})    kde_icondir="/usr/share/icons"fiAM_CONDITIONAL([AMC_USE_KDE], [test "x$with_kde" = "xyes"])dnl Checking whether to use built-in, or system-wide chmlibdnl First check for --with-builtin-chmlib configure option - no more checks neededUSE_BUILTIN_CHMLIB="0"AC_ARG_WITH(builtin-chmlib,         AC_HELP_STRING([--with-builtin-chmlib],[link with built-in chmlib]),        [ USE_BUILTIN_CHMLIB="1" ])dnl Check for the libchm in systemif test "$USE_BUILTIN_CHMLIB" = "0"; then	AC_CHECK_LIB(chm, chm_open, [USE_BUILTIN_CHMLIB="0"], [USE_BUILTIN_CHMLIB="1"])fiif test "$USE_BUILTIN_CHMLIB" = "1"; then	CHM_INCLUDES="-I\$(top_srcdir)/$CHMLIBDIR"	CHM_LIBS="\$(top_builddir)/$CHMLIBDIR/libchm.a"	USE_LIB_CHM="internal"	EXTRA_SUBDIRS="chmlib $EXTRA_SUBDIRS"    AC_DEFINE(USE_BUILTIN_CHMLIB, 1, [use builtin chmlib])else	CHM_LIBS="-lchm"    USE_LIB_CHM="system"	AC_DEFINE(USE_BUILTIN_CHMLIB, 0, [use builtin chmlib])fiAM_CONDITIONAL([AMC_BUILD_CHMLIB], [test "$USE_BUILTIN_CHMLIB" = "1"])# libchmfile is built unconditionallyLIBCHMFILE_INCLUDES="-I\$(top_srcdir)/lib/libchmfile -I\$(top_srcdir)/src"LIBCHMFILE_LIBS="\$(top_builddir)/lib/libchmfile/libchmfile.a"AC_SUBST([EXTRA_SUBDIRS])AC_SUBST(CHM_INCLUDES)AC_SUBST(USE_KDE)AC_SUBST(CHM_LIBS)AC_SUBST(LIBCHMFILE_INCLUDES)AC_SUBST(LIBCHMFILE_LIBS)echo ""echo "Please remember to use GNU make, often installed as gmake."echo ""echo "Install prefix : $prefix"if test "$have_kde" = yes; then  echo "KDE support    : includes in $kde_includes, libs in $kde_libraries"else  echo "KDE support    : disabled."fiecho "Qt includes    : $QT_INCLUDES"echo "Qt libraries   : $LIB_QT"echo "chmlib to link : $USE_LIB_CHM"KDE_CREATE_SUBDIRSLISTAC_CONFIG_FILES([ Makefile ])AC_CONFIG_FILES([ lib/Makefile ])AC_CONFIG_FILES([ lib/chmlib/Makefile ])AC_CONFIG_FILES([ lib/kio-msits/Makefile ])AC_CONFIG_FILES([ lib/libchmfile/Makefile ])AC_CONFIG_FILES([ po/Makefile ])AC_CONFIG_FILES([ src/Makefile ])AC_CONFIG_FILES([ src/kde/Makefile ])AC_CONFIG_FILES([ src/pics/Makefile ])AC_OUTPUT# Check if KDE_SET_PREFIX was called, and --prefix was passed to configureif test -n "$kde_libs_prefix" -a -n "$given_prefix"; then  # And if so, warn when they don't match  if test "$kde_libs_prefix" != "$given_prefix"; then    # And if kde doesn't know about the prefix yet    echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null    if test $? -ne 0; then      echo ""      echo "Warning: you chose to install this package in $given_prefix,"      echo "but KDE was found in $kde_libs_prefix."      echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"      echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"      echo "Then restart KDE."      echo ""    fi  fifiif test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then  echo ""  echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"  echo "was not included. Therefore, GCC symbol visibility support remains disabled."  echo ""  echo "For better performance, consider including the Qt visibility supporting patch"  echo "located at:"  echo ""  echo "http://bugs.kde.org/show_bug.cgi?id=109386"  echo ""  echo "and recompile all of Qt and KDE. Note, this is entirely optional and"  echo "everything will continue to work just fine without it."  echo ""fiif test "$all_tests" = "bad"; then  if test ! "$cache_file" = "/dev/null"; then    echo ""    echo "Please remove the file $cache_file after changing your setup"    echo "so that configure will find the changes next time."    echo ""  fielse  echo ""  echo "Good - your configure finished. Start make now"  echo ""fi

⌨️ 快捷键说明

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