/[libtool]/libtool/libtool.m4
ViewVC logotype

Diff of /libtool/libtool.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.314.2.93 by rwild, Sat Jul 2 10:19:39 2005 UTC revision 1.314.2.94 by rwild, Sun Jul 3 16:57:32 2005 UTC
# Line 137  rm="rm -f" Line 137  rm="rm -f"
137  default_ofile=libtool  default_ofile=libtool
138  can_build_shared=yes  can_build_shared=yes
139    
140  # All known linkers require a `.a' archive for static linking (except M$VC,  # All known linkers require a `.a' archive for static linking (except MSVC,
141  # which needs '.lib').  # which needs '.lib').
142  libext=a  libext=a
143  ltmain="$ac_aux_dir/ltmain.sh"  ltmain="$ac_aux_dir/ltmain.sh"
# Line 1328  darwin* | rhapsody*) Line 1328  darwin* | rhapsody*)
1328    soname_spec='${libname}${release}${major}$shared_ext'    soname_spec='${libname}${release}${major}$shared_ext'
1329    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
1330    shlibpath_var=DYLD_LIBRARY_PATH    shlibpath_var=DYLD_LIBRARY_PATH
1331    shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1332    # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.    # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1333    if test "$GCC" = yes; then    if test "$GCC" = yes; then
1334      sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`      sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
# Line 1807  AC_DEFUN([AC_LIBTOOL_DLOPEN], Line 1807  AC_DEFUN([AC_LIBTOOL_DLOPEN],
1807    
1808  # AC_LIBTOOL_WIN32_DLL  # AC_LIBTOOL_WIN32_DLL
1809  # --------------------  # --------------------
1810  # declare package support for building win32 dll's  # declare package support for building win32 DLLs
1811  AC_DEFUN([AC_LIBTOOL_WIN32_DLL],  AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1812  [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])  [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1813  ])# AC_LIBTOOL_WIN32_DLL  ])# AC_LIBTOOL_WIN32_DLL
# Line 2091  AC_CACHE_VAL(lt_cv_path_LD, Line 2091  AC_CACHE_VAL(lt_cv_path_LD,
2091      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2092        lt_cv_path_LD="$ac_dir/$ac_prog"        lt_cv_path_LD="$ac_dir/$ac_prog"
2093        # Check to see if the program is GNU ld.  I'd rather use --version,        # Check to see if the program is GNU ld.  I'd rather use --version,
2094        # but apparently some GNU ld's only accept -v.        # but apparently some variants of GNU ld only accept -v.
2095        # Break only if it was the GNU/non-GNU ld that we prefer.        # Break only if it was the GNU/non-GNU ld that we prefer.
2096        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2097        *GNU* | *'with BFD'*)        *GNU* | *'with BFD'*)
# Line 2123  AC_PROG_LD_GNU Line 2123  AC_PROG_LD_GNU
2123  AC_DEFUN([AC_PROG_LD_GNU],  AC_DEFUN([AC_PROG_LD_GNU],
2124  [AC_REQUIRE([AC_PROG_EGREP])dnl  [AC_REQUIRE([AC_PROG_EGREP])dnl
2125  AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,  AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2126  [# I'd rather use --version here, but apparently some GNU ld's only accept -v.  [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2127  case `$LD -v 2>&1 </dev/null` in  case `$LD -v 2>&1 </dev/null` in
2128  *GNU* | *'with BFD'*)  *GNU* | *'with BFD'*)
2129    lt_cv_prog_gnu_ld=yes    lt_cv_prog_gnu_ld=yes
# Line 2908  case $host_os in Line 2908  case $host_os in
2908          # Exported symbols can be pulled into shared objects from archives          # Exported symbols can be pulled into shared objects from archives
2909          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
2910          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2911          # This is similar to how AIX traditionally builds it's shared libraries.          # This is similar to how AIX traditionally builds its shared libraries.
2912          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2913        fi        fi
2914      fi      fi
# Line 2985  case $host_os in Line 2985  case $host_os in
2985            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2986          fi          fi
2987          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2988          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
2989            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2990              _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'              _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2991            else            else
# Line 2998  case $host_os in Line 2998  case $host_os in
2998           output_verbose_link_cmd='echo'           output_verbose_link_cmd='echo'
2999            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3000            _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'            _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3001            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3002            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3003            _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'            _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3004            ;;            ;;
# Line 5554  EOF Line 5554  EOF
5554            # Exported symbols can be pulled into shared objects from archives            # Exported symbols can be pulled into shared objects from archives
5555            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
5556            _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes            _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5557            # This is similar to how AIX traditionally builds it's shared libraries.            # This is similar to how AIX traditionally builds its shared libraries.
5558            _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'            _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5559          fi          fi
5560        fi        fi
# Line 5623  EOF Line 5623  EOF
5623          output_verbose_link_cmd='echo'          output_verbose_link_cmd='echo'
5624          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5625        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5626        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5627        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5628        _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'        _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5629      else      else
# Line 5632  EOF Line 5632  EOF
5632           output_verbose_link_cmd='echo'           output_verbose_link_cmd='echo'
5633           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
5634           _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'           _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5635            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5636           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5637            _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'            _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5638            ;;            ;;

Legend:
Removed from v.1.314.2.93  
changed lines
  Added in v.1.314.2.94

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26