~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to m4/libtool.m4

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38
38
])
39
39
 
40
 
# serial 55 LT_INIT
 
40
# serial 56 LT_INIT
41
41
 
42
42
 
43
43
# LT_PREREQ(VERSION)
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...])
893
893
    rhapsody* | darwin*)
894
894
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
895
895
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
896
    AC_CHECK_TOOL([LIPO], [lipo], [:])
 
897
    AC_CHECK_TOOL([OTOOL], [otool], [:])
 
898
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
896
899
    _LT_DECL([], [DSYMUTIL], [1],
897
900
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
898
901
    _LT_DECL([], [NMEDIT], [1],
899
902
      [Tool to change global to local symbols on Mac OS X])
 
903
    _LT_DECL([], [LIPO], [1],
 
904
      [Tool to manipulate fat objects and archives on Mac OS X])
 
905
    _LT_DECL([], [OTOOL], [1],
 
906
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
 
907
    _LT_DECL([], [OTOOL64], [1],
 
908
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
900
909
 
901
910
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
902
911
      [lt_cv_apple_cc_single_mod=no
936
945
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
937
946
    darwin1.*)
938
947
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
939
 
    darwin*) # darwin 5.x on 
 
948
    darwin*) # darwin 5.x on
940
949
      # if running on 10.5 or later, the deployment target defaults
941
950
      # to the OS version, if on x86, and 10.4, the deployment
942
 
      # target defaults to 10.4. Don't you love it? 
 
951
      # target defaults to 10.4. Don't you love it?
943
952
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
944
953
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
945
954
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
981
990
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
982
991
  _LT_TAGVAR(link_all_deplibs, $1)=yes
983
992
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
984
 
  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
985
998
    output_verbose_link_cmd=echo
986
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}"
987
1000
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1503
1516
    lt_cv_sys_max_cmd_len=-1;
1504
1517
    ;;
1505
1518
 
1506
 
  cygwin* | mingw*)
 
1519
  cygwin* | mingw* | cegcc*)
1507
1520
    # On Win9x/ME, this test blows up -- it succeeds, but takes
1508
1521
    # about 5 minutes as the teststring grows exponentially.
1509
1522
    # Worse, since 9x/ME are not pre-emptively multitasking,
1671
1684
#  endif
1672
1685
#endif
1673
1686
 
1674
 
#ifdef __cplusplus
1675
 
extern "C" void exit (int);
1676
 
#endif
1677
 
 
1678
1687
void fnord() { int i=42;}
1679
1688
int main ()
1680
1689
{
1690
1699
  else
1691
1700
    puts (dlerror ());
1692
1701
 
1693
 
    exit (status);
 
1702
  return status;
1694
1703
}]
1695
1704
_LT_EOF
1696
1705
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1729
1738
    lt_cv_dlopen_self=yes
1730
1739
    ;;
1731
1740
 
1732
 
  mingw* | pw32*)
 
1741
  mingw* | pw32* | cegcc*)
1733
1742
    lt_cv_dlopen="LoadLibrary"
1734
1743
    lt_cv_dlopen_libs=
1735
1744
    ;;
2026
2035
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2027
2036
m4_require([_LT_DECL_EGREP])dnl
2028
2037
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2038
m4_require([_LT_DECL_OBJDUMP])dnl
2029
2039
m4_require([_LT_DECL_SED])dnl
2030
2040
AC_MSG_CHECKING([dynamic linker characteristics])
2031
2041
m4_if([$1],
2190
2200
  # libtool to hard-code these into programs
2191
2201
  ;;
2192
2202
 
2193
 
cygwin* | mingw* | pw32*)
 
2203
cygwin* | mingw* | pw32* | cegcc*)
2194
2204
  version_type=windows
2195
2205
  shrext_cmds=".dll"
2196
2206
  need_version=no
2197
2207
  need_lib_prefix=no
2198
2208
 
2199
2209
  case $GCC,$host_os in
2200
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
2210
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2201
2211
    library_names_spec='$libname.dll.a'
2202
2212
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2203
2213
    postinstall_cmds='base_file=`basename \${file}`~
2220
2230
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2221
2231
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2222
2232
      ;;
2223
 
    mingw*)
 
2233
    mingw* | cegcc*)
2224
2234
      # MinGW DLLs use traditional 'lib' prefix
2225
2235
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2226
2236
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2435
2445
  ;;
2436
2446
 
2437
2447
# This must be Linux ELF.
2438
 
linux* | k*bsd*-gnu)
 
2448
linux* | k*bsd*-gnu | kopensolaris*-gnu)
2439
2449
  version_type=linux
2440
2450
  need_lib_prefix=no
2441
2451
  need_version=no
2475
2485
  dynamic_linker='GNU/Linux ld.so'
2476
2486
  ;;
2477
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
 
2478
2500
netbsd*)
2479
2501
  version_type=sunos
2480
2502
  need_lib_prefix=no
2646
2668
  version_type=linux
2647
2669
  need_lib_prefix=no
2648
2670
  need_version=no
2649
 
  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}'
2650
2672
  shlibpath_var=LD_LIBRARY_PATH
2651
2673
  shlibpath_overrides_runpath=no
2652
2674
  hardcode_into_libs=yes
2670
2692
if test "$GCC" = yes; then
2671
2693
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2672
2694
fi
2673
 
 
 
2695
 
2674
2696
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2675
2697
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2676
2698
fi
2947
2969
#  -- PORTME fill in with the dynamic library characteristics
2948
2970
m4_defun([_LT_CHECK_MAGIC_METHOD],
2949
2971
[m4_require([_LT_DECL_EGREP])
 
2972
m4_require([_LT_DECL_OBJDUMP])
2950
2973
AC_CACHE_CHECK([how to recognize dependent libraries],
2951
2974
lt_cv_deplibs_check_method,
2952
2975
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2997
3020
  fi
2998
3021
  ;;
2999
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
 
3000
3029
darwin* | rhapsody*)
3001
3030
  lt_cv_deplibs_check_method=pass_all
3002
3031
  ;;
3055
3084
  ;;
3056
3085
 
3057
3086
# This must be Linux ELF.
3058
 
linux* | k*bsd*-gnu)
 
3087
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3059
3088
  lt_cv_deplibs_check_method=pass_all
3060
3089
  ;;
3061
3090
 
3062
 
netbsd*)
 
3091
netbsd* | netbsdelf*-gnu)
3063
3092
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3064
3093
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3065
3094
  else
3308
3337
aix*)
3309
3338
  symcode='[[BCDT]]'
3310
3339
  ;;
3311
 
cygwin* | mingw* | pw32*)
 
3340
cygwin* | mingw* | pw32* | cegcc*)
3312
3341
  symcode='[[ABCDGISTW]]'
3313
3342
  ;;
3314
3343
hpux*)
3554
3583
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3555
3584
      # PIC is the default for these OSes.
3556
3585
      ;;
3557
 
    mingw* | cygwin* | os2* | pw32*)
 
3586
    mingw* | cygwin* | os2* | pw32* | cegcc*)
3558
3587
      # This hack is so that the source file can tell whether it is being
3559
3588
      # built for inclusion in a dll (and should export symbols for example).
3560
3589
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
3581
3610
      fi
3582
3611
      ;;
3583
3612
    hpux*)
3584
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3585
 
      # 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.
3586
3616
      case $host_cpu in
3587
 
      hppa*64*|ia64*)
 
3617
      hppa*64*)
3588
3618
        ;;
3589
3619
      *)
3590
3620
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3675
3705
            ;;
3676
3706
        esac
3677
3707
        ;;
3678
 
      linux* | k*bsd*-gnu)
 
3708
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
3679
3709
        case $cc_basename in
3680
3710
          KCC*)
3681
3711
            # KAI C++ Compiler
3682
3712
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3683
3713
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3684
3714
            ;;
3685
 
          icpc* | ecpc* )
3686
 
            # Intel C++
 
3715
          ecpc* )
 
3716
            # old Intel C++ for x86_64 which still supported -KPIC.
3687
3717
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3688
3718
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3689
3719
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3690
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
            ;;
3691
3728
          pgCC* | pgcpp*)
3692
3729
            # Portland Group C++ compiler
3693
3730
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3732
3769
            ;;
3733
3770
        esac
3734
3771
        ;;
3735
 
      netbsd*)
 
3772
      netbsd* | netbsdelf*-gnu)
3736
3773
        ;;
3737
3774
      *qnx* | *nto*)
3738
3775
        # QNX uses GNU C++, but need to define -shared option too, otherwise
3853
3890
      # PIC is the default for these OSes.
3854
3891
      ;;
3855
3892
 
3856
 
    mingw* | cygwin* | pw32* | os2*)
 
3893
    mingw* | cygwin* | pw32* | os2* | cegcc*)
3857
3894
      # This hack is so that the source file can tell whether it is being
3858
3895
      # built for inclusion in a dll (and should export symbols for example).
3859
3896
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
3869
3906
      ;;
3870
3907
 
3871
3908
    hpux*)
3872
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3873
 
      # 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.
3874
3912
      case $host_cpu in
3875
 
      hppa*64*|ia64*)
 
3913
      hppa*64*)
3876
3914
        # +Z the default
3877
3915
        ;;
3878
3916
      *)
3922
3960
      fi
3923
3961
      ;;
3924
3962
 
3925
 
    mingw* | cygwin* | pw32* | os2*)
 
3963
    mingw* | cygwin* | pw32* | os2* | cegcc*)
3926
3964
      # This hack is so that the source file can tell whether it is being
3927
3965
      # built for inclusion in a dll (and should export symbols for example).
3928
3966
      m4_if([$1], [GCJ], [],
3951
3989
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3952
3990
      ;;
3953
3991
 
3954
 
    linux* | k*bsd*-gnu)
 
3992
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
3955
3993
      case $cc_basename in
3956
 
      icc* | ecc* | ifort*)
 
3994
      # old Intel for x86_64 which still supported -KPIC.
 
3995
      ecc*)
3957
3996
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3958
3997
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3959
3998
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3960
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
        ;;
3961
4013
      pgcc* | pgf77* | pgf90* | pgf95*)
3962
4014
        # Portland Group compilers (*not* the Pentium gcc compiler,
3963
4015
        # which looks to be a dead project)
4139
4191
  pw32*)
4140
4192
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4141
4193
  ;;
4142
 
  cygwin* | mingw*)
 
4194
  cygwin* | mingw* | cegcc*)
4143
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'
4144
4196
  ;;
 
4197
  linux* | k*bsd*-gnu)
 
4198
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
4199
  ;;
4145
4200
  *)
4146
4201
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4147
4202
  ;;
4191
4246
  extract_expsyms_cmds=
4192
4247
 
4193
4248
  case $host_os in
4194
 
  cygwin* | mingw* | pw32*)
 
4249
  cygwin* | mingw* | pw32* | cegcc*)
4195
4250
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
4196
4251
    # When not using gcc, we currently assume that we are using
4197
4252
    # Microsoft Visual C++.
4206
4261
  openbsd*)
4207
4262
    with_gnu_ld=no
4208
4263
    ;;
 
4264
  linux* | k*bsd*-gnu)
 
4265
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
4266
    ;;
4209
4267
  esac
4210
4268
 
4211
4269
  _LT_TAGVAR(ld_shlibs, $1)=yes
4227
4285
    fi
4228
4286
    supports_anon_versioning=no
4229
4287
    case `$LD -v 2>&1` in
 
4288
      *GNU\ gold*) supports_anon_versioning=yes ;;
4230
4289
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4231
4290
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4232
4291
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4278
4337
      fi
4279
4338
      ;;
4280
4339
 
4281
 
    cygwin* | mingw* | pw32*)
 
4340
    cygwin* | mingw* | pw32* | cegcc*)
4282
4341
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4283
4342
      # as there is no search path for DLLs.
4284
4343
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4318
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'
4319
4378
      ;;
4320
4379
 
4321
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
4380
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4322
4381
      tmp_diet=no
4323
4382
      if test "$host_os" = linux-dietlibc; then
4324
4383
        case $cc_basename in
4344
4403
          tmp_addflag=' -i_dynamic -nofor_main' ;;
4345
4404
        ifc* | ifort*)                  # Intel Fortran compiler
4346
4405
          tmp_addflag=' -nofor_main' ;;
 
4406
        lf95*)                          # Lahey Fortran 8.1
 
4407
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
4408
          tmp_sharedflag='--shared' ;;
4347
4409
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
4348
4410
          tmp_sharedflag='-qmkshrobj'
4349
4411
          tmp_addflag= ;;
4385
4447
      fi
4386
4448
      ;;
4387
4449
 
4388
 
    netbsd*)
 
4450
    netbsd* | netbsdelf*-gnu)
4389
4451
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4390
4452
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4391
4453
        wlarc=
4560
4622
        if test "$aix_use_runtimelinking" = yes; then
4561
4623
          shared_flag="$shared_flag "'${wl}-G'
4562
4624
        fi
 
4625
        _LT_TAGVAR(link_all_deplibs, $1)=no
4563
4626
      else
4564
4627
        # not using gcc
4565
4628
        if test "$host_cpu" = ia64; then
4575
4638
        fi
4576
4639
      fi
4577
4640
 
 
4641
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
4578
4642
      # It seems that -bexpall does not export symbols beginning with
4579
4643
      # underscore (_), so it is better to generate a list of symbols to export.
4580
4644
      _LT_TAGVAR(always_export_symbols, $1)=yes
4629
4693
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
4630
4694
      ;;
4631
4695
 
4632
 
    cygwin* | mingw* | pw32*)
 
4696
    cygwin* | mingw* | pw32* | cegcc*)
4633
4697
      # When not using gcc, we currently assume that we are using
4634
4698
      # Microsoft Visual C++.
4635
4699
      # hardcode_libdir_flag_spec is actually meaningless, as there is
4733
4797
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4734
4798
          ;;
4735
4799
        ia64*)
4736
 
          _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'
4737
4801
          ;;
4738
4802
        *)
4739
4803
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4797
4861
      _LT_TAGVAR(link_all_deplibs, $1)=yes
4798
4862
      ;;
4799
4863
 
4800
 
    netbsd*)
 
4864
    netbsd* | netbsdelf*-gnu)
4801
4865
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4802
4866
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
4803
4867
      else
5518
5582
          fi
5519
5583
        fi
5520
5584
 
 
5585
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5521
5586
        # It seems that -bexpall does not export symbols beginning with
5522
5587
        # underscore (_), so it is better to generate a list of symbols to
5523
5588
        # export.
5576
5641
        esac
5577
5642
        ;;
5578
5643
 
5579
 
      cygwin* | mingw* | pw32*)
 
5644
      cygwin* | mingw* | pw32* | cegcc*)
5580
5645
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5581
5646
        # as there is no search path for DLLs.
5582
5647
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5796
5861
        _LT_TAGVAR(inherit_rpath, $1)=yes
5797
5862
        ;;
5798
5863
 
5799
 
      linux* | k*bsd*-gnu)
 
5864
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
5800
5865
        case $cc_basename in
5801
5866
          KCC*)
5802
5867
            # Kuck and Associates, Inc. (KAI) C++ Compiler
6961
7026
])
6962
7027
 
6963
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
 
6964
7041
# _LT_DECL_SED
6965
7042
# ------------
6966
7043
# Check for a fully-functional sed program, that truncates
7054
7131
xsi_shell=no
7055
7132
( _lt_dummy="a/b/c"
7056
7133
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7057
 
      = c,a/b,, ) >/dev/null 2>&1 \
 
7134
      = c,a/b,, \
 
7135
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
7136
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7058
7137
  && xsi_shell=yes
7059
7138
AC_MSG_RESULT([$xsi_shell])
7060
7139
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7098
7177
[case $xsi_shell in
7099
7178
  yes)
7100
7179
    cat << \_LT_EOF >> "$cfgfile"
 
7180
 
7101
7181
# func_dirname file append nondir_replacement
7102
7182
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7103
7183
# otherwise set result to NONDIR_REPLACEMENT.
7165
7245
    *)    func_lo2o_result=${1} ;;
7166
7246
  esac
7167
7247
}
 
7248
 
 
7249
# func_xform libobj-or-source
 
7250
func_xform ()
 
7251
{
 
7252
  func_xform_result=${1%.*}.lo
 
7253
}
 
7254
 
 
7255
# func_arith arithmetic-term...
 
7256
func_arith ()
 
7257
{
 
7258
  func_arith_result=$(( $[*] ))
 
7259
}
 
7260
 
 
7261
# func_len string
 
7262
# STRING may not start with a hyphen.
 
7263
func_len ()
 
7264
{
 
7265
  func_len_result=${#1}
 
7266
}
 
7267
 
7168
7268
_LT_EOF
7169
7269
    ;;
7170
7270
  *) # Bourne compatible functions.
7171
7271
    cat << \_LT_EOF >> "$cfgfile"
 
7272
 
7172
7273
# func_dirname file append nondir_replacement
7173
7274
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7174
7275
# otherwise set result to NONDIR_REPLACEMENT.
7189
7290
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7190
7291
}
7191
7292
 
7192
 
# func_dirname_and_basename file append nondir_replacement
7193
 
# perform func_basename and func_dirname in a single function
7194
 
# call:
7195
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
7196
 
#             add APPEND to the result, otherwise set result
7197
 
#             to NONDIR_REPLACEMENT.
7198
 
#             value returned in "$func_dirname_result"
7199
 
#   basename: Compute filename of FILE.
7200
 
#             value retuned in "$func_basename_result"
7201
 
# Implementation must be kept synchronized with func_dirname
7202
 
# and func_basename. For efficiency, we do not delegate to
7203
 
# those functions but instead duplicate the functionality here.
7204
 
func_dirname_and_basename ()
7205
 
{
7206
 
  # Extract subdirectory from the argument.
7207
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7208
 
  if test "X$func_dirname_result" = "X${1}"; then
7209
 
    func_dirname_result="${3}"
7210
 
  else
7211
 
    func_dirname_result="$func_dirname_result${2}"
7212
 
  fi
7213
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7214
 
}
 
7293
dnl func_dirname_and_basename
 
7294
dnl A portable version of this function is already defined in general.m4sh
 
7295
dnl so there is no need for it here.
7215
7296
 
7216
7297
# func_stripname prefix suffix name
7217
7298
# strip PREFIX and SUFFIX off of NAME.
7245
7326
{
7246
7327
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7247
7328
}
 
7329
 
 
7330
# func_xform libobj-or-source
 
7331
func_xform ()
 
7332
{
 
7333
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
 
7334
}
 
7335
 
 
7336
# func_arith arithmetic-term...
 
7337
func_arith ()
 
7338
{
 
7339
  func_arith_result=`expr "$[@]"`
 
7340
}
 
7341
 
 
7342
# func_len string
 
7343
# STRING may not start with a hyphen.
 
7344
func_len ()
 
7345
{
 
7346
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
 
7347
}
 
7348
 
7248
7349
_LT_EOF
7249
7350
esac
7250
7351
 
7269
7370
{
7270
7371
  eval "$[1]=\$$[1]\$[2]"
7271
7372
}
 
7373
 
7272
7374
_LT_EOF
7273
7375
    ;;
7274
7376
  esac