~ubuntu-branches/ubuntu/lucid/apr-util/lucid

« back to all changes in this revision

Viewing changes to xml/expat/aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2008-01-23 11:48:58 UTC
  • Revision ID: james.westby@ubuntu.com-20080123114858-keh2a73907exmspz
Tags: 1.2.12+dfsg-2build1
No-change rebuild against libldap-2.4-2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl THIS FILE IS AUTOMATICALLY GENERATED BY buildconf.sh
2
2
dnl edits here will be lost
3
3
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
4
 
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
 
4
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007
5
5
## Free Software Foundation, Inc.
6
6
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7
7
##
9
9
## unlimited permission to copy and/or distribute it, with or without
10
10
## modifications, as long as this notice is preserved.
11
11
 
12
 
# serial 47 AC_PROG_LIBTOOL
 
12
# serial 51 Debian 1.5.24-2ubuntu2 AC_PROG_LIBTOOL
13
13
 
14
14
 
15
15
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
159
159
test -z "$AS" && AS=as
160
160
test -z "$CC" && CC=cc
161
161
test -z "$LTCC" && LTCC=$CC
 
162
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
162
163
test -z "$DLLTOOL" && DLLTOOL=dlltool
163
164
test -z "$LD" && LD=ld
164
165
test -z "$LN_S" && LN_S="ln -s"
171
172
test -z "$ac_objext" && ac_objext=o
172
173
 
173
174
# Determine commands to create old-style static archives.
174
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
175
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
175
176
old_postinstall_cmds='chmod 644 $oldlib'
176
177
old_postuninstall_cmds=
177
178
 
178
179
if test -n "$RANLIB"; then
179
180
  case $host_os in
180
181
  openbsd*)
181
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
182
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
182
183
    ;;
183
184
  *)
184
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
185
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
185
186
    ;;
186
187
  esac
187
188
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
229
230
# If no C compiler was specified, use CC.
230
231
LTCC=${LTCC-"$CC"}
231
232
 
 
233
# If no C compiler flags were specified, use CFLAGS.
 
234
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
235
 
232
236
# Allow CC to be a program name with arguments.
233
237
compiler=$CC
234
238
])# _LT_AC_SYS_COMPILER
255
259
# Check for compiler boilerplate output or warnings with
256
260
# the simple compiler test code.
257
261
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
258
 
[ac_outfile=conftest.$ac_objext
259
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
260
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
262
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
263
ac_outfile=conftest.$ac_objext
 
264
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
265
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
261
266
_lt_compiler_boilerplate=`cat conftest.err`
262
267
$rm conftest*
263
268
])# _LT_COMPILER_BOILERPLATE
268
273
# Check for linker boilerplate output or warnings with
269
274
# the simple link test code.
270
275
AC_DEFUN([_LT_LINKER_BOILERPLATE],
271
 
[ac_outfile=conftest.$ac_objext
272
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
273
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
276
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
277
ac_outfile=conftest.$ac_objext
 
278
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
279
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
274
280
_lt_linker_boilerplate=`cat conftest.err`
275
281
$rm conftest*
276
282
])# _LT_LINKER_BOILERPLATE
285
291
# If we don't find anything, use the default library path according
286
292
# to the aix ld manual.
287
293
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
288
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
289
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
290
 
}'`
 
294
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
295
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
296
lt_aix_libpath_sed='
 
297
    /Import File Strings/,/^$/ {
 
298
        /^0/ {
 
299
            s/^0  *\(.*\)$/\1/
 
300
            p
 
301
        }
 
302
    }'
 
303
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
291
304
# Check for a 64-bit object if we didn't find anything.
292
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
293
 
}'`; fi],[])
 
305
if test -z "$aix_libpath"; then
 
306
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
307
fi],[])
294
308
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
295
309
])# _LT_AC_SYS_LIBPATH_AIX
296
310
 
521
535
  rm -rf conftest*
522
536
  ;;
523
537
 
524
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
538
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
539
s390*-*linux*|sparc*-*linux*)
525
540
  # Find out which ABI we are using.
526
541
  echo 'int i;' > conftest.$ac_ext
527
542
  if AC_TRY_EVAL(ac_compile); then
528
543
    case `/usr/bin/file conftest.o` in
529
544
    *32-bit*)
530
545
      case $host in
 
546
        x86_64-*kfreebsd*-gnu)
 
547
          LD="${LD-ld} -m elf_i386_fbsd"
 
548
          ;;
531
549
        x86_64-*linux*)
532
550
          LD="${LD-ld} -m elf_i386"
533
551
          ;;
544
562
      ;;
545
563
    *64-bit*)
546
564
      case $host in
 
565
        x86_64-*kfreebsd*-gnu)
 
566
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
567
          ;;
547
568
        x86_64-*linux*)
548
569
          LD="${LD-ld} -m elf_x86_64"
549
570
          ;;
576
597
    CFLAGS="$SAVE_CFLAGS"
577
598
  fi
578
599
  ;;
 
600
sparc*-*solaris*)
 
601
  # Find out which ABI we are using.
 
602
  echo 'int i;' > conftest.$ac_ext
 
603
  if AC_TRY_EVAL(ac_compile); then
 
604
    case `/usr/bin/file conftest.o` in
 
605
    *64-bit*)
 
606
      case $lt_cv_prog_gnu_ld in
 
607
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
608
      *)    LD="${LD-ld} -64" ;;
 
609
      esac
 
610
      ;;
 
611
    esac
 
612
  fi
 
613
  rm -rf conftest*
 
614
  ;;
 
615
 
579
616
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
580
617
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
581
618
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
599
636
AC_CACHE_CHECK([$1], [$2],
600
637
  [$2=no
601
638
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
602
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
639
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
603
640
   lt_compiler_flag="$3"
604
641
   # Insert the option either (1) after the last *FLAGS variable, or
605
642
   # (2) before a word containing "conftest.", or (3) at the end.
618
655
   if (exit $ac_status) && test -s "$ac_outfile"; then
619
656
     # The compiler can only warn and ignore the option if not recognized
620
657
     # So say no if there are warnings other than the usual output.
621
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
622
 
     $SED '/^$/d' conftest.err >conftest.er2
623
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
658
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
659
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
660
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
624
661
       $2=yes
625
662
     fi
626
663
   fi
640
677
# ------------------------------------------------------------
641
678
# Check whether the given compiler option works
642
679
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
643
 
[AC_CACHE_CHECK([$1], [$2],
 
680
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
681
AC_CACHE_CHECK([$1], [$2],
644
682
  [$2=no
645
683
   save_LDFLAGS="$LDFLAGS"
646
684
   LDFLAGS="$LDFLAGS $3"
647
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
685
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
648
686
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
649
687
     # The linker can only warn and ignore the option if not recognized
650
688
     # So say no if there are warnings
651
689
     if test -s conftest.err; then
652
690
       # Append any errors to the config.log.
653
691
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
654
 
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
655
 
       $SED '/^$/d' conftest.err >conftest.er2
 
692
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
693
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
656
694
       if diff conftest.exp conftest.er2 >/dev/null; then
657
695
         $2=yes
658
696
       fi
727
765
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
728
766
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
729
767
    ;;
 
768
 
 
769
  interix*)
 
770
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
771
    lt_cv_sys_max_cmd_len=196608
 
772
    ;;
 
773
 
730
774
  osf*)
731
775
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
732
776
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
740
784
      esac
741
785
    fi
742
786
    ;;
 
787
  sco3.2v5*)
 
788
    lt_cv_sys_max_cmd_len=102400
 
789
    ;;
 
790
  sysv5* | sco5v6* | sysv4.2uw2*)
 
791
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
792
    if test -n "$kargmax"; then
 
793
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
794
    else
 
795
      lt_cv_sys_max_cmd_len=32768
 
796
    fi
 
797
    ;;
743
798
  *)
744
 
    # If test is not a shell built-in, we'll probably end up computing a
745
 
    # maximum length that is only half of the actual maximum length, but
746
 
    # we can't tell.
747
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
748
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
799
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
800
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
801
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
802
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
803
    else
 
804
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
805
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
749
806
               = "XX$teststring") >/dev/null 2>&1 &&
750
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
751
 
            lt_cv_sys_max_cmd_len=$new_result &&
752
 
            test $i != 17 # 1/2 MB should be enough
753
 
    do
754
 
      i=`expr $i + 1`
755
 
      teststring=$teststring$teststring
756
 
    done
757
 
    teststring=
758
 
    # Add a significant safety factor because C++ compilers can tack on massive
759
 
    # amounts of additional arguments before passing them to the linker.
760
 
    # It appears as though 1/2 is a usable value.
761
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
807
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
808
              lt_cv_sys_max_cmd_len=$new_result &&
 
809
              test $i != 17 # 1/2 MB should be enough
 
810
      do
 
811
        i=`expr $i + 1`
 
812
        teststring=$teststring$teststring
 
813
      done
 
814
      teststring=
 
815
      # Add a significant safety factor because C++ compilers can tack on massive
 
816
      # amounts of additional arguments before passing them to the linker.
 
817
      # It appears as though 1/2 is a usable value.
 
818
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
819
    fi
762
820
    ;;
763
821
  esac
764
822
])
771
829
 
772
830
 
773
831
# _LT_AC_CHECK_DLFCN
774
 
# --------------------
 
832
# ------------------
775
833
AC_DEFUN([_LT_AC_CHECK_DLFCN],
776
834
[AC_CHECK_HEADERS(dlfcn.h)dnl
777
835
])# _LT_AC_CHECK_DLFCN
779
837
 
780
838
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
781
839
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
782
 
# ------------------------------------------------------------------
 
840
# ---------------------------------------------------------------------
783
841
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
784
842
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
785
843
if test "$cross_compiling" = yes; then :
845
903
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
846
904
      /* dlclose (self); */
847
905
    }
 
906
  else
 
907
    puts (dlerror ());
848
908
 
849
909
    exit (status);
850
910
}]
855
915
    case x$lt_status in
856
916
      x$lt_dlno_uscore) $1 ;;
857
917
      x$lt_dlneed_uscore) $2 ;;
858
 
      x$lt_unknown|x*) $3 ;;
 
918
      x$lt_dlunknown|x*) $3 ;;
859
919
    esac
860
920
  else :
861
921
    # compilation failed
867
927
 
868
928
 
869
929
# AC_LIBTOOL_DLOPEN_SELF
870
 
# -------------------
 
930
# ----------------------
871
931
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
872
932
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
873
933
if test "x$enable_dlopen" != xyes; then
938
998
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
939
999
 
940
1000
    save_LDFLAGS="$LDFLAGS"
941
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
1001
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
942
1002
 
943
1003
    save_LIBS="$LIBS"
944
1004
    LIBS="$lt_cv_dlopen_libs $LIBS"
951
1011
    ])
952
1012
 
953
1013
    if test "x$lt_cv_dlopen_self" = xyes; then
954
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
1014
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
955
1015
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
956
1016
          lt_cv_dlopen_self_static, [dnl
957
1017
          _LT_AC_TRY_DLOPEN_SELF(
983
1043
# ---------------------------------
984
1044
# Check to see if options -c and -o are simultaneously supported by compiler
985
1045
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
986
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1046
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1047
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
987
1048
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
988
1049
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
989
1050
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
991
1052
   mkdir conftest
992
1053
   cd conftest
993
1054
   mkdir out
994
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1055
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
995
1056
 
996
1057
   lt_compiler_flag="-o out/conftest2.$ac_objext"
997
1058
   # Insert the option either (1) after the last *FLAGS variable, or
1011
1072
   then
1012
1073
     # The compiler can only warn and ignore the option if not recognized
1013
1074
     # So say no if there are warnings
1014
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
1015
 
     $SED '/^$/d' out/conftest.err >out/conftest.er2
1016
 
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
1075
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
1076
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
1077
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1017
1078
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1018
1079
     fi
1019
1080
   fi
1131
1192
   darwin*)
1132
1193
       if test -n "$STRIP" ; then
1133
1194
         striplib="$STRIP -x"
 
1195
         old_striplib="$STRIP -S"
1134
1196
         AC_MSG_RESULT([yes])
1135
1197
       else
1136
1198
  AC_MSG_RESULT([no])
1148
1210
# -----------------------------
1149
1211
# PORTME Fill in your ld.so characteristics
1150
1212
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1151
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
1213
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1214
AC_MSG_CHECKING([dynamic linker characteristics])
1152
1215
library_names_spec=
1153
1216
libname_spec='lib$name'
1154
1217
soname_spec=
1162
1225
version_type=none
1163
1226
dynamic_linker="$host_os ld.so"
1164
1227
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
1228
m4_if($1,[],[
1165
1229
if test "$GCC" = yes; then
1166
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1167
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
1230
  case $host_os in
 
1231
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
1232
    *) lt_awk_arg="/^libraries:/" ;;
 
1233
  esac
 
1234
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
1235
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1168
1236
    # if the path contains ";" then we assume it to be the separator
1169
1237
    # otherwise default to the standard path separator (i.e. ":") - it is
1170
1238
    # assumed that no part of a normal pathname contains ";" but that should
1171
1239
    # okay in the real world where ";" in dirpaths is itself problematic.
1172
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
1240
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1173
1241
  else
1174
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
1242
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1175
1243
  fi
 
1244
  # Ok, now we have the path, separated by spaces, we can step through it
 
1245
  # and add multilib dir if necessary.
 
1246
  lt_tmp_lt_search_path_spec=
 
1247
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
1248
  for lt_sys_path in $lt_search_path_spec; do
 
1249
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
1250
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
1251
    else
 
1252
      test -d "$lt_sys_path" && \
 
1253
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
1254
    fi
 
1255
  done
 
1256
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
1257
BEGIN {RS=" "; FS="/|\n";} {
 
1258
  lt_foo="";
 
1259
  lt_count=0;
 
1260
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
1261
    if ($lt_i != "" && $lt_i != ".") {
 
1262
      if ($lt_i == "..") {
 
1263
        lt_count++;
 
1264
      } else {
 
1265
        if (lt_count == 0) {
 
1266
          lt_foo="/" $lt_i lt_foo;
 
1267
        } else {
 
1268
          lt_count--;
 
1269
        }
 
1270
      }
 
1271
    }
 
1272
  }
 
1273
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
1274
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
1275
}'`
 
1276
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1176
1277
else
1177
1278
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1178
 
fi
 
1279
fi])
1179
1280
need_lib_prefix=unknown
1180
1281
hardcode_into_libs=no
1181
1282
 
1332
1433
  shlibpath_overrides_runpath=yes
1333
1434
  shlibpath_var=DYLD_LIBRARY_PATH
1334
1435
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1335
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1336
 
  if test "$GCC" = yes; then
1337
 
    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"`
1338
 
  else
1339
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1340
 
  fi
 
1436
  m4_if([$1], [],[
 
1437
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
1341
1438
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1342
1439
  ;;
1343
1440
 
1354
1451
  dynamic_linker=no
1355
1452
  ;;
1356
1453
 
1357
 
kfreebsd*-gnu)
1358
 
  version_type=linux
1359
 
  need_lib_prefix=no
1360
 
  need_version=no
1361
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1362
 
  soname_spec='${libname}${release}${shared_ext}$major'
1363
 
  shlibpath_var=LD_LIBRARY_PATH
1364
 
  shlibpath_overrides_runpath=no
1365
 
  hardcode_into_libs=yes
1366
 
  dynamic_linker='GNU ld.so'
1367
 
  ;;
1368
 
 
1369
1454
freebsd* | dragonfly*)
1370
1455
  # DragonFly does not have aout.  When/if they implement a new
1371
1456
  # versioning mechanism, adjust this.
1398
1483
    shlibpath_overrides_runpath=yes
1399
1484
    hardcode_into_libs=yes
1400
1485
    ;;
1401
 
  *) # from 3.2 on
 
1486
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 
1487
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1402
1488
    shlibpath_overrides_runpath=no
1403
1489
    hardcode_into_libs=yes
1404
1490
    ;;
 
1491
  *) # from 4.6 on, and DragonFly
 
1492
    shlibpath_overrides_runpath=yes
 
1493
    hardcode_into_libs=yes
 
1494
    ;;
1405
1495
  esac
1406
1496
  ;;
1407
1497
 
1461
1551
  postinstall_cmds='chmod 555 $lib'
1462
1552
  ;;
1463
1553
 
 
1554
interix[[3-9]]*)
 
1555
  version_type=linux
 
1556
  need_lib_prefix=no
 
1557
  need_version=no
 
1558
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1559
  soname_spec='${libname}${release}${shared_ext}$major'
 
1560
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
1561
  shlibpath_var=LD_LIBRARY_PATH
 
1562
  shlibpath_overrides_runpath=no
 
1563
  hardcode_into_libs=yes
 
1564
  ;;
 
1565
 
1464
1566
irix5* | irix6* | nonstopux*)
1465
1567
  case $host_os in
1466
1568
    nonstopux*) version_type=nonstopux ;;
1504
1606
  ;;
1505
1607
 
1506
1608
# This must be Linux ELF.
1507
 
linux*)
 
1609
linux* | k*bsd*-gnu)
1508
1610
  version_type=linux
1509
1611
  need_lib_prefix=no
1510
1612
  need_version=no
1520
1622
 
1521
1623
  # Append ld.so.conf contents to the search path
1522
1624
  if test -f /etc/ld.so.conf; then
1523
 
    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' ' '`
 
1625
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1524
1626
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1525
1627
  fi
1526
1628
 
1533
1635
  dynamic_linker='GNU/Linux ld.so'
1534
1636
  ;;
1535
1637
 
1536
 
knetbsd*-gnu)
 
1638
netbsdelf*-gnu)
1537
1639
  version_type=linux
1538
1640
  need_lib_prefix=no
1539
1641
  need_version=no
1542
1644
  shlibpath_var=LD_LIBRARY_PATH
1543
1645
  shlibpath_overrides_runpath=no
1544
1646
  hardcode_into_libs=yes
1545
 
  dynamic_linker='GNU ld.so'
 
1647
  dynamic_linker='NetBSD ld.elf_so'
1546
1648
  ;;
1547
1649
 
1548
1650
netbsd*)
1582
1684
 
1583
1685
openbsd*)
1584
1686
  version_type=sunos
 
1687
  sys_lib_dlsearch_path_spec="/usr/lib"
1585
1688
  need_lib_prefix=no
1586
1689
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1587
1690
  case $host_os in
1625
1728
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1626
1729
  ;;
1627
1730
 
1628
 
sco3.2v5*)
1629
 
  version_type=osf
1630
 
  soname_spec='${libname}${release}${shared_ext}$major'
1631
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1632
 
  shlibpath_var=LD_LIBRARY_PATH
 
1731
rdos*)
 
1732
  dynamic_linker=no
1633
1733
  ;;
1634
1734
 
1635
1735
solaris*)
1657
1757
  need_version=yes
1658
1758
  ;;
1659
1759
 
1660
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
1760
sysv4 | sysv4.3*)
1661
1761
  version_type=linux
1662
1762
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1663
1763
  soname_spec='${libname}${release}${shared_ext}$major'
1690
1790
  fi
1691
1791
  ;;
1692
1792
 
 
1793
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
1794
  version_type=freebsd-elf
 
1795
  need_lib_prefix=no
 
1796
  need_version=no
 
1797
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
1798
  soname_spec='${libname}${release}${shared_ext}$major'
 
1799
  shlibpath_var=LD_LIBRARY_PATH
 
1800
  hardcode_into_libs=yes
 
1801
  if test "$with_gnu_ld" = yes; then
 
1802
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
1803
    shlibpath_overrides_runpath=no
 
1804
  else
 
1805
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
1806
    shlibpath_overrides_runpath=yes
 
1807
    case $host_os in
 
1808
      sco3.2v5*)
 
1809
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
1810
        ;;
 
1811
    esac
 
1812
  fi
 
1813
  sys_lib_dlsearch_path_spec='/usr/lib'
 
1814
  ;;
 
1815
 
1693
1816
uts4*)
1694
1817
  version_type=linux
1695
1818
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1703
1826
esac
1704
1827
AC_MSG_RESULT([$dynamic_linker])
1705
1828
test "$dynamic_linker" = no && can_build_shared=no
 
1829
 
 
1830
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
1831
if test "$GCC" = yes; then
 
1832
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
1833
fi
1706
1834
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1707
1835
 
1708
1836
 
1709
1837
# _LT_AC_TAGCONFIG
1710
1838
# ----------------
1711
1839
AC_DEFUN([_LT_AC_TAGCONFIG],
1712
 
[AC_ARG_WITH([tags],
 
1840
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1841
AC_ARG_WITH([tags],
1713
1842
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1714
1843
        [include additional configurations @<:@automatic@:>@])],
1715
1844
    [tagnames="$withval"])
1727
1856
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1728
1857
    fi
1729
1858
  fi
 
1859
  if test -z "$LTCFLAGS"; then
 
1860
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
1861
  fi
1730
1862
 
1731
1863
  # Extract list of available tagged configurations in $ofile.
1732
1864
  # Note that this assumes the entire list is on one line.
1855
1987
 
1856
1988
# AC_DISABLE_SHARED
1857
1989
# -----------------
1858
 
#- set the default shared flag to --disable-shared
 
1990
# set the default shared flag to --disable-shared
1859
1991
AC_DEFUN([AC_DISABLE_SHARED],
1860
1992
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1861
1993
AC_ENABLE_SHARED(no)
1967
2099
 
1968
2100
# AC_PATH_TOOL_PREFIX
1969
2101
# -------------------
1970
 
# find a file program which can recognise shared library
 
2102
# find a file program which can recognize shared library
1971
2103
AC_DEFUN([AC_PATH_TOOL_PREFIX],
1972
2104
[AC_REQUIRE([AC_PROG_EGREP])dnl
1973
2105
AC_MSG_CHECKING([for $1])
2030
2162
 
2031
2163
# AC_PATH_MAGIC
2032
2164
# -------------
2033
 
# find a file program which can recognise a shared library
 
2165
# find a file program which can recognize a shared library
2034
2166
AC_DEFUN([AC_PATH_MAGIC],
2035
2167
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2036
2168
if test -z "$lt_cv_path_MAGIC_CMD"; then
2163
2295
case $host_os in
2164
2296
  darwin*)
2165
2297
    if test "$GCC" = yes; then
2166
 
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
2298
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2167
2299
    else
2168
2300
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
2169
2301
    fi
2177
2309
# how to check for library dependencies
2178
2310
#  -- PORTME fill in with the dynamic library characteristics
2179
2311
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2180
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
2312
[AC_CACHE_CHECK([how to recognize dependent libraries],
2181
2313
lt_cv_deplibs_check_method,
2182
2314
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2183
2315
lt_cv_file_magic_test_file=
2216
2348
 
2217
2349
mingw* | pw32*)
2218
2350
  # Base MSYS/MinGW do not provide the 'file' command needed by
2219
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2220
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2221
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2351
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
2352
  # unless we find 'file', for example because we are cross-compiling.
 
2353
  if ( file / ) >/dev/null 2>&1; then
 
2354
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2355
    lt_cv_file_magic_cmd='func_win32_libid'
 
2356
  else
 
2357
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2358
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2359
  fi
2222
2360
  ;;
2223
2361
 
2224
2362
darwin* | rhapsody*)
2225
2363
  lt_cv_deplibs_check_method=pass_all
2226
2364
  ;;
2227
2365
 
2228
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
2366
freebsd* | dragonfly*)
2229
2367
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2230
2368
    case $host_cpu in
2231
2369
    i*86 )
2263
2401
  esac
2264
2402
  ;;
2265
2403
 
 
2404
interix[[3-9]]*)
 
2405
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
2406
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
2407
  ;;
 
2408
 
2266
2409
irix5* | irix6* | nonstopux*)
2267
2410
  case $LD in
2268
2411
  *-32|*"-32 ") libmagic=32-bit;;
2274
2417
  ;;
2275
2418
 
2276
2419
# This must be Linux ELF.
2277
 
linux*)
 
2420
linux* | k*bsd*-gnu)
2278
2421
  lt_cv_deplibs_check_method=pass_all
2279
2422
  ;;
2280
2423
 
2281
 
netbsd*)
 
2424
netbsd* | netbsdelf*-gnu)
2282
2425
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2283
2426
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2284
2427
  else
2308
2451
  lt_cv_deplibs_check_method=pass_all
2309
2452
  ;;
2310
2453
 
2311
 
sco3.2v5*)
 
2454
rdos*)
2312
2455
  lt_cv_deplibs_check_method=pass_all
2313
2456
  ;;
2314
2457
 
2316
2459
  lt_cv_deplibs_check_method=pass_all
2317
2460
  ;;
2318
2461
 
2319
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
2462
sysv4 | sysv4.3*)
2320
2463
  case $host_vendor in
2321
2464
  motorola)
2322
2465
    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]]'
2337
2480
  siemens)
2338
2481
    lt_cv_deplibs_check_method=pass_all
2339
2482
    ;;
 
2483
  pc)
 
2484
    lt_cv_deplibs_check_method=pass_all
 
2485
    ;;
2340
2486
  esac
2341
2487
  ;;
2342
2488
 
2343
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
 
2489
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2344
2490
  lt_cv_deplibs_check_method=pass_all
2345
2491
  ;;
2346
2492
esac
2360
2506
  # Let the user override the test.
2361
2507
  lt_cv_path_NM="$NM"
2362
2508
else
2363
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2364
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2365
 
    IFS="$lt_save_ifs"
2366
 
    test -z "$ac_dir" && ac_dir=.
2367
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2368
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2369
 
      # Check to see if the nm accepts a BSD-compat flag.
2370
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2371
 
      #   nm: unknown option "B" ignored
2372
 
      # Tru64's nm complains that /dev/null is an invalid object file
2373
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2374
 
      */dev/null* | *'Invalid file or object type'*)
2375
 
        lt_cv_path_NM="$tmp_nm -B"
2376
 
        break
2377
 
        ;;
2378
 
      *)
2379
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2380
 
        */dev/null*)
2381
 
          lt_cv_path_NM="$tmp_nm -p"
 
2509
  lt_nm_to_check="${ac_tool_prefix}nm"
 
2510
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
2511
    lt_nm_to_check="$lt_nm_to_check nm"
 
2512
  fi
 
2513
  for lt_tmp_nm in $lt_nm_to_check; do
 
2514
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2515
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
2516
      IFS="$lt_save_ifs"
 
2517
      test -z "$ac_dir" && ac_dir=.
 
2518
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
2519
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
2520
        # Check to see if the nm accepts a BSD-compat flag.
 
2521
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
2522
        #   nm: unknown option "B" ignored
 
2523
        # Tru64's nm complains that /dev/null is an invalid object file
 
2524
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
2525
        */dev/null* | *'Invalid file or object type'*)
 
2526
          lt_cv_path_NM="$tmp_nm -B"
2382
2527
          break
2383
2528
          ;;
2384
2529
        *)
2385
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2386
 
          continue # so that we can try to find one that supports BSD flags
 
2530
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
2531
          */dev/null*)
 
2532
            lt_cv_path_NM="$tmp_nm -p"
 
2533
            break
 
2534
            ;;
 
2535
          *)
 
2536
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2537
            continue # so that we can try to find one that supports BSD flags
 
2538
            ;;
 
2539
          esac
2387
2540
          ;;
2388
2541
        esac
2389
 
      esac
2390
 
    fi
 
2542
      fi
 
2543
    done
 
2544
    IFS="$lt_save_ifs"
2391
2545
  done
2392
 
  IFS="$lt_save_ifs"
2393
2546
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2394
2547
fi])
2395
2548
NM="$lt_cv_path_NM"
2495
2648
])# _LT_AC_LANG_CXX
2496
2649
 
2497
2650
# _LT_AC_PROG_CXXCPP
2498
 
# ---------------
 
2651
# ------------------
2499
2652
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2500
2653
[
2501
2654
AC_REQUIRE([AC_PROG_CXX])
2544
2697
 
2545
2698
 
2546
2699
# AC_LIBTOOL_RC
2547
 
# --------------
 
2700
# -------------
2548
2701
# enable support for Windows resource files
2549
2702
AC_DEFUN([AC_LIBTOOL_RC],
2550
2703
[AC_REQUIRE([LT_AC_PROG_RC])
2570
2723
_LT_AC_TAGVAR(objext, $1)=$objext
2571
2724
 
2572
2725
# Code to be used in simple compile tests
2573
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2726
lt_simple_compile_test_code="int some_variable = 0;"
2574
2727
 
2575
2728
# Code to be used in simple link tests
2576
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
2729
lt_simple_link_test_code='int main(){return(0);}'
2577
2730
 
2578
2731
_LT_AC_SYS_COMPILER
2579
2732
 
2581
2734
_LT_COMPILER_BOILERPLATE
2582
2735
_LT_LINKER_BOILERPLATE
2583
2736
 
2584
 
#
2585
 
# Check for any special shared library compilation flags.
2586
 
#
2587
 
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2588
 
if test "$GCC" = no; then
2589
 
  case $host_os in
2590
 
  sco3.2v5*)
2591
 
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2592
 
    ;;
2593
 
  esac
2594
 
fi
2595
 
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2596
 
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2597
 
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
2598
 
  else
2599
 
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2600
 
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2601
 
  fi
2602
 
fi
2603
 
 
2604
 
 
2605
 
#
2606
 
# Check to make sure the static flag actually works.
2607
 
#
2608
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2609
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2610
 
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2611
 
  [],
2612
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2613
 
 
2614
 
 
2615
2737
## CAVEAT EMPTOR:
2616
2738
## There is no encapsulation within the following macros, do not change
2617
2739
## the running order or otherwise move them around unless you know exactly
2624
2746
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2625
2747
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2626
2748
AC_LIBTOOL_SYS_LIB_STRIP
2627
 
AC_LIBTOOL_DLOPEN_SELF($1)
 
2749
AC_LIBTOOL_DLOPEN_SELF
2628
2750
 
2629
 
# Report which librarie types wil actually be built
 
2751
# Report which library types will actually be built
2630
2752
AC_MSG_CHECKING([if libtool supports shared libraries])
2631
2753
AC_MSG_RESULT([$can_build_shared])
2632
2754
 
2685
2807
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2686
2808
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2687
2809
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
2810
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2688
2811
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2689
2812
_LT_AC_TAGVAR(module_cmds, $1)=
2690
2813
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2709
2832
_LT_AC_TAGVAR(objext, $1)=$objext
2710
2833
 
2711
2834
# Code to be used in simple compile tests
2712
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
2835
lt_simple_compile_test_code="int some_variable = 0;"
2713
2836
 
2714
2837
# Code to be used in simple link tests
2715
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
2838
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2716
2839
 
2717
2840
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2718
2841
_LT_AC_SYS_COMPILER
2731
2854
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2732
2855
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2733
2856
else
2734
 
  unset lt_cv_prog_gnu_ld
 
2857
  $as_unset lt_cv_prog_gnu_ld
2735
2858
fi
2736
2859
if test -n "${lt_cv_path_LDCXX+set}"; then
2737
2860
  lt_cv_path_LD=$lt_cv_path_LDCXX
2738
2861
else
2739
 
  unset lt_cv_path_LD
 
2862
  $as_unset lt_cv_path_LD
2740
2863
fi
2741
2864
test -z "${LDCXX+set}" || LD=$LDCXX
2742
2865
CC=${CXX-"c++"}
2831
2954
            ;;
2832
2955
          esac
2833
2956
        done
 
2957
        ;;
2834
2958
      esac
2835
2959
 
2836
2960
      exp_sym_flag='-bexport'
2857
2981
           strings "$collect2name" | grep resolve_lib_name >/dev/null
2858
2982
        then
2859
2983
          # We have reworked collect2
2860
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
2984
          :
2861
2985
        else
2862
2986
          # We have old collect2
2863
2987
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2868
2992
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2869
2993
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2870
2994
        fi
 
2995
        ;;
2871
2996
      esac
2872
2997
      shared_flag='-shared'
2873
2998
      if test "$aix_use_runtimelinking" = yes; then
2899
3024
      _LT_AC_SYS_LIBPATH_AIX
2900
3025
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2901
3026
 
2902
 
      _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"
 
3027
      _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"
2903
3028
     else
2904
3029
      if test "$host_cpu" = ia64; then
2905
3030
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2906
3031
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2907
 
        _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"
 
3032
        _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"
2908
3033
      else
2909
3034
        # Determine the default libpath from the value encoded in an empty executable.
2910
3035
        _LT_AC_SYS_LIBPATH_AIX
2913
3038
        # -berok will link without error, but may produce a broken library.
2914
3039
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2915
3040
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2916
 
        # -bexpall does not export symbols beginning with underscore (_)
2917
 
        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2918
3041
        # Exported symbols can be pulled into shared objects from archives
2919
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
3042
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2920
3043
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2921
3044
        # This is similar to how AIX traditionally builds its shared libraries.
2922
 
        _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'
 
3045
        _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'
2923
3046
      fi
2924
3047
    fi
2925
3048
    ;;
 
3049
 
 
3050
  beos*)
 
3051
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
3052
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
3053
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
3054
      # support --undefined.  This deserves some investigation.  FIXME
 
3055
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3056
    else
 
3057
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3058
    fi
 
3059
    ;;
 
3060
 
2926
3061
  chorus*)
2927
3062
    case $cc_basename in
2928
3063
      *)
2932
3067
    esac
2933
3068
    ;;
2934
3069
 
2935
 
 
2936
3070
  cygwin* | mingw* | pw32*)
2937
3071
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2938
3072
    # as there is no search path for DLLs.
2942
3076
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2943
3077
 
2944
3078
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2945
 
      _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'
 
3079
      _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'
2946
3080
      # If the export-symbols file already is a .def file (1st line
2947
3081
      # is EXPORTS), use it as is; otherwise, prepend...
2948
3082
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2951
3085
        echo EXPORTS > $output_objdir/$soname.def;
2952
3086
        cat $export_symbols >> $output_objdir/$soname.def;
2953
3087
      fi~
2954
 
      $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'
 
3088
      $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'
2955
3089
    else
2956
3090
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2957
3091
    fi
3006
3140
      case $cc_basename in
3007
3141
        xlc*)
3008
3142
         output_verbose_link_cmd='echo'
3009
 
          _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'
 
3143
          _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` $xlcverstring'
3010
3144
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3011
3145
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3012
 
          _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}'
 
3146
          _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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3013
3147
          _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}'
3014
3148
          ;;
3015
3149
       *)
3043
3177
  freebsd-elf*)
3044
3178
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3045
3179
    ;;
3046
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
3180
  freebsd* | dragonfly*)
3047
3181
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3048
3182
    # conventions
3049
3183
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3088
3222
    ;;
3089
3223
  hpux10*|hpux11*)
3090
3224
    if test $with_gnu_ld = no; then
 
3225
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3226
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3227
 
3091
3228
      case $host_cpu in
3092
 
      hppa*64*)
3093
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3094
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3095
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3096
 
        ;;
3097
 
      ia64*)
3098
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3099
 
        ;;
 
3229
      hppa*64*|ia64*) ;;
3100
3230
      *)
3101
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3102
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3103
3231
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3104
3232
        ;;
3105
3233
      esac
3106
3234
    fi
3107
3235
    case $host_cpu in
3108
 
    hppa*64*)
3109
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3110
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3111
 
      ;;
3112
 
    ia64*)
3113
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3114
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3115
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3116
 
                                              # but as the default
3117
 
                                              # location of the library.
 
3236
    hppa*64*|ia64*)
 
3237
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3238
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3118
3239
      ;;
3119
3240
    *)
3120
3241
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3131
3252
        ;;
3132
3253
      aCC*)
3133
3254
        case $host_cpu in
3134
 
        hppa*64*|ia64*)
3135
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3255
        hppa*64*)
 
3256
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3257
          ;;
 
3258
        ia64*)
 
3259
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3136
3260
          ;;
3137
3261
        *)
3138
3262
          _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'
3152
3276
        if test "$GXX" = yes; then
3153
3277
          if test $with_gnu_ld = no; then
3154
3278
            case $host_cpu in
3155
 
            ia64*|hppa*64*)
3156
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3279
            hppa*64*)
 
3280
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3281
              ;;
 
3282
            ia64*)
 
3283
              _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'
3157
3284
              ;;
3158
3285
            *)
3159
3286
              _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'
3167
3294
        ;;
3168
3295
    esac
3169
3296
    ;;
 
3297
  interix[[3-9]]*)
 
3298
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3299
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3300
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3301
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3302
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
3303
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
3304
    # default) and relocated if they conflict, which is a slow very memory
 
3305
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
3306
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
3307
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
3308
    _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'
 
3309
    _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'
 
3310
    ;;
3170
3311
  irix5* | irix6*)
3171
3312
    case $cc_basename in
3172
3313
      CC*)
3193
3334
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3194
3335
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3195
3336
    ;;
3196
 
  linux*)
 
3337
  linux* | k*bsd*-gnu)
3197
3338
    case $cc_basename in
3198
3339
      KCC*)
3199
3340
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3273
3414
        # dependencies.
3274
3415
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3275
3416
        ;;
 
3417
      *)
 
3418
        case `$CC -V 2>&1 | sed 5q` in
 
3419
        *Sun\ C*)
 
3420
          # Sun C++ 5.9
 
3421
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
3422
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3423
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
3424
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
3425
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
3426
 
 
3427
          # Not sure whether something based on
 
3428
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
3429
          # would be better.
 
3430
          output_verbose_link_cmd='echo'
 
3431
 
 
3432
          # Archives containing C++ object files must be created using
 
3433
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
3434
          # necessary to make sure instantiated templates are included
 
3435
          # in the archive.
 
3436
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
3437
          ;;
 
3438
        esac
 
3439
        ;;
3276
3440
    esac
3277
3441
    ;;
3278
3442
  lynxos*)
3295
3459
        ;;
3296
3460
    esac
3297
3461
    ;;
3298
 
  netbsd*)
 
3462
  netbsd* | netbsdelf*-gnu)
3299
3463
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3300
3464
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3301
3465
      wlarc=
3311
3475
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3312
3476
    ;;
3313
3477
  openbsd*)
3314
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3315
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3316
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3317
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3318
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3319
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3320
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3321
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3478
    if test -f /usr/libexec/ld.so; then
 
3479
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3480
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3481
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3482
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3483
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3484
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
3485
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3486
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3487
      fi
 
3488
      output_verbose_link_cmd='echo'
 
3489
    else
 
3490
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3322
3491
    fi
3323
 
    output_verbose_link_cmd='echo'
3324
3492
    ;;
3325
3493
  osf3*)
3326
3494
    case $cc_basename in
3449
3617
    # FIXME: insert proper C++ library support
3450
3618
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3451
3619
    ;;
3452
 
  sco*)
3453
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3454
 
    case $cc_basename in
3455
 
      CC*)
3456
 
        # FIXME: insert proper C++ library support
3457
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3458
 
        ;;
3459
 
      *)
3460
 
        # FIXME: insert proper C++ library support
3461
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3462
 
        ;;
3463
 
    esac
3464
 
    ;;
3465
3620
  sunos4*)
3466
3621
    case $cc_basename in
3467
3622
      CC*)
3495
3650
        case $host_os in
3496
3651
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3497
3652
          *)
3498
 
            # The C++ compiler is used as linker so we must use $wl
3499
 
            # flag to pass the commands to the underlying system
3500
 
            # linker. We must also pass each convience library through
3501
 
            # to the system linker between allextract/defaultextract.
3502
 
            # The C++ compiler will combine linker options so we
3503
 
            # cannot just pass the convience library names through
3504
 
            # without $wl.
 
3653
            # The compiler driver will combine and reorder linker options,
 
3654
            # but understands `-z linker_flag'.
3505
3655
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3506
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
3656
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3507
3657
            ;;
3508
3658
        esac
3509
3659
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3550
3700
          fi
3551
3701
 
3552
3702
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
3703
          case $host_os in
 
3704
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
3705
          *)
 
3706
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3707
            ;;
 
3708
          esac
3553
3709
        fi
3554
3710
        ;;
3555
3711
    esac
3556
3712
    ;;
3557
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3558
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3713
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
3714
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3715
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3716
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3717
    runpath_var='LD_RUN_PATH'
 
3718
 
 
3719
    case $cc_basename in
 
3720
      CC*)
 
3721
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3722
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3723
        ;;
 
3724
      *)
 
3725
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3726
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3727
        ;;
 
3728
    esac
 
3729
    ;;
 
3730
  sysv5* | sco3.2v5* | sco5v6*)
 
3731
    # Note: We can NOT use -z defs as we might desire, because we do not
 
3732
    # link with -lc, and that would cause any symbols used from libc to
 
3733
    # always be unresolved, which means just about no library would
 
3734
    # ever link correctly.  If we're not using GNU ld we use -z text
 
3735
    # though, which does catch some bad symbols but isn't as heavy-handed
 
3736
    # as -z defs.
 
3737
    # For security reasons, it is highly recommended that you always
 
3738
    # use absolute paths for naming shared libraries, and exclude the
 
3739
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
3740
    # requires that you compile everything twice, which is a pain.
 
3741
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
3742
    # non-empty value in the environment.  Most likely only useful for
 
3743
    # creating official distributions of packages.
 
3744
    # This is a hack until libtool officially supports absolute path
 
3745
    # names for shared libraries.
 
3746
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3747
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
3748
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3749
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3750
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
3751
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
3752
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3753
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
3754
    runpath_var='LD_RUN_PATH'
 
3755
 
 
3756
    case $cc_basename in
 
3757
      CC*)
 
3758
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3759
        _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'
 
3760
        ;;
 
3761
      *)
 
3762
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3763
        _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'
 
3764
        ;;
 
3765
    esac
3559
3766
    ;;
3560
3767
  tandem*)
3561
3768
    case $cc_basename in
3596
3803
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3597
3804
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3598
3805
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3599
 
AC_LIBTOOL_SYS_LIB_STRIP
3600
 
AC_LIBTOOL_DLOPEN_SELF($1)
3601
3806
 
3602
3807
AC_LIBTOOL_CONFIG($1)
3603
3808
 
3615
3820
])# AC_LIBTOOL_LANG_CXX_CONFIG
3616
3821
 
3617
3822
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3618
 
# ------------------------
 
3823
# ------------------------------------
3619
3824
# Figure out "hidden" library dependencies from verbose
3620
3825
# compiler output when linking a shared library.
3621
3826
# Parse the compiler output and extract the necessary
3748
3953
# PORTME: override above test on systems where it is broken
3749
3954
ifelse([$1],[CXX],
3750
3955
[case $host_os in
 
3956
interix[[3-9]]*)
 
3957
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
3958
  # hack all around it, let's just trust "g++" to DTRT.
 
3959
  _LT_AC_TAGVAR(predep_objects,$1)=
 
3960
  _LT_AC_TAGVAR(postdep_objects,$1)=
 
3961
  _LT_AC_TAGVAR(postdeps,$1)=
 
3962
  ;;
 
3963
 
 
3964
linux*)
 
3965
  case `$CC -V 2>&1 | sed 5q` in
 
3966
  *Sun\ C*)
 
3967
    # Sun C++ 5.9
 
3968
    #
 
3969
    # The more standards-conforming stlport4 library is
 
3970
    # incompatible with the Cstd library. Avoid specifying
 
3971
    # it if it's in CXXFLAGS. Ignore libCrun as
 
3972
    # -library=stlport4 depends on it.
 
3973
    case " $CXX $CXXFLAGS " in
 
3974
    *" -library=stlport4 "*)
 
3975
      solaris_use_stlport4=yes
 
3976
      ;;
 
3977
    esac
 
3978
    if test "$solaris_use_stlport4" != yes; then
 
3979
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
3980
    fi
 
3981
    ;;
 
3982
  esac
 
3983
  ;;
 
3984
 
3751
3985
solaris*)
3752
3986
  case $cc_basename in
3753
3987
  CC*)
 
3988
    # The more standards-conforming stlport4 library is
 
3989
    # incompatible with the Cstd library. Avoid specifying
 
3990
    # it if it's in CXXFLAGS. Ignore libCrun as
 
3991
    # -library=stlport4 depends on it.
 
3992
    case " $CXX $CXXFLAGS " in
 
3993
    *" -library=stlport4 "*)
 
3994
      solaris_use_stlport4=yes
 
3995
      ;;
 
3996
    esac
 
3997
 
3754
3998
    # Adding this requires a known-good setup of shared libraries for
3755
3999
    # Sun compiler versions before 5.6, else PIC objects from an old
3756
4000
    # archive will be linked into the output, leading to subtle bugs.
3757
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4001
    if test "$solaris_use_stlport4" != yes; then
 
4002
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4003
    fi
3758
4004
    ;;
3759
4005
  esac
 
4006
  ;;
3760
4007
esac
3761
4008
])
3762
4009
 
3766
4013
])# AC_LIBTOOL_POSTDEP_PREDEP
3767
4014
 
3768
4015
# AC_LIBTOOL_LANG_F77_CONFIG
3769
 
# ------------------------
 
4016
# --------------------------
3770
4017
# Ensure that the configuration vars for the C compiler are
3771
4018
# suitably defined.  Those variables are subsequently used by
3772
4019
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3802
4049
_LT_AC_TAGVAR(objext, $1)=$objext
3803
4050
 
3804
4051
# Code to be used in simple compile tests
3805
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4052
lt_simple_compile_test_code="\
 
4053
      subroutine t
 
4054
      return
 
4055
      end
 
4056
"
3806
4057
 
3807
4058
# Code to be used in simple link tests
3808
 
lt_simple_link_test_code="      program t\n      end\n"
 
4059
lt_simple_link_test_code="\
 
4060
      program t
 
4061
      end
 
4062
"
3809
4063
 
3810
4064
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3811
4065
_LT_AC_SYS_COMPILER
3850
4104
test "$enable_shared" = yes || enable_static=yes
3851
4105
AC_MSG_RESULT([$enable_static])
3852
4106
 
3853
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3854
 
 
3855
4107
_LT_AC_TAGVAR(GCC, $1)="$G77"
3856
4108
_LT_AC_TAGVAR(LD, $1)="$LD"
3857
4109
 
3861
4113
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3862
4114
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3863
4115
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3864
 
AC_LIBTOOL_SYS_LIB_STRIP
3865
 
 
3866
4116
 
3867
4117
AC_LIBTOOL_CONFIG($1)
3868
4118
 
3888
4138
_LT_AC_TAGVAR(objext, $1)=$objext
3889
4139
 
3890
4140
# Code to be used in simple compile tests
3891
 
lt_simple_compile_test_code="class foo {}\n"
 
4141
lt_simple_compile_test_code="class foo {}"
3892
4142
 
3893
4143
# Code to be used in simple link tests
3894
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
 
4144
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
3895
4145
 
3896
4146
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3897
4147
_LT_AC_SYS_COMPILER
3923
4173
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3924
4174
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3925
4175
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3926
 
AC_LIBTOOL_SYS_LIB_STRIP
3927
 
AC_LIBTOOL_DLOPEN_SELF($1)
3928
4176
 
3929
4177
AC_LIBTOOL_CONFIG($1)
3930
4178
 
3934
4182
 
3935
4183
 
3936
4184
# AC_LIBTOOL_LANG_RC_CONFIG
3937
 
# --------------------------
 
4185
# -------------------------
3938
4186
# Ensure that the configuration vars for the Windows resource compiler are
3939
4187
# suitably defined.  Those variables are subsequently used by
3940
4188
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3950
4198
_LT_AC_TAGVAR(objext, $1)=$objext
3951
4199
 
3952
4200
# Code to be used in simple compile tests
3953
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4201
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
3954
4202
 
3955
4203
# Code to be used in simple link tests
3956
4204
lt_simple_link_test_code="$lt_simple_compile_test_code"
3997
4245
  # Now quote all the things that may contain metacharacters while being
3998
4246
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
3999
4247
  # variables and quote the copies for generation of the libtool script.
4000
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
4248
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4001
4249
    SED SHELL STRIP \
4002
4250
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4003
4251
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4039
4287
    _LT_AC_TAGVAR(module_cmds, $1) \
4040
4288
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4041
4289
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4290
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4042
4291
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4043
4292
    _LT_AC_TAGVAR(include_expsyms, $1); do
4044
4293
 
4085
4334
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4086
4335
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4087
4336
#
4088
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4337
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4089
4338
# Free Software Foundation, Inc.
4090
4339
#
4091
4340
# This file is part of GNU Libtool:
4166
4415
# A C compiler.
4167
4416
LTCC=$lt_LTCC
4168
4417
 
 
4418
# LTCC compiler flags.
 
4419
LTCFLAGS=$lt_LTCFLAGS
 
4420
 
4169
4421
# A language-specific compiler.
4170
4422
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4171
4423
 
4407
4659
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4408
4660
 
4409
4661
# Fix the shell variable \$srcfile for the compiler.
4410
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
4662
fix_srcfile_path=$lt_fix_srcfile_path
4411
4663
 
4412
4664
# Set to yes if exported symbols are required.
4413
4665
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4490
4742
# ---------------------------------
4491
4743
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4492
4744
[AC_REQUIRE([AC_CANONICAL_HOST])
 
4745
AC_REQUIRE([LT_AC_PROG_SED])
4493
4746
AC_REQUIRE([AC_PROG_NM])
4494
4747
AC_REQUIRE([AC_OBJEXT])
4495
4748
# Check for command to grab the raw symbol name followed by C symbol from nm.
4526
4779
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4527
4780
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4528
4781
  ;;
4529
 
linux*)
 
4782
linux* | k*bsd*-gnu)
4530
4783
  if test "$host_cpu" = ia64; then
4531
4784
    symcode='[[ABCDGIRSTW]]'
4532
4785
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4539
4792
osf*)
4540
4793
  symcode='[[BCDEGQRST]]'
4541
4794
  ;;
4542
 
solaris* | sysv5*)
 
4795
solaris*)
4543
4796
  symcode='[[BDRT]]'
4544
4797
  ;;
 
4798
sco3.2v5*)
 
4799
  symcode='[[DT]]'
 
4800
  ;;
 
4801
sysv4.2uw2*)
 
4802
  symcode='[[DT]]'
 
4803
  ;;
 
4804
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
4805
  symcode='[[ABDT]]'
 
4806
  ;;
4545
4807
sysv4)
4546
4808
  symcode='[[DFNSTU]]'
4547
4809
  ;;
4707
4969
      # like `-m68040'.
4708
4970
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4709
4971
      ;;
4710
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4972
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4711
4973
      # PIC is the default for these OSes.
4712
4974
      ;;
4713
 
    mingw* | os2* | pw32*)
 
4975
    mingw* | cygwin* | os2* | pw32*)
4714
4976
      # This hack is so that the source file can tell whether it is being
4715
4977
      # built for inclusion in a dll (and should export symbols for example).
 
4978
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
4979
      # (--disable-auto-import) libraries
4716
4980
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4717
4981
      ;;
4718
4982
    darwin* | rhapsody*)
4724
4988
      # DJGPP does not support shared libraries at all
4725
4989
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4726
4990
      ;;
 
4991
    interix[[3-9]]*)
 
4992
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
4993
      # Instead, we relocate shared libraries at runtime.
 
4994
      ;;
4727
4995
    sysv4*MP*)
4728
4996
      if test -d /usr/nec; then
4729
4997
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4786
5054
            ;;
4787
5055
        esac
4788
5056
        ;;
4789
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
5057
      freebsd* | dragonfly*)
4790
5058
        # FreeBSD uses GNU C++
4791
5059
        ;;
4792
5060
      hpux9* | hpux10* | hpux11*)
4793
5061
        case $cc_basename in
4794
5062
          CC*)
4795
5063
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4796
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
5064
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4797
5065
            if test "$host_cpu" != ia64; then
4798
5066
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4799
5067
            fi
4800
5068
            ;;
4801
5069
          aCC*)
4802
5070
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4803
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
5071
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4804
5072
            case $host_cpu in
4805
5073
            hppa*64*|ia64*)
4806
5074
              # +Z the default
4814
5082
            ;;
4815
5083
        esac
4816
5084
        ;;
 
5085
      interix*)
 
5086
        # This is c89, which is MS Visual C++ (no shared libs)
 
5087
        # Anyone wants to do a port?
 
5088
        ;;
4817
5089
      irix5* | irix6* | nonstopux*)
4818
5090
        case $cc_basename in
4819
5091
          CC*)
4825
5097
            ;;
4826
5098
        esac
4827
5099
        ;;
4828
 
      linux*)
 
5100
      linux* | k*bsd*-gnu)
4829
5101
        case $cc_basename in
4830
5102
          KCC*)
4831
5103
            # KAI C++ Compiler
4852
5124
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4853
5125
            ;;
4854
5126
          *)
 
5127
            case `$CC -V 2>&1 | sed 5q` in
 
5128
            *Sun\ C*)
 
5129
              # Sun C++ 5.9
 
5130
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5131
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5132
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5133
              ;;
 
5134
            esac
4855
5135
            ;;
4856
5136
        esac
4857
5137
        ;;
4868
5148
            ;;
4869
5149
        esac
4870
5150
        ;;
4871
 
      netbsd*)
 
5151
      netbsd* | netbsdelf*-gnu)
4872
5152
        ;;
4873
5153
      osf3* | osf4* | osf5*)
4874
5154
        case $cc_basename in
4893
5173
        ;;
4894
5174
      psos*)
4895
5175
        ;;
4896
 
      sco*)
4897
 
        case $cc_basename in
4898
 
          CC*)
4899
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4900
 
            ;;
4901
 
          *)
4902
 
            ;;
4903
 
        esac
4904
 
        ;;
4905
5176
      solaris*)
4906
5177
        case $cc_basename in
4907
5178
          CC*)
4943
5214
            ;;
4944
5215
        esac
4945
5216
        ;;
4946
 
      unixware*)
 
5217
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5218
        case $cc_basename in
 
5219
          CC*)
 
5220
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5221
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5222
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5223
            ;;
 
5224
        esac
4947
5225
        ;;
4948
5226
      vxworks*)
4949
5227
        ;;
4974
5252
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4975
5253
      ;;
4976
5254
 
4977
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5255
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4978
5256
      # PIC is the default for these OSes.
4979
5257
      ;;
4980
5258
 
4981
 
    mingw* | pw32* | os2*)
 
5259
    mingw* | cygwin* | pw32* | os2*)
4982
5260
      # This hack is so that the source file can tell whether it is being
4983
5261
      # built for inclusion in a dll (and should export symbols for example).
 
5262
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5263
      # (--disable-auto-import) libraries
4984
5264
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4985
5265
      ;;
4986
5266
 
4990
5270
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4991
5271
      ;;
4992
5272
 
 
5273
    interix[[3-9]]*)
 
5274
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5275
      # Instead, we relocate shared libraries at runtime.
 
5276
      ;;
 
5277
 
4993
5278
    msdosdjgpp*)
4994
5279
      # Just because we use GCC doesn't mean we suddenly get shared libraries
4995
5280
      # on systems that don't support them.
5043
5328
       esac
5044
5329
       ;;
5045
5330
 
5046
 
    mingw* | pw32* | os2*)
 
5331
    mingw* | cygwin* | pw32* | os2*)
5047
5332
      # This hack is so that the source file can tell whether it is being
5048
5333
      # built for inclusion in a dll (and should export symbols for example).
5049
5334
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5076
5361
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5077
5362
      ;;
5078
5363
 
5079
 
    linux*)
 
5364
    linux* | k*bsd*-gnu)
5080
5365
      case $cc_basename in
5081
5366
      icc* | ecc*)
5082
5367
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5095
5380
        # All Alpha code is PIC.
5096
5381
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5097
5382
        ;;
 
5383
      *)
 
5384
        case `$CC -V 2>&1 | sed 5q` in
 
5385
        *Sun\ C*)
 
5386
          # Sun C 5.9
 
5387
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5388
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5389
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5390
          ;;
 
5391
        *Sun\ F*)
 
5392
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5393
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5394
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5395
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5396
          ;;
 
5397
        esac
 
5398
        ;;
5098
5399
      esac
5099
5400
      ;;
5100
5401
 
5104
5405
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5105
5406
      ;;
5106
5407
 
5107
 
    sco3.2v5*)
5108
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5109
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
 
5408
    rdos*)
 
5409
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5110
5410
      ;;
5111
5411
 
5112
5412
    solaris*)
5126
5426
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5127
5427
      ;;
5128
5428
 
5129
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5429
    sysv4 | sysv4.2uw2* | sysv4.3*)
5130
5430
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5131
5431
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5132
5432
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5139
5439
      fi
5140
5440
      ;;
5141
5441
 
 
5442
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5443
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5444
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5445
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5446
      ;;
 
5447
 
5142
5448
    unicos*)
5143
5449
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5144
5450
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5180
5486
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5181
5487
    ;;
5182
5488
esac
 
5489
 
 
5490
#
 
5491
# Check to make sure the static flag actually works.
 
5492
#
 
5493
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
5494
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
5495
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5496
  $lt_tmp_static_flag,
 
5497
  [],
 
5498
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5183
5499
])
5184
5500
 
5185
5501
 
5187
5503
# ------------------------------------
5188
5504
# See if the linker supports building shared libraries.
5189
5505
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5190
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5506
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
5507
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5191
5508
ifelse([$1],[CXX],[
5192
5509
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5193
5510
  case $host_os in
5204
5521
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5205
5522
  ;;
5206
5523
  cygwin* | mingw*)
5207
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5524
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
5525
  ;;
 
5526
  linux* | k*bsd*-gnu)
 
5527
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5208
5528
  ;;
5209
5529
  *)
5210
5530
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5258
5578
      with_gnu_ld=no
5259
5579
    fi
5260
5580
    ;;
 
5581
  interix*)
 
5582
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
5583
    with_gnu_ld=yes
 
5584
    ;;
5261
5585
  openbsd*)
5262
5586
    with_gnu_ld=no
5263
5587
    ;;
5339
5663
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5340
5664
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5341
5665
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5342
 
      _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'
 
5666
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5343
5667
 
5344
5668
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5345
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
5669
        _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'
5346
5670
        # If the export-symbols file already is a .def file (1st line
5347
5671
        # is EXPORTS), use it as is; otherwise, prepend...
5348
5672
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5351
5675
          echo EXPORTS > $output_objdir/$soname.def;
5352
5676
          cat $export_symbols >> $output_objdir/$soname.def;
5353
5677
        fi~
5354
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
5678
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5355
5679
      else
5356
5680
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5357
5681
      fi
5358
5682
      ;;
5359
5683
 
5360
 
    linux*)
 
5684
    interix[[3-9]]*)
 
5685
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5686
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5687
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5688
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5689
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
5690
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
5691
      # default) and relocated if they conflict, which is a slow very memory
 
5692
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
5693
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
5694
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
5695
      _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'
 
5696
      _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'
 
5697
      ;;
 
5698
 
 
5699
    gnu* | linux* | k*bsd*-gnu)
5361
5700
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5362
5701
        tmp_addflag=
5363
5702
        case $cc_basename,$host_cpu in
5375
5714
        ifc* | ifort*)                  # Intel Fortran compiler
5376
5715
          tmp_addflag=' -nofor_main' ;;
5377
5716
        esac
5378
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5717
        case `$CC -V 2>&1 | sed 5q` in
 
5718
        *Sun\ C*)                       # Sun C 5.9
 
5719
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5720
          tmp_sharedflag='-G' ;;
 
5721
        *Sun\ F*)                       # Sun Fortran 8.3
 
5722
          tmp_sharedflag='-G' ;;
 
5723
        *)
 
5724
          tmp_sharedflag='-shared' ;;
 
5725
        esac
 
5726
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5379
5727
 
5380
5728
        if test $supports_anon_versioning = yes; then
5381
5729
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5382
5730
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5383
5731
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5384
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5732
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5385
5733
        fi
 
5734
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5386
5735
      else
5387
5736
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5388
5737
      fi
5389
5738
      ;;
5390
5739
 
5391
 
    netbsd*)
 
5740
    netbsd* | netbsdelf*-gnu)
5392
5741
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5393
5742
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5394
5743
        wlarc=
5398
5747
      fi
5399
5748
      ;;
5400
5749
 
5401
 
    solaris* | sysv5*)
 
5750
    solaris*)
5402
5751
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5403
5752
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5404
5753
        cat <<EOF 1>&2
5419
5768
      fi
5420
5769
      ;;
5421
5770
 
 
5771
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
5772
      case `$LD -v 2>&1` in
 
5773
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
 
5774
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5775
        cat <<_LT_EOF 1>&2
 
5776
 
 
5777
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
5778
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
5779
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
5780
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
5781
*** your PATH or compiler configuration so that the native linker is
 
5782
*** used, and then restart.
 
5783
 
 
5784
_LT_EOF
 
5785
        ;;
 
5786
        *)
 
5787
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5788
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
5789
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
5790
            _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'
 
5791
          else
 
5792
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5793
          fi
 
5794
        ;;
 
5795
      esac
 
5796
      ;;
 
5797
 
5422
5798
    sunos4*)
5423
5799
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5424
5800
      wlarc=
5452
5828
      # Note: this linker hardcodes the directories in LIBPATH if there
5453
5829
      # are no directories specified by -L.
5454
5830
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5455
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
5831
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5456
5832
        # Neither direct hardcoding nor static linking is supported with a
5457
5833
        # broken collect2.
5458
5834
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5486
5862
            break
5487
5863
          fi
5488
5864
          done
 
5865
          ;;
5489
5866
        esac
5490
5867
 
5491
5868
        exp_sym_flag='-bexport'
5512
5889
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5513
5890
          then
5514
5891
          # We have reworked collect2
5515
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5892
          :
5516
5893
          else
5517
5894
          # We have old collect2
5518
5895
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5523
5900
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5524
5901
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5525
5902
          fi
 
5903
          ;;
5526
5904
        esac
5527
5905
        shared_flag='-shared'
5528
5906
        if test "$aix_use_runtimelinking" = yes; then
5535
5913
        # chokes on -Wl,-G. The following line is correct:
5536
5914
          shared_flag='-G'
5537
5915
        else
5538
 
        if test "$aix_use_runtimelinking" = yes; then
 
5916
          if test "$aix_use_runtimelinking" = yes; then
5539
5917
            shared_flag='${wl}-G'
5540
5918
          else
5541
5919
            shared_flag='${wl}-bM:SRE'
5542
 
        fi
 
5920
          fi
5543
5921
        fi
5544
5922
      fi
5545
5923
 
5553
5931
       # Determine the default libpath from the value encoded in an empty executable.
5554
5932
       _LT_AC_SYS_LIBPATH_AIX
5555
5933
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5556
 
        _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"
 
5934
        _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"
5557
5935
       else
5558
5936
        if test "$host_cpu" = ia64; then
5559
5937
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5560
5938
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5561
 
          _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"
 
5939
          _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"
5562
5940
        else
5563
5941
         # Determine the default libpath from the value encoded in an empty executable.
5564
5942
         _LT_AC_SYS_LIBPATH_AIX
5567
5945
          # -berok will link without error, but may produce a broken library.
5568
5946
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5569
5947
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5570
 
          # -bexpall does not export symbols beginning with underscore (_)
5571
 
          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5572
5948
          # Exported symbols can be pulled into shared objects from archives
5573
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
5949
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5574
5950
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5575
5951
          # This is similar to how AIX traditionally builds its shared libraries.
5576
 
          _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'
 
5952
          _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'
5577
5953
        fi
5578
5954
      fi
5579
5955
      ;;
5606
5982
      # The linker will automatically build a .lib file if we build a DLL.
5607
5983
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5608
5984
      # FIXME: Should let the user specify the lib program.
5609
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
5985
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5610
5986
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5611
5987
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5612
5988
      ;;
5648
6024
      case $cc_basename in
5649
6025
        xlc*)
5650
6026
         output_verbose_link_cmd='echo'
5651
 
         _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'
 
6027
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5652
6028
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5653
6029
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5654
 
         _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}'
 
6030
         _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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5655
6031
          _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}'
5656
6032
          ;;
5657
6033
       *)
5691
6067
      ;;
5692
6068
 
5693
6069
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5694
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
6070
    freebsd* | dragonfly*)
5695
6071
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5696
6072
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5697
6073
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5714
6090
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5715
6091
      ;;
5716
6092
 
5717
 
    hpux10* | hpux11*)
 
6093
    hpux10*)
 
6094
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6095
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6096
      else
 
6097
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6098
      fi
 
6099
      if test "$with_gnu_ld" = no; then
 
6100
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6101
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6102
 
 
6103
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6104
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6105
 
 
6106
        # hardcode_minus_L: Not really in the search PATH,
 
6107
        # but as the default location of the library.
 
6108
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6109
      fi
 
6110
      ;;
 
6111
 
 
6112
    hpux11*)
5718
6113
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5719
6114
        case $host_cpu in
5720
 
        hppa*64*|ia64*)
 
6115
        hppa*64*)
5721
6116
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5722
6117
          ;;
 
6118
        ia64*)
 
6119
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6120
          ;;
5723
6121
        *)
5724
6122
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5725
6123
          ;;
5726
6124
        esac
5727
6125
      else
5728
6126
        case $host_cpu in
5729
 
        hppa*64*|ia64*)
5730
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6127
        hppa*64*)
 
6128
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6129
          ;;
 
6130
        ia64*)
 
6131
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5731
6132
          ;;
5732
6133
        *)
5733
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6134
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5734
6135
          ;;
5735
6136
        esac
5736
6137
      fi
5737
6138
      if test "$with_gnu_ld" = no; then
 
6139
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6140
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6141
 
5738
6142
        case $host_cpu in
5739
 
        hppa*64*)
5740
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6143
        hppa*64*|ia64*)
5741
6144
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5742
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5743
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5744
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5745
 
          ;;
5746
 
        ia64*)
5747
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5748
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5749
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5750
 
 
5751
 
          # hardcode_minus_L: Not really in the search PATH,
5752
 
          # but as the default location of the library.
5753
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6145
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6146
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5754
6147
          ;;
5755
6148
        *)
5756
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5757
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5758
6149
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5759
6150
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5760
6151
 
5778
6169
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5779
6170
      ;;
5780
6171
 
5781
 
    netbsd*)
 
6172
    netbsd* | netbsdelf*-gnu)
5782
6173
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5783
6174
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5784
6175
      else
5798
6189
      ;;
5799
6190
 
5800
6191
    openbsd*)
5801
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5802
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5803
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5804
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5805
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5806
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5807
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6192
      if test -f /usr/libexec/ld.so; then
 
6193
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6194
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6195
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6196
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6197
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6198
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6199
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6200
        else
 
6201
          case $host_os in
 
6202
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6203
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6204
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6205
             ;;
 
6206
           *)
 
6207
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6208
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6209
             ;;
 
6210
          esac
 
6211
        fi
5808
6212
      else
5809
 
       case $host_os in
5810
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5811
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5812
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5813
 
           ;;
5814
 
         *)
5815
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5816
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5817
 
           ;;
5818
 
       esac
 
6213
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5819
6214
      fi
5820
6215
      ;;
5821
6216
 
5856
6251
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5857
6252
      ;;
5858
6253
 
5859
 
    sco3.2v5*)
5860
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5861
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5862
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5863
 
      runpath_var=LD_RUN_PATH
5864
 
      hardcode_runpath_var=yes
5865
 
      ;;
5866
 
 
5867
6254
    solaris*)
5868
6255
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5869
6256
      if test "$GCC" = yes; then
5882
6269
      case $host_os in
5883
6270
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5884
6271
      *)
5885
 
        # The compiler driver will combine linker options so we
5886
 
        # cannot just pass the convience library names through
5887
 
        # without $wl, iff we do not link with $LD.
5888
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6272
        # The compiler driver will combine and reorder linker options,
 
6273
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6274
        # but is careful enough not to reorder.
5889
6275
        # Supported since Solaris 2.6 (maybe 2.5.1?)
5890
 
        case $wlarc in
5891
 
        '')
5892
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
5893
 
        *)
5894
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
5895
 
        esac ;;
 
6276
        if test "$GCC" = yes; then
 
6277
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6278
        else
 
6279
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6280
        fi
 
6281
        ;;
5896
6282
      esac
5897
6283
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5898
6284
      ;;
5949
6335
      fi
5950
6336
      ;;
5951
6337
 
5952
 
    sysv4.2uw2*)
5953
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5954
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5955
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5956
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5957
 
      hardcode_runpath_var=yes
5958
 
      runpath_var=LD_RUN_PATH
5959
 
      ;;
5960
 
 
5961
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
5962
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5963
 
      if test "$GCC" = yes; then
5964
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5965
 
      else
5966
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5967
 
      fi
5968
 
      runpath_var='LD_RUN_PATH'
5969
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5970
 
      ;;
5971
 
 
5972
 
    sysv5*)
5973
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5974
 
      # $CC -shared without GNU ld will not create a library from C++
5975
 
      # object files and a static libstdc++, better avoid it by now
5976
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5977
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5978
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5979
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5980
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5981
 
      runpath_var='LD_RUN_PATH'
 
6338
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
6339
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6340
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6341
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6342
      runpath_var='LD_RUN_PATH'
 
6343
 
 
6344
      if test "$GCC" = yes; then
 
6345
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6346
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6347
      else
 
6348
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6349
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6350
      fi
 
6351
      ;;
 
6352
 
 
6353
    sysv5* | sco3.2v5* | sco5v6*)
 
6354
      # Note: We can NOT use -z defs as we might desire, because we do not
 
6355
      # link with -lc, and that would cause any symbols used from libc to
 
6356
      # always be unresolved, which means just about no library would
 
6357
      # ever link correctly.  If we're not using GNU ld we use -z text
 
6358
      # though, which does catch some bad symbols but isn't as heavy-handed
 
6359
      # as -z defs.
 
6360
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6361
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6362
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6363
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6364
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
6365
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6366
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6367
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6368
      runpath_var='LD_RUN_PATH'
 
6369
 
 
6370
      if test "$GCC" = yes; then
 
6371
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6372
        _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'
 
6373
      else
 
6374
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6375
        _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'
 
6376
      fi
5982
6377
      ;;
5983
6378
 
5984
6379
    uts4*)
5996
6391
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5997
6392
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5998
6393
 
5999
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6000
 
if test "$GCC" = yes; then
6001
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6002
 
fi
6003
 
 
6004
6394
#
6005
6395
# Do we need to explicitly link libc?
6006
6396
#
6020
6410
      # to ld, don't add -lc before -lgcc.
6021
6411
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6022
6412
      $rm conftest*
6023
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6413
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6024
6414
 
6025
6415
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6026
6416
        soname=conftest
6028
6418
        libobjs=conftest.$ac_objext
6029
6419
        deplibs=
6030
6420
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
6421
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6031
6422
        compiler_flags=-v
6032
6423
        linker_flags=-v
6033
6424
        verstring=
6122
6513
[AC_CHECK_TOOL(RC, windres, no)
6123
6514
])
6124
6515
 
 
6516
 
 
6517
# Cheap backport of AS_EXECUTABLE_P and required macros
 
6518
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
6519
 
 
6520
# _AS_TEST_PREPARE
 
6521
# ----------------
 
6522
m4_ifndef([_AS_TEST_PREPARE],
 
6523
[m4_defun([_AS_TEST_PREPARE],
 
6524
[if test -x / >/dev/null 2>&1; then
 
6525
  as_executable_p='test -x'
 
6526
else
 
6527
  as_executable_p='test -f'
 
6528
fi
 
6529
])])# _AS_TEST_PREPARE
 
6530
 
 
6531
# AS_EXECUTABLE_P
 
6532
# ---------------
 
6533
# Check whether a file is executable.
 
6534
m4_ifndef([AS_EXECUTABLE_P],
 
6535
[m4_defun([AS_EXECUTABLE_P],
 
6536
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
6537
$as_executable_p $1[]dnl
 
6538
])])# AS_EXECUTABLE_P
 
6539
 
6125
6540
############################################################
6126
6541
# NOTE: This macro has been submitted for inclusion into   #
6127
6542
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6144
6559
  test -z "$as_dir" && as_dir=.
6145
6560
  for lt_ac_prog in sed gsed; do
6146
6561
    for ac_exec_ext in '' $ac_executable_extensions; do
6147
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6562
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6148
6563
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6149
6564
      fi
6150
6565
    done
6151
6566
  done
6152
6567
done
 
6568
IFS=$as_save_IFS
6153
6569
lt_ac_max=0
6154
6570
lt_ac_count=0
6155
6571
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6182
6598
done
6183
6599
])
6184
6600
SED=$lt_cv_path_SED
 
6601
AC_SUBST([SED])
6185
6602
AC_MSG_RESULT([$SED])
6186
6603
])