~ubuntu-branches/ubuntu/trusty/protobuf/trusty-proposed

« back to all changes in this revision

Viewing changes to .pc/autogen.diff/m4/libtool.m4

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2011-05-31 14:41:47 UTC
  • mfrom: (2.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20110531144147-s41g5fozgvyo462l
Tags: 2.4.0a-2ubuntu1
* Merge with Debian; remaining changes:
  - Fix linking with -lpthread.

Show diffs side-by-side

added added

removed removed

Lines of Context:
380
380
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
381
381
# ---------------------------------------------------
382
382
m4_define([lt_decl_varnames_tagged],
383
 
[_$0(m4_quote(m4_default([$1], [[, ]])),
384
 
     m4_quote(m4_if([$2], [],
385
 
                     m4_quote(lt_decl_tag_varnames),
386
 
                  m4_quote(m4_shift($@)))),
387
 
     m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
388
 
m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
 
383
[m4_assert([$# <= 2])dnl
 
384
_$0(m4_quote(m4_default([$1], [[, ]])),
 
385
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
 
386
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
 
387
m4_define([_lt_decl_varnames_tagged],
 
388
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
389
389
 
390
390
 
391
391
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
945
945
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
946
946
    darwin1.*)
947
947
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
948
 
    darwin*) # darwin 5.x on 
 
948
    darwin*) # darwin 5.x on
949
949
      # if running on 10.5 or later, the deployment target defaults
950
950
      # to the OS version, if on x86, and 10.4, the deployment
951
 
      # target defaults to 10.4. Don't you love it? 
 
951
      # target defaults to 10.4. Don't you love it?
952
952
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
953
953
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
954
954
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
990
990
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
991
991
  _LT_TAGVAR(link_all_deplibs, $1)=yes
992
992
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
993
 
  if test "$GCC" = "yes"; then
 
993
  case $cc_basename in
 
994
     ifort*) _lt_dar_can_shared=yes ;;
 
995
     *) _lt_dar_can_shared=$GCC ;;
 
996
  esac
 
997
  if test "$_lt_dar_can_shared" = "yes"; then
994
998
    output_verbose_link_cmd=echo
995
999
    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
996
1000
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1512
1516
    lt_cv_sys_max_cmd_len=-1;
1513
1517
    ;;
1514
1518
 
1515
 
  cygwin* | mingw*)
 
1519
  cygwin* | mingw* | cegcc*)
1516
1520
    # On Win9x/ME, this test blows up -- it succeeds, but takes
1517
1521
    # about 5 minutes as the teststring grows exponentially.
1518
1522
    # Worse, since 9x/ME are not pre-emptively multitasking,
1680
1684
#  endif
1681
1685
#endif
1682
1686
 
1683
 
#ifdef __cplusplus
1684
 
extern "C" void exit (int);
1685
 
#endif
1686
 
 
1687
1687
void fnord() { int i=42;}
1688
1688
int main ()
1689
1689
{
1699
1699
  else
1700
1700
    puts (dlerror ());
1701
1701
 
1702
 
    exit (status);
 
1702
  return status;
1703
1703
}]
1704
1704
_LT_EOF
1705
1705
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1738
1738
    lt_cv_dlopen_self=yes
1739
1739
    ;;
1740
1740
 
1741
 
  mingw* | pw32*)
 
1741
  mingw* | pw32* | cegcc*)
1742
1742
    lt_cv_dlopen="LoadLibrary"
1743
1743
    lt_cv_dlopen_libs=
1744
1744
    ;;
2035
2035
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2036
2036
m4_require([_LT_DECL_EGREP])dnl
2037
2037
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2038
m4_require([_LT_DECL_OBJDUMP])dnl
2038
2039
m4_require([_LT_DECL_SED])dnl
2039
2040
AC_MSG_CHECKING([dynamic linker characteristics])
2040
2041
m4_if([$1],
2199
2200
  # libtool to hard-code these into programs
2200
2201
  ;;
2201
2202
 
2202
 
cygwin* | mingw* | pw32*)
 
2203
cygwin* | mingw* | pw32* | cegcc*)
2203
2204
  version_type=windows
2204
2205
  shrext_cmds=".dll"
2205
2206
  need_version=no
2206
2207
  need_lib_prefix=no
2207
2208
 
2208
2209
  case $GCC,$host_os in
2209
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
2210
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2210
2211
    library_names_spec='$libname.dll.a'
2211
2212
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2212
2213
    postinstall_cmds='base_file=`basename \${file}`~
2229
2230
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2230
2231
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2231
2232
      ;;
2232
 
    mingw*)
 
2233
    mingw* | cegcc*)
2233
2234
      # MinGW DLLs use traditional 'lib' prefix
2234
2235
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2235
2236
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2444
2445
  ;;
2445
2446
 
2446
2447
# This must be Linux ELF.
2447
 
linux* | k*bsd*-gnu)
 
2448
linux* | k*bsd*-gnu | kopensolaris*-gnu)
2448
2449
  version_type=linux
2449
2450
  need_lib_prefix=no
2450
2451
  need_version=no
2484
2485
  dynamic_linker='GNU/Linux ld.so'
2485
2486
  ;;
2486
2487
 
 
2488
netbsdelf*-gnu)
 
2489
  version_type=linux
 
2490
  need_lib_prefix=no
 
2491
  need_version=no
 
2492
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
2493
  soname_spec='${libname}${release}${shared_ext}$major'
 
2494
  shlibpath_var=LD_LIBRARY_PATH
 
2495
  shlibpath_overrides_runpath=no
 
2496
  hardcode_into_libs=yes
 
2497
  dynamic_linker='NetBSD ld.elf_so'
 
2498
  ;;
 
2499
 
2487
2500
netbsd*)
2488
2501
  version_type=sunos
2489
2502
  need_lib_prefix=no
2655
2668
  version_type=linux
2656
2669
  need_lib_prefix=no
2657
2670
  need_version=no
2658
 
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2671
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2659
2672
  shlibpath_var=LD_LIBRARY_PATH
2660
2673
  shlibpath_overrides_runpath=no
2661
2674
  hardcode_into_libs=yes
2679
2692
if test "$GCC" = yes; then
2680
2693
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2681
2694
fi
2682
 
 
 
2695
 
2683
2696
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2684
2697
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2685
2698
fi
2956
2969
#  -- PORTME fill in with the dynamic library characteristics
2957
2970
m4_defun([_LT_CHECK_MAGIC_METHOD],
2958
2971
[m4_require([_LT_DECL_EGREP])
 
2972
m4_require([_LT_DECL_OBJDUMP])
2959
2973
AC_CACHE_CHECK([how to recognize dependent libraries],
2960
2974
lt_cv_deplibs_check_method,
2961
2975
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3006
3020
  fi
3007
3021
  ;;
3008
3022
 
 
3023
cegcc)
 
3024
  # use the weaker test based on 'objdump'. See mingw*.
 
3025
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
3026
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3027
  ;;
 
3028
 
3009
3029
darwin* | rhapsody*)
3010
3030
  lt_cv_deplibs_check_method=pass_all
3011
3031
  ;;
3064
3084
  ;;
3065
3085
 
3066
3086
# This must be Linux ELF.
3067
 
linux* | k*bsd*-gnu)
 
3087
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3068
3088
  lt_cv_deplibs_check_method=pass_all
3069
3089
  ;;
3070
3090
 
3071
 
netbsd*)
 
3091
netbsd* | netbsdelf*-gnu)
3072
3092
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3073
3093
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3074
3094
  else
3317
3337
aix*)
3318
3338
  symcode='[[BCDT]]'
3319
3339
  ;;
3320
 
cygwin* | mingw* | pw32*)
 
3340
cygwin* | mingw* | pw32* | cegcc*)
3321
3341
  symcode='[[ABCDGISTW]]'
3322
3342
  ;;
3323
3343
hpux*)
3563
3583
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3564
3584
      # PIC is the default for these OSes.
3565
3585
      ;;
3566
 
    mingw* | cygwin* | os2* | pw32*)
 
3586
    mingw* | cygwin* | os2* | pw32* | cegcc*)
3567
3587
      # This hack is so that the source file can tell whether it is being
3568
3588
      # built for inclusion in a dll (and should export symbols for example).
3569
3589
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
3590
3610
      fi
3591
3611
      ;;
3592
3612
    hpux*)
3593
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3594
 
      # not for PA HP-UX.
 
3613
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
3614
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
3615
      # sets the default TLS model and affects inlining.
3595
3616
      case $host_cpu in
3596
 
      hppa*64*|ia64*)
 
3617
      hppa*64*)
3597
3618
        ;;
3598
3619
      *)
3599
3620
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3684
3705
            ;;
3685
3706
        esac
3686
3707
        ;;
3687
 
      linux* | k*bsd*-gnu)
 
3708
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
3688
3709
        case $cc_basename in
3689
3710
          KCC*)
3690
3711
            # KAI C++ Compiler
3691
3712
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3692
3713
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3693
3714
            ;;
3694
 
          icpc* | ecpc* )
3695
 
            # Intel C++
 
3715
          ecpc* )
 
3716
            # old Intel C++ for x86_64 which still supported -KPIC.
3696
3717
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3697
3718
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3698
3719
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3699
3720
            ;;
 
3721
          icpc* )
 
3722
            # Intel C++, used to be incompatible with GCC.
 
3723
            # ICC 10 doesn't accept -KPIC any more.
 
3724
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3725
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3726
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
3727
            ;;
3700
3728
          pgCC* | pgcpp*)
3701
3729
            # Portland Group C++ compiler
3702
3730
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3741
3769
            ;;
3742
3770
        esac
3743
3771
        ;;
3744
 
      netbsd*)
 
3772
      netbsd* | netbsdelf*-gnu)
3745
3773
        ;;
3746
3774
      *qnx* | *nto*)
3747
3775
        # QNX uses GNU C++, but need to define -shared option too, otherwise
3862
3890
      # PIC is the default for these OSes.
3863
3891
      ;;
3864
3892
 
3865
 
    mingw* | cygwin* | pw32* | os2*)
 
3893
    mingw* | cygwin* | pw32* | os2* | cegcc*)
3866
3894
      # This hack is so that the source file can tell whether it is being
3867
3895
      # built for inclusion in a dll (and should export symbols for example).
3868
3896
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
3878
3906
      ;;
3879
3907
 
3880
3908
    hpux*)
3881
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3882
 
      # not for PA HP-UX.
 
3909
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
3910
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
3911
      # sets the default TLS model and affects inlining.
3883
3912
      case $host_cpu in
3884
 
      hppa*64*|ia64*)
 
3913
      hppa*64*)
3885
3914
        # +Z the default
3886
3915
        ;;
3887
3916
      *)
3931
3960
      fi
3932
3961
      ;;
3933
3962
 
3934
 
    mingw* | cygwin* | pw32* | os2*)
 
3963
    mingw* | cygwin* | pw32* | os2* | cegcc*)
3935
3964
      # This hack is so that the source file can tell whether it is being
3936
3965
      # built for inclusion in a dll (and should export symbols for example).
3937
3966
      m4_if([$1], [GCJ], [],
3960
3989
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3961
3990
      ;;
3962
3991
 
3963
 
    linux* | k*bsd*-gnu)
 
3992
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
3964
3993
      case $cc_basename in
3965
 
      icc* | ecc* | ifort*)
 
3994
      # old Intel for x86_64 which still supported -KPIC.
 
3995
      ecc*)
3966
3996
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3967
3997
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3968
3998
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3969
3999
        ;;
 
4000
      # icc used to be incompatible with GCC.
 
4001
      # ICC 10 doesn't accept -KPIC any more.
 
4002
      icc* | ifort*)
 
4003
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4004
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4005
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4006
        ;;
 
4007
      # Lahey Fortran 8.1.
 
4008
      lf95*)
 
4009
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4010
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
 
4011
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
 
4012
        ;;
3970
4013
      pgcc* | pgf77* | pgf90* | pgf95*)
3971
4014
        # Portland Group compilers (*not* the Pentium gcc compiler,
3972
4015
        # which looks to be a dead project)
4148
4191
  pw32*)
4149
4192
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4150
4193
  ;;
4151
 
  cygwin* | mingw*)
 
4194
  cygwin* | mingw* | cegcc*)
4152
4195
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4153
4196
  ;;
 
4197
  linux* | k*bsd*-gnu)
 
4198
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
4199
  ;;
4154
4200
  *)
4155
4201
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4156
4202
  ;;
4200
4246
  extract_expsyms_cmds=
4201
4247
 
4202
4248
  case $host_os in
4203
 
  cygwin* | mingw* | pw32*)
 
4249
  cygwin* | mingw* | pw32* | cegcc*)
4204
4250
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
4205
4251
    # When not using gcc, we currently assume that we are using
4206
4252
    # Microsoft Visual C++.
4215
4261
  openbsd*)
4216
4262
    with_gnu_ld=no
4217
4263
    ;;
 
4264
  linux* | k*bsd*-gnu)
 
4265
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
4266
    ;;
4218
4267
  esac
4219
4268
 
4220
4269
  _LT_TAGVAR(ld_shlibs, $1)=yes
4236
4285
    fi
4237
4286
    supports_anon_versioning=no
4238
4287
    case `$LD -v 2>&1` in
 
4288
      *GNU\ gold*) supports_anon_versioning=yes ;;
4239
4289
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4240
4290
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4241
4291
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4287
4337
      fi
4288
4338
      ;;
4289
4339
 
4290
 
    cygwin* | mingw* | pw32*)
 
4340
    cygwin* | mingw* | pw32* | cegcc*)
4291
4341
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4292
4342
      # as there is no search path for DLLs.
4293
4343
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4327
4377
      _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4328
4378
      ;;
4329
4379
 
4330
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
4380
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4331
4381
      tmp_diet=no
4332
4382
      if test "$host_os" = linux-dietlibc; then
4333
4383
        case $cc_basename in
4353
4403
          tmp_addflag=' -i_dynamic -nofor_main' ;;
4354
4404
        ifc* | ifort*)                  # Intel Fortran compiler
4355
4405
          tmp_addflag=' -nofor_main' ;;
 
4406
        lf95*)                          # Lahey Fortran 8.1
 
4407
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
4408
          tmp_sharedflag='--shared' ;;
4356
4409
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
4357
4410
          tmp_sharedflag='-qmkshrobj'
4358
4411
          tmp_addflag= ;;
4394
4447
      fi
4395
4448
      ;;
4396
4449
 
4397
 
    netbsd*)
 
4450
    netbsd* | netbsdelf*-gnu)
4398
4451
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4399
4452
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4400
4453
        wlarc=
4569
4622
        if test "$aix_use_runtimelinking" = yes; then
4570
4623
          shared_flag="$shared_flag "'${wl}-G'
4571
4624
        fi
 
4625
        _LT_TAGVAR(link_all_deplibs, $1)=no
4572
4626
      else
4573
4627
        # not using gcc
4574
4628
        if test "$host_cpu" = ia64; then
4584
4638
        fi
4585
4639
      fi
4586
4640
 
 
4641
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
4587
4642
      # It seems that -bexpall does not export symbols beginning with
4588
4643
      # underscore (_), so it is better to generate a list of symbols to export.
4589
4644
      _LT_TAGVAR(always_export_symbols, $1)=yes
4638
4693
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
4639
4694
      ;;
4640
4695
 
4641
 
    cygwin* | mingw* | pw32*)
 
4696
    cygwin* | mingw* | pw32* | cegcc*)
4642
4697
      # When not using gcc, we currently assume that we are using
4643
4698
      # Microsoft Visual C++.
4644
4699
      # hardcode_libdir_flag_spec is actually meaningless, as there is
4742
4797
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4743
4798
          ;;
4744
4799
        ia64*)
4745
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
4800
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4746
4801
          ;;
4747
4802
        *)
4748
4803
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4806
4861
      _LT_TAGVAR(link_all_deplibs, $1)=yes
4807
4862
      ;;
4808
4863
 
4809
 
    netbsd*)
 
4864
    netbsd* | netbsdelf*-gnu)
4810
4865
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4811
4866
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
4812
4867
      else
5527
5582
          fi
5528
5583
        fi
5529
5584
 
 
5585
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5530
5586
        # It seems that -bexpall does not export symbols beginning with
5531
5587
        # underscore (_), so it is better to generate a list of symbols to
5532
5588
        # export.
5585
5641
        esac
5586
5642
        ;;
5587
5643
 
5588
 
      cygwin* | mingw* | pw32*)
 
5644
      cygwin* | mingw* | pw32* | cegcc*)
5589
5645
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5590
5646
        # as there is no search path for DLLs.
5591
5647
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5805
5861
        _LT_TAGVAR(inherit_rpath, $1)=yes
5806
5862
        ;;
5807
5863
 
5808
 
      linux* | k*bsd*-gnu)
 
5864
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
5809
5865
        case $cc_basename in
5810
5866
          KCC*)
5811
5867
            # Kuck and Associates, Inc. (KAI) C++ Compiler
6970
7026
])
6971
7027
 
6972
7028
 
 
7029
# _LT_DECL_OBJDUMP
 
7030
# --------------
 
7031
# If we don't have a new enough Autoconf to choose the best objdump
 
7032
# available, choose the one first in the user's PATH.
 
7033
m4_defun([_LT_DECL_OBJDUMP],
 
7034
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
7035
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7036
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
 
7037
AC_SUBST([OBJDUMP])
 
7038
])
 
7039
 
 
7040
 
6973
7041
# _LT_DECL_SED
6974
7042
# ------------
6975
7043
# Check for a fully-functional sed program, that truncates