📄 configure.in
字号:
dnl This file is part of the KDE libraries/packagesdnl Copyright (C) 2001 Stephan Kulow (coolo@kde.org) dnl This file is free software; you can redistribute it and/ordnl modify it under the terms of the GNU Library General Publicdnl License as published by the Free Software Foundation; eitherdnl version 2 of the License, or (at your option) any later version. dnl This library is distributed in the hope that it will be useful,dnl but WITHOUT ANY WARRANTY; without even the implied warranty ofdnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNUdnl Library General Public License for more details. dnl You should have received a copy of the GNU Library General Public Licensednl along with this library; see the file COPYING.LIB. If not, write todnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330,dnl Boston, MA 02111-1307, USA.# Original Author was Kalle@kde.org# I lifted it in some mater. (Stephan Kulow)# I used much code from Janos Farkasdnl Process this file with autoconf to produce a configure script.AC_INIT(acinclude.m4) dnl a source file from your sub dirdnl This is so we can use kde-commonAC_CONFIG_AUX_DIR(admin)dnl This ksh/zsh feature conflicts with `cd blah ; pwd`unset CDPATHdnl Checking host/target/build systems, for make, install etc.AC_CANONICAL_SYSTEM dnl Perform program name transformationAC_ARG_PROGRAMdnl Automake doc recommends to do this only here. (Janos)AM_INIT_AUTOMAKE(bookcase, 0.5.2a) dnl searches for some needed programsKDE_SET_PREFIXdnl generate the config headerAM_CONFIG_HEADER(config.h) dnl at the distribution this donednl Checks for programs.AC_CHECK_COMPILERSAC_ENABLE_SHARED(yes)AC_ENABLE_STATIC(no)KDE_PROG_LIBTOOLdnl for NLS support. Call them in this order!dnl WITH_NLS is for the po filesAM_KDE_WITH_NLSKDE_USE_QT(3)AC_PATH_KDE#MIN_CONFIG(3)dnl PACKAGE set beforednl CXXFLAGS="$NOOPT_CXXFLAGS" dnl __kdevelop[noopt]__dnl CFLAGS="$NOOPT_CFLAGS" dnl __kdevelop[noopt]__dnl CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS -DQT_NO_ASCII_CAST" dnl __kdevelop[exc]__dnl KDE_NEED_FLEX dnl __kdevelop__dnl AC_PROG_YACC dnl __kdevelop__KDE_FIND_PATH(xml2-config, XML_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin], [ AC_MSG_ERROR([[Could not find xml2-config anywhere, check ftp://xmlsoft.org/ for libxml >= 2.4.23. If you are using pre-packaged libraries, be sure to have the development files installed as well, which may be called libxml2-devel or something similar.]])])if test -n "$XML_CONFIG"; then vers=`$XML_CONFIG --version 2>/dev/null | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` if test -n "$vers" && test "$vers" -ge 2004023 then LIBXML_LIBS="`$XML_CONFIG --libs`" LIBXML_RPATH= for args in $LIBXML_LIBS; do case $args in -L*) LIBXML_RPATH="$LIBXML_RPATH $args" ;; esac done LIBXML_RPATH=`echo $LIBXML_RPATH | sed -e "s/-L/-R/g"` LIBXML_CFLAGS="`$XML_CONFIG --cflags`"# KDE_FIND_PATH(xmllint, XMLLINT, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin], [XMLLINT=""])# AC_DEFINE_UNQUOTED(XMLLINT, "$XMLLINT", [Defines the executable of xmllint]) else AC_MSG_ERROR([[You need at least libxml 2.4.23.]]) HELP_SUBDIR= fifiKDE_FIND_PATH(xslt-config, XSLT_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin], [ AC_MSG_ERROR([[Could not find xslt-config anywhere, check ftp://xmlsoft.org/ for libxslt >= 1.0.19. If you are using pre-packaged libraries, be sure to have the development files installed as well, which may be called libxslt-devel or something similar.]]) HELP_SUBDIR=])if test -n "$XSLT_CONFIG"; then vers=`$XSLT_CONFIG --version 2>/dev/null | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` if test -n "$vers" && test "$vers" -ge 1000019; then LIBXSLT_LIBS="`$XSLT_CONFIG --libs`" LIBXSLT_RPATH= for args in $LIBXSLT_LIBS; do case $args in -L*) LIBXSLT_RPATH="$LIBXSLT_RPATH $args" ;; esac done LIBXSLT_RPATH=`echo $LIBXSLT_RPATH | sed -e "s/-L/-R/g"` LIBXSLT_CFLAGS="`$XSLT_CONFIG --cflags`" else AC_MSG_ERROR([[You need at least libxslt 1.0.19.]]) fifiAC_SUBST(LIBXSLT_LIBS)AC_SUBST(LIBXSLT_CFLAGS)AC_SUBST(LIBXSLT_RPATH)AC_SUBST(LIBXML_LIBS)AC_SUBST(LIBXML_CFLAGS)AC_SUBST(LIBXML_RPATH)AC_OUTPUT(Makefile src/Makefile doc/Makefile doc/en/Makefile po/Makefile icons/Makefile xslt/Makefile admin/Makefile )KDE_CREATE_SUBDIRSLISTAC_CONFIG_FILES([ Makefile ])AC_CONFIG_FILES([ admin/Makefile ])AC_CONFIG_FILES([ doc/Makefile ])AC_CONFIG_FILES([ doc/en/Makefile ])AC_CONFIG_FILES([ icons/Makefile ])AC_CONFIG_FILES([ po/Makefile ])AC_CONFIG_FILES([ src/Makefile ])AC_CONFIG_FILES([ xslt/Makefile ])AC_OUTPUTif 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 + -