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

📄 aclocal.m4

📁 用C语言实现的JPEG编码
💻 M4
📖 第 1 页 / 共 5 页
字号:
      # need to do runtime linking.      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)	for ld_flag in $LDFLAGS; do	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then	    aix_use_runtimelinking=yes	    break	  fi	done      esac      exp_sym_flag='-bexport'      no_entry_flag='-bnoentry'    fi    # When large executables or shared objects are built, AIX ld can    # have problems creating the table of contents.  If linking a library    # or program results in "error TOC overflow" add -mminimal-toc to    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.    hardcode_direct=yes    archive_cmds=''    hardcode_libdir_separator=':'    if test "$GCC" = yes; then      case $host_os in aix4.[[012]]|aix4.[[012]].*)	collect2name=`${CC} -print-prog-name=collect2`	if test -f "$collect2name" && \	  strings "$collect2name" | grep resolve_lib_name >/dev/null	then	  # We have reworked collect2	  hardcode_direct=yes	else	  # We have old collect2	  hardcode_direct=unsupported	  # It fails to find uninstalled libraries when the uninstalled	  # path is not listed in the libpath.  Setting hardcode_minus_L	  # to unsupported forces relinking	  hardcode_minus_L=yes	  hardcode_libdir_flag_spec='-L$libdir'	  hardcode_libdir_separator=	fi      esac      shared_flag='-shared'    else      # not using gcc      if test "$host_cpu" = ia64; then	shared_flag='${wl}-G'      else	if test "$aix_use_runtimelinking" = yes; then	  shared_flag='${wl}-G'	else	  shared_flag='${wl}-bM:SRE'	fi      fi    fi    # It seems that -bexpall can do strange things, so it is better to    # generate a list of symbols to export.    always_export_symbols=yes    if test "$aix_use_runtimelinking" = yes; then      # Warning - without using the other runtime loading flags (-brtl),      # -berok will link without error, but may produce a broken library.      allow_undefined_flag='-berok'      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"    else      if test "$host_cpu" = ia64; then	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'	allow_undefined_flag="-z nodefs"	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"      else	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'	# Warning - without using the other run time loading flags,	# -berok will link without error, but may produce a broken library.	allow_undefined_flag='${wl}-berok'	# This is a bit strange, but is similar to how AIX traditionally builds	# it's shared libraries.	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'      fi    fi    ;;  amigaos*)    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'    hardcode_libdir_flag_spec='-L$libdir'    hardcode_minus_L=yes    # see comment about different semantics on the GNU ld section    ld_shlibs=no    ;;  cygwin* | mingw* | pw32*)    # When not using gcc, we currently assume that we are using    # Microsoft Visual C++.    # hardcode_libdir_flag_spec is actually meaningless, as there is    # no search path for DLLs.    hardcode_libdir_flag_spec=' '    allow_undefined_flag=unsupported    # Tell ltmain to make .lib files, not .a files.    libext=lib    # FIXME: Setting linknames here is a bad hack.    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='    # The linker will automatically build a .lib file if we build a DLL.    old_archive_from_new_cmds='true'    # FIXME: Should let the user specify the lib program.    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'    fix_srcfile_path='`cygpath -w "$srcfile"`'    ;;  darwin* | rhapsody*)    case "$host_os" in    rhapsody* | darwin1.[[012]])      allow_undefined_flag='-undefined suppress'      ;;    *) # Darwin 1.3 on      allow_undefined_flag='-flat_namespace -undefined suppress'      ;;    esac    # FIXME: Relying on posixy $() will cause problems for    #        cross-compilation, but unfortunately the echo tests do not    #        yet detect zsh echo's removal of \ escapes.    archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'    # We need to add '_' to the symbols in $export_symbols first    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'    hardcode_direct=yes    hardcode_shlibpath_var=no    whole_archive_flag_spec='-all_load $convenience'    ;;  freebsd1*)    ld_shlibs=no    ;;  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor  # support.  Future versions do this automatically, but an explicit c++rt0.o  # does not break anything, and helps significantly (at the cost of a little  # extra space).  freebsd2.2*)    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'    hardcode_libdir_flag_spec='-R$libdir'    hardcode_direct=yes    hardcode_shlibpath_var=no    ;;  # Unfortunately, older versions of FreeBSD 2 do not have this feature.  freebsd2*)    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'    hardcode_direct=yes    hardcode_minus_L=yes    hardcode_shlibpath_var=no    ;;  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.  freebsd*)    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'    hardcode_libdir_flag_spec='-R$libdir'    hardcode_direct=yes    hardcode_shlibpath_var=no    ;;  hpux9* | hpux10* | hpux11*)    case $host_os in    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;    esac    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'    hardcode_libdir_separator=:    hardcode_direct=yes    hardcode_minus_L=yes # Not in the search PATH, but as the default			 # location of the library.    export_dynamic_flag_spec='${wl}-E'    ;;  irix5* | irix6*)    if test "$GCC" = yes; then      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'    else      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'    fi    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'    hardcode_libdir_separator=:    link_all_deplibs=yes    ;;  netbsd*)    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out    else      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF    fi    hardcode_libdir_flag_spec='-R$libdir'    hardcode_direct=yes    hardcode_shlibpath_var=no    ;;  newsos6)    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'    hardcode_direct=yes    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'    hardcode_libdir_separator=:    hardcode_shlibpath_var=no    ;;  openbsd*)    hardcode_direct=yes    hardcode_shlibpath_var=no    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'      export_dynamic_flag_spec='${wl}-E'    else      case "$host_os" in      openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'	hardcode_libdir_flag_spec='-R$libdir'        ;;      *)        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'        ;;      esac    fi    ;;  os2*)    hardcode_libdir_flag_spec='-L$libdir'    hardcode_minus_L=yes    allow_undefined_flag=unsupported    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'    ;;  osf3*)    if test "$GCC" = yes; then      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'    else      allow_undefined_flag=' -expect_unresolved \*'      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'    fi    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'    hardcode_libdir_separator=:    ;;  osf4* | osf5*)	# as osf3* with the addition of -msym flag    if test "$GCC" = yes; then      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'    else      allow_undefined_flag=' -expect_unresolved \*'      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'      #Both c and cxx compiler support -rpath directly      hardcode_libdir_flag_spec='-rpath $libdir'    fi    hardcode_libdir_separator=:    ;;  sco3.2v5*)    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'    hardcode_shlibpath_var=no    runpath_var=LD_RUN_PATH    hardcode_runpath_var=yes    export_dynamic_flag_spec='${wl}-Bexport'    ;;  solaris*)    # gcc --version < 3.0 without binutils cannot create self contained    # shared libraries reliably, requiring libgcc.a to resolve some of    # the object symbols generated in some cases.  Libraries that use    # assert need libgcc.a to resolve __eprintf, for example.  Linking    # a copy of libgcc.a into every shared library to guarantee resolving    # such symbols causes other problems:  According to Tim Van Holder    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate    # (to the application) exception stack for one thing.    no_undefined_flag=' -z defs'    if test "$GCC" = yes; then      case `$CC --version 2>/dev/null` in      [[12]].*)	cat <<EOF 1>&2*** Warning: Releases of GCC earlier than version 3.0 cannot reliably*** create self contained shared libraries on Solaris systems, without*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling*** -no-undefined support, which will at least allow you to build shared*** libraries.  However, you may find that when you link such libraries*** into an application without using GCC, you have to manually add*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to*** upgrade to a newer version of GCC.  Another option is to rebuild your*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.EOF        no_undefined_flag=	;;      esac    fi    # $CC -shared without GNU ld will not create a library from C++    # object files and a static libstdc++, better avoid it by now    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'    hardcode_libdir_flag_spec='-R$libdir'    hardcode_shlibpath_var=no    case $host_os in    solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;    *) # Supported since Solaris 2.6 (maybe 2.5.1?)      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;    esac    link_all_deplibs=yes    ;;  sunos4*)    if test "x$host_vendor" = xsequent; then      # Use $CC to link under sequent, because it throws in some extra .o      # files that make .init and .fini sections work.      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'    else      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'    fi    hardcode_libdir_flag_spec='-L$libdir'    hardcode_direct=yes    hardcode_minus_L=yes    hardcode_shlibpath_var=no    ;;  sysv4)    if test "x$host_vendor" = xsno; then      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'      hardcode_direct=yes # is this really true???    else      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'      hardcode_direct=no #Motorola manual says yes, but my tests say they lie    fi    runpath_var='LD_RUN_PATH'    hardcode_shlibpath_var=no    ;;  sysv4.3*)    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'    hardcode_shlibpath_var=no    export_dynamic_flag_spec='-Bexport'    ;;  sysv5*)    no_undefined_flag=' -z text'    # $CC -shared without GNU ld will not create a library from C++    # object files and a static libstdc++, better avoid it by now    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'    hardcode_libdir_flag_spec=    hardcode_shlibpath_var=no    runpath_var='LD_RUN_PATH'    ;;  uts4*)    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'    hardcode_libdir_flag_spec='-L$libdir'    hardcode_shlibpath_var=no    ;;  dgux*)    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'    hardcode_libdir_flag_spec='-L$libdir'    hardcode_shlibpath_var=no    ;;  sysv4*MP*)    if test -d /usr/nec; then      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'      hardcode_shlibpath_var=no      runpath_var=LD_RUN_PATH      hardcode_runpath_var=yes      ld_shlibs=yes    fi    ;;  sysv4.2uw2*)    archive

⌨️ 快捷键说明

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