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

📄 libtool.m4

📁 奇趣公司比较新的qt/emd版本
💻 M4
📖 第 1 页 / 共 5 页
字号:
_LT_DECL([], [old_postinstall_cmds], [2])_LT_DECL([], [old_postuninstall_cmds], [2])_LT_TAGDECL([], [old_archive_cmds], [2],    [Commands used to build an old-style archive])])# _LT_CMD_OLD_ARCHIVE# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])# ----------------------------------------------------------------# Check whether the given compiler option worksAC_DEFUN([_LT_COMPILER_OPTION],[AC_REQUIRE([AC_OBJEXT])dnlm4_require([_LT_FILEUTILS_DEFAULTS])dnlm4_require([_LT_DECL_SED])dnlAC_CACHE_CHECK([$1], [$2],  [$2=no   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])   printf "$lt_simple_compile_test_code" > conftest.$ac_ext   lt_compiler_flag="$3"   # Insert the option either (1) after the last *FLAGS variable, or   # (2) before a word containing "conftest.", or (3) at the end.   # Note that $ac_compile itself does not contain backslashes and begins   # with a dollar sign (not a hyphen), so the echo should work correctly.   # The option is referenced via a variable to avoid confusing sed.   lt_compile=`echo "$ac_compile" | $SED \   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \   -e 's:$: $lt_compiler_flag:'`   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)   (eval "$lt_compile" 2>conftest.err)   ac_status=$?   cat conftest.err >&AS_MESSAGE_LOG_FD   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD   if (exit $ac_status) && test -s "$ac_outfile"; then     # The compiler can only warn and ignore the option if not recognized     # So say no if there are warnings other than the usual output.     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then       $2=yes     fi   fi   $RM conftest*])if test x"[$]$2" = xyes; then    m4_if([$5], , :, [$5])else    m4_if([$6], , :, [$6])fi])# _LT_COMPILER_OPTION# Old name:AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])dnl aclocal-1.4 backwards compatibility:dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,#                  [ACTION-SUCCESS], [ACTION-FAILURE])# ----------------------------------------------------# Check whether the given linker option worksAC_DEFUN([_LT_LINKER_OPTION],[m4_require([_LT_FILEUTILS_DEFAULTS])dnlAC_CACHE_CHECK([$1], [$2],  [$2=no   save_LDFLAGS="$LDFLAGS"   LDFLAGS="$LDFLAGS $3"   printf "$lt_simple_link_test_code" > conftest.$ac_ext   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then     # The linker can only warn and ignore the option if not recognized     # So say no if there are warnings     if test -s conftest.err; then       # Append any errors to the config.log.       cat conftest.err 1>&AS_MESSAGE_LOG_FD       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2       if diff conftest.exp conftest.er2 >/dev/null; then         $2=yes       fi     else       $2=yes     fi   fi   $RM conftest*   LDFLAGS="$save_LDFLAGS"])if test x"[$]$2" = xyes; then    m4_if([$4], , :, [$4])else    m4_if([$5], , :, [$5])fi])# _LT_LINKER_OPTION# Old name:AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])dnl aclocal-1.4 backwards compatibility:dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])# LT_CMD_MAX_LEN#---------------AC_DEFUN([LT_CMD_MAX_LEN],[AC_REQUIRE([AC_CANONICAL_HOST])dnl# find the maximum length of command line argumentsAC_MSG_CHECKING([the maximum length of command line arguments])AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl  i=0  teststring="ABCD"  case $build_os in  msdosdjgpp*)    # On DJGPP, this test can blow up pretty badly due to problems in libc    # (any single argument exceeding 2000 bytes causes a buffer overrun    # during glob expansion).  Even if it were fixed, the result of this    # check would be larger than it should be.    lt_cv_sys_max_cmd_len=12288;    # 12K is about right    ;;  gnu*)    # Under GNU Hurd, this test is not required because there is    # no limit to the length of command line arguments.    # Libtool will interpret -1 as no limit whatsoever    lt_cv_sys_max_cmd_len=-1;    ;;  cygwin* | mingw*)    # On Win9x/ME, this test blows up -- it succeeds, but takes    # about 5 minutes as the teststring grows exponentially.    # Worse, since 9x/ME are not pre-emptively multitasking,    # you end up with a "frozen" computer, even though with patience    # the test eventually succeeds (with a max line length of 256k).    # Instead, let's just punt: use the minimum linelength reported by    # all of the supported platforms: 8192 (on NT/2K/XP).    lt_cv_sys_max_cmd_len=8192;    ;;  amigaos*)    # On AmigaOS with pdksh, this test takes hours, literally.    # So we just punt and use a minimum line length of 8192.    lt_cv_sys_max_cmd_len=8192;    ;;  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)    # This has been around since 386BSD, at least.  Likely further.    if test -x /sbin/sysctl; then      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`    elif test -x /usr/sbin/sysctl; then      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`    else      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs    fi    # And add a safety zone    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`    ;;  interix*)    # We know the value 262144 and hardcode it with a safety zone (like BSD)    lt_cv_sys_max_cmd_len=196608    ;;  osf*)    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not    # nice to cause kernel panics so lets avoid the loop below.    # First set a reasonable default.    lt_cv_sys_max_cmd_len=16384    #    if test -x /sbin/sysconfig; then      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in        *1*) lt_cv_sys_max_cmd_len=-1 ;;      esac    fi    ;;  sco3.2v5*)    lt_cv_sys_max_cmd_len=102400    ;;  sysv5* | sco5v6* | sysv4.2uw2*)    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`    if test -n "$kargmax"; then      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ 	]]//'`    else      lt_cv_sys_max_cmd_len=32768    fi    ;;  *)    # Make teststring a little bigger before we do anything with it.    # a 1K string should be a reasonable start.    for i in 1 2 3 4 5 6 7 8 ; do      teststring=$teststring$teststring    done    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}    # If test is not a shell built-in, we'll probably end up computing a    # maximum length that is only half of the actual maximum length, but    # we can't tell.    while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \	       = "XX$teststring$teststring"; } >/dev/null 2>&1 &&	    test $i != 17 # 1/2 MB should be enough    do      i=`expr $i + 1`      teststring=$teststring$teststring    done    # Only check the string length outside the loop.    lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`    teststring=    # Add a significant safety factor because C++ compilers can tack on massive    # amounts of additional arguments before passing them to the linker.    # It appears as though 1/2 is a usable value.    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`    ;;  esac])if test -n $lt_cv_sys_max_cmd_len ; then  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)else  AC_MSG_RESULT(none)fimax_cmd_len=$lt_cv_sys_max_cmd_len_LT_DECL([], [max_cmd_len], [0],    [What is the maximum length of a command?])])# LT_CMD_MAX_LEN# Old name:AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])dnl aclocal-1.4 backwards compatibility:dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])# _LT_HEADER_DLFCN# ----------------m4_defun([_LT_HEADER_DLFCN],[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl])# _LT_HEADER_DLFCN# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)# ----------------------------------------------------------------m4_defun([_LT_TRY_DLOPEN_SELF],[m4_require([_LT_HEADER_DLFCN])dnlif test "$cross_compiling" = yes; then :  [$4]else  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2  lt_status=$lt_dlunknown  cat > conftest.$ac_ext <<_LT_EOF[#line __oline__ "configure"#include "confdefs.h"#if HAVE_DLFCN_H#include <dlfcn.h>#endif#include <stdio.h>#ifdef RTLD_GLOBAL#  define LT_DLGLOBAL		RTLD_GLOBAL#else#  ifdef DL_GLOBAL#    define LT_DLGLOBAL		DL_GLOBAL#  else#    define LT_DLGLOBAL		0#  endif#endif/* We may have to define LT_DLLAZY_OR_NOW in the command line if we   find out it does not work in some platform. */#ifndef LT_DLLAZY_OR_NOW#  ifdef RTLD_LAZY#    define LT_DLLAZY_OR_NOW		RTLD_LAZY#  else#    ifdef DL_LAZY#      define LT_DLLAZY_OR_NOW		DL_LAZY#    else#      ifdef RTLD_NOW#        define LT_DLLAZY_OR_NOW	RTLD_NOW#      else#        ifdef DL_NOW#          define LT_DLLAZY_OR_NOW	DL_NOW#        else#          define LT_DLLAZY_OR_NOW	0#        endif#      endif#    endif#  endif#endif#ifdef __cplusplusextern "C" void exit (int);#endifvoid fnord() { int i=42;}int main (){  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);  int status = $lt_dlunknown;  if (self)    {      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;      /* dlclose (self); */    }  else    puts (dlerror ());    exit (status);}]_LT_EOF  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null    lt_status=$?    case x$lt_status in      x$lt_dlno_uscore) $1 ;;      x$lt_dlneed_uscore) $2 ;;      x$lt_dlunknown|x*) $3 ;;    esac  else :    # compilation failed    $3  fifirm -fr conftest*])# _LT_TRY_DLOPEN_SELF# LT_SYS_DLOPEN_SELF# ------------------AC_DEFUN([LT_SYS_DLOPEN_SELF],[m4_require([_LT_HEADER_DLFCN])dnlif test "x$enable_dlopen" != xyes; then  enable_dlopen=unknown  enable_dlopen_self=unknown  enable_dlopen_self_static=unknownelse  lt_cv_dlopen=no  lt_cv_dlopen_libs=  case $host_os in  beos*)    lt_cv_dlopen="load_add_on"    lt_cv_dlopen_libs=    lt_cv_dlopen_self=yes    ;;  mingw* | pw32*)    lt_cv_dlopen="LoadLibrary"    lt_cv_dlopen_libs=    ;;  cygwin*)    lt_cv_dlopen="dlopen"    lt_cv_dlopen_libs=    ;;  darwin*)  # if libdl is installed we need to link against it    AC_CHECK_LIB([dl], [dlopen],		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[    lt_cv_dlopen="dyld"    lt_cv_dlopen_libs=    lt_cv_dlopen_self=yes    ])    ;;  *)    AC_CHECK_FUNC([shl_load],	  [lt_cv_dlopen="shl_load"],      [AC_CHECK_LIB([dld], [shl_load],	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],	[AC_CHECK_FUNC([dlopen],	      [lt_cv_dlopen="dlopen"],	  [AC_CHECK_LIB([dl], [dlopen],		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],	    [AC_CHECK_LIB([svld], [dlopen],		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],	      [AC_CHECK_LIB([dld], [dld_link],		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])	      ])	    ])	  ])	])      ])    ;;  esac  if test "x$lt_cv_dlopen" != xno; then    enable_dlopen=yes  else    enable_dlopen=no  fi  case $lt_cv_dlopen in  dlopen)    save_CPPFLAGS="$CPPFLAGS"    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"    save_LDFLAGS="$LDFLAGS"    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"    save_LIBS="$LIBS"    LIBS="$lt_cv_dlopen_libs $LIBS"    AC_CACHE_CHECK([whether a program can dlopen itself],	  lt_cv_dlopen_self, [dnl	  _LT_TRY_DLOPEN_SELF(	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)    ])    if test "x$lt_cv_dlopen_self" = xyes; then      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"

⌨️ 快捷键说明

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