~ubuntu-branches/ubuntu/wily/cxxtools/wily-proposed

« back to all changes in this revision

Viewing changes to libltdl/acinclude.m4

  • Committer: Bazaar Package Importer
  • Author(s): Kari Pahula
  • Date: 2006-12-07 00:06:47 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061207000647-8kgbtf58ef26s4i4
Tags: 1.4.3.1-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
## unlimited permission to copy and/or distribute it, with or without
8
8
## modifications, as long as this notice is preserved.
9
9
 
10
 
# serial 48 AC_PROG_LIBTOOL
 
10
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
11
11
 
12
12
 
13
13
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1391
1391
  dynamic_linker=no
1392
1392
  ;;
1393
1393
 
1394
 
kfreebsd*-gnu)
1395
 
  version_type=linux
1396
 
  need_lib_prefix=no
1397
 
  need_version=no
1398
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1399
 
  soname_spec='${libname}${release}${shared_ext}$major'
1400
 
  shlibpath_var=LD_LIBRARY_PATH
1401
 
  shlibpath_overrides_runpath=no
1402
 
  hardcode_into_libs=yes
1403
 
  dynamic_linker='GNU ld.so'
1404
 
  ;;
1405
 
 
1406
1394
freebsd* | dragonfly*)
1407
1395
  # DragonFly does not have aout.  When/if they implement a new
1408
1396
  # versioning mechanism, adjust this.
1558
1546
  ;;
1559
1547
 
1560
1548
# This must be Linux ELF.
1561
 
linux*)
 
1549
linux* | k*bsd*-gnu)
1562
1550
  version_type=linux
1563
1551
  need_lib_prefix=no
1564
1552
  need_version=no
1587
1575
  dynamic_linker='GNU/Linux ld.so'
1588
1576
  ;;
1589
1577
 
1590
 
knetbsd*-gnu)
 
1578
netbsdelf*-gnu)
1591
1579
  version_type=linux
1592
1580
  need_lib_prefix=no
1593
1581
  need_version=no
1596
1584
  shlibpath_var=LD_LIBRARY_PATH
1597
1585
  shlibpath_overrides_runpath=no
1598
1586
  hardcode_into_libs=yes
1599
 
  dynamic_linker='GNU ld.so'
 
1587
  dynamic_linker='NetBSD ld.elf_so'
1600
1588
  ;;
1601
1589
 
1602
1590
netbsd*)
2304
2292
  lt_cv_deplibs_check_method=pass_all
2305
2293
  ;;
2306
2294
 
2307
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
2295
freebsd* | dragonfly*)
2308
2296
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2309
2297
    case $host_cpu in
2310
2298
    i*86 )
2358
2346
  ;;
2359
2347
 
2360
2348
# This must be Linux ELF.
2361
 
linux*)
 
2349
linux* | k*bsd*-gnu)
2362
2350
  lt_cv_deplibs_check_method=pass_all
2363
2351
  ;;
2364
2352
 
2365
 
netbsd*)
 
2353
netbsd* | netbsdelf*-gnu)
2366
2354
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2367
2355
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2368
2356
  else
3114
3102
  freebsd-elf*)
3115
3103
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3116
3104
    ;;
3117
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
3105
  freebsd* | dragonfly*)
3118
3106
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3119
3107
    # conventions
3120
3108
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3273
3261
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3274
3262
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3275
3263
    ;;
3276
 
  linux*)
 
3264
  linux* | k*bsd*-gnu)
3277
3265
    case $cc_basename in
3278
3266
      KCC*)
3279
3267
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3375
3363
        ;;
3376
3364
    esac
3377
3365
    ;;
3378
 
  netbsd*)
 
3366
  netbsd* | netbsdelf*-gnu)
3379
3367
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3380
3368
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3381
3369
      wlarc=
4648
4636
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4649
4637
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4650
4638
  ;;
4651
 
linux*)
 
4639
linux* | k*bsd*-gnu)
4652
4640
  if test "$host_cpu" = ia64; then
4653
4641
    symcode='[[ABCDGIRSTW]]'
4654
4642
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4921
4909
            ;;
4922
4910
        esac
4923
4911
        ;;
4924
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
4912
      freebsd* | dragonfly*)
4925
4913
        # FreeBSD uses GNU C++
4926
4914
        ;;
4927
4915
      hpux9* | hpux10* | hpux11*)
4964
4952
            ;;
4965
4953
        esac
4966
4954
        ;;
4967
 
      linux*)
 
4955
      linux* | k*bsd*-gnu)
4968
4956
        case $cc_basename in
4969
4957
          KCC*)
4970
4958
            # KAI C++ Compiler
5007
4995
            ;;
5008
4996
        esac
5009
4997
        ;;
5010
 
      netbsd*)
 
4998
      netbsd* | netbsdelf*-gnu)
5011
4999
        ;;
5012
5000
      osf3* | osf4* | osf5*)
5013
5001
        case $cc_basename in
5218
5206
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5219
5207
      ;;
5220
5208
 
5221
 
    linux*)
 
5209
    linux* | k*bsd*-gnu)
5222
5210
      case $cc_basename in
5223
5211
      icc* | ecc*)
5224
5212
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5359
5347
  cygwin* | mingw*)
5360
5348
    _LT_AC_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'
5361
5349
  ;;
 
5350
  linux* | k*bsd*-gnu)
 
5351
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
5352
  ;;
5362
5353
  *)
5363
5354
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5364
5355
  ;;
5529
5520
      _LT_AC_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'
5530
5521
      ;;
5531
5522
 
5532
 
    linux*)
 
5523
    linux* | k*bsd*-gnu)
5533
5524
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5534
5525
        tmp_addflag=
5535
5526
        case $cc_basename,$host_cpu in
5555
5546
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5556
5547
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5557
5548
        fi
 
5549
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5558
5550
      else
5559
5551
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5560
5552
      fi
5561
5553
      ;;
5562
5554
 
5563
 
    netbsd*)
 
5555
    netbsd* | netbsdelf*-gnu)
5564
5556
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5565
5557
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5566
5558
        wlarc=
5890
5882
      ;;
5891
5883
 
5892
5884
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5893
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
5885
    freebsd* | dragonfly*)
5894
5886
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5895
5887
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5896
5888
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5992
5984
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5993
5985
      ;;
5994
5986
 
5995
 
    netbsd*)
 
5987
    netbsd* | netbsdelf*-gnu)
5996
5988
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5997
5989
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5998
5990
      else
6524
6516
    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
6525
6517
    libltdl_cv_sys_dlopen_deplibs=yes
6526
6518
    ;;
6527
 
  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
 
6519
  gnu* | linux* | k*bsd*-gnu)
6528
6520
    # GNU and its variants, using gnu ld.so (Glibc)
6529
6521
    libltdl_cv_sys_dlopen_deplibs=yes
6530
6522
    ;;
6544
6536
    # at 6.2 and later dlopen does load deplibs.
6545
6537
    libltdl_cv_sys_dlopen_deplibs=yes
6546
6538
    ;;
6547
 
  netbsd*)
 
6539
  netbsd* | netbsdelf*-gnu)
6548
6540
    libltdl_cv_sys_dlopen_deplibs=yes
6549
6541
    ;;
6550
6542
  openbsd*)