~ubuntu-branches/ubuntu/wily/libuser/wily

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Habouzit
  • Date: 2006-09-03 21:58:15 UTC
  • mto: (2.1.1 edgy) (1.1.5 upstream) (3.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20060903215815-rtvvfzhaer8ymyp4
Tags: upstream-0.54.6-2.1.dfsg.1
Import upstream version 0.54.6-2.1.dfsg.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
4
# 2005  Free Software Foundation, Inc.
67
67
 
68
68
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
69
69
 
70
 
# serial 47 AC_PROG_LIBTOOL
 
70
# serial 48 AC_PROG_LIBTOOL
71
71
 
72
72
 
73
73
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
197
197
default_ofile=libtool
198
198
can_build_shared=yes
199
199
 
200
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
200
# All known linkers require a `.a' archive for static linking (except MSVC,
201
201
# which needs '.lib').
202
202
libext=a
203
203
ltmain="$ac_aux_dir/ltmain.sh"
217
217
test -z "$AS" && AS=as
218
218
test -z "$CC" && CC=cc
219
219
test -z "$LTCC" && LTCC=$CC
 
220
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
220
221
test -z "$DLLTOOL" && DLLTOOL=dlltool
221
222
test -z "$LD" && LD=ld
222
223
test -z "$LN_S" && LN_S="ln -s"
236
237
if test -n "$RANLIB"; then
237
238
  case $host_os in
238
239
  openbsd*)
239
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
240
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
240
241
    ;;
241
242
  *)
242
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
243
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
243
244
    ;;
244
245
  esac
245
246
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
287
288
# If no C compiler was specified, use CC.
288
289
LTCC=${LTCC-"$CC"}
289
290
 
 
291
# If no C compiler flags were specified, use CFLAGS.
 
292
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
293
 
290
294
# Allow CC to be a program name with arguments.
291
295
compiler=$CC
292
296
])# _LT_AC_SYS_COMPILER
315
319
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
316
320
[ac_outfile=conftest.$ac_objext
317
321
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
318
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
322
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
319
323
_lt_compiler_boilerplate=`cat conftest.err`
320
324
$rm conftest*
321
325
])# _LT_COMPILER_BOILERPLATE
328
332
AC_DEFUN([_LT_LINKER_BOILERPLATE],
329
333
[ac_outfile=conftest.$ac_objext
330
334
printf "$lt_simple_link_test_code" >conftest.$ac_ext
331
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
335
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
332
336
_lt_linker_boilerplate=`cat conftest.err`
333
337
$rm conftest*
334
338
])# _LT_LINKER_BOILERPLATE
413
417
# find a string as large as possible, as long as the shell can cope with it
414
418
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
415
419
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
416
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
417
 
       echo_test_string="`eval $cmd`" &&
 
420
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
421
       echo_test_string=`eval $cmd` &&
418
422
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
419
423
    then
420
424
      break
583
587
  # Find out which ABI we are using.
584
588
  echo 'int i;' > conftest.$ac_ext
585
589
  if AC_TRY_EVAL(ac_compile); then
586
 
    case "`/usr/bin/file conftest.o`" in
 
590
    case `/usr/bin/file conftest.o` in
587
591
    *32-bit*)
588
592
      case $host in
589
593
        x86_64-*linux*)
634
638
    CFLAGS="$SAVE_CFLAGS"
635
639
  fi
636
640
  ;;
 
641
sparc*-*solaris*)
 
642
  # Find out which ABI we are using.
 
643
  echo 'int i;' > conftest.$ac_ext
 
644
  if AC_TRY_EVAL(ac_compile); then
 
645
    case `/usr/bin/file conftest.o` in
 
646
    *64-bit*)
 
647
      case $lt_cv_prog_gnu_ld in
 
648
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
649
      *)    LD="${LD-ld} -64" ;;
 
650
      esac
 
651
      ;;
 
652
    esac
 
653
  fi
 
654
  rm -rf conftest*
 
655
  ;;
 
656
 
637
657
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
638
658
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
639
659
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
665
685
   # with a dollar sign (not a hyphen), so the echo should work correctly.
666
686
   # The option is referenced via a variable to avoid confusing sed.
667
687
   lt_compile=`echo "$ac_compile" | $SED \
668
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
688
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
669
689
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
670
690
   -e 's:$: $lt_compiler_flag:'`
671
691
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
676
696
   if (exit $ac_status) && test -s "$ac_outfile"; then
677
697
     # The compiler can only warn and ignore the option if not recognized
678
698
     # So say no if there are warnings other than the usual output.
679
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
680
 
     $SED '/^$/d' conftest.err >conftest.er2
681
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
699
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
700
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
701
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
682
702
       $2=yes
683
703
     fi
684
704
   fi
704
724
   LDFLAGS="$LDFLAGS $3"
705
725
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
706
726
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
707
 
     # The compiler can only warn and ignore the option if not recognized
 
727
     # The linker can only warn and ignore the option if not recognized
708
728
     # So say no if there are warnings
709
729
     if test -s conftest.err; then
710
730
       # Append any errors to the config.log.
711
731
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
712
 
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
713
 
       $SED '/^$/d' conftest.err >conftest.er2
 
732
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
733
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
714
734
       if diff conftest.exp conftest.er2 >/dev/null; then
715
735
         $2=yes
716
736
       fi
779
799
    elif test -x /usr/sbin/sysctl; then
780
800
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
781
801
    else
782
 
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
 
802
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
783
803
    fi
784
804
    # And add a safety zone
785
805
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
786
806
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
787
807
    ;;
 
808
 
 
809
  interix*)
 
810
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
811
    lt_cv_sys_max_cmd_len=196608
 
812
    ;;
 
813
 
788
814
  osf*)
789
815
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
790
816
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
791
817
    # nice to cause kernel panics so lets avoid the loop below.
792
818
    # First set a reasonable default.
793
819
    lt_cv_sys_max_cmd_len=16384
794
 
    # 
 
820
    #
795
821
    if test -x /sbin/sysconfig; then
796
822
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
797
823
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
798
824
      esac
799
825
    fi
800
826
    ;;
 
827
  sco3.2v5*)
 
828
    lt_cv_sys_max_cmd_len=102400
 
829
    ;;
 
830
  sysv5* | sco5v6* | sysv4.2uw2*)
 
831
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
832
    if test -n "$kargmax"; then
 
833
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
834
    else
 
835
      lt_cv_sys_max_cmd_len=32768
 
836
    fi
 
837
    ;;
801
838
  *)
802
839
    # If test is not a shell built-in, we'll probably end up computing a
803
840
    # maximum length that is only half of the actual maximum length, but
829
866
 
830
867
 
831
868
# _LT_AC_CHECK_DLFCN
832
 
# --------------------
 
869
# ------------------
833
870
AC_DEFUN([_LT_AC_CHECK_DLFCN],
834
871
[AC_CHECK_HEADERS(dlfcn.h)dnl
835
872
])# _LT_AC_CHECK_DLFCN
837
874
 
838
875
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
839
876
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
840
 
# ------------------------------------------------------------------
 
877
# ---------------------------------------------------------------------
841
878
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
842
879
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
843
880
if test "$cross_compiling" = yes; then :
903
940
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
904
941
      /* dlclose (self); */
905
942
    }
 
943
  else
 
944
    puts (dlerror ());
906
945
 
907
946
    exit (status);
908
947
}]
909
948
EOF
910
949
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
911
 
    (./conftest; exit; ) 2>/dev/null
 
950
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
912
951
    lt_status=$?
913
952
    case x$lt_status in
914
953
      x$lt_dlno_uscore) $1 ;;
915
954
      x$lt_dlneed_uscore) $2 ;;
916
 
      x$lt_unknown|x*) $3 ;;
 
955
      x$lt_dlunknown|x*) $3 ;;
917
956
    esac
918
957
  else :
919
958
    # compilation failed
925
964
 
926
965
 
927
966
# AC_LIBTOOL_DLOPEN_SELF
928
 
# -------------------
 
967
# ----------------------
929
968
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
930
969
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
931
970
if test "x$enable_dlopen" != xyes; then
996
1035
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
997
1036
 
998
1037
    save_LDFLAGS="$LDFLAGS"
999
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
1038
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1000
1039
 
1001
1040
    save_LIBS="$LIBS"
1002
1041
    LIBS="$lt_cv_dlopen_libs $LIBS"
1009
1048
    ])
1010
1049
 
1011
1050
    if test "x$lt_cv_dlopen_self" = xyes; then
1012
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
1051
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1013
1052
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1014
1053
          lt_cv_dlopen_self_static, [dnl
1015
1054
          _LT_AC_TRY_DLOPEN_SELF(
1057
1096
   # Note that $ac_compile itself does not contain backslashes and begins
1058
1097
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1059
1098
   lt_compile=`echo "$ac_compile" | $SED \
1060
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
1099
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1061
1100
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1062
1101
   -e 's:$: $lt_compiler_flag:'`
1063
1102
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1069
1108
   then
1070
1109
     # The compiler can only warn and ignore the option if not recognized
1071
1110
     # So say no if there are warnings
1072
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
1073
 
     $SED '/^$/d' out/conftest.err >out/conftest.er2
1074
 
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
1111
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
1112
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
1113
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1075
1114
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1076
1115
     fi
1077
1116
   fi
1078
 
   chmod u+w .
 
1117
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1079
1118
   $rm conftest*
1080
1119
   # SGI C++ compiler will create directory out/ii_files/ for
1081
1120
   # template instantiation
1335
1374
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1336
1375
      dldir=$destdir/`dirname \$dlpath`~
1337
1376
      test -d \$dldir || mkdir -p \$dldir~
1338
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
1377
      $install_prog $dir/$dlname \$dldir/$dlname~
 
1378
      chmod a+x \$dldir/$dlname'
1339
1379
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1340
1380
      dlpath=$dir/\$dldll~
1341
1381
       $rm \$dlpath'
1388
1428
  soname_spec='${libname}${release}${major}$shared_ext'
1389
1429
  shlibpath_overrides_runpath=yes
1390
1430
  shlibpath_var=DYLD_LIBRARY_PATH
1391
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
1431
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1392
1432
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1393
1433
  if test "$GCC" = yes; then
1394
1434
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1426
1466
freebsd* | dragonfly*)
1427
1467
  # DragonFly does not have aout.  When/if they implement a new
1428
1468
  # versioning mechanism, adjust this.
1429
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
1469
  if test -x /usr/bin/objformat; then
 
1470
    objformat=`/usr/bin/objformat`
 
1471
  else
 
1472
    case $host_os in
 
1473
    freebsd[[123]]*) objformat=aout ;;
 
1474
    *) objformat=elf ;;
 
1475
    esac
 
1476
  fi
1430
1477
  version_type=freebsd-$objformat
1431
1478
  case $version_type in
1432
1479
    freebsd-elf*)
1448
1495
    shlibpath_overrides_runpath=yes
1449
1496
    hardcode_into_libs=yes
1450
1497
    ;;
1451
 
  *) # from 3.2 on
 
1498
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 
1499
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1452
1500
    shlibpath_overrides_runpath=no
1453
1501
    hardcode_into_libs=yes
1454
1502
    ;;
 
1503
  freebsd*) # from 4.6 on
 
1504
    shlibpath_overrides_runpath=yes
 
1505
    hardcode_into_libs=yes
 
1506
    ;;
1455
1507
  esac
1456
1508
  ;;
1457
1509
 
1471
1523
  version_type=sunos
1472
1524
  need_lib_prefix=no
1473
1525
  need_version=no
1474
 
  case "$host_cpu" in
 
1526
  case $host_cpu in
1475
1527
  ia64*)
1476
1528
    shrext_cmds='.so'
1477
1529
    hardcode_into_libs=yes
1511
1563
  postinstall_cmds='chmod 555 $lib'
1512
1564
  ;;
1513
1565
 
 
1566
interix3*)
 
1567
  version_type=linux
 
1568
  need_lib_prefix=no
 
1569
  need_version=no
 
1570
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1571
  soname_spec='${libname}${release}${shared_ext}$major'
 
1572
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
1573
  shlibpath_var=LD_LIBRARY_PATH
 
1574
  shlibpath_overrides_runpath=no
 
1575
  hardcode_into_libs=yes
 
1576
  ;;
 
1577
 
1514
1578
irix5* | irix6* | nonstopux*)
1515
1579
  case $host_os in
1516
1580
    nonstopux*) version_type=nonstopux ;;
1587
1651
 
1588
1652
  # Append ld.so.conf contents to the search path
1589
1653
  if test -f /etc/ld.so.conf; then
1590
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
1654
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1591
1655
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
1592
1656
  fi
1593
1657
 
1649
1713
 
1650
1714
openbsd*)
1651
1715
  version_type=sunos
 
1716
  sys_lib_dlsearch_path_spec="/usr/lib"
1652
1717
  need_lib_prefix=no
1653
 
  need_version=no
 
1718
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
1719
  case $host_os in
 
1720
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
1721
    *)                         need_version=no  ;;
 
1722
  esac
1654
1723
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1655
1724
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1656
1725
  shlibpath_var=LD_LIBRARY_PATH
1688
1757
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1689
1758
  ;;
1690
1759
 
1691
 
sco3.2v5*)
1692
 
  version_type=osf
1693
 
  soname_spec='${libname}${release}${shared_ext}$major'
1694
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1695
 
  shlibpath_var=LD_LIBRARY_PATH
1696
 
  ;;
1697
 
 
1698
1760
solaris*)
1699
1761
  version_type=linux
1700
1762
  need_lib_prefix=no
1720
1782
  need_version=yes
1721
1783
  ;;
1722
1784
 
1723
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
1785
sysv4 | sysv4.3*)
1724
1786
  version_type=linux
1725
1787
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1726
1788
  soname_spec='${libname}${release}${shared_ext}$major'
1753
1815
  fi
1754
1816
  ;;
1755
1817
 
 
1818
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
1819
  version_type=freebsd-elf
 
1820
  need_lib_prefix=no
 
1821
  need_version=no
 
1822
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
1823
  soname_spec='${libname}${release}${shared_ext}$major'
 
1824
  shlibpath_var=LD_LIBRARY_PATH
 
1825
  hardcode_into_libs=yes
 
1826
  if test "$with_gnu_ld" = yes; then
 
1827
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
1828
    shlibpath_overrides_runpath=no
 
1829
  else
 
1830
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
1831
    shlibpath_overrides_runpath=yes
 
1832
    case $host_os in
 
1833
      sco3.2v5*)
 
1834
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
1835
        ;;
 
1836
    esac
 
1837
  fi
 
1838
  sys_lib_dlsearch_path_spec='/usr/lib'
 
1839
  ;;
 
1840
 
1756
1841
uts4*)
1757
1842
  version_type=linux
1758
1843
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1766
1851
esac
1767
1852
AC_MSG_RESULT([$dynamic_linker])
1768
1853
test "$dynamic_linker" = no && can_build_shared=no
 
1854
 
 
1855
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
1856
if test "$GCC" = yes; then
 
1857
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
1858
fi
1769
1859
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1770
1860
 
1771
1861
 
1790
1880
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1791
1881
    fi
1792
1882
  fi
 
1883
  if test -z "$LTCFLAGS"; then
 
1884
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
1885
  fi
1793
1886
 
1794
1887
  # Extract list of available tagged configurations in $ofile.
1795
1888
  # Note that this assumes the entire list is on one line.
1880
1973
 
1881
1974
# AC_LIBTOOL_WIN32_DLL
1882
1975
# --------------------
1883
 
# declare package support for building win32 dll's
 
1976
# declare package support for building win32 DLLs
1884
1977
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1885
1978
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1886
1979
])# AC_LIBTOOL_WIN32_DLL
1918
2011
 
1919
2012
# AC_DISABLE_SHARED
1920
2013
# -----------------
1921
 
#- set the default shared flag to --disable-shared
 
2014
# set the default shared flag to --disable-shared
1922
2015
AC_DEFUN([AC_DISABLE_SHARED],
1923
2016
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1924
2017
AC_ENABLE_SHARED(no)
2054
2147
      if test -n "$file_magic_test_file"; then
2055
2148
        case $deplibs_check_method in
2056
2149
        "file_magic "*)
2057
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
2150
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2058
2151
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2059
2152
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2060
2153
            $EGREP "$file_magic_regex" > /dev/null; then
2164
2257
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2165
2258
      lt_cv_path_LD="$ac_dir/$ac_prog"
2166
2259
      # Check to see if the program is GNU ld.  I'd rather use --version,
2167
 
      # but apparently some GNU ld's only accept -v.
 
2260
      # but apparently some variants of GNU ld only accept -v.
2168
2261
      # Break only if it was the GNU/non-GNU ld that we prefer.
2169
2262
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2170
2263
      *GNU* | *'with BFD'*)
2196
2289
AC_DEFUN([AC_PROG_LD_GNU],
2197
2290
[AC_REQUIRE([AC_PROG_EGREP])dnl
2198
2291
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2199
 
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
2292
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2200
2293
case `$LD -v 2>&1 </dev/null` in
2201
2294
*GNU* | *'with BFD'*)
2202
2295
  lt_cv_prog_gnu_ld=yes
2226
2319
case $host_os in
2227
2320
  darwin*)
2228
2321
    if test "$GCC" = yes; then
2229
 
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
2322
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2230
2323
    else
2231
2324
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
2232
2325
    fi
2310
2403
 
2311
2404
hpux10.20* | hpux11*)
2312
2405
  lt_cv_file_magic_cmd=/usr/bin/file
2313
 
  case "$host_cpu" in
 
2406
  case $host_cpu in
2314
2407
  ia64*)
2315
2408
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2316
2409
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2326
2419
  esac
2327
2420
  ;;
2328
2421
 
 
2422
interix3*)
 
2423
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
2424
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
2425
  ;;
 
2426
 
2329
2427
irix5* | irix6* | nonstopux*)
2330
2428
  case $LD in
2331
2429
  *-32|*"-32 ") libmagic=32-bit;;
2371
2469
  lt_cv_deplibs_check_method=pass_all
2372
2470
  ;;
2373
2471
 
2374
 
sco3.2v5*)
2375
 
  lt_cv_deplibs_check_method=pass_all
2376
 
  ;;
2377
 
 
2378
2472
solaris*)
2379
2473
  lt_cv_deplibs_check_method=pass_all
2380
2474
  ;;
2381
2475
 
2382
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
2476
sysv4 | sysv4.3*)
2383
2477
  case $host_vendor in
2384
2478
  motorola)
2385
2479
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
2400
2494
  siemens)
2401
2495
    lt_cv_deplibs_check_method=pass_all
2402
2496
    ;;
 
2497
  pc)
 
2498
    lt_cv_deplibs_check_method=pass_all
 
2499
    ;;
2403
2500
  esac
2404
2501
  ;;
2405
2502
 
2406
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
 
2503
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2407
2504
  lt_cv_deplibs_check_method=pass_all
2408
2505
  ;;
2409
2506
esac
2423
2520
  # Let the user override the test.
2424
2521
  lt_cv_path_NM="$NM"
2425
2522
else
2426
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2427
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2428
 
    IFS="$lt_save_ifs"
2429
 
    test -z "$ac_dir" && ac_dir=.
2430
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2431
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2432
 
      # Check to see if the nm accepts a BSD-compat flag.
2433
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2434
 
      #   nm: unknown option "B" ignored
2435
 
      # Tru64's nm complains that /dev/null is an invalid object file
2436
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2437
 
      */dev/null* | *'Invalid file or object type'*)
2438
 
        lt_cv_path_NM="$tmp_nm -B"
2439
 
        break
2440
 
        ;;
2441
 
      *)
2442
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2443
 
        */dev/null*)
2444
 
          lt_cv_path_NM="$tmp_nm -p"
 
2523
  lt_nm_to_check="${ac_tool_prefix}nm"
 
2524
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2525
    lt_nm_to_check="$lt_nm_to_check nm"
 
2526
  fi
 
2527
  for lt_tmp_nm in $lt_nm_to_check; do
 
2528
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2529
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
2530
      IFS="$lt_save_ifs"
 
2531
      test -z "$ac_dir" && ac_dir=.
 
2532
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
2533
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
2534
        # Check to see if the nm accepts a BSD-compat flag.
 
2535
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
2536
        #   nm: unknown option "B" ignored
 
2537
        # Tru64's nm complains that /dev/null is an invalid object file
 
2538
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
2539
        */dev/null* | *'Invalid file or object type'*)
 
2540
          lt_cv_path_NM="$tmp_nm -B"
2445
2541
          break
2446
2542
          ;;
2447
2543
        *)
2448
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2449
 
          continue # so that we can try to find one that supports BSD flags
 
2544
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
2545
          */dev/null*)
 
2546
            lt_cv_path_NM="$tmp_nm -p"
 
2547
            break
 
2548
            ;;
 
2549
          *)
 
2550
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2551
            continue # so that we can try to find one that supports BSD flags
 
2552
            ;;
 
2553
          esac
2450
2554
          ;;
2451
2555
        esac
2452
 
      esac
2453
 
    fi
 
2556
      fi
 
2557
    done
 
2558
    IFS="$lt_save_ifs"
2454
2559
  done
2455
 
  IFS="$lt_save_ifs"
2456
2560
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2457
2561
fi])
2458
2562
NM="$lt_cv_path_NM"
2484
2588
# -----------------------------------
2485
2589
# sets LIBLTDL to the link flags for the libltdl convenience library and
2486
2590
# LTDLINCL to the include flags for the libltdl header and adds
2487
 
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
2488
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
2489
 
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
2490
 
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
2491
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
2492
 
# flat and you're not using automake, define top_builddir and
2493
 
# top_srcdir appropriately in the Makefiles.
 
2591
# --enable-ltdl-convenience to the configure arguments.  Note that
 
2592
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2593
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
2594
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
2595
# (note the single quotes!).  If your package is not flat and you're not
 
2596
# using automake, define top_builddir and top_srcdir appropriately in
 
2597
# the Makefiles.
2494
2598
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2495
2599
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2496
2600
  case $enable_ltdl_convenience in
2509
2613
# -----------------------------------
2510
2614
# sets LIBLTDL to the link flags for the libltdl installable library and
2511
2615
# LTDLINCL to the include flags for the libltdl header and adds
2512
 
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
2513
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
2514
 
# DIRECTORY is not provided and an installed libltdl is not found, it is
2515
 
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
2516
 
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
2517
 
# quotes!).  If your package is not flat and you're not using automake,
2518
 
# define top_builddir and top_srcdir appropriately in the Makefiles.
 
2616
# --enable-ltdl-install to the configure arguments.  Note that
 
2617
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2618
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
2619
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
2620
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
2621
# flat and you're not using automake, define top_builddir and top_srcdir
 
2622
# appropriately in the Makefiles.
2519
2623
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2520
2624
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2521
2625
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2558
2662
])# _LT_AC_LANG_CXX
2559
2663
 
2560
2664
# _LT_AC_PROG_CXXCPP
2561
 
# ---------------
 
2665
# ------------------
2562
2666
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2563
2667
[
2564
2668
AC_REQUIRE([AC_PROG_CXX])
2607
2711
 
2608
2712
 
2609
2713
# AC_LIBTOOL_RC
2610
 
# --------------
 
2714
# -------------
2611
2715
# enable support for Windows resource files
2612
2716
AC_DEFUN([AC_LIBTOOL_RC],
2613
2717
[AC_REQUIRE([LT_AC_PROG_RC])
2644
2748
_LT_COMPILER_BOILERPLATE
2645
2749
_LT_LINKER_BOILERPLATE
2646
2750
 
2647
 
#
2648
 
# Check for any special shared library compilation flags.
2649
 
#
2650
 
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2651
 
if test "$GCC" = no; then
2652
 
  case $host_os in
2653
 
  sco3.2v5*)
2654
 
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2655
 
    ;;
2656
 
  esac
2657
 
fi
2658
 
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2659
 
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2660
 
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
2661
 
  else
2662
 
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2663
 
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2664
 
  fi
2665
 
fi
2666
 
 
2667
 
 
2668
 
#
2669
 
# Check to make sure the static flag actually works.
2670
 
#
2671
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2672
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2673
 
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2674
 
  [],
2675
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2676
 
 
2677
 
 
2678
2751
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2679
2752
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2680
2753
AC_LIBTOOL_PROG_CC_C_O($1)
2683
2756
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2684
2757
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2685
2758
AC_LIBTOOL_SYS_LIB_STRIP
2686
 
AC_LIBTOOL_DLOPEN_SELF($1)
 
2759
AC_LIBTOOL_DLOPEN_SELF
2687
2760
 
2688
 
# Report which librarie types wil actually be built
 
2761
# Report which library types will actually be built
2689
2762
AC_MSG_CHECKING([if libtool supports shared libraries])
2690
2763
AC_MSG_RESULT([$can_build_shared])
2691
2764
 
2694
2767
 
2695
2768
# On AIX, shared libraries and static libraries use the same namespace, and
2696
2769
# are all built from PIC.
2697
 
case "$host_os" in
 
2770
case $host_os in
2698
2771
aix3*)
2699
2772
  test "$enable_shared" = yes && enable_static=no
2700
2773
  if test -n "$RANLIB"; then
2744
2817
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2745
2818
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2746
2819
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
2820
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2747
2821
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2748
2822
_LT_AC_TAGVAR(module_cmds, $1)=
2749
2823
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2761
2835
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2762
2836
 
2763
2837
# Source file extension for C++ test sources.
2764
 
ac_ext=cc
 
2838
ac_ext=cpp
2765
2839
 
2766
2840
# Object file extension for compiled C++ test sources.
2767
2841
objext=o
2771
2845
lt_simple_compile_test_code="int some_variable = 0;\n"
2772
2846
 
2773
2847
# Code to be used in simple link tests
2774
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
2848
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2775
2849
 
2776
2850
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2777
2851
_LT_AC_SYS_COMPILER
2790
2864
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2791
2865
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2792
2866
else
2793
 
  unset lt_cv_prog_gnu_ld
 
2867
  $as_unset lt_cv_prog_gnu_ld
2794
2868
fi
2795
2869
if test -n "${lt_cv_path_LDCXX+set}"; then
2796
2870
  lt_cv_path_LD=$lt_cv_path_LDCXX
2797
2871
else
2798
 
  unset lt_cv_path_LD
 
2872
  $as_unset lt_cv_path_LD
2799
2873
fi
2800
2874
test -z "${LDCXX+set}" || LD=$LDCXX
2801
2875
CC=${CXX-"c++"}
2890
2964
            ;;
2891
2965
          esac
2892
2966
        done
 
2967
        ;;
2893
2968
      esac
2894
2969
 
2895
2970
      exp_sym_flag='-bexport'
2927
3002
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2928
3003
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2929
3004
        fi
 
3005
        ;;
2930
3006
      esac
2931
3007
      shared_flag='-shared'
2932
3008
      if test "$aix_use_runtimelinking" = yes; then
2958
3034
      _LT_AC_SYS_LIBPATH_AIX
2959
3035
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2960
3036
 
2961
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
3037
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2962
3038
     else
2963
3039
      if test "$host_cpu" = ia64; then
2964
3040
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2965
3041
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2966
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
3042
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
2967
3043
      else
2968
3044
        # Determine the default libpath from the value encoded in an empty executable.
2969
3045
        _LT_AC_SYS_LIBPATH_AIX
2972
3048
        # -berok will link without error, but may produce a broken library.
2973
3049
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2974
3050
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2975
 
        # -bexpall does not export symbols beginning with underscore (_)
2976
 
        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2977
3051
        # Exported symbols can be pulled into shared objects from archives
2978
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
3052
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2979
3053
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2980
 
        # This is similar to how AIX traditionally builds it's shared libraries.
2981
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
3054
        # This is similar to how AIX traditionally builds its shared libraries.
 
3055
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2982
3056
      fi
2983
3057
    fi
2984
3058
    ;;
 
3059
 
 
3060
  beos*)
 
3061
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
3062
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
3063
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
3064
      # support --undefined.  This deserves some investigation.  FIXME
 
3065
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3066
    else
 
3067
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3068
    fi
 
3069
    ;;
 
3070
 
2985
3071
  chorus*)
2986
3072
    case $cc_basename in
2987
3073
      *)
2991
3077
    esac
2992
3078
    ;;
2993
3079
 
2994
 
 
2995
3080
  cygwin* | mingw* | pw32*)
2996
3081
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2997
3082
    # as there is no search path for DLLs.
3001
3086
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3002
3087
 
3003
3088
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3004
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
3089
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3005
3090
      # If the export-symbols file already is a .def file (1st line
3006
3091
      # is EXPORTS), use it as is; otherwise, prepend...
3007
3092
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3010
3095
        echo EXPORTS > $output_objdir/$soname.def;
3011
3096
        cat $export_symbols >> $output_objdir/$soname.def;
3012
3097
      fi~
3013
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
3098
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3014
3099
    else
3015
3100
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3016
3101
    fi
3017
3102
  ;;
3018
3103
      darwin* | rhapsody*)
3019
 
        case "$host_os" in
 
3104
        case $host_os in
3020
3105
        rhapsody* | darwin1.[[012]])
3021
3106
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3022
3107
         ;;
3054
3139
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3055
3140
        fi
3056
3141
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3057
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
3142
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3058
3143
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3059
3144
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3060
3145
          else
3067
3152
         output_verbose_link_cmd='echo'
3068
3153
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3069
3154
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3070
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
3155
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3071
3156
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3072
3157
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3073
3158
          ;;
3147
3232
    ;;
3148
3233
  hpux10*|hpux11*)
3149
3234
    if test $with_gnu_ld = no; then
3150
 
      case "$host_cpu" in
3151
 
      hppa*64*)
3152
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3235
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3236
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3237
 
 
3238
      case $host_cpu in
 
3239
      hppa*64*|ia64*)
3153
3240
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3154
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3155
 
        ;;
3156
 
      ia64*)
3157
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3158
3241
        ;;
3159
3242
      *)
3160
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3161
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3162
3243
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3163
3244
        ;;
3164
3245
      esac
3165
3246
    fi
3166
 
    case "$host_cpu" in
3167
 
    hppa*64*)
3168
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3169
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3170
 
      ;;
3171
 
    ia64*)
3172
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3173
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3174
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3175
 
                                              # but as the default
3176
 
                                              # location of the library.
 
3247
    case $host_cpu in
 
3248
    hppa*64*|ia64*)
 
3249
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3250
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3177
3251
      ;;
3178
3252
    *)
3179
3253
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3189
3263
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3190
3264
        ;;
3191
3265
      aCC*)
3192
 
        case "$host_cpu" in
3193
 
        hppa*64*|ia64*)
3194
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3266
        case $host_cpu in
 
3267
        hppa*64*)
 
3268
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3269
          ;;
 
3270
        ia64*)
 
3271
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3195
3272
          ;;
3196
3273
        *)
3197
3274
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3210
3287
      *)
3211
3288
        if test "$GXX" = yes; then
3212
3289
          if test $with_gnu_ld = no; then
3213
 
            case "$host_cpu" in
3214
 
            ia64*|hppa*64*)
3215
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3290
            case $host_cpu in
 
3291
            hppa*64*)
 
3292
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3293
              ;;
 
3294
            ia64*)
 
3295
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3216
3296
              ;;
3217
3297
            *)
3218
3298
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3226
3306
        ;;
3227
3307
    esac
3228
3308
    ;;
 
3309
  interix3*)
 
3310
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3311
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3312
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3313
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3314
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
3315
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
3316
    # default) and relocated if they conflict, which is a slow very memory
 
3317
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
3318
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
3319
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
3320
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
3321
    _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'
 
3322
    ;;
3229
3323
  irix5* | irix6*)
3230
3324
    case $cc_basename in
3231
3325
      CC*)
3306
3400
        ;;
3307
3401
      pgCC*)
3308
3402
        # Portland Group C++ compiler
3309
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3310
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
3403
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
3404
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3311
3405
 
3312
3406
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3313
3407
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3314
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
3408
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3315
3409
        ;;
3316
3410
      cxx*)
3317
3411
        # Compaq C++
3508
3602
    # FIXME: insert proper C++ library support
3509
3603
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3510
3604
    ;;
3511
 
  sco*)
3512
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3513
 
    case $cc_basename in
3514
 
      CC*)
3515
 
        # FIXME: insert proper C++ library support
3516
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3517
 
        ;;
3518
 
      *)
3519
 
        # FIXME: insert proper C++ library support
3520
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3521
 
        ;;
3522
 
    esac
3523
 
    ;;
3524
3605
  sunos4*)
3525
3606
    case $cc_basename in
3526
3607
      CC*)
3543
3624
    case $cc_basename in
3544
3625
      CC*)
3545
3626
        # Sun C++ 4.2, 5.x and Centerline C++
 
3627
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3546
3628
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3547
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3629
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3548
3630
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3549
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
3631
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3550
3632
 
3551
3633
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3552
3634
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3566
3648
        esac
3567
3649
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3568
3650
 
3569
 
        # Commands to make compiler produce verbose output that lists
3570
 
        # what "hidden" libraries, object files and flags are used when
3571
 
        # linking a shared library.
3572
 
        #
3573
 
        # There doesn't appear to be a way to prevent this compiler from
3574
 
        # explicitly linking system object files so we need to strip them
3575
 
        # from the output so that they don't get included in the library
3576
 
        # dependencies.
3577
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
3651
        output_verbose_link_cmd='echo'
3578
3652
 
3579
3653
        # Archives containing C++ object files must be created using
3580
3654
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3620
3694
        ;;
3621
3695
    esac
3622
3696
    ;;
3623
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3624
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3697
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
3698
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3699
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3700
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3701
    runpath_var='LD_RUN_PATH'
 
3702
 
 
3703
    case $cc_basename in
 
3704
      CC*)
 
3705
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3706
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3707
        ;;
 
3708
      *)
 
3709
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3710
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3711
        ;;
 
3712
    esac
 
3713
    ;;
 
3714
  sysv5* | sco3.2v5* | sco5v6*)
 
3715
    # Note: We can NOT use -z defs as we might desire, because we do not
 
3716
    # link with -lc, and that would cause any symbols used from libc to
 
3717
    # always be unresolved, which means just about no library would
 
3718
    # ever link correctly.  If we're not using GNU ld we use -z text
 
3719
    # though, which does catch some bad symbols but isn't as heavy-handed
 
3720
    # as -z defs.
 
3721
    # For security reasons, it is highly recommended that you always
 
3722
    # use absolute paths for naming shared libraries, and exclude the
 
3723
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
3724
    # requires that you compile everything twice, which is a pain.
 
3725
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
3726
    # non-empty value in the environment.  Most likely only useful for
 
3727
    # creating official distributions of packages.
 
3728
    # This is a hack until libtool officially supports absolute path
 
3729
    # names for shared libraries.
 
3730
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3731
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
3732
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3733
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3734
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
3735
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
3736
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3737
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
3738
    runpath_var='LD_RUN_PATH'
 
3739
 
 
3740
    case $cc_basename in
 
3741
      CC*)
 
3742
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3743
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3744
        ;;
 
3745
      *)
 
3746
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3747
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3748
        ;;
 
3749
    esac
3625
3750
    ;;
3626
3751
  tandem*)
3627
3752
    case $cc_basename in
3658
3783
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3659
3784
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3660
3785
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3661
 
AC_LIBTOOL_SYS_LIB_STRIP
3662
 
AC_LIBTOOL_DLOPEN_SELF($1)
3663
3786
 
3664
3787
AC_LIBTOOL_CONFIG($1)
3665
3788
 
3677
3800
])# AC_LIBTOOL_LANG_CXX_CONFIG
3678
3801
 
3679
3802
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3680
 
# ------------------------
 
3803
# ------------------------------------
3681
3804
# Figure out "hidden" library dependencies from verbose
3682
3805
# compiler output when linking a shared library.
3683
3806
# Parse the compiler output and extract the necessary
3731
3854
  # The `*' in the case matches for architectures that use `case' in
3732
3855
  # $output_verbose_cmd can trigger glob expansion during the loop
3733
3856
  # eval without this substitution.
3734
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
3857
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3735
3858
 
3736
3859
  for p in `eval $output_verbose_link_cmd`; do
3737
3860
    case $p in
3807
3930
 
3808
3931
$rm -f confest.$objext
3809
3932
 
 
3933
# PORTME: override above test on systems where it is broken
 
3934
ifelse([$1],[CXX],
 
3935
[case $host_os in
 
3936
interix3*)
 
3937
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
3938
  # hack all around it, let's just trust "g++" to DTRT.
 
3939
  _LT_AC_TAGVAR(predep_objects,$1)=
 
3940
  _LT_AC_TAGVAR(postdep_objects,$1)=
 
3941
  _LT_AC_TAGVAR(postdeps,$1)=
 
3942
  ;;
 
3943
 
 
3944
solaris*)
 
3945
  case $cc_basename in
 
3946
  CC*)
 
3947
    # Adding this requires a known-good setup of shared libraries for
 
3948
    # Sun compiler versions before 5.6, else PIC objects from an old
 
3949
    # archive will be linked into the output, leading to subtle bugs.
 
3950
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
3951
    ;;
 
3952
  esac
 
3953
  ;;
 
3954
esac
 
3955
])
 
3956
 
3810
3957
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3811
3958
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3812
3959
esac
3813
3960
])# AC_LIBTOOL_POSTDEP_PREDEP
3814
3961
 
3815
3962
# AC_LIBTOOL_LANG_F77_CONFIG
3816
 
# ------------------------
 
3963
# --------------------------
3817
3964
# Ensure that the configuration vars for the C compiler are
3818
3965
# suitably defined.  Those variables are subsequently used by
3819
3966
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3876
4023
 
3877
4024
# On AIX, shared libraries and static libraries use the same namespace, and
3878
4025
# are all built from PIC.
3879
 
case "$host_os" in
 
4026
case $host_os in
3880
4027
aix3*)
3881
4028
  test "$enable_shared" = yes && enable_static=no
3882
4029
  if test -n "$RANLIB"; then
3897
4044
test "$enable_shared" = yes || enable_static=yes
3898
4045
AC_MSG_RESULT([$enable_static])
3899
4046
 
3900
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3901
 
 
3902
4047
_LT_AC_TAGVAR(GCC, $1)="$G77"
3903
4048
_LT_AC_TAGVAR(LD, $1)="$LD"
3904
4049
 
3908
4053
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3909
4054
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3910
4055
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3911
 
AC_LIBTOOL_SYS_LIB_STRIP
3912
 
 
3913
4056
 
3914
4057
AC_LIBTOOL_CONFIG($1)
3915
4058
 
3966
4109
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3967
4110
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3968
4111
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3969
 
AC_LIBTOOL_SYS_LIB_STRIP
3970
 
AC_LIBTOOL_DLOPEN_SELF($1)
3971
4112
 
3972
4113
AC_LIBTOOL_CONFIG($1)
3973
4114
 
3977
4118
 
3978
4119
 
3979
4120
# AC_LIBTOOL_LANG_RC_CONFIG
3980
 
# --------------------------
 
4121
# -------------------------
3981
4122
# Ensure that the configuration vars for the Windows resource compiler are
3982
4123
# suitably defined.  Those variables are subsequently used by
3983
4124
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4040
4181
  # Now quote all the things that may contain metacharacters while being
4041
4182
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4042
4183
  # variables and quote the copies for generation of the libtool script.
4043
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
4184
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4044
4185
    SED SHELL STRIP \
4045
4186
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4046
4187
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4209
4350
# A C compiler.
4210
4351
LTCC=$lt_LTCC
4211
4352
 
 
4353
# LTCC compiler flags.
 
4354
LTCFLAGS=$lt_LTCFLAGS
 
4355
 
4212
4356
# A language-specific compiler.
4213
4357
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4214
4358
 
4582
4726
osf*)
4583
4727
  symcode='[[BCDEGQRST]]'
4584
4728
  ;;
4585
 
solaris* | sysv5*)
 
4729
solaris*)
4586
4730
  symcode='[[BDRT]]'
4587
4731
  ;;
 
4732
sco3.2v5*)
 
4733
  symcode='[[DT]]'
 
4734
  ;;
 
4735
sysv4.2uw2*)
 
4736
  symcode='[[DT]]'
 
4737
  ;;
 
4738
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
4739
  symcode='[[ABDT]]'
 
4740
  ;;
4588
4741
sysv4)
4589
4742
  symcode='[[DFNSTU]]'
4590
4743
  ;;
4767
4920
      # DJGPP does not support shared libraries at all
4768
4921
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4769
4922
      ;;
 
4923
    interix3*)
 
4924
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
4925
      # Instead, we relocate shared libraries at runtime.
 
4926
      ;;
4770
4927
    sysv4*MP*)
4771
4928
      if test -d /usr/nec; then
4772
4929
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4775
4932
    hpux*)
4776
4933
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4777
4934
      # not for PA HP-UX.
4778
 
      case "$host_cpu" in
 
4935
      case $host_cpu in
4779
4936
      hppa*64*|ia64*)
4780
4937
        ;;
4781
4938
      *)
4836
4993
        case $cc_basename in
4837
4994
          CC*)
4838
4995
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4839
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
4996
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4840
4997
            if test "$host_cpu" != ia64; then
4841
4998
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4842
4999
            fi
4843
5000
            ;;
4844
5001
          aCC*)
4845
5002
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4846
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4847
 
            case "$host_cpu" in
 
5003
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
5004
            case $host_cpu in
4848
5005
            hppa*64*|ia64*)
4849
5006
              # +Z the default
4850
5007
              ;;
4857
5014
            ;;
4858
5015
        esac
4859
5016
        ;;
 
5017
      interix*)
 
5018
        # This is c89, which is MS Visual C++ (no shared libs)
 
5019
        # Anyone wants to do a port?
 
5020
        ;;
4860
5021
      irix5* | irix6* | nonstopux*)
4861
5022
        case $cc_basename in
4862
5023
          CC*)
4885
5046
            # Portland Group C++ compiler.
4886
5047
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4887
5048
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4888
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5049
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4889
5050
            ;;
4890
5051
          cxx*)
4891
5052
            # Compaq C++
4936
5097
        ;;
4937
5098
      psos*)
4938
5099
        ;;
4939
 
      sco*)
4940
 
        case $cc_basename in
4941
 
          CC*)
4942
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4943
 
            ;;
4944
 
          *)
4945
 
            ;;
4946
 
        esac
4947
 
        ;;
4948
5100
      solaris*)
4949
5101
        case $cc_basename in
4950
5102
          CC*)
4986
5138
            ;;
4987
5139
        esac
4988
5140
        ;;
4989
 
      unixware*)
 
5141
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5142
        case $cc_basename in
 
5143
          CC*)
 
5144
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5145
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5146
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5147
            ;;
 
5148
        esac
4990
5149
        ;;
4991
5150
      vxworks*)
4992
5151
        ;;
5033
5192
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5034
5193
      ;;
5035
5194
 
 
5195
    interix3*)
 
5196
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5197
      # Instead, we relocate shared libraries at runtime.
 
5198
      ;;
 
5199
 
5036
5200
    msdosdjgpp*)
5037
5201
      # Just because we use GCC doesn't mean we suddenly get shared libraries
5038
5202
      # on systems that don't support them.
5049
5213
    hpux*)
5050
5214
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5051
5215
      # not for PA HP-UX.
5052
 
      case "$host_cpu" in
 
5216
      case $host_cpu in
5053
5217
      hppa*64*|ia64*)
5054
5218
        # +Z the default
5055
5219
        ;;
5096
5260
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5097
5261
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5098
5262
      # not for PA HP-UX.
5099
 
      case "$host_cpu" in
 
5263
      case $host_cpu in
5100
5264
      hppa*64*|ia64*)
5101
5265
        # +Z the default
5102
5266
        ;;
5126
5290
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5127
5291
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5128
5292
        ;;
5129
 
      pgcc* | pgf77* | pgf90*)
 
5293
      pgcc* | pgf77* | pgf90* | pgf95*)
5130
5294
        # Portland Group compilers (*not* the Pentium gcc compiler,
5131
5295
        # which looks to be a dead project)
5132
5296
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5133
5297
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5134
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5298
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5135
5299
        ;;
5136
5300
      ccc*)
5137
5301
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5147
5311
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5148
5312
      ;;
5149
5313
 
5150
 
    sco3.2v5*)
5151
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5152
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5153
 
      ;;
5154
 
 
5155
5314
    solaris*)
5156
5315
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5157
5316
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5169
5328
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5170
5329
      ;;
5171
5330
 
5172
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5331
    sysv4 | sysv4.2uw2* | sysv4.3*)
5173
5332
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5174
5333
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5175
5334
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5182
5341
      fi
5183
5342
      ;;
5184
5343
 
 
5344
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5345
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5346
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5347
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5348
      ;;
 
5349
 
5185
5350
    unicos*)
5186
5351
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5187
5352
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5214
5379
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5215
5380
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5216
5381
fi
5217
 
case "$host_os" in
 
5382
case $host_os in
5218
5383
  # For platforms which do not support PIC, -DPIC is meaningless:
5219
5384
  *djgpp*)
5220
5385
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5223
5388
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5224
5389
    ;;
5225
5390
esac
 
5391
 
 
5392
#
 
5393
# Check to make sure the static flag actually works.
 
5394
#
 
5395
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
5396
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
5397
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5398
  $lt_tmp_static_flag,
 
5399
  [],
 
5400
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5226
5401
])
5227
5402
 
5228
5403
 
5301
5476
      with_gnu_ld=no
5302
5477
    fi
5303
5478
    ;;
 
5479
  interix*)
 
5480
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
5481
    with_gnu_ld=yes
 
5482
    ;;
5304
5483
  openbsd*)
5305
5484
    with_gnu_ld=no
5306
5485
    ;;
5310
5489
  if test "$with_gnu_ld" = yes; then
5311
5490
    # If archive_cmds runs LD, not CC, wlarc should be empty
5312
5491
    wlarc='${wl}'
5313
 
    
 
5492
 
5314
5493
    # Set some defaults for GNU ld with shared library support. These
5315
5494
    # are reset later if shared libraries are not supported. Putting them
5316
5495
    # here allows them to be overridden if necessary.
5331
5510
      *\ 2.11.*) ;; # other 2.11 versions
5332
5511
      *) supports_anon_versioning=yes ;;
5333
5512
    esac
5334
 
    
 
5513
 
5335
5514
    # See if GNU ld supports shared libraries.
5336
5515
    case $host_os in
5337
5516
    aix3* | aix4* | aix5*)
5385
5564
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5386
5565
 
5387
5566
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5388
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
5567
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5389
5568
        # If the export-symbols file already is a .def file (1st line
5390
5569
        # is EXPORTS), use it as is; otherwise, prepend...
5391
5570
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5394
5573
          echo EXPORTS > $output_objdir/$soname.def;
5395
5574
          cat $export_symbols >> $output_objdir/$soname.def;
5396
5575
        fi~
5397
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
5576
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5398
5577
      else
5399
5578
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5400
5579
      fi
5401
5580
      ;;
5402
5581
 
 
5582
    interix3*)
 
5583
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5584
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5585
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5586
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5587
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
5588
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
5589
      # default) and relocated if they conflict, which is a slow very memory
 
5590
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
5591
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
5592
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
5593
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
5594
      _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'
 
5595
      ;;
 
5596
 
5403
5597
    linux*)
5404
5598
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5405
5599
        tmp_addflag=
5406
5600
        case $cc_basename,$host_cpu in
5407
5601
        pgcc*)                          # Portland Group C compiler
5408
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5602
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5603
          tmp_addflag=' $pic_flag'
5409
5604
          ;;
5410
 
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
5411
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5412
 
          tmp_addflag=' -fpic -Mnomain' ;;
 
5605
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
5606
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5607
          tmp_addflag=' $pic_flag -Mnomain' ;;
5413
5608
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
5414
5609
          tmp_addflag=' -i_dynamic' ;;
5415
5610
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
5440
5635
      fi
5441
5636
      ;;
5442
5637
 
5443
 
    solaris* | sysv5*)
 
5638
    solaris*)
5444
5639
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5445
5640
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5446
5641
        cat <<EOF 1>&2
5461
5656
      fi
5462
5657
      ;;
5463
5658
 
 
5659
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
5660
      case `$LD -v 2>&1` in
 
5661
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5662
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5663
        cat <<_LT_EOF 1>&2
 
5664
 
 
5665
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
5666
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
5667
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
5668
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
5669
*** your PATH or compiler configuration so that the native linker is
 
5670
*** used, and then restart.
 
5671
 
 
5672
_LT_EOF
 
5673
        ;;
 
5674
        *)
 
5675
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5676
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
5677
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
5678
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
5679
          else
 
5680
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5681
          fi
 
5682
        ;;
 
5683
      esac
 
5684
      ;;
 
5685
 
5464
5686
    sunos4*)
5465
5687
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5466
5688
      wlarc=
5494
5716
      # Note: this linker hardcodes the directories in LIBPATH if there
5495
5717
      # are no directories specified by -L.
5496
5718
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5497
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
5719
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5498
5720
        # Neither direct hardcoding nor static linking is supported with a
5499
5721
        # broken collect2.
5500
5722
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5528
5750
            break
5529
5751
          fi
5530
5752
          done
 
5753
          ;;
5531
5754
        esac
5532
5755
 
5533
5756
        exp_sym_flag='-bexport'
5565
5788
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5566
5789
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5567
5790
          fi
 
5791
          ;;
5568
5792
        esac
5569
5793
        shared_flag='-shared'
5570
5794
        if test "$aix_use_runtimelinking" = yes; then
5577
5801
        # chokes on -Wl,-G. The following line is correct:
5578
5802
          shared_flag='-G'
5579
5803
        else
5580
 
        if test "$aix_use_runtimelinking" = yes; then
 
5804
          if test "$aix_use_runtimelinking" = yes; then
5581
5805
            shared_flag='${wl}-G'
5582
5806
          else
5583
5807
            shared_flag='${wl}-bM:SRE'
5584
 
        fi
 
5808
          fi
5585
5809
        fi
5586
5810
      fi
5587
5811
 
5595
5819
       # Determine the default libpath from the value encoded in an empty executable.
5596
5820
       _LT_AC_SYS_LIBPATH_AIX
5597
5821
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5598
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
5822
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5599
5823
       else
5600
5824
        if test "$host_cpu" = ia64; then
5601
5825
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5602
5826
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5603
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
5827
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5604
5828
        else
5605
5829
         # Determine the default libpath from the value encoded in an empty executable.
5606
5830
         _LT_AC_SYS_LIBPATH_AIX
5609
5833
          # -berok will link without error, but may produce a broken library.
5610
5834
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5611
5835
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5612
 
          # -bexpall does not export symbols beginning with underscore (_)
5613
 
          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5614
5836
          # Exported symbols can be pulled into shared objects from archives
5615
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
5837
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5616
5838
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5617
 
          # This is similar to how AIX traditionally builds it's shared libraries.
5618
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
5839
          # This is similar to how AIX traditionally builds its shared libraries.
 
5840
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5619
5841
        fi
5620
5842
      fi
5621
5843
      ;;
5654
5876
      ;;
5655
5877
 
5656
5878
    darwin* | rhapsody*)
5657
 
      case "$host_os" in
 
5879
      case $host_os in
5658
5880
        rhapsody* | darwin1.[[012]])
5659
5881
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5660
5882
         ;;
5683
5905
        output_verbose_link_cmd='echo'
5684
5906
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5685
5907
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5686
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
5908
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5687
5909
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5688
5910
      _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5689
5911
    else
5692
5914
         output_verbose_link_cmd='echo'
5693
5915
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
5694
5916
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5695
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
5917
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5696
5918
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5697
5919
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5698
5920
          ;;
5756
5978
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5757
5979
      ;;
5758
5980
 
5759
 
    hpux10* | hpux11*)
5760
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5761
 
        case "$host_cpu" in
5762
 
        hppa*64*|ia64*)
 
5981
    hpux10*)
 
5982
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5983
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5984
      else
 
5985
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5986
      fi
 
5987
      if test "$with_gnu_ld" = no; then
 
5988
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5989
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5990
 
 
5991
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5992
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5993
 
 
5994
        # hardcode_minus_L: Not really in the search PATH,
 
5995
        # but as the default location of the library.
 
5996
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5997
      fi
 
5998
      ;;
 
5999
 
 
6000
    hpux11*)
 
6001
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6002
        case $host_cpu in
 
6003
        hppa*64*)
5763
6004
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5764
6005
          ;;
 
6006
        ia64*)
 
6007
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6008
          ;;
5765
6009
        *)
5766
6010
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5767
6011
          ;;
5768
6012
        esac
5769
6013
      else
5770
 
        case "$host_cpu" in
5771
 
        hppa*64*|ia64*)
5772
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6014
        case $host_cpu in
 
6015
        hppa*64*)
 
6016
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6017
          ;;
 
6018
        ia64*)
 
6019
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5773
6020
          ;;
5774
6021
        *)
5775
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6022
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5776
6023
          ;;
5777
6024
        esac
5778
6025
      fi
5779
6026
      if test "$with_gnu_ld" = no; then
5780
 
        case "$host_cpu" in
5781
 
        hppa*64*)
5782
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6027
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6028
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6029
 
 
6030
        case $host_cpu in
 
6031
        hppa*64*|ia64*)
5783
6032
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5784
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5785
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5786
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5787
 
          ;;
5788
 
        ia64*)
5789
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5790
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5791
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5792
 
 
5793
 
          # hardcode_minus_L: Not really in the search PATH,
5794
 
          # but as the default location of the library.
5795
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6033
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6034
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5796
6035
          ;;
5797
6036
        *)
5798
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5799
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5800
6037
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5801
6038
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5802
6039
 
5898
6135
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5899
6136
      ;;
5900
6137
 
5901
 
    sco3.2v5*)
5902
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5903
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5904
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5905
 
      runpath_var=LD_RUN_PATH
5906
 
      hardcode_runpath_var=yes
5907
 
      ;;
5908
 
 
5909
6138
    solaris*)
5910
6139
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5911
6140
      if test "$GCC" = yes; then
5991
6220
      fi
5992
6221
      ;;
5993
6222
 
5994
 
    sysv4.2uw2*)
5995
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5996
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5997
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5998
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5999
 
      hardcode_runpath_var=yes
6000
 
      runpath_var=LD_RUN_PATH
6001
 
      ;;
6002
 
 
6003
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
6004
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
6005
 
      if test "$GCC" = yes; then
6006
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6007
 
      else
6008
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6009
 
      fi
6010
 
      runpath_var='LD_RUN_PATH'
6011
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6012
 
      ;;
6013
 
 
6014
 
    sysv5*)
6015
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6016
 
      # $CC -shared without GNU ld will not create a library from C++
6017
 
      # object files and a static libstdc++, better avoid it by now
6018
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6019
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6020
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6021
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6022
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6023
 
      runpath_var='LD_RUN_PATH'
 
6223
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6224
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6225
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6226
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6227
      runpath_var='LD_RUN_PATH'
 
6228
 
 
6229
      if test "$GCC" = yes; then
 
6230
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6231
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6232
      else
 
6233
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6234
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6235
      fi
 
6236
      ;;
 
6237
 
 
6238
    sysv5* | sco3.2v5* | sco5v6*)
 
6239
      # Note: We can NOT use -z defs as we might desire, because we do not
 
6240
      # link with -lc, and that would cause any symbols used from libc to
 
6241
      # always be unresolved, which means just about no library would
 
6242
      # ever link correctly.  If we're not using GNU ld we use -z text
 
6243
      # though, which does catch some bad symbols but isn't as heavy-handed
 
6244
      # as -z defs.
 
6245
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6246
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6247
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6248
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6249
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
6250
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6251
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6252
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6253
      runpath_var='LD_RUN_PATH'
 
6254
 
 
6255
      if test "$GCC" = yes; then
 
6256
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6257
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6258
      else
 
6259
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6260
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6261
      fi
6024
6262
      ;;
6025
6263
 
6026
6264
    uts4*)
6038
6276
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6039
6277
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6040
6278
 
6041
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6042
 
if test "$GCC" = yes; then
6043
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6044
 
fi
6045
 
 
6046
6279
#
6047
6280
# Do we need to explicitly link libc?
6048
6281
#
6070
6303
        libobjs=conftest.$ac_objext
6071
6304
        deplibs=
6072
6305
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
6306
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6073
6307
        compiler_flags=-v
6074
6308
        linker_flags=-v
6075
6309
        verstring=
6225
6459
AC_MSG_RESULT([$SED])
6226
6460
])
6227
6461
 
6228
 
 
6229
 
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
6230
 
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
6231
 
dnl also defines GSTUFF_PKG_ERRORS on error
6232
 
AC_DEFUN([PKG_CHECK_MODULES], [
6233
 
  succeeded=no
6234
 
 
6235
 
  if test -z "$PKG_CONFIG"; then
6236
 
    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
6237
 
  fi
6238
 
 
6239
 
  if test "$PKG_CONFIG" = "no" ; then
6240
 
     echo "*** The pkg-config script could not be found. Make sure it is"
6241
 
     echo "*** in your path, or set the PKG_CONFIG environment variable"
6242
 
     echo "*** to the full path to pkg-config."
6243
 
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
6244
 
  else
6245
 
     PKG_CONFIG_MIN_VERSION=0.9.0
6246
 
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6247
 
        AC_MSG_CHECKING(for $2)
6248
 
 
6249
 
        if $PKG_CONFIG --exists "$2" ; then
6250
 
            AC_MSG_RESULT(yes)
6251
 
            succeeded=yes
6252
 
 
6253
 
            AC_MSG_CHECKING($1_CFLAGS)
6254
 
            $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
6255
 
            AC_MSG_RESULT($$1_CFLAGS)
6256
 
 
6257
 
            AC_MSG_CHECKING($1_LIBS)
6258
 
            $1_LIBS=`$PKG_CONFIG --libs "$2"`
6259
 
            AC_MSG_RESULT($$1_LIBS)
6260
 
        else
6261
 
            $1_CFLAGS=""
6262
 
            $1_LIBS=""
6263
 
            ## If we have a custom action on failure, don't print errors, but 
6264
 
            ## do set a variable so people can do so.
6265
 
            $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
6266
 
            ifelse([$4], ,echo $$1_PKG_ERRORS,)
 
6462
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
6463
 
6464
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
6465
#
 
6466
# This program is free software; you can redistribute it and/or modify
 
6467
# it under the terms of the GNU General Public License as published by
 
6468
# the Free Software Foundation; either version 2 of the License, or
 
6469
# (at your option) any later version.
 
6470
#
 
6471
# This program is distributed in the hope that it will be useful, but
 
6472
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
6473
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
6474
# General Public License for more details.
 
6475
#
 
6476
# You should have received a copy of the GNU General Public License
 
6477
# along with this program; if not, write to the Free Software
 
6478
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
6479
#
 
6480
# As a special exception to the GNU General Public License, if you
 
6481
# distribute this file as part of a program that contains a
 
6482
# configuration script generated by Autoconf, you may include it under
 
6483
# the same distribution terms that you use for the rest of that program.
 
6484
 
 
6485
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
6486
# ----------------------------------
 
6487
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
6488
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
6489
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
6490
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
6491
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
6492
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
6493
fi
 
6494
if test -n "$PKG_CONFIG"; then
 
6495
        _pkg_min_version=m4_default([$1], [0.9.0])
 
6496
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
6497
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
6498
                AC_MSG_RESULT([yes])
 
6499
        else
 
6500
                AC_MSG_RESULT([no])
 
6501
                PKG_CONFIG=""
 
6502
        fi
 
6503
                
 
6504
fi[]dnl
 
6505
])# PKG_PROG_PKG_CONFIG
 
6506
 
 
6507
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
6508
#
 
6509
# Check to see whether a particular set of modules exists.  Similar
 
6510
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
6511
#
 
6512
#
 
6513
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
 
6514
# this or PKG_CHECK_MODULES is called, or make sure to call
 
6515
# PKG_CHECK_EXISTS manually
 
6516
# --------------------------------------------------------------
 
6517
AC_DEFUN([PKG_CHECK_EXISTS],
 
6518
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
6519
if test -n "$PKG_CONFIG" && \
 
6520
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
6521
  m4_ifval([$2], [$2], [:])
 
6522
m4_ifvaln([$3], [else
 
6523
  $3])dnl
 
6524
fi])
 
6525
 
 
6526
 
 
6527
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
6528
# ---------------------------------------------
 
6529
m4_define([_PKG_CONFIG],
 
6530
[if test -n "$PKG_CONFIG"; then
 
6531
    if test -n "$$1"; then
 
6532
        pkg_cv_[]$1="$$1"
 
6533
    else
 
6534
        PKG_CHECK_EXISTS([$3],
 
6535
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
6536
                         [pkg_failed=yes])
 
6537
    fi
 
6538
else
 
6539
        pkg_failed=untried
 
6540
fi[]dnl
 
6541
])# _PKG_CONFIG
 
6542
 
 
6543
# _PKG_SHORT_ERRORS_SUPPORTED
 
6544
# -----------------------------
 
6545
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
6546
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
6547
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
6548
        _pkg_short_errors_supported=yes
 
6549
else
 
6550
        _pkg_short_errors_supported=no
 
6551
fi[]dnl
 
6552
])# _PKG_SHORT_ERRORS_SUPPORTED
 
6553
 
 
6554
 
 
6555
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
6556
# [ACTION-IF-NOT-FOUND])
 
6557
#
 
6558
#
 
6559
# Note that if there is a possibility the first call to
 
6560
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
6561
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
6562
#
 
6563
#
 
6564
# --------------------------------------------------------------
 
6565
AC_DEFUN([PKG_CHECK_MODULES],
 
6566
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
6567
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
6568
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
6569
 
 
6570
pkg_failed=no
 
6571
AC_MSG_CHECKING([for $1])
 
6572
 
 
6573
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
6574
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
6575
 
 
6576
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
6577
and $1[]_LIBS to avoid the need to call pkg-config.
 
6578
See the pkg-config man page for more details.])
 
6579
 
 
6580
if test $pkg_failed = yes; then
 
6581
        _PKG_SHORT_ERRORS_SUPPORTED
 
6582
        if test $_pkg_short_errors_supported = yes; then
 
6583
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
6584
        else 
 
6585
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
6267
6586
        fi
6268
 
 
6269
 
        AC_SUBST($1_CFLAGS)
6270
 
        AC_SUBST($1_LIBS)
6271
 
     else
6272
 
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6273
 
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
6274
 
     fi
6275
 
  fi
6276
 
 
6277
 
  if test $succeeded = yes; then
6278
 
     ifelse([$3], , :, [$3])
6279
 
  else
6280
 
     ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
6281
 
  fi
6282
 
])
6283
 
 
6284
 
 
 
6587
        # Put the nasty error message in config.log where it belongs
 
6588
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
6589
 
 
6590
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
6591
[Package requirements ($2) were not met:
 
6592
 
 
6593
$$1_PKG_ERRORS
 
6594
 
 
6595
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
6596
installed software in a non-standard prefix.
 
6597
 
 
6598
_PKG_TEXT
 
6599
])],
 
6600
                [$4])
 
6601
elif test $pkg_failed = untried; then
 
6602
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
6603
[The pkg-config script could not be found or is too old.  Make sure it
 
6604
is in your PATH or set the PKG_CONFIG environment variable to the full
 
6605
path to pkg-config.
 
6606
 
 
6607
_PKG_TEXT
 
6608
 
 
6609
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
 
6610
                [$4])
 
6611
else
 
6612
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
6613
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
6614
        AC_MSG_RESULT([yes])
 
6615
        ifelse([$3], , :, [$3])
 
6616
fi[]dnl
 
6617
])# PKG_CHECK_MODULES
6285
6618
 
6286
6619
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
6287
6620
#
6300
6633
# Call AM_AUTOMAKE_VERSION so it can be traced.
6301
6634
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6302
6635
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6303
 
         [AM_AUTOMAKE_VERSION([1.9.5])])
 
6636
         [AM_AUTOMAKE_VERSION([1.9.6])])
6304
6637
 
6305
6638
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
6306
6639
 
7008
7341
  dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
7009
7342
  dnl in 1.5.
7010
7343
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
7011
 
                    [python python2 python2.4 python2.3 python2.2 dnl
 
7344
                    [python python2 python2.5 python2.4 python2.3 python2.2 dnl
7012
7345
python2.1 python2.0 python1.6 python1.5])
7013
7346
 
7014
7347
  m4_if([$1],[],[