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

📄 pth.m4

📁 Linux下的中文输入法
💻 M4
📖 第 1 页 / 共 2 页
字号:
dnl ##dnl ##  GNU Pth - The GNU Portable Threadsdnl ##  Copyright (c) 1999-2004 Ralf S. Engelschall <rse@engelschall.com>dnl ##dnl ##  This file is part of GNU Pth, a non-preemptive thread schedulingdnl ##  library which can be found at http://www.gnu.org/software/pth/.dnl ##dnl ##  This library is free software; you can redistribute it and/ordnl ##  modify it under the terms of the GNU Lesser General Publicdnl ##  License as published by the Free Software Foundation; eitherdnl ##  version 2.1 of the License, or (at your option) any later version.dnl ##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 ##  Lesser General Public License for more details.dnl ##dnl ##  You should have received a copy of the GNU Lesser General Publicdnl ##  License along with this library; if not, write to the Free Softwarednl ##  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307dnl ##  USA, or contact Ralf S. Engelschall <rse@engelschall.com>.dnl ##dnl ##  pth.m4: Autoconf macro for locating GNU Pth from withindnl ##          configure.ac of third-party software packagesdnl ##dnl ##dnl ##  Synopsis:dnl ##  AC_CHECK_PTH([MIN-VERSION [,          # minimum Pth version, e.g. 1.2.0dnl ##                DEFAULT-WITH-PTH [,     # default value for --with-pth optiondnl ##                DEFAULT-WITH-PTH-TEST [,# default value for --with-pth-test optiondnl ##                EXTEND-VARS [,          # whether CFLAGS/LDFLAGS/etc are extendeddnl ##                ACTION-IF-FOUND [,      # action to perform if Pth was founddnl ##                ACTION-IF-NOT-FOUND     # action to perform if Pth was not founddnl ##                ]]]]]])dnl ##  Examples:dnl ##  AC_CHECK_PTH(1.2.0)dnl ##  AC_CHECK_PTH(1.2.0,,,no,CFLAGS="$CFLAGS -DHAVE_PTH $PTH_CFLAGS")dnl ##  AC_CHECK_PTH(1.2.0,yes,yes,yes,CFLAGS="$CFLAGS -DHAVE_PTH")dnl ##dnldnl #   auxilliary macrosAC_DEFUN(_AC_PTH_ERROR, [dnlAC_MSG_RESULT([*FAILED*])m4_define(_ac_pth_line,dnl"+------------------------------------------------------------------------+")echo " _ac_pth_line" 1>&2cat <<EOT | sed -e 's/^[[ 	]]*/ | /' -e 's/>>/  /' 1>&2$1EOTecho " _ac_pth_line" 1>&2exit 1])AC_DEFUN(_AC_PTH_VERBOSE, [dnlif test ".$verbose" = .yes; then    AC_MSG_RESULT([  $1])fi])dnl #   the user macroAC_DEFUN(AC_CHECK_PTH, [dnldnldnl #   prerequisitesAC_REQUIRE([AC_PROG_CC])dnlAC_REQUIRE([AC_PROG_CPP])dnldnlPTH_CPPFLAGS=''PTH_CFLAGS=''PTH_LDFLAGS=''PTH_LIBS=''AC_SUBST(PTH_CPPFLAGS)AC_SUBST(PTH_CFLAGS)AC_SUBST(PTH_LDFLAGS)AC_SUBST(PTH_LIBS)dnl #   command line optionsAC_MSG_CHECKING(for GNU Pth)_AC_PTH_VERBOSE([])AC_ARG_WITH(pth,dnl[  --with-pth[=ARG]        Build with GNU Pth Library  (default=]ifelse([$2],,yes,$2)[)],dnl,dnlwith_pth="ifelse([$2],,yes,$2)")dnlAC_ARG_WITH(pth-test,dnl[  --with-pth-test         Perform GNU Pth Sanity Test (default=]ifelse([$3],,yes,$3)[)],dnl,dnlwith_pth_test="ifelse([$3],,yes,$3)")dnl_AC_PTH_VERBOSE([+ Command Line Options:])_AC_PTH_VERBOSE([    o --with-pth=$with_pth])_AC_PTH_VERBOSE([    o --with-pth-test=$with_pth_test])dnldnl #   configurationif test ".$with_pth" != .no; then    _pth_subdir=no    _pth_subdir_opts=''    case "$with_pth" in        subdir:* )            _pth_subdir=yes            changequote(, )dnl            _pth_subdir_opts=`echo $with_pth | sed -e 's/^subdir:[^ 	]*[ 	]*//'`            with_pth=`echo $with_pth | sed -e 's/^subdir:\([^ 	]*\).*$/\1/'`            changequote([, ])dnl            ;;    esac    _pth_version=""    _pth_location=""    _pth_type=""    _pth_cppflags=""    _pth_cflags=""    _pth_ldflags=""    _pth_libs=""    if test ".$with_pth" = .yes; then        #   via config script in $PATH        changequote(, )dnl        _pth_version=`(pth-config --version) 2>/dev/null |\                      sed -e 's/^.*\([0-9]\.[0-9]*[ab.][0-9]*\).*$/\1/'`        changequote([, ])dnl        if test ".$_pth_version" != .; then            _pth_location=`pth-config --prefix`            _pth_type='installed'            _pth_cppflags=`pth-config --cflags`            _pth_cflags=`pth-config --cflags`            _pth_ldflags=`pth-config --ldflags`            _pth_libs=`pth-config --libs`        fi    elif test -d "$with_pth"; then        with_pth=`echo $with_pth | sed -e 's;/*$;;'`        _pth_found=no        #   via locally included source tree        if test ".$_pth_subdir" = .yes; then            _pth_location="$with_pth"            _pth_type='local'            _pth_cppflags="-I$with_pth"            _pth_cflags="-I$with_pth"            if test -f "$with_pth/ltconfig"; then                _pth_ldflags="-L$with_pth/.libs"            else                _pth_ldflags="-L$with_pth"            fi            _pth_libs="-lpth"            changequote(, )dnl            _pth_version=`grep '^const char PTH_Hello' $with_pth/pth_vers.c |\                          sed -e 's;^.*Version[ 	]*\([0-9]*\.[0-9]*[.ab][0-9]*\)[ 	].*$;\1;'`            changequote([, ])dnl            _pth_found=yes            ac_configure_args="$ac_configure_args --enable-subdir $_pth_subdir_opts"            with_pth_test=no        fi        #   via config script under a specified directory        #   (a standard installation, but not a source tree)        if test ".$_pth_found" = .no; then            for _dir in $with_pth/bin $with_pth; do                if test -f "$_dir/pth-config"; then                    test -f "$_dir/pth-config.in" && continue # pth-config in source tree!                    changequote(, )dnl                    _pth_version=`($_dir/pth-config --version) 2>/dev/null |\                                  sed -e 's/^.*\([0-9]\.[0-9]*[ab.][0-9]*\).*$/\1/'`                    changequote([, ])dnl                    if test ".$_pth_version" != .; then                        _pth_location=`$_dir/pth-config --prefix`                        _pth_type="installed"                        _pth_cppflags=`$_dir/pth-config --cflags`                        _pth_cflags=`$_dir/pth-config --cflags`                        _pth_ldflags=`$_dir/pth-config --ldflags`                        _pth_libs=`$_dir/pth-config --libs`                        _pth_found=yes                        break                    fi                fi            done        fi        #   in any subarea under a specified directory        #   (either a special installation or a Pth source tree)        if test ".$_pth_found" = .no; then            changequote(, )dnl            _pth_found=0            for _file in x `find $with_pth -name "pth.h" -type f -print`; do                test .$_file = .x && continue                _dir=`echo $_file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'`                _pth_version=`($_dir/pth-config --version) 2>/dev/null |\                              sed -e 's/^.*\([0-9]\.[0-9]*[ab.][0-9]*\).*$/\1/'`                if test ".$_pth_version" = .; then                    _pth_version=`grep '^#define PTH_VERSION_STR' $_file |\                                  sed -e 's;^#define[ 	]*PTH_VERSION_STR[ 	]*"\([0-9]*\.[0-9]*[.ab][0-9]*\)[ 	].*$;\1;'`                fi                _pth_cppflags="-I$_dir"                _pth_cflags="-I$_dir"                _pth_found=`expr $_pth_found + 1`            done            for _file in x `find $with_pth -name "libpth.[aso]" -type f -print`; do                test .$_file = .x && continue                _dir=`echo $_file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'`                _pth_ldflags="-L$_dir"                _pth_libs="-lpth"                _pth_found=`expr $_pth_found + 1`            done            changequote([, ])dnl            if test ".$_pth_found" = .2; then                _pth_location="$with_pth"                _pth_type="uninstalled"            else                _pth_version=''            fi

⌨️ 快捷键说明

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