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

📄 aclocal.m4

📁 Linux下关于TPM的一些检测小工具
💻 M4
📖 第 1 页 / 共 5 页
字号:
              dnl   3. if it's already present in $CPPFLAGS or the already              dnl      constructed $INCNAME,              dnl   4. if it doesn't exist as a directory.              if test "X$additional_includedir" != "X/usr/include"; then                haveit=                if test "X$additional_includedir" = "X/usr/local/include"; then                  if test -n "$GCC"; then                    case $host_os in                      linux*) haveit=yes;;                    esac                  fi                fi                if test -z "$haveit"; then                  for x in $CPPFLAGS $INC[]NAME; do                    AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])                    if test "X$x" = "X-I$additional_includedir"; then                      haveit=yes                      break                    fi                  done                  if test -z "$haveit"; then                    if test -d "$additional_includedir"; then                      dnl Really add $additional_includedir to $INCNAME.                      INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"                    fi                  fi                fi              fi            fi            dnl Look for dependencies.            if test -n "$found_la"; then              dnl Read the .la file. It defines the variables              dnl dlname, library_names, old_library, dependency_libs, current,              dnl age, revision, installed, dlopen, dlpreopen, libdir.              save_libdir="$libdir"              case "$found_la" in                */* | *\\*) . "$found_la" ;;                *) . "./$found_la" ;;              esac              libdir="$save_libdir"              dnl We use only dependency_libs.              for dep in $dependency_libs; do                case "$dep" in                  -L*)                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`                    dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.                    dnl But don't add it                    dnl   1. if it's the standard /usr/lib,                    dnl   2. if it's /usr/local/lib and we are using GCC on Linux,                    dnl   3. if it's already present in $LDFLAGS or the already                    dnl      constructed $LIBNAME,                    dnl   4. if it doesn't exist as a directory.                    if test "X$additional_libdir" != "X/usr/lib"; then                      haveit=                      if test "X$additional_libdir" = "X/usr/local/lib"; then                        if test -n "$GCC"; then                          case $host_os in                            linux*) haveit=yes;;                          esac                        fi                      fi                      if test -z "$haveit"; then                        haveit=                        for x in $LDFLAGS $LIB[]NAME; do                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])                          if test "X$x" = "X-L$additional_libdir"; then                            haveit=yes                            break                          fi                        done                        if test -z "$haveit"; then                          if test -d "$additional_libdir"; then                            dnl Really add $additional_libdir to $LIBNAME.                            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"                          fi                        fi                        haveit=                        for x in $LDFLAGS $LTLIB[]NAME; do                          AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])                          if test "X$x" = "X-L$additional_libdir"; then                            haveit=yes                            break                          fi                        done                        if test -z "$haveit"; then                          if test -d "$additional_libdir"; then                            dnl Really add $additional_libdir to $LTLIBNAME.                            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"                          fi                        fi                      fi                    fi                    ;;                  -R*)                    dir=`echo "X$dep" | sed -e 's/^X-R//'`                    if test "$enable_rpath" != no; then                      dnl Potentially add DIR to rpathdirs.                      dnl The rpathdirs will be appended to $LIBNAME at the end.                      haveit=                      for x in $rpathdirs; do                        if test "X$x" = "X$dir"; then                          haveit=yes                          break                        fi                      done                      if test -z "$haveit"; then                        rpathdirs="$rpathdirs $dir"                      fi                      dnl Potentially add DIR to ltrpathdirs.                      dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.                      haveit=                      for x in $ltrpathdirs; do                        if test "X$x" = "X$dir"; then                          haveit=yes                          break                        fi                      done                      if test -z "$haveit"; then                        ltrpathdirs="$ltrpathdirs $dir"                      fi                    fi                    ;;                  -l*)                    dnl Handle this in the next round.                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`                    ;;                  *.la)                    dnl Handle this in the next round. Throw away the .la's                    dnl directory; it is already contained in a preceding -L                    dnl option.                    names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`                    ;;                  *)                    dnl Most likely an immediate library name.                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"                    LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"                    ;;                esac              done            fi          else            dnl Didn't find the library; assume it is in the system directories            dnl known to the linker and runtime loader. (All the system            dnl directories known to the linker should also be known to the            dnl runtime loader, otherwise the system is severely misconfigured.)            LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"            LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"          fi        fi      fi    done  done  if test "X$rpathdirs" != "X"; then    if test -n "$hardcode_libdir_separator"; then      dnl Weird platform: only the last -rpath option counts, the user must      dnl pass all path elements in one option. We can arrange that for a      dnl single library, but not when more than one $LIBNAMEs are used.      alldirs=      for found_dir in $rpathdirs; do        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"      done      dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.      acl_save_libdir="$libdir"      libdir="$alldirs"      eval flag=\"$hardcode_libdir_flag_spec\"      libdir="$acl_save_libdir"      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"    else      dnl The -rpath options are cumulative.      for found_dir in $rpathdirs; do        acl_save_libdir="$libdir"        libdir="$found_dir"        eval flag=\"$hardcode_libdir_flag_spec\"        libdir="$acl_save_libdir"        LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"      done    fi  fi  if test "X$ltrpathdirs" != "X"; then    dnl When using libtool, the option that works for both libraries and    dnl executables is -R. The -R options are cumulative.    for found_dir in $ltrpathdirs; do      LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"    done  fi])dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,dnl unless already present in VAR.dnl Works only for CPPFLAGS, not for LIB* variables because that sometimesdnl contains two or three consecutive elements that belong together.AC_DEFUN([AC_LIB_APPENDTOVAR],[  for element in [$2]; do    haveit=    for x in $[$1]; do      AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])      if test "X$x" = "X$element"; then        haveit=yes        break      fi    done    if test -z "$haveit"; then      [$1]="${[$1]}${[$1]:+ }$element"    fi  done])# lib-prefix.m4 serial 3 (gettext-0.13)dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.dnl This file is free software, distributed under the terms of the GNUdnl General Public License.  As a special exception to the GNU Generaldnl Public License, this file may be distributed as part of a programdnl that contains a configuration script generated by Autoconf, underdnl the same distribution terms as the rest of that program.dnl From Bruno Haible.dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, anddnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn'tdnl require excessive bracketing.ifdef([AC_HELP_STRING],[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are neededdnl to access previously installed libraries. The basic assumption is thatdnl a user will want packages to use other packages he previously installeddnl with the same --prefix option.dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locatednl libraries, but is otherwise very convenient.AC_DEFUN([AC_LIB_PREFIX],[  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])  AC_REQUIRE([AC_PROG_CC])  AC_REQUIRE([AC_CANONICAL_HOST])  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])  dnl By default, look in $includedir and $libdir.  use_additional=yes  AC_LIB_WITH_FINAL_PREFIX([    eval additional_includedir=\"$includedir\"    eval additional_libdir=\"$libdir\"  ])  AC_LIB_ARG_WITH([lib-prefix],[  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib  --without-lib-prefix    don't search for libraries in includedir and libdir],[    if test "X$withval" = "Xno"; then      use_additional=no    else      if test "X$withval" = "X"; then        AC_LIB_WITH_FINAL_PREFIX([          eval additional_includedir=\"$includedir\"          eval additional_libdir=\"$libdir\"        ])      else        additional_includedir="$withval/include"        additional_libdir="$withval/lib"      fi    fi])  if test $use_additional = yes; then    dnl Potentially add $additional_includedir to $CPPFLAGS.    dnl But don't add it    dnl   1. if it's the standard /usr/include,    dnl   2. if it's already present in $CPPFLAGS,    dnl   3. if it's /usr/local/include and we are using GCC on Linux,    dnl   4. if it doesn't exist as a directory.    if test "X$additional_includedir" != "X/usr/include"; then      haveit=      for x in $CPPFLAGS; do        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])        if test "X$x" = "X-I$additional_includedir"; then          haveit=yes          break        fi      done      if test -z "$haveit"; then        if test "X$additional_includedir" = "X/usr/local/include"; then          if test -n "$GCC"; then            case $host_os in              linux*) haveit=yes;;            esac          fi        fi        if test -z "$haveit"; then          if test -d "$additional_includedir"; then            dnl Really add $additional_includedir to $CPPFLAGS.            CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"          fi        fi      fi    fi    dnl Potentially add $additional_libdir to $LDFLAGS.    dnl But don't add it    dnl   1. if it's the standard /usr/lib,    dnl   2. if it's already present in $LDFLAGS,    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,    dnl   4. if it doesn't exist as a directory.    if test "X$additional_libdir" != "X/usr/lib"; then      haveit=      for x in $LDFLAGS; do        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])        if test "X$x" = "X-L$additional_libdir"; then          haveit=yes          break        fi      done      if test -z "$haveit"; then        if test "X$additional_libdir" = "X/usr/local/lib"; then          if test -n "$GCC"; then            case $host_os in              linux*) haveit=yes;;            esac          fi        fi        if test -z "$haveit"; then          if test -d "$additional_libdir"; then            dnl Really add $additional_libdir to $LDFLAGS.            LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"          fi        fi      fi    fi  fi])dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,dnl acl_final_exec_prefix, containing the values to which $prefix anddnl $exec_prefix will expand at the end of the configure script.AC_DEFUN([AC_LIB_PREPARE_PREFIX],[  dnl Unfortunately, prefix and exec_prefix get only finally determined  dnl at the end of configure.  if test "X$prefix" = "XNONE"; then    acl_final_prefix="$ac_default_prefix"  else    acl_final_prefix="$prefix"  fi  if test "X$exec_prefix" = "XNONE"; then    acl_final_exec_prefix='${prefix}'  else    acl_final_exec_prefix="$exec_prefix"  fi  acl_save_prefix="$prefix"  prefix="$acl_final_prefix"  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"  prefix="$acl_save_prefix"])dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with thednl variables prefix and exec_prefix bound to the values they will havednl at the end of the configure script.AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],

⌨️ 快捷键说明

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