📄 ltconfig
字号:
ac_save_LIBS="$LIBS"LIBS="-ldld $LIBS"cat > conftest.$ac_ext <<EOF/*#line 1715 "ltconfig"*//* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */#ifdef __cplusplusextern "C"#endifchar dld_link();int main() {dld_link(); return 0; }EOFif { (eval echo $progname:1728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_lib_dld_dld_link=yeselse echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_lib_dld_dld_link=nofirm -f conftest*LIBS="$ac_save_LIBS"fiif test "X$ac_cv_lib_dld_dld_link" = Xyes; then echo "$ac_t""yes" 1>&6 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"else echo "$ac_t""no" 1>&6echo $ac_n "checking for shl_load""... $ac_c" 1>&6echo "$progname:1747: checking for shl_load" >&5if test "X${ac_cv_func_shl_load+set}" = Xset; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF/*#line 1752 "ltconfig"*//* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load(); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */#ifdef __cplusplusextern "C"#endifchar shl_load();int main() {/* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */#if defined (__stub_shl_load) || defined (__stub___shl_load)choke me#elseshl_load();#endif; return 0; }EOFif { (eval echo $progname:1777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_shl_load=yeselse echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_func_shl_load=nofirm -f conftest*fiif test "X$ac_cv_func_shl_load" = Xyes; then echo "$ac_t""yes" 1>&6 lt_cv_dlopen="shl_load"else echo "$ac_t""no" 1>&6echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6echo "$progname:1795: checking for shl_load in -ldld" >&5if test "X${ac_cv_lib_dld_shl_load+set}" = Xset; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-ldld $LIBS"cat > conftest.$ac_ext <<EOF/*#line 1802 "ltconfig"*/#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */#ifdef __cplusplusextern "C"#endifchar shl_load();int main() {shl_load(); return 0; }EOFif { (eval echo $progname:1816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_lib_dld_shl_load=yeselse echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_lib_dld_shl_load=nofirm -f conftest*LIBS="$ac_save_LIBS"fiif test "X$ac_cv_lib_dld_shl_load" = Xyes; then echo "$ac_t""yes" 1>&6 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"else echo "$ac_t""no" 1>&6fififififififi if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen)for ac_hdr in dlfcn.h; doac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "$progname:1863: checking for $ac_hdr" >&5if eval "test \"`echo 'X$''{'ac_cv_header_$ac_safe'+set}'`\" = Xset"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF/*#line 1868 "ltconfig"*/#include <$ac_hdr>int fnord = 0;int main () { return(0); }EOFac_try="$ac_compile >/dev/null 2>conftest.out"{ (eval echo $progname:1874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes"else echo "$ac_err" >&5 echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6else echo "$ac_t""no" 1>&6fidone if test "x$ac_cv_header_dlfcn_h" = xyes; then CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" fi eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" LIBS="$lt_cv_dlopen_libs $LIBS" echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6echo "$progname:1902: checking whether a program can dlopen itself" >&5if test "X${lt_cv_dlopen_self+set}" = Xset; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$cross_compiling" = yes; then lt_cv_dlopen_self=cross else cat > conftest.$ac_ext <<EOF/*#line 1910 "ltconfig"*/#if HAVE_DLFCN_H#include <dlfcn.h>#endif#include <stdio.h>#ifdef RTLD_GLOBAL# define LTDL_GLOBAL RTLD_GLOBAL#else# ifdef DL_GLOBAL# define LTDL_GLOBAL DL_GLOBAL# else# define LTDL_GLOBAL 0# endif#endif/* We may have to define LTDL_LAZY_OR_NOW in the command line if we find out it does not work in some platform. */#ifndef LTDL_LAZY_OR_NOW# ifdef RTLD_LAZY# define LTDL_LAZY_OR_NOW RTLD_LAZY# else# ifdef DL_LAZY# define LTDL_LAZY_OR_NOW DL_LAZY# else# ifdef RTLD_NOW# define LTDL_LAZY_OR_NOW RTLD_NOW# else# ifdef DL_NOW# define LTDL_LAZY_OR_NOW DL_NOW# else# define LTDL_LAZY_OR_NOW 0# endif# endif# endif# endif#endifvoid fnord() { int i=42; }int main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW); if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord"); if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); return 1;}EOFif { (eval echo $progname:1957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/nullthen lt_cv_dlopen_self=yeselse echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* lt_cv_dlopen_self=nofirm -fr conftest*fifiecho "$ac_t""$lt_cv_dlopen_self" 1>&6 if test "$lt_cv_dlopen_self" = yes; then LDFLAGS="$LDFLAGS $link_static_flag" echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6echo "$progname:1976: checking whether a statically linked program can dlopen itself" >&5if test "X${lt_cv_dlopen_self_static+set}" = Xset; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$cross_compiling" = yes; then lt_cv_dlopen_self_static=cross else cat > conftest.$ac_ext <<EOF/*#line 1984 "ltconfig"*/#if HAVE_DLFCN_H#include <dlfcn.h>#endif#include <stdio.h>#ifdef RTLD_GLOBAL# define LTDL_GLOBAL RTLD_GLOBAL#else# ifdef DL_GLOBAL# define LTDL_GLOBAL DL_GLOBAL# else# define LTDL_GLOBAL 0# endif#endif/* We may have to define LTDL_LAZY_OR_NOW in the command line if we find out it does not work in some platform. */#ifndef LTDL_LAZY_OR_NOW# ifdef RTLD_LAZY# define LTDL_LAZY_OR_NOW RTLD_LAZY# else# ifdef DL_LAZY# define LTDL_LAZY_OR_NOW DL_LAZY# else# ifdef RTLD_NOW# define LTDL_LAZY_OR_NOW RTLD_NOW# else# ifdef DL_NOW# define LTDL_LAZY_OR_NOW DL_NOW# else# define LTDL_LAZY_OR_NOW 0# endif# endif# endif# endif#endifvoid fnord() { int i=42; }int main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW); if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord"); if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); return 1; }EOFif { (eval echo $progname:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/nullthen lt_cv_dlopen_self_static=yeselse echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* lt_cv_dlopen_self_static=nofirm -fr conftest*fifiecho "$ac_t""$lt_cv_dlopen_self_static" 1>&6fi ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esacfi# Copy echo and quote the copy, instead of the original, because it is# used later.ltecho="$echo"if test "X$ltecho" = "X$CONFIG_SHELL $0 --fallback-echo"; then ltecho="$CONFIG_SHELL \$0 --fallback-echo"fiLTSHELL="$SHELL"LTCONFIG_VERSION="$VERSION"# Only quote variables if we're using ltmain.sh.case $ltmain in*.sh) # Now quote all the things that may contain metacharacters. for var in ltecho old_AR old_AR_FLAGS old_CC old_LTCC old_CFLAGS old_CPPFLAGS \ old_MAGIC_CMD old_LD old_LDFLAGS old_LIBS \ old_LN_S old_NM old_RANLIB old_STRIP \ old_AS old_DLLTOOL old_OBJDUMP \ old_OBJEXT old_EXEEXT old_reload_flag \ old_deplibs_check_method old_file_magic_cmd \ AR AR_FLAGS CC LTCC LD LN_S NM LTSHELL LTCONFIG_VERSION \ reload_flag reload_cmds wl \ pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ thread_safe_flag_spec whole_archive_flag_spec libname_spec \ library_names_spec soname_spec \ RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ predep_objects postdep_objects predeps postdeps compiler_lib_search_path \ old_striplib striplib file_magic_cmd export_symbols_cmds \ deplibs_check_method allow_undefined_flag no_undefined_flag \ finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ hardcode_libdir_flag_spec hardcode_libdir_separator \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ compiler_c_o need_locks exclude_expsyms include_expsyms; do case $var in reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ postinstall_cmds | postuninstall_cmds | \ finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ### testsuite: skip nested quoting test ;; *) eval "$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ### testsuite: skip nested quoting test ;; esac done case $ltecho in *'\$0 --fallback-echo"') ltecho=`$echo "X$ltecho" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac if test -z "$tagname"; then trap "$rm \"$ofile\"; exit 1" 1 2 15 echo "creating $ofile" $rm "$ofile" cat <<EOF > "$ofile"#! $SHELL# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)# NOTE: Changes made to this file will be lost: look at ltconfig or ltmain.sh.## Copyright (C) 1996-2000 Free Software Foundation, Inc.# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2 of the License, or# (at your option) any later version.## T
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -