~ubuntu-branches/ubuntu/natty/gedit-plugins/natty

« back to all changes in this revision

Viewing changes to m4/libtool.m4

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-02-26 21:33:26 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20090226213326-xj2gntkmvm5yp215
Tags: 2.25.3-0ubuntu1
* New upstream release.
  - Misc bugfixes.
  - New and updated translations: sv, pt, hu pt_BR, lv
* debian/control.in:
  - add Vcs-Bzr tag
  - bump dependency on gedit
  - Re-generate debian/control
* debian/rules: add a check on clean target as building debian/control
  description needs pristine source code present (no always the case in Bzr
  merge mode)

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"`
2667
2668
  version_type=linux
2668
2669
  need_lib_prefix=no
2669
2670
  need_version=no
2670
 
  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}'
2671
2672
  shlibpath_var=LD_LIBRARY_PATH
2672
2673
  shlibpath_overrides_runpath=no
2673
2674
  hardcode_into_libs=yes
2691
2692
if test "$GCC" = yes; then
2692
2693
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2693
2694
fi
2694
 
 
 
2695
 
2695
2696
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2696
2697
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2697
2698
fi
2968
2969
#  -- PORTME fill in with the dynamic library characteristics
2969
2970
m4_defun([_LT_CHECK_MAGIC_METHOD],
2970
2971
[m4_require([_LT_DECL_EGREP])
 
2972
m4_require([_LT_DECL_OBJDUMP])
2971
2973
AC_CACHE_CHECK([how to recognize dependent libraries],
2972
2974
lt_cv_deplibs_check_method,
2973
2975
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3018
3020
  fi
3019
3021
  ;;
3020
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
 
3021
3029
darwin* | rhapsody*)
3022
3030
  lt_cv_deplibs_check_method=pass_all
3023
3031
  ;;
3329
3337
aix*)
3330
3338
  symcode='[[BCDT]]'
3331
3339
  ;;
3332
 
cygwin* | mingw* | pw32*)
 
3340
cygwin* | mingw* | pw32* | cegcc*)
3333
3341
  symcode='[[ABCDGISTW]]'
3334
3342
  ;;
3335
3343
hpux*)
3575
3583
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3576
3584
      # PIC is the default for these OSes.
3577
3585
      ;;
3578
 
    mingw* | cygwin* | os2* | pw32*)
 
3586
    mingw* | cygwin* | os2* | pw32* | cegcc*)
3579
3587
      # This hack is so that the source file can tell whether it is being
3580
3588
      # built for inclusion in a dll (and should export symbols for example).
3581
3589
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
3602
3610
      fi
3603
3611
      ;;
3604
3612
    hpux*)
3605
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3606
 
      # 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.
3607
3616
      case $host_cpu in
3608
 
      hppa*64*|ia64*)
 
3617
      hppa*64*)
3609
3618
        ;;
3610
3619
      *)
3611
3620
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3703
3712
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3704
3713
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3705
3714
            ;;
3706
 
          icpc* | ecpc* )
3707
 
            # Intel C++
 
3715
          ecpc* )
 
3716
            # old Intel C++ for x86_64 which still supported -KPIC.
3708
3717
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3709
3718
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3710
3719
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3711
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
            ;;
3712
3728
          pgCC* | pgcpp*)
3713
3729
            # Portland Group C++ compiler
3714
3730
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3874
3890
      # PIC is the default for these OSes.
3875
3891
      ;;
3876
3892
 
3877
 
    mingw* | cygwin* | pw32* | os2*)
 
3893
    mingw* | cygwin* | pw32* | os2* | cegcc*)
3878
3894
      # This hack is so that the source file can tell whether it is being
3879
3895
      # built for inclusion in a dll (and should export symbols for example).
3880
3896
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
3890
3906
      ;;
3891
3907
 
3892
3908
    hpux*)
3893
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3894
 
      # 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.
3895
3912
      case $host_cpu in
3896
 
      hppa*64*|ia64*)
 
3913
      hppa*64*)
3897
3914
        # +Z the default
3898
3915
        ;;
3899
3916
      *)
3943
3960
      fi
3944
3961
      ;;
3945
3962
 
3946
 
    mingw* | cygwin* | pw32* | os2*)
 
3963
    mingw* | cygwin* | pw32* | os2* | cegcc*)
3947
3964
      # This hack is so that the source file can tell whether it is being
3948
3965
      # built for inclusion in a dll (and should export symbols for example).
3949
3966
      m4_if([$1], [GCJ], [],
3974
3991
 
3975
3992
    linux* | k*bsd*-gnu)
3976
3993
      case $cc_basename in
3977
 
      icc* | ecc* | ifort*)
 
3994
      # old Intel for x86_64 which still supported -KPIC.
 
3995
      ecc*)
3978
3996
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3979
3997
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3980
3998
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3981
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
        ;;
3982
4013
      pgcc* | pgf77* | pgf90* | pgf95*)
3983
4014
        # Portland Group compilers (*not* the Pentium gcc compiler,
3984
4015
        # which looks to be a dead project)
4160
4191
  pw32*)
4161
4192
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4162
4193
  ;;
4163
 
  cygwin* | mingw*)
 
4194
  cygwin* | mingw* | cegcc*)
4164
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'
4165
4196
  ;;
4166
4197
  linux* | k*bsd*-gnu)
4215
4246
  extract_expsyms_cmds=
4216
4247
 
4217
4248
  case $host_os in
4218
 
  cygwin* | mingw* | pw32*)
 
4249
  cygwin* | mingw* | pw32* | cegcc*)
4219
4250
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
4220
4251
    # When not using gcc, we currently assume that we are using
4221
4252
    # Microsoft Visual C++.
4302
4333
      fi
4303
4334
      ;;
4304
4335
 
4305
 
    cygwin* | mingw* | pw32*)
 
4336
    cygwin* | mingw* | pw32* | cegcc*)
4306
4337
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4307
4338
      # as there is no search path for DLLs.
4308
4339
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4368
4399
          tmp_addflag=' -i_dynamic -nofor_main' ;;
4369
4400
        ifc* | ifort*)                  # Intel Fortran compiler
4370
4401
          tmp_addflag=' -nofor_main' ;;
 
4402
        lf95*)                          # Lahey Fortran 8.1
 
4403
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
4404
          tmp_sharedflag='--shared' ;;
4371
4405
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
4372
4406
          tmp_sharedflag='-qmkshrobj'
4373
4407
          tmp_addflag= ;;
4600
4634
        fi
4601
4635
      fi
4602
4636
 
 
4637
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
4603
4638
      # It seems that -bexpall does not export symbols beginning with
4604
4639
      # underscore (_), so it is better to generate a list of symbols to export.
4605
4640
      _LT_TAGVAR(always_export_symbols, $1)=yes
4654
4689
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
4655
4690
      ;;
4656
4691
 
4657
 
    cygwin* | mingw* | pw32*)
 
4692
    cygwin* | mingw* | pw32* | cegcc*)
4658
4693
      # When not using gcc, we currently assume that we are using
4659
4694
      # Microsoft Visual C++.
4660
4695
      # hardcode_libdir_flag_spec is actually meaningless, as there is
4758
4793
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4759
4794
          ;;
4760
4795
        ia64*)
4761
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
4796
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4762
4797
          ;;
4763
4798
        *)
4764
4799
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5543
5578
          fi
5544
5579
        fi
5545
5580
 
 
5581
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5546
5582
        # It seems that -bexpall does not export symbols beginning with
5547
5583
        # underscore (_), so it is better to generate a list of symbols to
5548
5584
        # export.
5601
5637
        esac
5602
5638
        ;;
5603
5639
 
5604
 
      cygwin* | mingw* | pw32*)
 
5640
      cygwin* | mingw* | pw32* | cegcc*)
5605
5641
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5606
5642
        # as there is no search path for DLLs.
5607
5643
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6986
7022
])
6987
7023
 
6988
7024
 
 
7025
# _LT_DECL_OBJDUMP
 
7026
# --------------
 
7027
# If we don't have a new enough Autoconf to choose the best objdump
 
7028
# available, choose the one first in the user's PATH.
 
7029
m4_defun([_LT_DECL_OBJDUMP],
 
7030
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
7031
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7032
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
 
7033
AC_SUBST([OBJDUMP])
 
7034
])
 
7035
 
 
7036
 
6989
7037
# _LT_DECL_SED
6990
7038
# ------------
6991
7039
# Check for a fully-functional sed program, that truncates