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

📄 aclocal.m4

📁 最新的libusb库
💻 M4
📖 第 1 页 / 共 5 页
字号:
  # Find out which ABI we are using.  echo 'int i;' > conftest.$ac_ext  if AC_TRY_EVAL(ac_compile); then    case `/usr/bin/file conftest.$ac_objext` in      *ELF-32*)	HPUX_IA64_MODE="32"	;;      *ELF-64*)	HPUX_IA64_MODE="64"	;;    esac  fi  rm -rf conftest*  ;;*-*-irix6*)  # Find out which ABI we are using.  echo '[#]line __oline__ "configure"' > conftest.$ac_ext  if AC_TRY_EVAL(ac_compile); then    if test "$lt_cv_prog_gnu_ld" = yes; then      case `/usr/bin/file conftest.$ac_objext` in	*32-bit*)	  LD="${LD-ld} -melf32bsmip"	  ;;	*N32*)	  LD="${LD-ld} -melf32bmipn32"	  ;;	*64-bit*)	  LD="${LD-ld} -melf64bmip"	;;      esac    else      case `/usr/bin/file conftest.$ac_objext` in	*32-bit*)	  LD="${LD-ld} -32"	  ;;	*N32*)	  LD="${LD-ld} -n32"	  ;;	*64-bit*)	  LD="${LD-ld} -64"	  ;;      esac    fi  fi  rm -rf conftest*  ;;x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \s390*-*linux*|s390*-*tpf*|sparc*-*linux*)  # Find out which ABI we are using.  echo 'int i;' > conftest.$ac_ext  if AC_TRY_EVAL(ac_compile); then    case `/usr/bin/file conftest.o` in      *32-bit*)	case $host in	  x86_64-*kfreebsd*-gnu)	    LD="${LD-ld} -m elf_i386_fbsd"	    ;;	  x86_64-*linux*)	    LD="${LD-ld} -m elf_i386"	    ;;	  ppc64-*linux*|powerpc64-*linux*)	    LD="${LD-ld} -m elf32ppclinux"	    ;;	  s390x-*linux*)	    LD="${LD-ld} -m elf_s390"	    ;;	  sparc64-*linux*)	    LD="${LD-ld} -m elf32_sparc"	    ;;	esac	;;      *64-bit*)	case $host in	  x86_64-*kfreebsd*-gnu)	    LD="${LD-ld} -m elf_x86_64_fbsd"	    ;;	  x86_64-*linux*)	    LD="${LD-ld} -m elf_x86_64"	    ;;	  ppc*-*linux*|powerpc*-*linux*)	    LD="${LD-ld} -m elf64ppc"	    ;;	  s390*-*linux*|s390*-*tpf*)	    LD="${LD-ld} -m elf64_s390"	    ;;	  sparc*-*linux*)	    LD="${LD-ld} -m elf64_sparc"	    ;;	esac	;;    esac  fi  rm -rf conftest*  ;;*-*-sco3.2v5*)  # On SCO OpenServer 5, we need -belf to get full-featured binaries.  SAVE_CFLAGS="$CFLAGS"  CFLAGS="$CFLAGS -belf"  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,    [AC_LANG_PUSH(C)     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])     AC_LANG_POP])  if test x"$lt_cv_cc_needs_belf" != x"yes"; then    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf    CFLAGS="$SAVE_CFLAGS"  fi  ;;sparc*-*solaris*)  # Find out which ABI we are using.  echo 'int i;' > conftest.$ac_ext  if AC_TRY_EVAL(ac_compile); then    case `/usr/bin/file conftest.o` in    *64-bit*)      case $lt_cv_prog_gnu_ld in      yes*) LD="${LD-ld} -m elf64_sparc" ;;      *)	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then	  LD="${LD-ld} -64"	fi	;;      esac      ;;    esac  fi  rm -rf conftest*  ;;esacneed_locks="$enable_libtool_lock"])# _LT_ENABLE_LOCK# _LT_CMD_OLD_ARCHIVE# -------------------m4_defun([_LT_CMD_OLD_ARCHIVE],[AC_CHECK_TOOL(AR, ar, false)test -z "$AR" && AR=artest -z "$AR_FLAGS" && AR_FLAGS=cru_LT_DECL([], [AR], [1], [The archiver])_LT_DECL([], [AR_FLAGS], [1])AC_CHECK_TOOL(STRIP, strip, :)test -z "$STRIP" && STRIP=:_LT_DECL([], [STRIP], [1], [A symbol stripping program])AC_CHECK_TOOL(RANLIB, ranlib, :)test -z "$RANLIB" && RANLIB=:_LT_DECL([], [RANLIB], [1],    [Commands used to install an old-style archive])# Determine commands to create old-style static archives.old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'old_postinstall_cmds='chmod 644 $oldlib'old_postuninstall_cmds=if test -n "$RANLIB"; then  case $host_os in  openbsd*)    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"    ;;  *)    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"    ;;  esac  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"fi_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],[m4_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])   echo "$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])dnlm4_require([_LT_DECL_SED])dnlAC_CACHE_CHECK([$1], [$2],  [$2=no   save_LDFLAGS="$LDFLAGS"   LDFLAGS="$LDFLAGS $3"   echo "$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 -r 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    ;;  *)    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`    if test -n "$lt_cv_sys_max_cmd_len"; then      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`    else      # 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`    fi    ;;  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

⌨️ 快捷键说明

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