/[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.92 by rwild, Sat Jun 11 11:04:30 2005 UTC revision 1.314.2.93 by rwild, Sat Jul 2 10:19:39 2005 UTC
# Line 353  if test "X${echo_test_string+set}" != Xs Line 353  if test "X${echo_test_string+set}" != Xs
353  # find a string as large as possible, as long as the shell can cope with it  # find a string as large as possible, as long as the shell can cope with it
354    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
355      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
356      if (echo_test_string="`eval $cmd`") 2>/dev/null &&      if (echo_test_string=`eval $cmd`) 2>/dev/null &&
357         echo_test_string="`eval $cmd`" &&         echo_test_string=`eval $cmd` &&
358         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
359      then      then
360        break        break
# Line 523  x86_64-*linux*|ppc*-*linux*|powerpc*-*li Line 523  x86_64-*linux*|ppc*-*linux*|powerpc*-*li
523    # Find out which ABI we are using.    # Find out which ABI we are using.
524    echo 'int i;' > conftest.$ac_ext    echo 'int i;' > conftest.$ac_ext
525    if AC_TRY_EVAL(ac_compile); then    if AC_TRY_EVAL(ac_compile); then
526      case "`/usr/bin/file conftest.o`" in      case `/usr/bin/file conftest.o` in
527      *32-bit*)      *32-bit*)
528        case $host in        case $host in
529          x86_64-*linux*)          x86_64-*linux*)
# Line 1411  hpux9* | hpux10* | hpux11*) Line 1411  hpux9* | hpux10* | hpux11*)
1411    version_type=sunos    version_type=sunos
1412    need_lib_prefix=no    need_lib_prefix=no
1413    need_version=no    need_version=no
1414    case "$host_cpu" in    case $host_cpu in
1415    ia64*)    ia64*)
1416      shrext_cmds='.so'      shrext_cmds='.so'
1417      hardcode_into_libs=yes      hardcode_into_libs=yes
# Line 1981  dnl not every word.  This closes a longs Line 1981  dnl not every word.  This closes a longs
1981        if test -n "$file_magic_test_file"; then        if test -n "$file_magic_test_file"; then
1982          case $deplibs_check_method in          case $deplibs_check_method in
1983          "file_magic "*)          "file_magic "*)
1984            file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1985            MAGIC_CMD="$lt_cv_path_MAGIC_CMD"            MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1986            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1987              $EGREP "$file_magic_regex" > /dev/null; then              $EGREP "$file_magic_regex" > /dev/null; then
# Line 2237  gnu*) Line 2237  gnu*)
2237    
2238  hpux10.20* | hpux11*)  hpux10.20* | hpux11*)
2239    lt_cv_file_magic_cmd=/usr/bin/file    lt_cv_file_magic_cmd=/usr/bin/file
2240    case "$host_cpu" in    case $host_cpu in
2241    ia64*)    ia64*)
2242      lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'      lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2243      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
# Line 2625  test "$can_build_shared" = "no" && enabl Line 2625  test "$can_build_shared" = "no" && enabl
2625    
2626  # On AIX, shared libraries and static libraries use the same namespace, and  # On AIX, shared libraries and static libraries use the same namespace, and
2627  # are all built from PIC.  # are all built from PIC.
2628  case "$host_os" in  case $host_os in
2629  aix3*)  aix3*)
2630    test "$enable_shared" = yes && enable_static=no    test "$enable_shared" = yes && enable_static=no
2631    if test -n "$RANLIB"; then    if test -n "$RANLIB"; then
# Line 2947  case $host_os in Line 2947  case $host_os in
2947      fi      fi
2948    ;;    ;;
2949        darwin* | rhapsody*)        darwin* | rhapsody*)
2950          case "$host_os" in          case $host_os in
2951          rhapsody* | darwin1.[[012]])          rhapsody* | darwin1.[[012]])
2952           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
2953           ;;           ;;
# Line 3078  case $host_os in Line 3078  case $host_os in
3078      ;;      ;;
3079    hpux10*|hpux11*)    hpux10*|hpux11*)
3080      if test $with_gnu_ld = no; then      if test $with_gnu_ld = no; then
3081        case "$host_cpu" in        case $host_cpu in
3082        hppa*64*)        hppa*64*)
3083          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3084          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
# Line 3094  case $host_os in Line 3094  case $host_os in
3094          ;;          ;;
3095        esac        esac
3096      fi      fi
3097      case "$host_cpu" in      case $host_cpu in
3098      hppa*64*)      hppa*64*)
3099        _LT_AC_TAGVAR(hardcode_direct, $1)=no        _LT_AC_TAGVAR(hardcode_direct, $1)=no
3100        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
# Line 3120  case $host_os in Line 3120  case $host_os in
3120          _LT_AC_TAGVAR(ld_shlibs, $1)=no          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3121          ;;          ;;
3122        aCC*)        aCC*)
3123          case "$host_cpu" in          case $host_cpu in
3124          hppa*64*|ia64*)          hppa*64*|ia64*)
3125            _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'            _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3126            ;;            ;;
# Line 3141  case $host_os in Line 3141  case $host_os in
3141        *)        *)
3142          if test "$GXX" = yes; then          if test "$GXX" = yes; then
3143            if test $with_gnu_ld = no; then            if test $with_gnu_ld = no; then
3144              case "$host_cpu" in              case $host_cpu in
3145              ia64*|hppa*64*)              ia64*|hppa*64*)
3146                _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'                _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3147                ;;                ;;
# Line 3666  if AC_TRY_EVAL(ac_compile); then Line 3666  if AC_TRY_EVAL(ac_compile); then
3666    # The `*' in the case matches for architectures that use `case' in    # The `*' in the case matches for architectures that use `case' in
3667    # $output_verbose_cmd can trigger glob expansion during the loop    # $output_verbose_cmd can trigger glob expansion during the loop
3668    # eval without this substitution.    # eval without this substitution.
3669    output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"    output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3670    
3671    for p in `eval $output_verbose_link_cmd`; do    for p in `eval $output_verbose_link_cmd`; do
3672      case $p in      case $p in
# Line 3811  test "$can_build_shared" = "no" && enabl Line 3811  test "$can_build_shared" = "no" && enabl
3811    
3812  # On AIX, shared libraries and static libraries use the same namespace, and  # On AIX, shared libraries and static libraries use the same namespace, and
3813  # are all built from PIC.  # are all built from PIC.
3814  case "$host_os" in  case $host_os in
3815  aix3*)  aix3*)
3816    test "$enable_shared" = yes && enable_static=no    test "$enable_shared" = yes && enable_static=no
3817    if test -n "$RANLIB"; then    if test -n "$RANLIB"; then
# Line 4714  AC_MSG_CHECKING([for $compiler option to Line 4714  AC_MSG_CHECKING([for $compiler option to
4714      hpux*)      hpux*)
4715        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4716        # not for PA HP-UX.        # not for PA HP-UX.
4717        case "$host_cpu" in        case $host_cpu in
4718        hppa*64*|ia64*)        hppa*64*|ia64*)
4719          ;;          ;;
4720        *)        *)
# Line 4783  AC_MSG_CHECKING([for $compiler option to Line 4783  AC_MSG_CHECKING([for $compiler option to
4783            aCC*)            aCC*)
4784              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4785              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4786              case "$host_cpu" in              case $host_cpu in
4787              hppa*64*|ia64*)              hppa*64*|ia64*)
4788                # +Z the default                # +Z the default
4789                ;;                ;;
# Line 4988  AC_MSG_CHECKING([for $compiler option to Line 4988  AC_MSG_CHECKING([for $compiler option to
4988      hpux*)      hpux*)
4989        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4990        # not for PA HP-UX.        # not for PA HP-UX.
4991        case "$host_cpu" in        case $host_cpu in
4992        hppa*64*|ia64*)        hppa*64*|ia64*)
4993          # +Z the default          # +Z the default
4994          ;;          ;;
# Line 5035  AC_MSG_CHECKING([for $compiler option to Line 5035  AC_MSG_CHECKING([for $compiler option to
5035        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5036        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5037        # not for PA HP-UX.        # not for PA HP-UX.
5038        case "$host_cpu" in        case $host_cpu in
5039        hppa*64*|ia64*)        hppa*64*|ia64*)
5040          # +Z the default          # +Z the default
5041          ;;          ;;
# Line 5153  if test -n "$_LT_AC_TAGVAR(lt_prog_compi Line 5153  if test -n "$_LT_AC_TAGVAR(lt_prog_compi
5153      [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=      [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5154       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5155  fi  fi
5156  case "$host_os" in  case $host_os in
5157    # For platforms which do not support PIC, -DPIC is meaningless:    # For platforms which do not support PIC, -DPIC is meaningless:
5158    *djgpp*)    *djgpp*)
5159      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
# Line 5594  EOF Line 5594  EOF
5594        ;;        ;;
5595    
5596      darwin* | rhapsody*)      darwin* | rhapsody*)
5597        case "$host_os" in        case $host_os in
5598          rhapsody* | darwin1.[[012]])          rhapsody* | darwin1.[[012]])
5599           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5600           ;;           ;;
# Line 5698  EOF Line 5698  EOF
5698    
5699      hpux10* | hpux11*)      hpux10* | hpux11*)
5700        if test "$GCC" = yes -a "$with_gnu_ld" = no; then        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5701          case "$host_cpu" in          case $host_cpu in
5702          hppa*64*|ia64*)          hppa*64*|ia64*)
5703            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5704            ;;            ;;
# Line 5707  EOF Line 5707  EOF
5707            ;;            ;;
5708          esac          esac
5709        else        else
5710          case "$host_cpu" in          case $host_cpu in
5711          hppa*64*|ia64*)          hppa*64*|ia64*)
5712            _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'            _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
5713            ;;            ;;
# Line 5717  EOF Line 5717  EOF
5717          esac          esac
5718        fi        fi
5719        if test "$with_gnu_ld" = no; then        if test "$with_gnu_ld" = no; then
5720          case "$host_cpu" in          case $host_cpu in
5721          hppa*64*)          hppa*64*)
5722            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5723            _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'            _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'

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

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