~ubuntu-branches/ubuntu/dapper/poppler/dapper-security

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2006-03-06 18:42:44 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060306184244-oomqyiqr7cgncp2c
Tags: 0.5.1-0ubuntu1
* New upstream version:
  - Support for embedded files.
  - Handle 0-width lines correctly.
  - Avoid external file use when opening fonts.
  - Only use vector fonts returned from fontconfig (#5758).
  - Fix scaled 1x1 pixmaps use for drawing lines (#3387).
  - drawSoftMaskedImage support in cairo backend.
  - Misc bug fixes: #5922, #5946, #5749, #5952, #4030, #5420.
* debian/control.in, debian/libpoppler0c2.dirs, 
  debian/libpoppler0c2-glib.dirs, debian/libpoppler0c2-glib.install,
  debian/libpoppler0c2.install, debian/libpoppler0c2-qt.dirs,
  debian/libpoppler0c2-qt.install, debian/rules:
  - updated for the soname change
* debian/patches/000_splash_build_fix.patch:
  - fix build when using splash
* debian/patches/001_fixes_for_fonts_selection.patch:
  - fix with the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15
15
 
16
 
# serial 47 AC_PROG_LIBTOOL
 
16
# serial 48 AC_PROG_LIBTOOL
17
17
 
18
18
 
19
19
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
163
163
test -z "$AS" && AS=as
164
164
test -z "$CC" && CC=cc
165
165
test -z "$LTCC" && LTCC=$CC
 
166
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
166
167
test -z "$DLLTOOL" && DLLTOOL=dlltool
167
168
test -z "$LD" && LD=ld
168
169
test -z "$LN_S" && LN_S="ln -s"
182
183
if test -n "$RANLIB"; then
183
184
  case $host_os in
184
185
  openbsd*)
185
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
186
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
186
187
    ;;
187
188
  *)
188
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
189
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
189
190
    ;;
190
191
  esac
191
192
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
233
234
# If no C compiler was specified, use CC.
234
235
LTCC=${LTCC-"$CC"}
235
236
 
 
237
# If no C compiler flags were specified, use CFLAGS.
 
238
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
239
 
236
240
# Allow CC to be a program name with arguments.
237
241
compiler=$CC
238
242
])# _LT_AC_SYS_COMPILER
261
265
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
262
266
[ac_outfile=conftest.$ac_objext
263
267
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
264
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
268
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
265
269
_lt_compiler_boilerplate=`cat conftest.err`
266
270
$rm conftest*
267
271
])# _LT_COMPILER_BOILERPLATE
274
278
AC_DEFUN([_LT_LINKER_BOILERPLATE],
275
279
[ac_outfile=conftest.$ac_objext
276
280
printf "$lt_simple_link_test_code" >conftest.$ac_ext
277
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
281
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
278
282
_lt_linker_boilerplate=`cat conftest.err`
279
283
$rm conftest*
280
284
])# _LT_LINKER_BOILERPLATE
580
584
    CFLAGS="$SAVE_CFLAGS"
581
585
  fi
582
586
  ;;
 
587
sparc*-*solaris*)
 
588
  # Find out which ABI we are using.
 
589
  echo 'int i;' > conftest.$ac_ext
 
590
  if AC_TRY_EVAL(ac_compile); then
 
591
    case `/usr/bin/file conftest.o` in
 
592
    *64-bit*)
 
593
      case $lt_cv_prog_gnu_ld in
 
594
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
595
      *)    LD="${LD-ld} -64" ;;
 
596
      esac
 
597
      ;;
 
598
    esac
 
599
  fi
 
600
  rm -rf conftest*
 
601
  ;;
 
602
 
583
603
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
584
604
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
585
605
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
622
642
   if (exit $ac_status) && test -s "$ac_outfile"; then
623
643
     # The compiler can only warn and ignore the option if not recognized
624
644
     # So say no if there are warnings other than the usual output.
625
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
626
 
     $SED '/^$/d' conftest.err >conftest.er2
627
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
645
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
646
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
647
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
628
648
       $2=yes
629
649
     fi
630
650
   fi
655
675
     if test -s conftest.err; then
656
676
       # Append any errors to the config.log.
657
677
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
658
 
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
659
 
       $SED '/^$/d' conftest.err >conftest.er2
 
678
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
679
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
660
680
       if diff conftest.exp conftest.er2 >/dev/null; then
661
681
         $2=yes
662
682
       fi
731
751
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
732
752
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
733
753
    ;;
 
754
 
 
755
  interix*)
 
756
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
757
    lt_cv_sys_max_cmd_len=196608
 
758
    ;;
 
759
 
734
760
  osf*)
735
761
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
736
762
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
744
770
      esac
745
771
    fi
746
772
    ;;
 
773
  sco3.2v5*)
 
774
    lt_cv_sys_max_cmd_len=102400
 
775
    ;;
 
776
  sysv5* | sco5v6* | sysv4.2uw2*)
 
777
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
778
    if test -n "$kargmax"; then
 
779
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
780
    else
 
781
      lt_cv_sys_max_cmd_len=32768
 
782
    fi
 
783
    ;;
747
784
  *)
748
785
    # If test is not a shell built-in, we'll probably end up computing a
749
786
    # maximum length that is only half of the actual maximum length, but
775
812
 
776
813
 
777
814
# _LT_AC_CHECK_DLFCN
778
 
# --------------------
 
815
# ------------------
779
816
AC_DEFUN([_LT_AC_CHECK_DLFCN],
780
817
[AC_CHECK_HEADERS(dlfcn.h)dnl
781
818
])# _LT_AC_CHECK_DLFCN
783
820
 
784
821
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
785
822
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
786
 
# ------------------------------------------------------------------
 
823
# ---------------------------------------------------------------------
787
824
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
788
825
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
789
826
if test "$cross_compiling" = yes; then :
849
886
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
850
887
      /* dlclose (self); */
851
888
    }
 
889
  else
 
890
    puts (dlerror ());
852
891
 
853
892
    exit (status);
854
893
}]
859
898
    case x$lt_status in
860
899
      x$lt_dlno_uscore) $1 ;;
861
900
      x$lt_dlneed_uscore) $2 ;;
862
 
      x$lt_unknown|x*) $3 ;;
 
901
      x$lt_dlunknown|x*) $3 ;;
863
902
    esac
864
903
  else :
865
904
    # compilation failed
871
910
 
872
911
 
873
912
# AC_LIBTOOL_DLOPEN_SELF
874
 
# -------------------
 
913
# ----------------------
875
914
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
876
915
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
877
916
if test "x$enable_dlopen" != xyes; then
942
981
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
943
982
 
944
983
    save_LDFLAGS="$LDFLAGS"
945
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
984
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
946
985
 
947
986
    save_LIBS="$LIBS"
948
987
    LIBS="$lt_cv_dlopen_libs $LIBS"
955
994
    ])
956
995
 
957
996
    if test "x$lt_cv_dlopen_self" = xyes; then
958
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
997
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
959
998
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
960
999
          lt_cv_dlopen_self_static, [dnl
961
1000
          _LT_AC_TRY_DLOPEN_SELF(
1015
1054
   then
1016
1055
     # The compiler can only warn and ignore the option if not recognized
1017
1056
     # So say no if there are warnings
1018
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
1019
 
     $SED '/^$/d' out/conftest.err >out/conftest.er2
1020
 
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
1057
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
1058
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
1059
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1021
1060
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1022
1061
     fi
1023
1062
   fi
1402
1441
    shlibpath_overrides_runpath=yes
1403
1442
    hardcode_into_libs=yes
1404
1443
    ;;
1405
 
  *) # from 3.2 on
 
1444
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 
1445
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1406
1446
    shlibpath_overrides_runpath=no
1407
1447
    hardcode_into_libs=yes
1408
1448
    ;;
 
1449
  freebsd*) # from 4.6 on
 
1450
    shlibpath_overrides_runpath=yes
 
1451
    hardcode_into_libs=yes
 
1452
    ;;
1409
1453
  esac
1410
1454
  ;;
1411
1455
 
1465
1509
  postinstall_cmds='chmod 555 $lib'
1466
1510
  ;;
1467
1511
 
 
1512
interix3*)
 
1513
  version_type=linux
 
1514
  need_lib_prefix=no
 
1515
  need_version=no
 
1516
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1517
  soname_spec='${libname}${release}${shared_ext}$major'
 
1518
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
1519
  shlibpath_var=LD_LIBRARY_PATH
 
1520
  shlibpath_overrides_runpath=no
 
1521
  hardcode_into_libs=yes
 
1522
  ;;
 
1523
 
1468
1524
irix5* | irix6* | nonstopux*)
1469
1525
  case $host_os in
1470
1526
    nonstopux*) version_type=nonstopux ;;
1603
1659
 
1604
1660
openbsd*)
1605
1661
  version_type=sunos
 
1662
  sys_lib_dlsearch_path_spec="/usr/lib"
1606
1663
  need_lib_prefix=no
1607
1664
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1608
1665
  case $host_os in
1646
1703
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1647
1704
  ;;
1648
1705
 
1649
 
sco3.2v5*)
1650
 
  version_type=osf
1651
 
  soname_spec='${libname}${release}${shared_ext}$major'
1652
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1653
 
  shlibpath_var=LD_LIBRARY_PATH
1654
 
  ;;
1655
 
 
1656
1706
solaris*)
1657
1707
  version_type=linux
1658
1708
  need_lib_prefix=no
1678
1728
  need_version=yes
1679
1729
  ;;
1680
1730
 
1681
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
1731
sysv4 | sysv4.3*)
1682
1732
  version_type=linux
1683
1733
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1684
1734
  soname_spec='${libname}${release}${shared_ext}$major'
1711
1761
  fi
1712
1762
  ;;
1713
1763
 
 
1764
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
1765
  version_type=freebsd-elf
 
1766
  need_lib_prefix=no
 
1767
  need_version=no
 
1768
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
1769
  soname_spec='${libname}${release}${shared_ext}$major'
 
1770
  shlibpath_var=LD_LIBRARY_PATH
 
1771
  hardcode_into_libs=yes
 
1772
  if test "$with_gnu_ld" = yes; then
 
1773
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
1774
    shlibpath_overrides_runpath=no
 
1775
  else
 
1776
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
1777
    shlibpath_overrides_runpath=yes
 
1778
    case $host_os in
 
1779
      sco3.2v5*)
 
1780
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
1781
        ;;
 
1782
    esac
 
1783
  fi
 
1784
  sys_lib_dlsearch_path_spec='/usr/lib'
 
1785
  ;;
 
1786
 
1714
1787
uts4*)
1715
1788
  version_type=linux
1716
1789
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1724
1797
esac
1725
1798
AC_MSG_RESULT([$dynamic_linker])
1726
1799
test "$dynamic_linker" = no && can_build_shared=no
 
1800
 
 
1801
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
1802
if test "$GCC" = yes; then
 
1803
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
1804
fi
1727
1805
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1728
1806
 
1729
1807
 
1748
1826
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1749
1827
    fi
1750
1828
  fi
 
1829
  if test -z "$LTCFLAGS"; then
 
1830
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
1831
  fi
1751
1832
 
1752
1833
  # Extract list of available tagged configurations in $ofile.
1753
1834
  # Note that this assumes the entire list is on one line.
1876
1957
 
1877
1958
# AC_DISABLE_SHARED
1878
1959
# -----------------
1879
 
#- set the default shared flag to --disable-shared
 
1960
# set the default shared flag to --disable-shared
1880
1961
AC_DEFUN([AC_DISABLE_SHARED],
1881
1962
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1882
1963
AC_ENABLE_SHARED(no)
2184
2265
case $host_os in
2185
2266
  darwin*)
2186
2267
    if test "$GCC" = yes; then
2187
 
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
2268
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2188
2269
    else
2189
2270
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
2190
2271
    fi
2284
2365
  esac
2285
2366
  ;;
2286
2367
 
 
2368
interix3*)
 
2369
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
2370
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
2371
  ;;
 
2372
 
2287
2373
irix5* | irix6* | nonstopux*)
2288
2374
  case $LD in
2289
2375
  *-32|*"-32 ") libmagic=32-bit;;
2329
2415
  lt_cv_deplibs_check_method=pass_all
2330
2416
  ;;
2331
2417
 
2332
 
sco3.2v5*)
2333
 
  lt_cv_deplibs_check_method=pass_all
2334
 
  ;;
2335
 
 
2336
2418
solaris*)
2337
2419
  lt_cv_deplibs_check_method=pass_all
2338
2420
  ;;
2339
2421
 
2340
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
2422
sysv4 | sysv4.3*)
2341
2423
  case $host_vendor in
2342
2424
  motorola)
2343
2425
    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]]'
2358
2440
  siemens)
2359
2441
    lt_cv_deplibs_check_method=pass_all
2360
2442
    ;;
 
2443
  pc)
 
2444
    lt_cv_deplibs_check_method=pass_all
 
2445
    ;;
2361
2446
  esac
2362
2447
  ;;
2363
2448
 
2364
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
 
2449
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2365
2450
  lt_cv_deplibs_check_method=pass_all
2366
2451
  ;;
2367
2452
esac
2381
2466
  # Let the user override the test.
2382
2467
  lt_cv_path_NM="$NM"
2383
2468
else
2384
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2385
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2386
 
    IFS="$lt_save_ifs"
2387
 
    test -z "$ac_dir" && ac_dir=.
2388
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2389
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2390
 
      # Check to see if the nm accepts a BSD-compat flag.
2391
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2392
 
      #   nm: unknown option "B" ignored
2393
 
      # Tru64's nm complains that /dev/null is an invalid object file
2394
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2395
 
      */dev/null* | *'Invalid file or object type'*)
2396
 
        lt_cv_path_NM="$tmp_nm -B"
2397
 
        break
2398
 
        ;;
2399
 
      *)
2400
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2401
 
        */dev/null*)
2402
 
          lt_cv_path_NM="$tmp_nm -p"
 
2469
  lt_nm_to_check="${ac_tool_prefix}nm"
 
2470
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2471
    lt_nm_to_check="$lt_nm_to_check nm"
 
2472
  fi
 
2473
  for lt_tmp_nm in $lt_nm_to_check; do
 
2474
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2475
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
2476
      IFS="$lt_save_ifs"
 
2477
      test -z "$ac_dir" && ac_dir=.
 
2478
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
2479
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
2480
        # Check to see if the nm accepts a BSD-compat flag.
 
2481
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
2482
        #   nm: unknown option "B" ignored
 
2483
        # Tru64's nm complains that /dev/null is an invalid object file
 
2484
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
2485
        */dev/null* | *'Invalid file or object type'*)
 
2486
          lt_cv_path_NM="$tmp_nm -B"
2403
2487
          break
2404
2488
          ;;
2405
2489
        *)
2406
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2407
 
          continue # so that we can try to find one that supports BSD flags
 
2490
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
2491
          */dev/null*)
 
2492
            lt_cv_path_NM="$tmp_nm -p"
 
2493
            break
 
2494
            ;;
 
2495
          *)
 
2496
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2497
            continue # so that we can try to find one that supports BSD flags
 
2498
            ;;
 
2499
          esac
2408
2500
          ;;
2409
2501
        esac
2410
 
      esac
2411
 
    fi
 
2502
      fi
 
2503
    done
 
2504
    IFS="$lt_save_ifs"
2412
2505
  done
2413
 
  IFS="$lt_save_ifs"
2414
2506
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2415
2507
fi])
2416
2508
NM="$lt_cv_path_NM"
2516
2608
])# _LT_AC_LANG_CXX
2517
2609
 
2518
2610
# _LT_AC_PROG_CXXCPP
2519
 
# ---------------
 
2611
# ------------------
2520
2612
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2521
2613
[
2522
2614
AC_REQUIRE([AC_PROG_CXX])
2565
2657
 
2566
2658
 
2567
2659
# AC_LIBTOOL_RC
2568
 
# --------------
 
2660
# -------------
2569
2661
# enable support for Windows resource files
2570
2662
AC_DEFUN([AC_LIBTOOL_RC],
2571
2663
[AC_REQUIRE([LT_AC_PROG_RC])
2602
2694
_LT_COMPILER_BOILERPLATE
2603
2695
_LT_LINKER_BOILERPLATE
2604
2696
 
2605
 
#
2606
 
# Check for any special shared library compilation flags.
2607
 
#
2608
 
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2609
 
if test "$GCC" = no; then
2610
 
  case $host_os in
2611
 
  sco3.2v5*)
2612
 
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2613
 
    ;;
2614
 
  esac
2615
 
fi
2616
 
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2617
 
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2618
 
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
2619
 
  else
2620
 
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2621
 
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2622
 
  fi
2623
 
fi
2624
 
 
2625
 
 
2626
 
#
2627
 
# Check to make sure the static flag actually works.
2628
 
#
2629
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2630
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2631
 
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2632
 
  [],
2633
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2634
 
 
2635
 
 
2636
2697
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2637
2698
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2638
2699
AC_LIBTOOL_PROG_CC_C_O($1)
2641
2702
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2642
2703
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2643
2704
AC_LIBTOOL_SYS_LIB_STRIP
2644
 
AC_LIBTOOL_DLOPEN_SELF($1)
 
2705
AC_LIBTOOL_DLOPEN_SELF
2645
2706
 
2646
 
# Report which librarie types wil actually be built
 
2707
# Report which library types will actually be built
2647
2708
AC_MSG_CHECKING([if libtool supports shared libraries])
2648
2709
AC_MSG_RESULT([$can_build_shared])
2649
2710
 
2702
2763
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2703
2764
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2704
2765
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
2766
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2705
2767
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2706
2768
_LT_AC_TAGVAR(module_cmds, $1)=
2707
2769
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2729
2791
lt_simple_compile_test_code="int some_variable = 0;\n"
2730
2792
 
2731
2793
# Code to be used in simple link tests
2732
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
2794
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2733
2795
 
2734
2796
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2735
2797
_LT_AC_SYS_COMPILER
2748
2810
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2749
2811
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2750
2812
else
2751
 
  unset lt_cv_prog_gnu_ld
 
2813
  $as_unset lt_cv_prog_gnu_ld
2752
2814
fi
2753
2815
if test -n "${lt_cv_path_LDCXX+set}"; then
2754
2816
  lt_cv_path_LD=$lt_cv_path_LDCXX
2755
2817
else
2756
 
  unset lt_cv_path_LD
 
2818
  $as_unset lt_cv_path_LD
2757
2819
fi
2758
2820
test -z "${LDCXX+set}" || LD=$LDCXX
2759
2821
CC=${CXX-"c++"}
2848
2910
            ;;
2849
2911
          esac
2850
2912
        done
 
2913
        ;;
2851
2914
      esac
2852
2915
 
2853
2916
      exp_sym_flag='-bexport'
2885
2948
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2886
2949
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2887
2950
        fi
 
2951
        ;;
2888
2952
      esac
2889
2953
      shared_flag='-shared'
2890
2954
      if test "$aix_use_runtimelinking" = yes; then
2916
2980
      _LT_AC_SYS_LIBPATH_AIX
2917
2981
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2918
2982
 
2919
 
      _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"
 
2983
      _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"
2920
2984
     else
2921
2985
      if test "$host_cpu" = ia64; then
2922
2986
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2923
2987
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2924
 
        _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"
 
2988
        _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"
2925
2989
      else
2926
2990
        # Determine the default libpath from the value encoded in an empty executable.
2927
2991
        _LT_AC_SYS_LIBPATH_AIX
2930
2994
        # -berok will link without error, but may produce a broken library.
2931
2995
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2932
2996
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2933
 
        # -bexpall does not export symbols beginning with underscore (_)
2934
 
        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2935
2997
        # Exported symbols can be pulled into shared objects from archives
2936
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
2998
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2937
2999
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2938
3000
        # This is similar to how AIX traditionally builds its shared libraries.
2939
 
        _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'
 
3001
        _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'
2940
3002
      fi
2941
3003
    fi
2942
3004
    ;;
 
3005
 
 
3006
  beos*)
 
3007
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
3008
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
3009
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
3010
      # support --undefined.  This deserves some investigation.  FIXME
 
3011
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3012
    else
 
3013
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3014
    fi
 
3015
    ;;
 
3016
 
2943
3017
  chorus*)
2944
3018
    case $cc_basename in
2945
3019
      *)
2949
3023
    esac
2950
3024
    ;;
2951
3025
 
2952
 
 
2953
3026
  cygwin* | mingw* | pw32*)
2954
3027
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2955
3028
    # as there is no search path for DLLs.
2959
3032
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2960
3033
 
2961
3034
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2962
 
      _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'
 
3035
      _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'
2963
3036
      # If the export-symbols file already is a .def file (1st line
2964
3037
      # is EXPORTS), use it as is; otherwise, prepend...
2965
3038
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2968
3041
        echo EXPORTS > $output_objdir/$soname.def;
2969
3042
        cat $export_symbols >> $output_objdir/$soname.def;
2970
3043
      fi~
2971
 
      $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'
 
3044
      $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'
2972
3045
    else
2973
3046
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2974
3047
    fi
3105
3178
    ;;
3106
3179
  hpux10*|hpux11*)
3107
3180
    if test $with_gnu_ld = no; then
 
3181
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3182
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3183
 
3108
3184
      case $host_cpu in
3109
 
      hppa*64*)
3110
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3185
      hppa*64*|ia64*)
3111
3186
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3112
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3113
 
        ;;
3114
 
      ia64*)
3115
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3116
3187
        ;;
3117
3188
      *)
3118
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3119
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3120
3189
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3121
3190
        ;;
3122
3191
      esac
3123
3192
    fi
3124
3193
    case $host_cpu in
3125
 
    hppa*64*)
3126
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3127
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3128
 
      ;;
3129
 
    ia64*)
3130
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3131
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3132
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3133
 
                                              # but as the default
3134
 
                                              # location of the library.
 
3194
    hppa*64*|ia64*)
 
3195
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3196
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3135
3197
      ;;
3136
3198
    *)
3137
3199
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3148
3210
        ;;
3149
3211
      aCC*)
3150
3212
        case $host_cpu in
3151
 
        hppa*64*|ia64*)
3152
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3213
        hppa*64*)
 
3214
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3215
          ;;
 
3216
        ia64*)
 
3217
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3153
3218
          ;;
3154
3219
        *)
3155
3220
          _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'
3169
3234
        if test "$GXX" = yes; then
3170
3235
          if test $with_gnu_ld = no; then
3171
3236
            case $host_cpu in
3172
 
            ia64*|hppa*64*)
3173
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3237
            hppa*64*)
 
3238
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3239
              ;;
 
3240
            ia64*)
 
3241
              _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'
3174
3242
              ;;
3175
3243
            *)
3176
3244
              _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'
3184
3252
        ;;
3185
3253
    esac
3186
3254
    ;;
 
3255
  interix3*)
 
3256
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3257
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3258
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3259
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3260
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
3261
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
3262
    # default) and relocated if they conflict, which is a slow very memory
 
3263
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
3264
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
3265
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
3266
    _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'
 
3267
    _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'
 
3268
    ;;
3187
3269
  irix5* | irix6*)
3188
3270
    case $cc_basename in
3189
3271
      CC*)
3466
3548
    # FIXME: insert proper C++ library support
3467
3549
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3468
3550
    ;;
3469
 
  sco*)
3470
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3471
 
    case $cc_basename in
3472
 
      CC*)
3473
 
        # FIXME: insert proper C++ library support
3474
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3475
 
        ;;
3476
 
      *)
3477
 
        # FIXME: insert proper C++ library support
3478
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3479
 
        ;;
3480
 
    esac
3481
 
    ;;
3482
3551
  sunos4*)
3483
3552
    case $cc_basename in
3484
3553
      CC*)
3571
3640
        ;;
3572
3641
    esac
3573
3642
    ;;
3574
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3575
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3643
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
3644
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3645
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3646
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3647
    runpath_var='LD_RUN_PATH'
 
3648
 
 
3649
    case $cc_basename in
 
3650
      CC*)
 
3651
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3652
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3653
        ;;
 
3654
      *)
 
3655
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3656
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3657
        ;;
 
3658
    esac
 
3659
    ;;
 
3660
  sysv5* | sco3.2v5* | sco5v6*)
 
3661
    # Note: We can NOT use -z defs as we might desire, because we do not
 
3662
    # link with -lc, and that would cause any symbols used from libc to
 
3663
    # always be unresolved, which means just about no library would
 
3664
    # ever link correctly.  If we're not using GNU ld we use -z text
 
3665
    # though, which does catch some bad symbols but isn't as heavy-handed
 
3666
    # as -z defs.
 
3667
    # For security reasons, it is highly recommended that you always
 
3668
    # use absolute paths for naming shared libraries, and exclude the
 
3669
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
3670
    # requires that you compile everything twice, which is a pain.
 
3671
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
3672
    # non-empty value in the environment.  Most likely only useful for
 
3673
    # creating official distributions of packages.
 
3674
    # This is a hack until libtool officially supports absolute path
 
3675
    # names for shared libraries.
 
3676
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3677
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
3678
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3679
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3680
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
3681
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
3682
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3683
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
3684
    runpath_var='LD_RUN_PATH'
 
3685
 
 
3686
    case $cc_basename in
 
3687
      CC*)
 
3688
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3689
        _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'
 
3690
        ;;
 
3691
      *)
 
3692
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3693
        _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'
 
3694
        ;;
 
3695
    esac
3576
3696
    ;;
3577
3697
  tandem*)
3578
3698
    case $cc_basename in
3609
3729
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3610
3730
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3611
3731
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3612
 
AC_LIBTOOL_SYS_LIB_STRIP
3613
 
AC_LIBTOOL_DLOPEN_SELF($1)
3614
3732
 
3615
3733
AC_LIBTOOL_CONFIG($1)
3616
3734
 
3628
3746
])# AC_LIBTOOL_LANG_CXX_CONFIG
3629
3747
 
3630
3748
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3631
 
# ------------------------
 
3749
# ------------------------------------
3632
3750
# Figure out "hidden" library dependencies from verbose
3633
3751
# compiler output when linking a shared library.
3634
3752
# Parse the compiler output and extract the necessary
3761
3879
# PORTME: override above test on systems where it is broken
3762
3880
ifelse([$1],[CXX],
3763
3881
[case $host_os in
 
3882
interix3*)
 
3883
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
3884
  # hack all around it, let's just trust "g++" to DTRT.
 
3885
  _LT_AC_TAGVAR(predep_objects,$1)=
 
3886
  _LT_AC_TAGVAR(postdep_objects,$1)=
 
3887
  _LT_AC_TAGVAR(postdeps,$1)=
 
3888
  ;;
 
3889
 
3764
3890
solaris*)
3765
3891
  case $cc_basename in
3766
3892
  CC*)
3770
3896
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3771
3897
    ;;
3772
3898
  esac
 
3899
  ;;
3773
3900
esac
3774
3901
])
3775
3902
 
3779
3906
])# AC_LIBTOOL_POSTDEP_PREDEP
3780
3907
 
3781
3908
# AC_LIBTOOL_LANG_F77_CONFIG
3782
 
# ------------------------
 
3909
# --------------------------
3783
3910
# Ensure that the configuration vars for the C compiler are
3784
3911
# suitably defined.  Those variables are subsequently used by
3785
3912
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3863
3990
test "$enable_shared" = yes || enable_static=yes
3864
3991
AC_MSG_RESULT([$enable_static])
3865
3992
 
3866
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3867
 
 
3868
3993
_LT_AC_TAGVAR(GCC, $1)="$G77"
3869
3994
_LT_AC_TAGVAR(LD, $1)="$LD"
3870
3995
 
3874
3999
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3875
4000
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3876
4001
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3877
 
AC_LIBTOOL_SYS_LIB_STRIP
3878
 
 
3879
4002
 
3880
4003
AC_LIBTOOL_CONFIG($1)
3881
4004
 
3932
4055
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3933
4056
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3934
4057
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3935
 
AC_LIBTOOL_SYS_LIB_STRIP
3936
 
AC_LIBTOOL_DLOPEN_SELF($1)
3937
4058
 
3938
4059
AC_LIBTOOL_CONFIG($1)
3939
4060
 
3943
4064
 
3944
4065
 
3945
4066
# AC_LIBTOOL_LANG_RC_CONFIG
3946
 
# --------------------------
 
4067
# -------------------------
3947
4068
# Ensure that the configuration vars for the Windows resource compiler are
3948
4069
# suitably defined.  Those variables are subsequently used by
3949
4070
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4006
4127
  # Now quote all the things that may contain metacharacters while being
4007
4128
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4008
4129
  # variables and quote the copies for generation of the libtool script.
4009
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
4130
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4010
4131
    SED SHELL STRIP \
4011
4132
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4012
4133
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4175
4296
# A C compiler.
4176
4297
LTCC=$lt_LTCC
4177
4298
 
 
4299
# LTCC compiler flags.
 
4300
LTCFLAGS=$lt_LTCFLAGS
 
4301
 
4178
4302
# A language-specific compiler.
4179
4303
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4180
4304
 
4548
4672
osf*)
4549
4673
  symcode='[[BCDEGQRST]]'
4550
4674
  ;;
4551
 
solaris* | sysv5*)
 
4675
solaris*)
4552
4676
  symcode='[[BDRT]]'
4553
4677
  ;;
 
4678
sco3.2v5*)
 
4679
  symcode='[[DT]]'
 
4680
  ;;
 
4681
sysv4.2uw2*)
 
4682
  symcode='[[DT]]'
 
4683
  ;;
 
4684
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
4685
  symcode='[[ABDT]]'
 
4686
  ;;
4554
4687
sysv4)
4555
4688
  symcode='[[DFNSTU]]'
4556
4689
  ;;
4733
4866
      # DJGPP does not support shared libraries at all
4734
4867
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4735
4868
      ;;
 
4869
    interix3*)
 
4870
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
4871
      # Instead, we relocate shared libraries at runtime.
 
4872
      ;;
4736
4873
    sysv4*MP*)
4737
4874
      if test -d /usr/nec; then
4738
4875
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4802
4939
        case $cc_basename in
4803
4940
          CC*)
4804
4941
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4805
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
4942
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4806
4943
            if test "$host_cpu" != ia64; then
4807
4944
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4808
4945
            fi
4809
4946
            ;;
4810
4947
          aCC*)
4811
4948
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4812
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
4949
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4813
4950
            case $host_cpu in
4814
4951
            hppa*64*|ia64*)
4815
4952
              # +Z the default
4823
4960
            ;;
4824
4961
        esac
4825
4962
        ;;
 
4963
      interix*)
 
4964
        # This is c89, which is MS Visual C++ (no shared libs)
 
4965
        # Anyone wants to do a port?
 
4966
        ;;
4826
4967
      irix5* | irix6* | nonstopux*)
4827
4968
        case $cc_basename in
4828
4969
          CC*)
4902
5043
        ;;
4903
5044
      psos*)
4904
5045
        ;;
4905
 
      sco*)
4906
 
        case $cc_basename in
4907
 
          CC*)
4908
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4909
 
            ;;
4910
 
          *)
4911
 
            ;;
4912
 
        esac
4913
 
        ;;
4914
5046
      solaris*)
4915
5047
        case $cc_basename in
4916
5048
          CC*)
4952
5084
            ;;
4953
5085
        esac
4954
5086
        ;;
4955
 
      unixware*)
 
5087
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5088
        case $cc_basename in
 
5089
          CC*)
 
5090
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5091
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5092
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5093
            ;;
 
5094
        esac
4956
5095
        ;;
4957
5096
      vxworks*)
4958
5097
        ;;
4999
5138
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5000
5139
      ;;
5001
5140
 
 
5141
    interix3*)
 
5142
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5143
      # Instead, we relocate shared libraries at runtime.
 
5144
      ;;
 
5145
 
5002
5146
    msdosdjgpp*)
5003
5147
      # Just because we use GCC doesn't mean we suddenly get shared libraries
5004
5148
      # on systems that don't support them.
5113
5257
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5114
5258
      ;;
5115
5259
 
5116
 
    sco3.2v5*)
5117
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5118
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5119
 
      ;;
5120
 
 
5121
5260
    solaris*)
5122
5261
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5123
5262
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5135
5274
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5136
5275
      ;;
5137
5276
 
5138
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5277
    sysv4 | sysv4.2uw2* | sysv4.3*)
5139
5278
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5140
5279
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5141
5280
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5148
5287
      fi
5149
5288
      ;;
5150
5289
 
 
5290
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5291
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5292
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5293
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5294
      ;;
 
5295
 
5151
5296
    unicos*)
5152
5297
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5153
5298
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5189
5334
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5190
5335
    ;;
5191
5336
esac
 
5337
 
 
5338
#
 
5339
# Check to make sure the static flag actually works.
 
5340
#
 
5341
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
5342
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
5343
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5344
  $lt_tmp_static_flag,
 
5345
  [],
 
5346
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5192
5347
])
5193
5348
 
5194
5349
 
5267
5422
      with_gnu_ld=no
5268
5423
    fi
5269
5424
    ;;
 
5425
  interix*)
 
5426
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
5427
    with_gnu_ld=yes
 
5428
    ;;
5270
5429
  openbsd*)
5271
5430
    with_gnu_ld=no
5272
5431
    ;;
5351
5510
      _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'
5352
5511
 
5353
5512
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5354
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
5513
        _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'
5355
5514
        # If the export-symbols file already is a .def file (1st line
5356
5515
        # is EXPORTS), use it as is; otherwise, prepend...
5357
5516
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5360
5519
          echo EXPORTS > $output_objdir/$soname.def;
5361
5520
          cat $export_symbols >> $output_objdir/$soname.def;
5362
5521
        fi~
5363
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
5522
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5364
5523
      else
5365
5524
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5366
5525
      fi
5367
5526
      ;;
5368
5527
 
 
5528
    interix3*)
 
5529
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5530
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5531
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5532
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5533
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
5534
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
5535
      # default) and relocated if they conflict, which is a slow very memory
 
5536
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
5537
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
5538
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
5539
      _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'
 
5540
      _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'
 
5541
      ;;
 
5542
 
5369
5543
    linux*)
5370
5544
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5371
5545
        tmp_addflag=
5407
5581
      fi
5408
5582
      ;;
5409
5583
 
5410
 
    solaris* | sysv5*)
 
5584
    solaris*)
5411
5585
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5412
5586
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5413
5587
        cat <<EOF 1>&2
5428
5602
      fi
5429
5603
      ;;
5430
5604
 
 
5605
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
5606
      case `$LD -v 2>&1` in
 
5607
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5608
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5609
        cat <<_LT_EOF 1>&2
 
5610
 
 
5611
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
5612
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
5613
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
5614
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
5615
*** your PATH or compiler configuration so that the native linker is
 
5616
*** used, and then restart.
 
5617
 
 
5618
_LT_EOF
 
5619
        ;;
 
5620
        *)
 
5621
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5622
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
5623
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
5624
            _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'
 
5625
          else
 
5626
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5627
          fi
 
5628
        ;;
 
5629
      esac
 
5630
      ;;
 
5631
 
5431
5632
    sunos4*)
5432
5633
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5433
5634
      wlarc=
5461
5662
      # Note: this linker hardcodes the directories in LIBPATH if there
5462
5663
      # are no directories specified by -L.
5463
5664
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5464
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
5665
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5465
5666
        # Neither direct hardcoding nor static linking is supported with a
5466
5667
        # broken collect2.
5467
5668
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5495
5696
            break
5496
5697
          fi
5497
5698
          done
 
5699
          ;;
5498
5700
        esac
5499
5701
 
5500
5702
        exp_sym_flag='-bexport'
5532
5734
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5533
5735
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5534
5736
          fi
 
5737
          ;;
5535
5738
        esac
5536
5739
        shared_flag='-shared'
5537
5740
        if test "$aix_use_runtimelinking" = yes; then
5544
5747
        # chokes on -Wl,-G. The following line is correct:
5545
5748
          shared_flag='-G'
5546
5749
        else
5547
 
        if test "$aix_use_runtimelinking" = yes; then
 
5750
          if test "$aix_use_runtimelinking" = yes; then
5548
5751
            shared_flag='${wl}-G'
5549
5752
          else
5550
5753
            shared_flag='${wl}-bM:SRE'
5551
 
        fi
 
5754
          fi
5552
5755
        fi
5553
5756
      fi
5554
5757
 
5562
5765
       # Determine the default libpath from the value encoded in an empty executable.
5563
5766
       _LT_AC_SYS_LIBPATH_AIX
5564
5767
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5565
 
        _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"
 
5768
        _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"
5566
5769
       else
5567
5770
        if test "$host_cpu" = ia64; then
5568
5771
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5569
5772
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5570
 
          _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"
 
5773
          _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"
5571
5774
        else
5572
5775
         # Determine the default libpath from the value encoded in an empty executable.
5573
5776
         _LT_AC_SYS_LIBPATH_AIX
5576
5779
          # -berok will link without error, but may produce a broken library.
5577
5780
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5578
5781
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5579
 
          # -bexpall does not export symbols beginning with underscore (_)
5580
 
          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5581
5782
          # Exported symbols can be pulled into shared objects from archives
5582
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
5783
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5583
5784
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5584
5785
          # This is similar to how AIX traditionally builds its shared libraries.
5585
 
          _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'
 
5786
          _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'
5586
5787
        fi
5587
5788
      fi
5588
5789
      ;;
5723
5924
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5724
5925
      ;;
5725
5926
 
5726
 
    hpux10* | hpux11*)
 
5927
    hpux10*)
 
5928
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5929
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5930
      else
 
5931
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5932
      fi
 
5933
      if test "$with_gnu_ld" = no; then
 
5934
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5935
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5936
 
 
5937
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5938
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5939
 
 
5940
        # hardcode_minus_L: Not really in the search PATH,
 
5941
        # but as the default location of the library.
 
5942
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5943
      fi
 
5944
      ;;
 
5945
 
 
5946
    hpux11*)
5727
5947
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5728
5948
        case $host_cpu in
5729
 
        hppa*64*|ia64*)
 
5949
        hppa*64*)
5730
5950
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5731
5951
          ;;
 
5952
        ia64*)
 
5953
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5954
          ;;
5732
5955
        *)
5733
5956
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5734
5957
          ;;
5735
5958
        esac
5736
5959
      else
5737
5960
        case $host_cpu in
5738
 
        hppa*64*|ia64*)
5739
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5961
        hppa*64*)
 
5962
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5963
          ;;
 
5964
        ia64*)
 
5965
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5740
5966
          ;;
5741
5967
        *)
5742
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5968
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5743
5969
          ;;
5744
5970
        esac
5745
5971
      fi
5746
5972
      if test "$with_gnu_ld" = no; then
 
5973
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5974
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5975
 
5747
5976
        case $host_cpu in
5748
 
        hppa*64*)
5749
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5977
        hppa*64*|ia64*)
5750
5978
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5751
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5752
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5753
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5754
 
          ;;
5755
 
        ia64*)
5756
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5757
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5758
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5759
 
 
5760
 
          # hardcode_minus_L: Not really in the search PATH,
5761
 
          # but as the default location of the library.
5762
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5979
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5980
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5763
5981
          ;;
5764
5982
        *)
5765
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5766
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5767
5983
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5768
5984
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5769
5985
 
5865
6081
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5866
6082
      ;;
5867
6083
 
5868
 
    sco3.2v5*)
5869
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5870
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5871
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5872
 
      runpath_var=LD_RUN_PATH
5873
 
      hardcode_runpath_var=yes
5874
 
      ;;
5875
 
 
5876
6084
    solaris*)
5877
6085
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5878
6086
      if test "$GCC" = yes; then
5958
6166
      fi
5959
6167
      ;;
5960
6168
 
5961
 
    sysv4.2uw2*)
5962
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5963
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5964
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5965
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5966
 
      hardcode_runpath_var=yes
5967
 
      runpath_var=LD_RUN_PATH
5968
 
      ;;
5969
 
 
5970
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
5971
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5972
 
      if test "$GCC" = yes; then
5973
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5974
 
      else
5975
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5976
 
      fi
5977
 
      runpath_var='LD_RUN_PATH'
5978
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5979
 
      ;;
5980
 
 
5981
 
    sysv5*)
5982
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5983
 
      # $CC -shared without GNU ld will not create a library from C++
5984
 
      # object files and a static libstdc++, better avoid it by now
5985
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5986
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5987
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5988
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5989
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5990
 
      runpath_var='LD_RUN_PATH'
 
6169
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6170
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6171
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6172
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6173
      runpath_var='LD_RUN_PATH'
 
6174
 
 
6175
      if test "$GCC" = yes; then
 
6176
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6177
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6178
      else
 
6179
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6180
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6181
      fi
 
6182
      ;;
 
6183
 
 
6184
    sysv5* | sco3.2v5* | sco5v6*)
 
6185
      # Note: We can NOT use -z defs as we might desire, because we do not
 
6186
      # link with -lc, and that would cause any symbols used from libc to
 
6187
      # always be unresolved, which means just about no library would
 
6188
      # ever link correctly.  If we're not using GNU ld we use -z text
 
6189
      # though, which does catch some bad symbols but isn't as heavy-handed
 
6190
      # as -z defs.
 
6191
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6192
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6193
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6194
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6195
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
6196
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6197
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6198
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6199
      runpath_var='LD_RUN_PATH'
 
6200
 
 
6201
      if test "$GCC" = yes; then
 
6202
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6203
        _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'
 
6204
      else
 
6205
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6206
        _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'
 
6207
      fi
5991
6208
      ;;
5992
6209
 
5993
6210
    uts4*)
6005
6222
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6006
6223
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6007
6224
 
6008
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6009
 
if test "$GCC" = yes; then
6010
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6011
 
fi
6012
 
 
6013
6225
#
6014
6226
# Do we need to explicitly link libc?
6015
6227
#
6037
6249
        libobjs=conftest.$ac_objext
6038
6250
        deplibs=
6039
6251
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
6252
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6040
6253
        compiler_flags=-v
6041
6254
        linker_flags=-v
6042
6255
        verstring=