~ubuntu-branches/ubuntu/maverick/pdns/maverick-updates

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Matthijs Mohlmann, Matthijs Mohlmann, Christoph Haas
  • Date: 2007-04-15 23:23:39 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070415232339-5x3scc8gx04e50um
Tags: 2.9.21-1
[ Matthijs Mohlmann ]
* New upstream release. (Closes: #420294)
* Remove meta pdns package.
* Added new sqlite3 backend package.
* Months and minutes where mixed up. (Closes: #406462)
* Case sensitivity in bind backend caused PowerDNS to not serve a certain
  zone. (Closes: #406461)
* Bind backend forgot about zones on a notify. (Closes: #398213)

[ Christoph Haas ]
* Documented incorporated backend bind. (Closes: #415471)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
4
# 2005  Free Software Foundation, Inc.
13
13
 
14
14
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15
15
 
16
 
# serial 47 AC_PROG_LIBTOOL
17
 
# Debian $Rev: 214 $
 
16
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
18
17
 
19
18
 
20
19
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
124
123
 
125
124
# Sed substitution that helps us do robust quoting.  It backslashifies
126
125
# metacharacters that are still active within double-quoted strings.
127
 
Xsed='sed -e s/^X//'
 
126
Xsed='sed -e 1s/^X//'
128
127
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
129
128
 
130
129
# Same as above, but do not quote variable references.
144
143
default_ofile=libtool
145
144
can_build_shared=yes
146
145
 
147
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
146
# All known linkers require a `.a' archive for static linking (except MSVC,
148
147
# which needs '.lib').
149
148
libext=a
150
149
ltmain="$ac_aux_dir/ltmain.sh"
164
163
test -z "$AS" && AS=as
165
164
test -z "$CC" && CC=cc
166
165
test -z "$LTCC" && LTCC=$CC
 
166
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
167
167
test -z "$DLLTOOL" && DLLTOOL=dlltool
168
168
test -z "$LD" && LD=ld
169
169
test -z "$LN_S" && LN_S="ln -s"
183
183
if test -n "$RANLIB"; then
184
184
  case $host_os in
185
185
  openbsd*)
186
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
186
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
187
187
    ;;
188
188
  *)
189
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
189
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
190
190
    ;;
191
191
  esac
192
192
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
193
193
fi
194
194
 
 
195
_LT_CC_BASENAME([$compiler])
 
196
 
195
197
# Only perform the check for file, if the check method requires it
196
198
case $deplibs_check_method in
197
199
file_magic*)
232
234
# If no C compiler was specified, use CC.
233
235
LTCC=${LTCC-"$CC"}
234
236
 
 
237
# If no C compiler flags were specified, use CFLAGS.
 
238
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
239
 
235
240
# Allow CC to be a program name with arguments.
236
241
compiler=$CC
237
242
])# _LT_AC_SYS_COMPILER
238
243
 
239
244
 
 
245
# _LT_CC_BASENAME(CC)
 
246
# -------------------
 
247
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
248
AC_DEFUN([_LT_CC_BASENAME],
 
249
[for cc_temp in $1""; do
 
250
  case $cc_temp in
 
251
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
252
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
253
    \-*) ;;
 
254
    *) break;;
 
255
  esac
 
256
done
 
257
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
258
])
 
259
 
 
260
 
 
261
# _LT_COMPILER_BOILERPLATE
 
262
# ------------------------
 
263
# Check for compiler boilerplate output or warnings with
 
264
# the simple compiler test code.
 
265
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 
266
[ac_outfile=conftest.$ac_objext
 
267
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
268
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
269
_lt_compiler_boilerplate=`cat conftest.err`
 
270
$rm conftest*
 
271
])# _LT_COMPILER_BOILERPLATE
 
272
 
 
273
 
 
274
# _LT_LINKER_BOILERPLATE
 
275
# ----------------------
 
276
# Check for linker boilerplate output or warnings with
 
277
# the simple link test code.
 
278
AC_DEFUN([_LT_LINKER_BOILERPLATE],
 
279
[ac_outfile=conftest.$ac_objext
 
280
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
281
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
282
_lt_linker_boilerplate=`cat conftest.err`
 
283
$rm conftest*
 
284
])# _LT_LINKER_BOILERPLATE
 
285
 
 
286
 
240
287
# _LT_AC_SYS_LIBPATH_AIX
241
288
# ----------------------
242
289
# Links a minimal program and checks the executable
309
356
 
310
357
# The HP-UX ksh and POSIX shell print the target directory to stdout
311
358
# if CDPATH is set.
312
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
359
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
313
360
 
314
361
if test -z "$ECHO"; then
315
362
if test "X${echo_test_string+set}" != Xset; then
316
363
# find a string as large as possible, as long as the shell can cope with it
317
364
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
318
365
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
319
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
320
 
       echo_test_string="`eval $cmd`" &&
 
366
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
367
       echo_test_string=`eval $cmd` &&
321
368
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
322
369
    then
323
370
      break
486
533
  # Find out which ABI we are using.
487
534
  echo 'int i;' > conftest.$ac_ext
488
535
  if AC_TRY_EVAL(ac_compile); then
489
 
    case "`/usr/bin/file conftest.o`" in
 
536
    case `/usr/bin/file conftest.o` in
490
537
    *32-bit*)
491
538
      case $host in
492
539
        x86_64-*linux*)
537
584
    CFLAGS="$SAVE_CFLAGS"
538
585
  fi
539
586
  ;;
 
587
sparc*-*solaris*)
 
588
  # Find out which ABI we are using.
 
589
  echo 'int i;' > conftest.$ac_ext
 
590
  if AC_TRY_EVAL(ac_compile); then
 
591
    case `/usr/bin/file conftest.o` in
 
592
    *64-bit*)
 
593
      case $lt_cv_prog_gnu_ld in
 
594
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
595
      *)    LD="${LD-ld} -64" ;;
 
596
      esac
 
597
      ;;
 
598
    esac
 
599
  fi
 
600
  rm -rf conftest*
 
601
  ;;
 
602
 
540
603
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
541
604
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
542
605
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
568
631
   # with a dollar sign (not a hyphen), so the echo should work correctly.
569
632
   # The option is referenced via a variable to avoid confusing sed.
570
633
   lt_compile=`echo "$ac_compile" | $SED \
571
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
634
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
572
635
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
573
636
   -e 's:$: $lt_compiler_flag:'`
574
637
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
578
641
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
579
642
   if (exit $ac_status) && test -s "$ac_outfile"; then
580
643
     # The compiler can only warn and ignore the option if not recognized
581
 
     # So say no if there are warnings
582
 
     if test ! -s conftest.err; then
 
644
     # So say no if there are warnings other than the usual output.
 
645
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
646
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
647
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
583
648
       $2=yes
584
649
     fi
585
650
   fi
605
670
   LDFLAGS="$LDFLAGS $3"
606
671
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
607
672
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
608
 
     # The compiler can only warn and ignore the option if not recognized
 
673
     # The linker can only warn and ignore the option if not recognized
609
674
     # So say no if there are warnings
610
675
     if test -s conftest.err; then
611
676
       # Append any errors to the config.log.
612
677
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 
678
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
679
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
680
       if diff conftest.exp conftest.er2 >/dev/null; then
 
681
         $2=yes
 
682
       fi
613
683
     else
614
684
       $2=yes
615
685
     fi
668
738
    lt_cv_sys_max_cmd_len=8192;
669
739
    ;;
670
740
 
671
 
 *)
 
741
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
742
    # This has been around since 386BSD, at least.  Likely further.
 
743
    if test -x /sbin/sysctl; then
 
744
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
745
    elif test -x /usr/sbin/sysctl; then
 
746
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
747
    else
 
748
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
749
    fi
 
750
    # And add a safety zone
 
751
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
752
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
753
    ;;
 
754
 
 
755
  interix*)
 
756
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
757
    lt_cv_sys_max_cmd_len=196608
 
758
    ;;
 
759
 
 
760
  osf*)
 
761
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
762
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
763
    # nice to cause kernel panics so lets avoid the loop below.
 
764
    # First set a reasonable default.
 
765
    lt_cv_sys_max_cmd_len=16384
 
766
    #
 
767
    if test -x /sbin/sysconfig; then
 
768
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
769
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
770
      esac
 
771
    fi
 
772
    ;;
 
773
  sco3.2v5*)
 
774
    lt_cv_sys_max_cmd_len=102400
 
775
    ;;
 
776
  sysv5* | sco5v6* | sysv4.2uw2*)
 
777
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
778
    if test -n "$kargmax"; then
 
779
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
780
    else
 
781
      lt_cv_sys_max_cmd_len=32768
 
782
    fi
 
783
    ;;
 
784
  *)
672
785
    # If test is not a shell built-in, we'll probably end up computing a
673
786
    # maximum length that is only half of the actual maximum length, but
674
787
    # we can't tell.
675
 
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
788
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
789
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
676
790
               = "XX$teststring") >/dev/null 2>&1 &&
677
791
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
678
792
            lt_cv_sys_max_cmd_len=$new_result &&
698
812
 
699
813
 
700
814
# _LT_AC_CHECK_DLFCN
701
 
# --------------------
 
815
# ------------------
702
816
AC_DEFUN([_LT_AC_CHECK_DLFCN],
703
817
[AC_CHECK_HEADERS(dlfcn.h)dnl
704
818
])# _LT_AC_CHECK_DLFCN
706
820
 
707
821
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
708
822
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
709
 
# ------------------------------------------------------------------
 
823
# ---------------------------------------------------------------------
710
824
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
711
825
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
712
826
if test "$cross_compiling" = yes; then :
772
886
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
773
887
      /* dlclose (self); */
774
888
    }
 
889
  else
 
890
    puts (dlerror ());
775
891
 
776
892
    exit (status);
777
893
}]
778
894
EOF
779
895
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
780
 
    (./conftest; exit; ) 2>/dev/null
 
896
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
781
897
    lt_status=$?
782
898
    case x$lt_status in
783
899
      x$lt_dlno_uscore) $1 ;;
784
900
      x$lt_dlneed_uscore) $2 ;;
785
 
      x$lt_unknown|x*) $3 ;;
 
901
      x$lt_dlunknown|x*) $3 ;;
786
902
    esac
787
903
  else :
788
904
    # compilation failed
794
910
 
795
911
 
796
912
# AC_LIBTOOL_DLOPEN_SELF
797
 
# -------------------
 
913
# ----------------------
798
914
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
799
915
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
800
916
if test "x$enable_dlopen" != xyes; then
865
981
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
866
982
 
867
983
    save_LDFLAGS="$LDFLAGS"
868
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
984
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
869
985
 
870
986
    save_LIBS="$LIBS"
871
987
    LIBS="$lt_cv_dlopen_libs $LIBS"
878
994
    ])
879
995
 
880
996
    if test "x$lt_cv_dlopen_self" = xyes; then
881
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
997
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
882
998
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
883
999
          lt_cv_dlopen_self_static, [dnl
884
1000
          _LT_AC_TRY_DLOPEN_SELF(
926
1042
   # Note that $ac_compile itself does not contain backslashes and begins
927
1043
   # with a dollar sign (not a hyphen), so the echo should work correctly.
928
1044
   lt_compile=`echo "$ac_compile" | $SED \
929
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
1045
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
930
1046
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
931
1047
   -e 's:$: $lt_compiler_flag:'`
932
1048
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
938
1054
   then
939
1055
     # The compiler can only warn and ignore the option if not recognized
940
1056
     # So say no if there are warnings
941
 
     if test ! -s out/conftest.err; then
 
1057
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
1058
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
1059
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
942
1060
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
943
1061
     fi
944
1062
   fi
945
 
   chmod u+w .
 
1063
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
946
1064
   $rm conftest*
947
1065
   # SGI C++ compiler will create directory out/ii_files/ for
948
1066
   # template instantiation
1006
1124
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1007
1125
_LT_AC_TAGVAR(hardcode_action, $1)=
1008
1126
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1009
 
   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1010
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
 
1127
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
 
1128
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1011
1129
 
1012
1130
  # We can hardcode non-existant directories.
1013
1131
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1174
1292
  shlibpath_var=LIBRARY_PATH
1175
1293
  ;;
1176
1294
 
1177
 
bsdi4*)
 
1295
bsdi[[45]]*)
1178
1296
  version_type=linux
1179
1297
  need_version=no
1180
1298
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1202
1320
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1203
1321
      dldir=$destdir/`dirname \$dlpath`~
1204
1322
      test -d \$dldir || mkdir -p \$dldir~
1205
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
1323
      $install_prog $dir/$dlname \$dldir/$dlname~
 
1324
      chmod a+x \$dldir/$dlname'
1206
1325
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1207
1326
      dlpath=$dir/\$dldll~
1208
1327
       $rm \$dlpath'
1232
1351
      ;;
1233
1352
    pw32*)
1234
1353
      # pw32 DLLs use 'pw' prefix rather than 'lib'
1235
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
1354
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1236
1355
      ;;
1237
1356
    esac
1238
1357
    ;;
1255
1374
  soname_spec='${libname}${release}${major}$shared_ext'
1256
1375
  shlibpath_overrides_runpath=yes
1257
1376
  shlibpath_var=DYLD_LIBRARY_PATH
1258
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
1377
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1259
1378
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1260
1379
  if test "$GCC" = yes; then
1261
1380
    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"`
1278
1397
  dynamic_linker=no
1279
1398
  ;;
1280
1399
 
1281
 
kfreebsd*-gnu)
1282
 
  version_type=linux
1283
 
  need_lib_prefix=no
1284
 
  need_version=no
1285
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1286
 
  soname_spec='${libname}${release}${shared_ext}$major'
1287
 
  shlibpath_var=LD_LIBRARY_PATH
1288
 
  shlibpath_overrides_runpath=no
1289
 
  hardcode_into_libs=yes
1290
 
  dynamic_linker='GNU ld.so'
1291
 
  ;;
1292
 
 
1293
 
freebsd*)
1294
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
1400
freebsd* | dragonfly*)
 
1401
  # DragonFly does not have aout.  When/if they implement a new
 
1402
  # versioning mechanism, adjust this.
 
1403
  if test -x /usr/bin/objformat; then
 
1404
    objformat=`/usr/bin/objformat`
 
1405
  else
 
1406
    case $host_os in
 
1407
    freebsd[[123]]*) objformat=aout ;;
 
1408
    *) objformat=elf ;;
 
1409
    esac
 
1410
  fi
1295
1411
  version_type=freebsd-$objformat
1296
1412
  case $version_type in
1297
1413
    freebsd-elf*)
1309
1425
  freebsd2*)
1310
1426
    shlibpath_overrides_runpath=yes
1311
1427
    ;;
1312
 
  freebsd3.[01]* | freebsdelf3.[01]*)
 
1428
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1313
1429
    shlibpath_overrides_runpath=yes
1314
1430
    hardcode_into_libs=yes
1315
1431
    ;;
1316
 
  *) # from 3.2 on
 
1432
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 
1433
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1317
1434
    shlibpath_overrides_runpath=no
1318
1435
    hardcode_into_libs=yes
1319
1436
    ;;
 
1437
  freebsd*) # from 4.6 on
 
1438
    shlibpath_overrides_runpath=yes
 
1439
    hardcode_into_libs=yes
 
1440
    ;;
1320
1441
  esac
1321
1442
  ;;
1322
1443
 
1336
1457
  version_type=sunos
1337
1458
  need_lib_prefix=no
1338
1459
  need_version=no
1339
 
  case "$host_cpu" in
 
1460
  case $host_cpu in
1340
1461
  ia64*)
1341
1462
    shrext_cmds='.so'
1342
1463
    hardcode_into_libs=yes
1376
1497
  postinstall_cmds='chmod 555 $lib'
1377
1498
  ;;
1378
1499
 
 
1500
interix3*)
 
1501
  version_type=linux
 
1502
  need_lib_prefix=no
 
1503
  need_version=no
 
1504
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
1505
  soname_spec='${libname}${release}${shared_ext}$major'
 
1506
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
1507
  shlibpath_var=LD_LIBRARY_PATH
 
1508
  shlibpath_overrides_runpath=no
 
1509
  hardcode_into_libs=yes
 
1510
  ;;
 
1511
 
1379
1512
irix5* | irix6* | nonstopux*)
1380
1513
  case $host_os in
1381
1514
    nonstopux*) version_type=nonstopux ;;
1419
1552
  ;;
1420
1553
 
1421
1554
# This must be Linux ELF.
1422
 
linux*)
 
1555
linux* | k*bsd*-gnu)
1423
1556
  version_type=linux
1424
1557
  need_lib_prefix=no
1425
1558
  need_version=no
1435
1568
 
1436
1569
  # Append ld.so.conf contents to the search path
1437
1570
  if test -f /etc/ld.so.conf; then
1438
 
    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
 
1571
    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' ' '`
1439
1572
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1440
1573
  fi
1441
1574
 
1460
1593
  dynamic_linker='NetBSD ld.elf_so'
1461
1594
  ;;
1462
1595
 
1463
 
knetbsd*-gnu)
1464
 
  version_type=linux
1465
 
  need_lib_prefix=no
1466
 
  need_version=no
1467
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1468
 
  soname_spec='${libname}${release}${shared_ext}$major'
1469
 
  shlibpath_var=LD_LIBRARY_PATH
1470
 
  shlibpath_overrides_runpath=no
1471
 
  hardcode_into_libs=yes
1472
 
  dynamic_linker='GNU ld.so'
1473
 
  ;;
1474
 
 
1475
1596
netbsd*)
1476
1597
  version_type=sunos
1477
1598
  need_lib_prefix=no
1509
1630
 
1510
1631
openbsd*)
1511
1632
  version_type=sunos
 
1633
  sys_lib_dlsearch_path_spec="/usr/lib"
1512
1634
  need_lib_prefix=no
1513
 
  need_version=yes
 
1635
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
1636
  case $host_os in
 
1637
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
1638
    *)                         need_version=no  ;;
 
1639
  esac
1514
1640
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1515
1641
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1516
1642
  shlibpath_var=LD_LIBRARY_PATH
1548
1674
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1549
1675
  ;;
1550
1676
 
1551
 
sco3.2v5*)
1552
 
  version_type=osf
1553
 
  soname_spec='${libname}${release}${shared_ext}$major'
1554
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1555
 
  shlibpath_var=LD_LIBRARY_PATH
1556
 
  ;;
1557
 
 
1558
1677
solaris*)
1559
1678
  version_type=linux
1560
1679
  need_lib_prefix=no
1580
1699
  need_version=yes
1581
1700
  ;;
1582
1701
 
1583
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
1702
sysv4 | sysv4.3*)
1584
1703
  version_type=linux
1585
1704
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1586
1705
  soname_spec='${libname}${release}${shared_ext}$major'
1613
1732
  fi
1614
1733
  ;;
1615
1734
 
 
1735
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
1736
  version_type=freebsd-elf
 
1737
  need_lib_prefix=no
 
1738
  need_version=no
 
1739
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
1740
  soname_spec='${libname}${release}${shared_ext}$major'
 
1741
  shlibpath_var=LD_LIBRARY_PATH
 
1742
  hardcode_into_libs=yes
 
1743
  if test "$with_gnu_ld" = yes; then
 
1744
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
1745
    shlibpath_overrides_runpath=no
 
1746
  else
 
1747
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
1748
    shlibpath_overrides_runpath=yes
 
1749
    case $host_os in
 
1750
      sco3.2v5*)
 
1751
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
1752
        ;;
 
1753
    esac
 
1754
  fi
 
1755
  sys_lib_dlsearch_path_spec='/usr/lib'
 
1756
  ;;
 
1757
 
1616
1758
uts4*)
1617
1759
  version_type=linux
1618
1760
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1626
1768
esac
1627
1769
AC_MSG_RESULT([$dynamic_linker])
1628
1770
test "$dynamic_linker" = no && can_build_shared=no
 
1771
 
 
1772
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
1773
if test "$GCC" = yes; then
 
1774
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
1775
fi
1629
1776
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1630
1777
 
1631
1778
 
1650
1797
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1651
1798
    fi
1652
1799
  fi
 
1800
  if test -z "$LTCFLAGS"; then
 
1801
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
1802
  fi
1653
1803
 
1654
1804
  # Extract list of available tagged configurations in $ofile.
1655
1805
  # Note that this assumes the entire list is on one line.
1676
1826
 
1677
1827
      case $tagname in
1678
1828
      CXX)
1679
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
1829
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
1830
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
1831
            (test "X$CXX" != "Xg++"))) ; then
1680
1832
          AC_LIBTOOL_LANG_CXX_CONFIG
1681
1833
        else
1682
1834
          tagname=""
1738
1890
 
1739
1891
# AC_LIBTOOL_WIN32_DLL
1740
1892
# --------------------
1741
 
# declare package support for building win32 dll's
 
1893
# declare package support for building win32 DLLs
1742
1894
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1743
1895
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1744
1896
])# AC_LIBTOOL_WIN32_DLL
1776
1928
 
1777
1929
# AC_DISABLE_SHARED
1778
1930
# -----------------
1779
 
#- set the default shared flag to --disable-shared
 
1931
# set the default shared flag to --disable-shared
1780
1932
AC_DEFUN([AC_DISABLE_SHARED],
1781
1933
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1782
1934
AC_ENABLE_SHARED(no)
1912
2064
      if test -n "$file_magic_test_file"; then
1913
2065
        case $deplibs_check_method in
1914
2066
        "file_magic "*)
1915
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
2067
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1916
2068
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1917
2069
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1918
2070
            $EGREP "$file_magic_regex" > /dev/null; then
2022
2174
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2023
2175
      lt_cv_path_LD="$ac_dir/$ac_prog"
2024
2176
      # Check to see if the program is GNU ld.  I'd rather use --version,
2025
 
      # but apparently some GNU ld's only accept -v.
 
2177
      # but apparently some variants of GNU ld only accept -v.
2026
2178
      # Break only if it was the GNU/non-GNU ld that we prefer.
2027
2179
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2028
2180
      *GNU* | *'with BFD'*)
2054
2206
AC_DEFUN([AC_PROG_LD_GNU],
2055
2207
[AC_REQUIRE([AC_PROG_EGREP])dnl
2056
2208
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2057
 
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
2209
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2058
2210
case `$LD -v 2>&1 </dev/null` in
2059
2211
*GNU* | *'with BFD'*)
2060
2212
  lt_cv_prog_gnu_ld=yes
2081
2233
*) reload_flag=" $reload_flag" ;;
2082
2234
esac
2083
2235
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2236
case $host_os in
 
2237
  darwin*)
 
2238
    if test "$GCC" = yes; then
 
2239
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
2240
    else
 
2241
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2242
    fi
 
2243
    ;;
 
2244
esac
2084
2245
])# AC_PROG_LD_RELOAD_FLAG
2085
2246
 
2086
2247
 
2114
2275
  lt_cv_deplibs_check_method=pass_all
2115
2276
  ;;
2116
2277
 
2117
 
bsdi4*)
 
2278
bsdi[[45]]*)
2118
2279
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2119
2280
  lt_cv_file_magic_cmd='/usr/bin/file -L'
2120
2281
  lt_cv_file_magic_test_file=/shlib/libc.so
2137
2298
  lt_cv_deplibs_check_method=pass_all
2138
2299
  ;;
2139
2300
 
2140
 
freebsd* | kfreebsd*-gnu)
 
2301
freebsd* | dragonfly*)
2141
2302
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2142
2303
    case $host_cpu in
2143
2304
    i*86 )
2144
2305
      # Not sure whether the presence of OpenBSD here was a mistake.
2145
2306
      # Let's accept both of them until this is cleared up.
2146
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
 
2307
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2147
2308
      lt_cv_file_magic_cmd=/usr/bin/file
2148
2309
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2149
2310
      ;;
2159
2320
 
2160
2321
hpux10.20* | hpux11*)
2161
2322
  lt_cv_file_magic_cmd=/usr/bin/file
2162
 
  case "$host_cpu" in
 
2323
  case $host_cpu in
2163
2324
  ia64*)
2164
2325
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2165
2326
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2175
2336
  esac
2176
2337
  ;;
2177
2338
 
 
2339
interix3*)
 
2340
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
2341
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
2342
  ;;
 
2343
 
2178
2344
irix5* | irix6* | nonstopux*)
2179
2345
  case $LD in
2180
2346
  *-32|*"-32 ") libmagic=32-bit;;
2186
2352
  ;;
2187
2353
 
2188
2354
# This must be Linux ELF.
2189
 
linux*)
 
2355
linux* | k*bsd*-gnu)
2190
2356
  lt_cv_deplibs_check_method=pass_all
2191
2357
  ;;
2192
2358
 
2193
 
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
2359
netbsd* | netbsdelf*-gnu)
2194
2360
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2195
2361
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2196
2362
  else
2209
2375
  ;;
2210
2376
 
2211
2377
openbsd*)
2212
 
  lt_cv_file_magic_cmd=/usr/bin/file
2213
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2214
2378
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2215
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
 
2379
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2216
2380
  else
2217
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
2381
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2218
2382
  fi
2219
2383
  ;;
2220
2384
 
2222
2386
  lt_cv_deplibs_check_method=pass_all
2223
2387
  ;;
2224
2388
 
2225
 
sco3.2v5*)
2226
 
  lt_cv_deplibs_check_method=pass_all
2227
 
  ;;
2228
 
 
2229
2389
solaris*)
2230
2390
  lt_cv_deplibs_check_method=pass_all
2231
2391
  ;;
2232
2392
 
2233
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
2393
sysv4 | sysv4.3*)
2234
2394
  case $host_vendor in
2235
2395
  motorola)
2236
2396
    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]]'
2251
2411
  siemens)
2252
2412
    lt_cv_deplibs_check_method=pass_all
2253
2413
    ;;
 
2414
  pc)
 
2415
    lt_cv_deplibs_check_method=pass_all
 
2416
    ;;
2254
2417
  esac
2255
2418
  ;;
2256
2419
 
2257
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
 
2420
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2258
2421
  lt_cv_deplibs_check_method=pass_all
2259
2422
  ;;
2260
2423
esac
2274
2437
  # Let the user override the test.
2275
2438
  lt_cv_path_NM="$NM"
2276
2439
else
2277
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2278
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2279
 
    IFS="$lt_save_ifs"
2280
 
    test -z "$ac_dir" && ac_dir=.
2281
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2282
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2283
 
      # Check to see if the nm accepts a BSD-compat flag.
2284
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2285
 
      #   nm: unknown option "B" ignored
2286
 
      # Tru64's nm complains that /dev/null is an invalid object file
2287
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2288
 
      */dev/null* | *'Invalid file or object type'*)
2289
 
        lt_cv_path_NM="$tmp_nm -B"
2290
 
        break
2291
 
        ;;
2292
 
      *)
2293
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2294
 
        */dev/null*)
2295
 
          lt_cv_path_NM="$tmp_nm -p"
 
2440
  lt_nm_to_check="${ac_tool_prefix}nm"
 
2441
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
2442
    lt_nm_to_check="$lt_nm_to_check nm"
 
2443
  fi
 
2444
  for lt_tmp_nm in $lt_nm_to_check; do
 
2445
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2446
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
2447
      IFS="$lt_save_ifs"
 
2448
      test -z "$ac_dir" && ac_dir=.
 
2449
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
2450
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
2451
        # Check to see if the nm accepts a BSD-compat flag.
 
2452
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
2453
        #   nm: unknown option "B" ignored
 
2454
        # Tru64's nm complains that /dev/null is an invalid object file
 
2455
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
2456
        */dev/null* | *'Invalid file or object type'*)
 
2457
          lt_cv_path_NM="$tmp_nm -B"
2296
2458
          break
2297
2459
          ;;
2298
2460
        *)
2299
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2300
 
          continue # so that we can try to find one that supports BSD flags
 
2461
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
2462
          */dev/null*)
 
2463
            lt_cv_path_NM="$tmp_nm -p"
 
2464
            break
 
2465
            ;;
 
2466
          *)
 
2467
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2468
            continue # so that we can try to find one that supports BSD flags
 
2469
            ;;
 
2470
          esac
2301
2471
          ;;
2302
2472
        esac
2303
 
      esac
2304
 
    fi
 
2473
      fi
 
2474
    done
 
2475
    IFS="$lt_save_ifs"
2305
2476
  done
2306
 
  IFS="$lt_save_ifs"
2307
2477
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2308
2478
fi])
2309
2479
NM="$lt_cv_path_NM"
2335
2505
# -----------------------------------
2336
2506
# sets LIBLTDL to the link flags for the libltdl convenience library and
2337
2507
# LTDLINCL to the include flags for the libltdl header and adds
2338
 
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
2339
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
2340
 
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
2341
 
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
2342
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
2343
 
# flat and you're not using automake, define top_builddir and
2344
 
# top_srcdir appropriately in the Makefiles.
 
2508
# --enable-ltdl-convenience to the configure arguments.  Note that
 
2509
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2510
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
2511
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
2512
# (note the single quotes!).  If your package is not flat and you're not
 
2513
# using automake, define top_builddir and top_srcdir appropriately in
 
2514
# the Makefiles.
2345
2515
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2346
2516
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2347
2517
  case $enable_ltdl_convenience in
2360
2530
# -----------------------------------
2361
2531
# sets LIBLTDL to the link flags for the libltdl installable library and
2362
2532
# LTDLINCL to the include flags for the libltdl header and adds
2363
 
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
2364
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
2365
 
# DIRECTORY is not provided and an installed libltdl is not found, it is
2366
 
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
2367
 
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
2368
 
# quotes!).  If your package is not flat and you're not using automake,
2369
 
# define top_builddir and top_srcdir appropriately in the Makefiles.
 
2533
# --enable-ltdl-install to the configure arguments.  Note that
 
2534
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
2535
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
2536
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
2537
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
2538
# flat and you're not using automake, define top_builddir and top_srcdir
 
2539
# appropriately in the Makefiles.
2370
2540
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2371
2541
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2372
2542
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2404
2574
# ---------------
2405
2575
AC_DEFUN([_LT_AC_LANG_CXX],
2406
2576
[AC_REQUIRE([AC_PROG_CXX])
2407
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
2577
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2408
2578
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2409
2579
])# _LT_AC_LANG_CXX
2410
2580
 
 
2581
# _LT_AC_PROG_CXXCPP
 
2582
# ------------------
 
2583
AC_DEFUN([_LT_AC_PROG_CXXCPP],
 
2584
[
 
2585
AC_REQUIRE([AC_PROG_CXX])
 
2586
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
2587
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
2588
    (test "X$CXX" != "Xg++"))) ; then
 
2589
  AC_PROG_CXXCPP
 
2590
fi
 
2591
])# _LT_AC_PROG_CXXCPP
2411
2592
 
2412
2593
# AC_LIBTOOL_F77
2413
2594
# --------------
2447
2628
 
2448
2629
 
2449
2630
# AC_LIBTOOL_RC
2450
 
# --------------
 
2631
# -------------
2451
2632
# enable support for Windows resource files
2452
2633
AC_DEFUN([AC_LIBTOOL_RC],
2453
2634
[AC_REQUIRE([LT_AC_PROG_RC])
2480
2661
 
2481
2662
_LT_AC_SYS_COMPILER
2482
2663
 
2483
 
#
2484
 
# Check for any special shared library compilation flags.
2485
 
#
2486
 
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2487
 
if test "$GCC" = no; then
2488
 
  case $host_os in
2489
 
  sco3.2v5*)
2490
 
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2491
 
    ;;
2492
 
  esac
2493
 
fi
2494
 
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2495
 
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2496
 
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
2497
 
  else
2498
 
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2499
 
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2500
 
  fi
2501
 
fi
2502
 
 
2503
 
 
2504
 
#
2505
 
# Check to make sure the static flag actually works.
2506
 
#
2507
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2508
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2509
 
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2510
 
  [],
2511
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2512
 
 
 
2664
# save warnings/boilerplate of simple test code
 
2665
_LT_COMPILER_BOILERPLATE
 
2666
_LT_LINKER_BOILERPLATE
2513
2667
 
2514
2668
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2515
2669
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2519
2673
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2520
2674
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2521
2675
AC_LIBTOOL_SYS_LIB_STRIP
2522
 
AC_LIBTOOL_DLOPEN_SELF($1)
 
2676
AC_LIBTOOL_DLOPEN_SELF
2523
2677
 
2524
 
# Report which librarie types wil actually be built
 
2678
# Report which library types will actually be built
2525
2679
AC_MSG_CHECKING([if libtool supports shared libraries])
2526
2680
AC_MSG_RESULT([$can_build_shared])
2527
2681
 
2530
2684
 
2531
2685
# On AIX, shared libraries and static libraries use the same namespace, and
2532
2686
# are all built from PIC.
2533
 
case "$host_os" in
 
2687
case $host_os in
2534
2688
aix3*)
2535
2689
  test "$enable_shared" = yes && enable_static=no
2536
2690
  if test -n "$RANLIB"; then
2543
2697
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2544
2698
    test "$enable_shared" = yes && enable_static=no
2545
2699
  fi
2546
 
  ;;
2547
 
  darwin* | rhapsody*)
2548
 
  if test "$GCC" = yes; then
2549
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2550
 
    case "$host_os" in
2551
 
    rhapsody* | darwin1.[[012]])
2552
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2553
 
      ;;
2554
 
    *) # Darwin 1.3 on
2555
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2556
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2557
 
      else
2558
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
2559
 
          10.[[012]])
2560
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2561
 
            ;;
2562
 
          10.*)
2563
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2564
 
            ;;
2565
 
        esac
2566
 
      fi
2567
 
      ;;
2568
 
    esac
2569
 
    output_verbose_link_cmd='echo'
2570
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
2571
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2572
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2573
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2574
 
    _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}'
2575
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
2576
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2577
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2578
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2579
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2580
 
  else
2581
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2582
 
  fi
2583
2700
    ;;
2584
2701
esac
2585
2702
AC_MSG_RESULT([$enable_shared])
2605
2722
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2606
2723
[AC_LANG_PUSH(C++)
2607
2724
AC_REQUIRE([AC_PROG_CXX])
2608
 
AC_REQUIRE([AC_PROG_CXXCPP])
 
2725
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2609
2726
 
2610
2727
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2611
2728
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2617
2734
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2618
2735
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2619
2736
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
2737
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2620
2738
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2621
2739
_LT_AC_TAGVAR(module_cmds, $1)=
2622
2740
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2634
2752
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2635
2753
 
2636
2754
# Source file extension for C++ test sources.
2637
 
ac_ext=cc
 
2755
ac_ext=cpp
2638
2756
 
2639
2757
# Object file extension for compiled C++ test sources.
2640
2758
objext=o
2644
2762
lt_simple_compile_test_code="int some_variable = 0;\n"
2645
2763
 
2646
2764
# Code to be used in simple link tests
2647
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
2765
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2648
2766
 
2649
2767
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2650
2768
_LT_AC_SYS_COMPILER
2651
2769
 
 
2770
# save warnings/boilerplate of simple test code
 
2771
_LT_COMPILER_BOILERPLATE
 
2772
_LT_LINKER_BOILERPLATE
 
2773
 
2652
2774
# Allow CC to be a program name with arguments.
2653
2775
lt_save_CC=$CC
2654
2776
lt_save_LD=$LD
2659
2781
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2660
2782
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2661
2783
else
2662
 
  unset lt_cv_prog_gnu_ld
 
2784
  $as_unset lt_cv_prog_gnu_ld
2663
2785
fi
2664
2786
if test -n "${lt_cv_path_LDCXX+set}"; then
2665
2787
  lt_cv_path_LD=$lt_cv_path_LDCXX
2666
2788
else
2667
 
  unset lt_cv_path_LD
 
2789
  $as_unset lt_cv_path_LD
2668
2790
fi
2669
2791
test -z "${LDCXX+set}" || LD=$LDCXX
2670
2792
CC=${CXX-"c++"}
2671
2793
compiler=$CC
2672
2794
_LT_AC_TAGVAR(compiler, $1)=$CC
2673
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
2795
_LT_CC_BASENAME([$compiler])
2674
2796
 
2675
2797
# We don't want -fno-exception wen compiling C++ code, so set the
2676
2798
# no_builtin_flag separately
2759
2881
            ;;
2760
2882
          esac
2761
2883
        done
 
2884
        ;;
2762
2885
      esac
2763
2886
 
2764
2887
      exp_sym_flag='-bexport'
2777
2900
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2778
2901
 
2779
2902
    if test "$GXX" = yes; then
2780
 
      case $host_os in aix4.[012]|aix4.[012].*)
 
2903
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
2781
2904
      # We only want to do this on AIX 4.2 and lower, the check
2782
2905
      # below for broken collect2 doesn't work under 4.3+
2783
2906
        collect2name=`${CC} -print-prog-name=collect2`
2796
2919
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2797
2920
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2798
2921
        fi
 
2922
        ;;
2799
2923
      esac
2800
2924
      shared_flag='-shared'
 
2925
      if test "$aix_use_runtimelinking" = yes; then
 
2926
        shared_flag="$shared_flag "'${wl}-G'
 
2927
      fi
2801
2928
    else
2802
2929
      # not using gcc
2803
2930
      if test "$host_cpu" = ia64; then
2824
2951
      _LT_AC_SYS_LIBPATH_AIX
2825
2952
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2826
2953
 
2827
 
      _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"
 
2954
      _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"
2828
2955
     else
2829
2956
      if test "$host_cpu" = ia64; then
2830
2957
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2831
2958
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2832
 
        _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"
 
2959
        _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"
2833
2960
      else
2834
2961
        # Determine the default libpath from the value encoded in an empty executable.
2835
2962
        _LT_AC_SYS_LIBPATH_AIX
2838
2965
        # -berok will link without error, but may produce a broken library.
2839
2966
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2840
2967
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2841
 
        # -bexpall does not export symbols beginning with underscore (_)
2842
 
        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2843
2968
        # Exported symbols can be pulled into shared objects from archives
2844
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
2969
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2845
2970
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2846
 
        # This is similar to how AIX traditionally builds it's shared libraries.
2847
 
        _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'
 
2971
        # This is similar to how AIX traditionally builds its shared libraries.
 
2972
        _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'
2848
2973
      fi
2849
2974
    fi
2850
2975
    ;;
 
2976
 
 
2977
  beos*)
 
2978
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
2979
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
2980
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
2981
      # support --undefined.  This deserves some investigation.  FIXME
 
2982
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
2983
    else
 
2984
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
2985
    fi
 
2986
    ;;
 
2987
 
2851
2988
  chorus*)
2852
2989
    case $cc_basename in
2853
2990
      *)
2866
3003
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
2867
3004
 
2868
3005
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
2869
 
      _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'
 
3006
      _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'
2870
3007
      # If the export-symbols file already is a .def file (1st line
2871
3008
      # is EXPORTS), use it as is; otherwise, prepend...
2872
3009
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
2875
3012
        echo EXPORTS > $output_objdir/$soname.def;
2876
3013
        cat $export_symbols >> $output_objdir/$soname.def;
2877
3014
      fi~
2878
 
      $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'
 
3015
      $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'
2879
3016
    else
2880
3017
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2881
3018
    fi
2882
3019
  ;;
2883
 
 
2884
 
  darwin* | rhapsody*)
2885
 
  if test "$GXX" = yes; then
2886
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2887
 
    case "$host_os" in
2888
 
    rhapsody* | darwin1.[[012]])
2889
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2890
 
      ;;
2891
 
    *) # Darwin 1.3 on
2892
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2893
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2894
 
      else
2895
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
2896
 
          10.[[012]])
2897
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2898
 
            ;;
2899
 
          10.*)
2900
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
2901
 
            ;;
 
3020
      darwin* | rhapsody*)
 
3021
        case $host_os in
 
3022
        rhapsody* | darwin1.[[012]])
 
3023
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
3024
         ;;
 
3025
       *) # Darwin 1.3 on
 
3026
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
3027
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
3028
         else
 
3029
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
3030
             10.[[012]])
 
3031
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
3032
               ;;
 
3033
             10.*)
 
3034
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
3035
               ;;
 
3036
           esac
 
3037
         fi
 
3038
         ;;
2902
3039
        esac
2903
 
      fi
2904
 
      ;;
2905
 
    esac
2906
 
    lt_int_apple_cc_single_mod=no
2907
 
    output_verbose_link_cmd='echo'
2908
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
2909
 
      lt_int_apple_cc_single_mod=yes
2910
 
    fi
2911
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2912
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2913
 
    else
2914
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2915
 
    fi
2916
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3040
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3041
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3042
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
3043
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
3044
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
3045
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2917
3046
 
2918
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2919
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2920
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2921
 
    else
2922
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2923
 
    fi
2924
 
    _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}'
2925
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
2926
 
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2927
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2928
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2929
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2930
 
  else
2931
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2932
 
  fi
2933
 
    ;;
 
3047
    if test "$GXX" = yes ; then
 
3048
      lt_int_apple_cc_single_mod=no
 
3049
      output_verbose_link_cmd='echo'
 
3050
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
3051
       lt_int_apple_cc_single_mod=yes
 
3052
      fi
 
3053
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3054
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3055
      else
 
3056
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3057
        fi
 
3058
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3059
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3060
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3061
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3062
          else
 
3063
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3064
          fi
 
3065
            _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}'
 
3066
      else
 
3067
      case $cc_basename in
 
3068
        xlc*)
 
3069
         output_verbose_link_cmd='echo'
 
3070
          _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'
 
3071
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3072
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3073
          _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}'
 
3074
          _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}'
 
3075
          ;;
 
3076
       *)
 
3077
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3078
          ;;
 
3079
      esac
 
3080
      fi
 
3081
        ;;
2934
3082
 
2935
3083
  dgux*)
2936
3084
    case $cc_basename in
2937
 
      ec++)
 
3085
      ec++*)
2938
3086
        # FIXME: insert proper C++ library support
2939
3087
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
2940
3088
        ;;
2941
 
      ghcx)
 
3089
      ghcx*)
2942
3090
        # Green Hills C++ Compiler
2943
3091
        # FIXME: insert proper C++ library support
2944
3092
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
2949
3097
        ;;
2950
3098
    esac
2951
3099
    ;;
2952
 
  freebsd[12]*)
 
3100
  freebsd[[12]]*)
2953
3101
    # C++ shared libraries reported to be fairly broken before switch to ELF
2954
3102
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
2955
3103
    ;;
2956
3104
  freebsd-elf*)
2957
3105
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2958
3106
    ;;
2959
 
  freebsd* | kfreebsd*-gnu)
 
3107
  freebsd* | dragonfly*)
2960
3108
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
2961
3109
    # conventions
2962
3110
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2973
3121
                                # location of the library.
2974
3122
 
2975
3123
    case $cc_basename in
2976
 
    CC)
 
3124
    CC*)
2977
3125
      # FIXME: insert proper C++ library support
2978
3126
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
2979
3127
      ;;
2980
 
    aCC)
 
3128
    aCC*)
2981
3129
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
2982
3130
      # Commands to make compiler produce verbose output that lists
2983
3131
      # what "hidden" libraries, object files and flags are used when
2987
3135
      # explicitly linking system object files so we need to strip them
2988
3136
      # from the output so that they don't get included in the library
2989
3137
      # dependencies.
2990
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
3138
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
2991
3139
      ;;
2992
3140
    *)
2993
3141
      if test "$GXX" = yes; then
3001
3149
    ;;
3002
3150
  hpux10*|hpux11*)
3003
3151
    if test $with_gnu_ld = no; then
3004
 
      case "$host_cpu" in
3005
 
      hppa*64*)
3006
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3152
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3153
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3154
 
 
3155
      case $host_cpu in
 
3156
      hppa*64*|ia64*)
3007
3157
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3008
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3009
 
        ;;
3010
 
      ia64*)
3011
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3012
3158
        ;;
3013
3159
      *)
3014
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3015
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3016
3160
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3017
3161
        ;;
3018
3162
      esac
3019
3163
    fi
3020
 
    case "$host_cpu" in
3021
 
    hppa*64*)
3022
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3023
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3024
 
      ;;
3025
 
    ia64*)
3026
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3027
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3028
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3029
 
                                              # but as the default
3030
 
                                              # location of the library.
 
3164
    case $host_cpu in
 
3165
    hppa*64*|ia64*)
 
3166
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3167
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3031
3168
      ;;
3032
3169
    *)
3033
3170
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3038
3175
    esac
3039
3176
 
3040
3177
    case $cc_basename in
3041
 
      CC)
 
3178
      CC*)
3042
3179
        # FIXME: insert proper C++ library support
3043
3180
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3044
3181
        ;;
3045
 
      aCC)
3046
 
        case "$host_cpu" in
3047
 
        hppa*64*|ia64*)
3048
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3182
      aCC*)
 
3183
        case $host_cpu in
 
3184
        hppa*64*)
 
3185
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3186
          ;;
 
3187
        ia64*)
 
3188
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3049
3189
          ;;
3050
3190
        *)
3051
3191
          _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'
3064
3204
      *)
3065
3205
        if test "$GXX" = yes; then
3066
3206
          if test $with_gnu_ld = no; then
3067
 
            case "$host_cpu" in
3068
 
            ia64*|hppa*64*)
3069
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
3207
            case $host_cpu in
 
3208
            hppa*64*)
 
3209
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3210
              ;;
 
3211
            ia64*)
 
3212
              _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'
3070
3213
              ;;
3071
3214
            *)
3072
3215
              _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'
3080
3223
        ;;
3081
3224
    esac
3082
3225
    ;;
 
3226
  interix3*)
 
3227
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3228
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3229
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3230
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3231
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
3232
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
3233
    # default) and relocated if they conflict, which is a slow very memory
 
3234
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
3235
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
3236
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
3237
    _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'
 
3238
    _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'
 
3239
    ;;
3083
3240
  irix5* | irix6*)
3084
3241
    case $cc_basename in
3085
 
      CC)
 
3242
      CC*)
3086
3243
        # SGI C++
3087
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
3244
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3088
3245
 
3089
3246
        # Archives containing C++ object files must be created using
3090
3247
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
3095
3252
      *)
3096
3253
        if test "$GXX" = yes; then
3097
3254
          if test "$with_gnu_ld" = no; then
3098
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
3255
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3099
3256
          else
3100
3257
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3101
3258
          fi
3106
3263
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3107
3264
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3108
3265
    ;;
3109
 
  linux*)
 
3266
  linux* | k*bsd*-gnu)
3110
3267
    case $cc_basename in
3111
 
      KCC)
 
3268
      KCC*)
3112
3269
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3113
3270
 
3114
3271
        # KCC will only create a shared library if the output file
3133
3290
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3134
3291
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3135
3292
        ;;
3136
 
      icpc)
 
3293
      icpc*)
3137
3294
        # Intel C++
3138
3295
        with_gnu_ld=yes
 
3296
        # version 8.0 and above of icpc choke on multiply defined symbols
 
3297
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
3298
        # earlier do not add the objects themselves.
 
3299
        case `$CC -V 2>&1` in
 
3300
        *"Version 7."*)
 
3301
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3302
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3303
          ;;
 
3304
        *)  # Version 8.0 or newer
 
3305
          tmp_idyn=
 
3306
          case $host_cpu in
 
3307
            ia64*) tmp_idyn=' -i_dynamic';;
 
3308
          esac
 
3309
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3310
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3311
          ;;
 
3312
        esac
3139
3313
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3140
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3141
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3142
3314
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3143
3315
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3144
3316
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3145
3317
        ;;
3146
 
      cxx)
 
3318
      pgCC*)
 
3319
        # Portland Group C++ compiler
 
3320
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
3321
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
3322
 
 
3323
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
3324
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3325
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
3326
        ;;
 
3327
      cxx*)
3147
3328
        # Compaq C++
3148
3329
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3149
3330
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
3174
3355
    ;;
3175
3356
  mvs*)
3176
3357
    case $cc_basename in
3177
 
      cxx)
 
3358
      cxx*)
3178
3359
        # FIXME: insert proper C++ library support
3179
3360
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3180
3361
        ;;
3184
3365
        ;;
3185
3366
    esac
3186
3367
    ;;
3187
 
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
3368
  netbsd* | netbsdelf*-gnu)
3188
3369
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3189
3370
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3190
3371
      wlarc=
3195
3376
    # Workaround some broken pre-1.5 toolchains
3196
3377
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3197
3378
    ;;
 
3379
  openbsd2*)
 
3380
    # C++ shared libraries are fairly broken
 
3381
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3382
    ;;
 
3383
  openbsd*)
 
3384
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3385
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3386
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3387
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
3388
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3389
      _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'
 
3390
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3391
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3392
    fi
 
3393
    output_verbose_link_cmd='echo'
 
3394
    ;;
3198
3395
  osf3*)
3199
3396
    case $cc_basename in
3200
 
      KCC)
 
3397
      KCC*)
3201
3398
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3202
3399
 
3203
3400
        # KCC will only create a shared library if the output file
3213
3410
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3214
3411
 
3215
3412
        ;;
3216
 
      RCC)
 
3413
      RCC*)
3217
3414
        # Rational C++ 2.4.1
3218
3415
        # FIXME: insert proper C++ library support
3219
3416
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3220
3417
        ;;
3221
 
      cxx)
 
3418
      cxx*)
3222
3419
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3223
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
3420
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3224
3421
 
3225
3422
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3226
3423
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3238
3435
      *)
3239
3436
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3240
3437
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3241
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
3438
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3242
3439
 
3243
3440
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3244
3441
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3257
3454
    ;;
3258
3455
  osf4* | osf5*)
3259
3456
    case $cc_basename in
3260
 
      KCC)
 
3457
      KCC*)
3261
3458
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3262
3459
 
3263
3460
        # KCC will only create a shared library if the output file
3272
3469
        # the KAI C++ compiler.
3273
3470
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3274
3471
        ;;
3275
 
      RCC)
 
3472
      RCC*)
3276
3473
        # Rational C++ 2.4.1
3277
3474
        # FIXME: insert proper C++ library support
3278
3475
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3279
3476
        ;;
3280
 
      cxx)
 
3477
      cxx*)
3281
3478
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3282
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
3479
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3283
3480
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3284
3481
          echo "-hidden">> $lib.exp~
3285
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
3482
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
3286
3483
          $rm $lib.exp'
3287
3484
 
3288
3485
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3301
3498
      *)
3302
3499
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3303
3500
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3304
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
3501
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3305
3502
 
3306
3503
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3307
3504
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3322
3519
    # FIXME: insert proper C++ library support
3323
3520
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3324
3521
    ;;
3325
 
  sco*)
3326
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3327
 
    case $cc_basename in
3328
 
      CC)
3329
 
        # FIXME: insert proper C++ library support
3330
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3331
 
        ;;
3332
 
      *)
3333
 
        # FIXME: insert proper C++ library support
3334
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3335
 
        ;;
3336
 
    esac
3337
 
    ;;
3338
3522
  sunos4*)
3339
3523
    case $cc_basename in
3340
 
      CC)
 
3524
      CC*)
3341
3525
        # Sun C++ 4.x
3342
3526
        # FIXME: insert proper C++ library support
3343
3527
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3344
3528
        ;;
3345
 
      lcc)
 
3529
      lcc*)
3346
3530
        # Lucid
3347
3531
        # FIXME: insert proper C++ library support
3348
3532
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3355
3539
    ;;
3356
3540
  solaris*)
3357
3541
    case $cc_basename in
3358
 
      CC)
 
3542
      CC*)
3359
3543
        # Sun C++ 4.2, 5.x and Centerline C++
 
3544
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3360
3545
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3361
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
3546
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3362
3547
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3363
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
3548
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3364
3549
 
3365
3550
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3366
3551
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3367
3552
        case $host_os in
3368
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
3553
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3369
3554
          *)
3370
3555
            # The C++ compiler is used as linker so we must use $wl
3371
3556
            # flag to pass the commands to the underlying system
3372
 
            # linker.
 
3557
            # linker. We must also pass each convience library through
 
3558
            # to the system linker between allextract/defaultextract.
 
3559
            # The C++ compiler will combine linker options so we
 
3560
            # cannot just pass the convience library names through
 
3561
            # without $wl.
3373
3562
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3374
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
3563
            _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'
3375
3564
            ;;
3376
3565
        esac
3377
3566
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3378
3567
 
3379
 
        # Commands to make compiler produce verbose output that lists
3380
 
        # what "hidden" libraries, object files and flags are used when
3381
 
        # linking a shared library.
3382
 
        #
3383
 
        # There doesn't appear to be a way to prevent this compiler from
3384
 
        # explicitly linking system object files so we need to strip them
3385
 
        # from the output so that they don't get included in the library
3386
 
        # dependencies.
3387
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
3568
        output_verbose_link_cmd='echo'
3388
3569
 
3389
3570
        # Archives containing C++ object files must be created using
3390
3571
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3392
3573
        # in the archive.
3393
3574
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3394
3575
        ;;
3395
 
      gcx)
 
3576
      gcx*)
3396
3577
        # Green Hills C++ Compiler
3397
3578
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3398
3579
 
3430
3611
        ;;
3431
3612
    esac
3432
3613
    ;;
3433
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3434
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3614
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
3615
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3616
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3617
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3618
    runpath_var='LD_RUN_PATH'
 
3619
 
 
3620
    case $cc_basename in
 
3621
      CC*)
 
3622
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3623
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3624
        ;;
 
3625
      *)
 
3626
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3627
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3628
        ;;
 
3629
    esac
 
3630
    ;;
 
3631
  sysv5* | sco3.2v5* | sco5v6*)
 
3632
    # Note: We can NOT use -z defs as we might desire, because we do not
 
3633
    # link with -lc, and that would cause any symbols used from libc to
 
3634
    # always be unresolved, which means just about no library would
 
3635
    # ever link correctly.  If we're not using GNU ld we use -z text
 
3636
    # though, which does catch some bad symbols but isn't as heavy-handed
 
3637
    # as -z defs.
 
3638
    # For security reasons, it is highly recommended that you always
 
3639
    # use absolute paths for naming shared libraries, and exclude the
 
3640
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
3641
    # requires that you compile everything twice, which is a pain.
 
3642
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
3643
    # non-empty value in the environment.  Most likely only useful for
 
3644
    # creating official distributions of packages.
 
3645
    # This is a hack until libtool officially supports absolute path
 
3646
    # names for shared libraries.
 
3647
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
3648
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
3649
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3650
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3651
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
3652
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
3653
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3654
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
3655
    runpath_var='LD_RUN_PATH'
 
3656
 
 
3657
    case $cc_basename in
 
3658
      CC*)
 
3659
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3660
        _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'
 
3661
        ;;
 
3662
      *)
 
3663
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
3664
        _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'
 
3665
        ;;
 
3666
    esac
3435
3667
    ;;
3436
3668
  tandem*)
3437
3669
    case $cc_basename in
3438
 
      NCC)
 
3670
      NCC*)
3439
3671
        # NonStop-UX NCC 3.20
3440
3672
        # FIXME: insert proper C++ library support
3441
3673
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3468
3700
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3469
3701
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3470
3702
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3471
 
AC_LIBTOOL_SYS_LIB_STRIP
3472
 
AC_LIBTOOL_DLOPEN_SELF($1)
3473
3703
 
3474
3704
AC_LIBTOOL_CONFIG($1)
3475
3705
 
3487
3717
])# AC_LIBTOOL_LANG_CXX_CONFIG
3488
3718
 
3489
3719
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3490
 
# ------------------------
 
3720
# ------------------------------------
3491
3721
# Figure out "hidden" library dependencies from verbose
3492
3722
# compiler output when linking a shared library.
3493
3723
# Parse the compiler output and extract the necessary
3541
3771
  # The `*' in the case matches for architectures that use `case' in
3542
3772
  # $output_verbose_cmd can trigger glob expansion during the loop
3543
3773
  # eval without this substitution.
3544
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
3774
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3545
3775
 
3546
3776
  for p in `eval $output_verbose_link_cmd`; do
3547
3777
    case $p in
3617
3847
 
3618
3848
$rm -f confest.$objext
3619
3849
 
 
3850
# PORTME: override above test on systems where it is broken
 
3851
ifelse([$1],[CXX],
 
3852
[case $host_os in
 
3853
interix3*)
 
3854
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
3855
  # hack all around it, let's just trust "g++" to DTRT.
 
3856
  _LT_AC_TAGVAR(predep_objects,$1)=
 
3857
  _LT_AC_TAGVAR(postdep_objects,$1)=
 
3858
  _LT_AC_TAGVAR(postdeps,$1)=
 
3859
  ;;
 
3860
 
 
3861
solaris*)
 
3862
  case $cc_basename in
 
3863
  CC*)
 
3864
    # Adding this requires a known-good setup of shared libraries for
 
3865
    # Sun compiler versions before 5.6, else PIC objects from an old
 
3866
    # archive will be linked into the output, leading to subtle bugs.
 
3867
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
3868
    ;;
 
3869
  esac
 
3870
  ;;
 
3871
esac
 
3872
])
 
3873
 
3620
3874
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3621
3875
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3622
3876
esac
3623
3877
])# AC_LIBTOOL_POSTDEP_PREDEP
3624
3878
 
3625
3879
# AC_LIBTOOL_LANG_F77_CONFIG
3626
 
# ------------------------
 
3880
# --------------------------
3627
3881
# Ensure that the configuration vars for the C compiler are
3628
3882
# suitably defined.  Those variables are subsequently used by
3629
3883
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3667
3921
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3668
3922
_LT_AC_SYS_COMPILER
3669
3923
 
 
3924
# save warnings/boilerplate of simple test code
 
3925
_LT_COMPILER_BOILERPLATE
 
3926
_LT_LINKER_BOILERPLATE
 
3927
 
3670
3928
# Allow CC to be a program name with arguments.
3671
3929
lt_save_CC="$CC"
3672
3930
CC=${F77-"f77"}
3673
3931
compiler=$CC
3674
3932
_LT_AC_TAGVAR(compiler, $1)=$CC
3675
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
3933
_LT_CC_BASENAME([$compiler])
3676
3934
 
3677
3935
AC_MSG_CHECKING([if libtool supports shared libraries])
3678
3936
AC_MSG_RESULT([$can_build_shared])
3682
3940
 
3683
3941
# On AIX, shared libraries and static libraries use the same namespace, and
3684
3942
# are all built from PIC.
3685
 
case "$host_os" in
 
3943
case $host_os in
3686
3944
aix3*)
3687
3945
  test "$enable_shared" = yes && enable_static=no
3688
3946
  if test -n "$RANLIB"; then
3691
3949
  fi
3692
3950
  ;;
3693
3951
aix4* | aix5*)
3694
 
  test "$enable_shared" = yes && enable_static=no
 
3952
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
3953
    test "$enable_shared" = yes && enable_static=no
 
3954
  fi
3695
3955
  ;;
3696
3956
esac
3697
3957
AC_MSG_RESULT([$enable_shared])
3701
3961
test "$enable_shared" = yes || enable_static=yes
3702
3962
AC_MSG_RESULT([$enable_static])
3703
3963
 
3704
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3705
 
 
3706
3964
_LT_AC_TAGVAR(GCC, $1)="$G77"
3707
3965
_LT_AC_TAGVAR(LD, $1)="$LD"
3708
3966
 
3712
3970
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3713
3971
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3714
3972
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3715
 
AC_LIBTOOL_SYS_LIB_STRIP
3716
 
 
3717
3973
 
3718
3974
AC_LIBTOOL_CONFIG($1)
3719
3975
 
3742
3998
lt_simple_compile_test_code="class foo {}\n"
3743
3999
 
3744
4000
# Code to be used in simple link tests
3745
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
4001
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
3746
4002
 
3747
4003
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3748
4004
_LT_AC_SYS_COMPILER
3749
4005
 
 
4006
# save warnings/boilerplate of simple test code
 
4007
_LT_COMPILER_BOILERPLATE
 
4008
_LT_LINKER_BOILERPLATE
 
4009
 
3750
4010
# Allow CC to be a program name with arguments.
3751
4011
lt_save_CC="$CC"
3752
4012
CC=${GCJ-"gcj"}
3753
4013
compiler=$CC
3754
4014
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4015
_LT_CC_BASENAME([$compiler])
3755
4016
 
3756
4017
# GCJ did not exist at the time GCC didn't implicitly link libc in.
3757
4018
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3758
4019
 
 
4020
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
4021
 
3759
4022
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3760
4023
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3761
4024
AC_LIBTOOL_PROG_CC_C_O($1)
3763
4026
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3764
4027
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3765
4028
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3766
 
AC_LIBTOOL_SYS_LIB_STRIP
3767
 
AC_LIBTOOL_DLOPEN_SELF($1)
3768
4029
 
3769
4030
AC_LIBTOOL_CONFIG($1)
3770
4031
 
3774
4035
 
3775
4036
 
3776
4037
# AC_LIBTOOL_LANG_RC_CONFIG
3777
 
# --------------------------
 
4038
# -------------------------
3778
4039
# Ensure that the configuration vars for the Windows resource compiler are
3779
4040
# suitably defined.  Those variables are subsequently used by
3780
4041
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3798
4059
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3799
4060
_LT_AC_SYS_COMPILER
3800
4061
 
 
4062
# save warnings/boilerplate of simple test code
 
4063
_LT_COMPILER_BOILERPLATE
 
4064
_LT_LINKER_BOILERPLATE
 
4065
 
3801
4066
# Allow CC to be a program name with arguments.
3802
4067
lt_save_CC="$CC"
3803
4068
CC=${RC-"windres"}
3804
4069
compiler=$CC
3805
4070
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4071
_LT_CC_BASENAME([$compiler])
3806
4072
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3807
4073
 
3808
4074
AC_LIBTOOL_CONFIG($1)
3832
4098
  # Now quote all the things that may contain metacharacters while being
3833
4099
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
3834
4100
  # variables and quote the copies for generation of the libtool script.
3835
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
4101
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
3836
4102
    SED SHELL STRIP \
3837
4103
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
3838
4104
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
3938
4204
#
3939
4205
# You should have received a copy of the GNU General Public License
3940
4206
# along with this program; if not, write to the Free Software
3941
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
4207
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
3942
4208
#
3943
4209
# As a special exception to the GNU General Public License, if you
3944
4210
# distribute this file as part of a program that contains a
3949
4215
SED=$lt_SED
3950
4216
 
3951
4217
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
3952
 
Xsed="$SED -e s/^X//"
 
4218
Xsed="$SED -e 1s/^X//"
3953
4219
 
3954
4220
# The HP-UX ksh and POSIX shell print the target directory to stdout
3955
4221
# if CDPATH is set.
3956
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
4222
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3957
4223
 
3958
4224
# The names of the tagged configurations supported by this script.
3959
4225
available_tags=
3984
4250
# The host system.
3985
4251
host_alias=$host_alias
3986
4252
host=$host
 
4253
host_os=$host_os
 
4254
 
 
4255
# The build system.
 
4256
build_alias=$build_alias
 
4257
build=$build
 
4258
build_os=$build_os
3987
4259
 
3988
4260
# An echo program that does not interpret backslashes.
3989
4261
echo=$lt_echo
3995
4267
# A C compiler.
3996
4268
LTCC=$lt_LTCC
3997
4269
 
 
4270
# LTCC compiler flags.
 
4271
LTCFLAGS=$lt_LTCFLAGS
 
4272
 
3998
4273
# A language-specific compiler.
3999
4274
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4000
4275
 
4060
4335
# Does compiler simultaneously support -c and -o options?
4061
4336
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4062
4337
 
4063
 
# Must we lock files when doing compilation ?
 
4338
# Must we lock files when doing compilation?
4064
4339
need_locks=$lt_need_locks
4065
4340
 
4066
4341
# Do we need the lib prefix for modules?
4334
4609
# Regexp to match symbols that can be accessed directly from C.
4335
4610
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4336
4611
 
4337
 
# Transform the above into a raw symbol and a C symbol.
4338
 
symxfrm='\1 \2\3 \3'
4339
 
 
4340
4612
# Transform an extracted symbol line into a proper C declaration
4341
4613
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4342
4614
 
4358
4630
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4359
4631
  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'"
4360
4632
  ;;
 
4633
linux* | k*bsd*-gnu)
 
4634
  if test "$host_cpu" = ia64; then
 
4635
    symcode='[[ABCDGIRSTW]]'
 
4636
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4637
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
4638
  fi
 
4639
  ;;
4361
4640
irix* | nonstopux*)
4362
4641
  symcode='[[BCDEGRST]]'
4363
4642
  ;;
4364
4643
osf*)
4365
4644
  symcode='[[BCDEGQRST]]'
4366
4645
  ;;
4367
 
solaris* | sysv5*)
 
4646
solaris*)
4368
4647
  symcode='[[BDRT]]'
4369
4648
  ;;
 
4649
sco3.2v5*)
 
4650
  symcode='[[DT]]'
 
4651
  ;;
 
4652
sysv4.2uw2*)
 
4653
  symcode='[[DT]]'
 
4654
  ;;
 
4655
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
4656
  symcode='[[ABDT]]'
 
4657
  ;;
4370
4658
sysv4)
4371
4659
  symcode='[[DFNSTU]]'
4372
4660
  ;;
4389
4677
# Try without a prefix undercore, then with it.
4390
4678
for ac_symprfx in "" "_"; do
4391
4679
 
 
4680
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
4681
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
4682
 
4392
4683
  # Write the raw and C identifiers.
4393
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
4684
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4394
4685
 
4395
4686
  # Check to see that the pipe works correctly.
4396
4687
  pipe_works=no
4546
4837
      # DJGPP does not support shared libraries at all
4547
4838
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4548
4839
      ;;
 
4840
    interix3*)
 
4841
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
4842
      # Instead, we relocate shared libraries at runtime.
 
4843
      ;;
4549
4844
    sysv4*MP*)
4550
4845
      if test -d /usr/nec; then
4551
4846
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4554
4849
    hpux*)
4555
4850
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4556
4851
      # not for PA HP-UX.
4557
 
      case "$host_cpu" in
 
4852
      case $host_cpu in
4558
4853
      hppa*64*|ia64*)
4559
4854
        ;;
4560
4855
      *)
4579
4874
        ;;
4580
4875
      chorus*)
4581
4876
        case $cc_basename in
4582
 
        cxch68)
 
4877
        cxch68*)
4583
4878
          # Green Hills C++ Compiler
4584
4879
          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
4585
4880
          ;;
4586
4881
        esac
4587
4882
        ;;
 
4883
       darwin*)
 
4884
         # PIC is the default on this platform
 
4885
         # Common symbols not allowed in MH_DYLIB files
 
4886
         case $cc_basename in
 
4887
           xlc*)
 
4888
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
4889
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4890
           ;;
 
4891
         esac
 
4892
       ;;
4588
4893
      dgux*)
4589
4894
        case $cc_basename in
4590
 
          ec++)
 
4895
          ec++*)
4591
4896
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4592
4897
            ;;
4593
 
          ghcx)
 
4898
          ghcx*)
4594
4899
            # Green Hills C++ Compiler
4595
4900
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4596
4901
            ;;
4598
4903
            ;;
4599
4904
        esac
4600
4905
        ;;
4601
 
      freebsd* | kfreebsd*-gnu)
 
4906
      freebsd* | dragonfly*)
4602
4907
        # FreeBSD uses GNU C++
4603
4908
        ;;
4604
4909
      hpux9* | hpux10* | hpux11*)
4605
4910
        case $cc_basename in
4606
 
          CC)
 
4911
          CC*)
4607
4912
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4608
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
4913
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4609
4914
            if test "$host_cpu" != ia64; then
4610
4915
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4611
4916
            fi
4612
4917
            ;;
4613
 
          aCC)
 
4918
          aCC*)
4614
4919
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4615
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4616
 
            case "$host_cpu" in
 
4920
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4921
            case $host_cpu in
4617
4922
            hppa*64*|ia64*)
4618
4923
              # +Z the default
4619
4924
              ;;
4626
4931
            ;;
4627
4932
        esac
4628
4933
        ;;
 
4934
      interix*)
 
4935
        # This is c89, which is MS Visual C++ (no shared libs)
 
4936
        # Anyone wants to do a port?
 
4937
        ;;
4629
4938
      irix5* | irix6* | nonstopux*)
4630
4939
        case $cc_basename in
4631
 
          CC)
 
4940
          CC*)
4632
4941
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4633
4942
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4634
4943
            # CC pic flag -KPIC is the default.
4637
4946
            ;;
4638
4947
        esac
4639
4948
        ;;
4640
 
      linux*)
 
4949
      linux* | k*bsd*-gnu)
4641
4950
        case $cc_basename in
4642
 
          KCC)
 
4951
          KCC*)
4643
4952
            # KAI C++ Compiler
4644
4953
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4645
4954
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4646
4955
            ;;
4647
 
          icpc)
 
4956
          icpc* | ecpc*)
4648
4957
            # Intel C++
4649
4958
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4650
4959
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4651
4960
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4652
4961
            ;;
4653
 
          cxx)
 
4962
          pgCC*)
 
4963
            # Portland Group C++ compiler.
 
4964
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4965
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4966
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4967
            ;;
 
4968
          cxx*)
4654
4969
            # Compaq C++
4655
4970
            # Make sure the PIC flag is empty.  It appears that all Alpha
4656
4971
            # Linux and Compaq Tru64 Unix objects are PIC.
4667
4982
        ;;
4668
4983
      mvs*)
4669
4984
        case $cc_basename in
4670
 
          cxx)
 
4985
          cxx*)
4671
4986
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4672
4987
            ;;
4673
4988
          *)
4674
4989
            ;;
4675
4990
        esac
4676
4991
        ;;
4677
 
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
4992
      netbsd* | netbsdelf*-gnu)
4678
4993
        ;;
4679
4994
      osf3* | osf4* | osf5*)
4680
4995
        case $cc_basename in
4681
 
          KCC)
 
4996
          KCC*)
4682
4997
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4683
4998
            ;;
4684
 
          RCC)
 
4999
          RCC*)
4685
5000
            # Rational C++ 2.4.1
4686
5001
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4687
5002
            ;;
4688
 
          cxx)
 
5003
          cxx*)
4689
5004
            # Digital/Compaq C++
4690
5005
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4691
5006
            # Make sure the PIC flag is empty.  It appears that all Alpha
4699
5014
        ;;
4700
5015
      psos*)
4701
5016
        ;;
4702
 
      sco*)
4703
 
        case $cc_basename in
4704
 
          CC)
4705
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4706
 
            ;;
4707
 
          *)
4708
 
            ;;
4709
 
        esac
4710
 
        ;;
4711
5017
      solaris*)
4712
5018
        case $cc_basename in
4713
 
          CC)
 
5019
          CC*)
4714
5020
            # Sun C++ 4.2, 5.x and Centerline C++
4715
5021
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4716
5022
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4717
5023
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4718
5024
            ;;
4719
 
          gcx)
 
5025
          gcx*)
4720
5026
            # Green Hills C++ Compiler
4721
5027
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4722
5028
            ;;
4726
5032
        ;;
4727
5033
      sunos4*)
4728
5034
        case $cc_basename in
4729
 
          CC)
 
5035
          CC*)
4730
5036
            # Sun C++ 4.x
4731
5037
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4732
5038
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4733
5039
            ;;
4734
 
          lcc)
 
5040
          lcc*)
4735
5041
            # Lucid
4736
5042
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4737
5043
            ;;
4741
5047
        ;;
4742
5048
      tandem*)
4743
5049
        case $cc_basename in
4744
 
          NCC)
 
5050
          NCC*)
4745
5051
            # NonStop-UX NCC 3.20
4746
5052
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4747
5053
            ;;
4749
5055
            ;;
4750
5056
        esac
4751
5057
        ;;
4752
 
      unixware*)
 
5058
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5059
        case $cc_basename in
 
5060
          CC*)
 
5061
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5062
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5063
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5064
            ;;
 
5065
        esac
4753
5066
        ;;
4754
5067
      vxworks*)
4755
5068
        ;;
4796
5109
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4797
5110
      ;;
4798
5111
 
 
5112
    interix3*)
 
5113
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5114
      # Instead, we relocate shared libraries at runtime.
 
5115
      ;;
 
5116
 
4799
5117
    msdosdjgpp*)
4800
5118
      # Just because we use GCC doesn't mean we suddenly get shared libraries
4801
5119
      # on systems that don't support them.
4812
5130
    hpux*)
4813
5131
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4814
5132
      # not for PA HP-UX.
4815
 
      case "$host_cpu" in
 
5133
      case $host_cpu in
4816
5134
      hppa*64*|ia64*)
4817
5135
        # +Z the default
4818
5136
        ;;
4838
5156
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4839
5157
      fi
4840
5158
      ;;
 
5159
      darwin*)
 
5160
        # PIC is the default on this platform
 
5161
        # Common symbols not allowed in MH_DYLIB files
 
5162
       case $cc_basename in
 
5163
         xlc*)
 
5164
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
5165
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5166
         ;;
 
5167
       esac
 
5168
       ;;
4841
5169
 
4842
5170
    mingw* | pw32* | os2*)
4843
5171
      # This hack is so that the source file can tell whether it is being
4849
5177
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4850
5178
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4851
5179
      # not for PA HP-UX.
4852
 
      case "$host_cpu" in
 
5180
      case $host_cpu in
4853
5181
      hppa*64*|ia64*)
4854
5182
        # +Z the default
4855
5183
        ;;
4872
5200
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4873
5201
      ;;
4874
5202
 
4875
 
    linux*)
4876
 
      case $CC in
 
5203
    linux* | k*bsd*-gnu)
 
5204
      case $cc_basename in
4877
5205
      icc* | ecc*)
4878
5206
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4879
5207
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4880
5208
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4881
5209
        ;;
 
5210
      pgcc* | pgf77* | pgf90* | pgf95*)
 
5211
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
5212
        # which looks to be a dead project)
 
5213
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5214
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5215
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5216
        ;;
4882
5217
      ccc*)
4883
5218
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4884
5219
        # All Alpha code is PIC.
4893
5228
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4894
5229
      ;;
4895
5230
 
4896
 
    sco3.2v5*)
4897
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
4898
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
4899
 
      ;;
4900
 
 
4901
5231
    solaris*)
4902
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4903
5232
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4904
5233
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5234
      case $cc_basename in
 
5235
      f77* | f90* | f95*)
 
5236
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
5237
      *)
 
5238
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
5239
      esac
4905
5240
      ;;
4906
5241
 
4907
5242
    sunos4*)
4910
5245
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4911
5246
      ;;
4912
5247
 
4913
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5248
    sysv4 | sysv4.2uw2* | sysv4.3*)
4914
5249
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4915
5250
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4916
5251
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4923
5258
      fi
4924
5259
      ;;
4925
5260
 
 
5261
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5262
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5263
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5264
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5265
      ;;
 
5266
 
 
5267
    unicos*)
 
5268
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5269
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5270
      ;;
 
5271
 
4926
5272
    uts4*)
4927
5273
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4928
5274
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4950
5296
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4951
5297
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4952
5298
fi
4953
 
case "$host_os" in
 
5299
case $host_os in
4954
5300
  # For platforms which do not support PIC, -DPIC is meaningless:
4955
5301
  *djgpp*)
4956
5302
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4959
5305
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4960
5306
    ;;
4961
5307
esac
 
5308
 
 
5309
#
 
5310
# Check to make sure the static flag actually works.
 
5311
#
 
5312
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
5313
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
5314
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5315
  $lt_tmp_static_flag,
 
5316
  [],
 
5317
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
4962
5318
])
4963
5319
 
4964
5320
 
4983
5339
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4984
5340
  ;;
4985
5341
  cygwin* | mingw*)
4986
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5342
    _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'
4987
5343
  ;;
4988
 
  linux*)
 
5344
  linux* | k*bsd*-gnu)
4989
5345
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
4990
5346
  ;;
4991
5347
  *)
5029
5385
  # rely on this symbol name, it's probably fine to never include it in
5030
5386
  # preloaded symbol tables.
5031
5387
  extract_expsyms_cmds=
5032
 
 
 
5388
  # Just being paranoid about ensuring that cc_basename is set.
 
5389
  _LT_CC_BASENAME([$compiler])
5033
5390
  case $host_os in
5034
5391
  cygwin* | mingw* | pw32*)
5035
5392
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
5039
5396
      with_gnu_ld=no
5040
5397
    fi
5041
5398
    ;;
 
5399
  interix*)
 
5400
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
5401
    with_gnu_ld=yes
 
5402
    ;;
5042
5403
  openbsd*)
5043
5404
    with_gnu_ld=no
5044
5405
    ;;
5049
5410
    # If archive_cmds runs LD, not CC, wlarc should be empty
5050
5411
    wlarc='${wl}'
5051
5412
 
 
5413
    # Set some defaults for GNU ld with shared library support. These
 
5414
    # are reset later if shared libraries are not supported. Putting them
 
5415
    # here allows them to be overridden if necessary.
 
5416
    runpath_var=LD_RUN_PATH
 
5417
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
5418
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5419
    # ancient GNU ld didn't support --whole-archive et. al.
 
5420
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
5421
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5422
      else
 
5423
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5424
    fi
 
5425
    supports_anon_versioning=no
 
5426
    case `$LD -v 2>/dev/null` in
 
5427
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 
5428
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
5429
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
5430
      *\ 2.11.*) ;; # other 2.11 versions
 
5431
      *) supports_anon_versioning=yes ;;
 
5432
    esac
 
5433
 
5052
5434
    # See if GNU ld supports shared libraries.
5053
5435
    case $host_os in
5054
5436
    aix3* | aix4* | aix5*)
5099
5481
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5100
5482
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5101
5483
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5102
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5484
      _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'
5103
5485
 
5104
5486
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5105
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
5487
        _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'
5106
5488
        # If the export-symbols file already is a .def file (1st line
5107
5489
        # is EXPORTS), use it as is; otherwise, prepend...
5108
5490
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5111
5493
          echo EXPORTS > $output_objdir/$soname.def;
5112
5494
          cat $export_symbols >> $output_objdir/$soname.def;
5113
5495
        fi~
5114
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
5115
 
      else
5116
 
        ld_shlibs=no
5117
 
      fi
5118
 
      ;;
5119
 
 
5120
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
5496
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
5497
      else
 
5498
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5499
      fi
 
5500
      ;;
 
5501
 
 
5502
    interix3*)
 
5503
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5504
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5505
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5506
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5507
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
5508
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
5509
      # default) and relocated if they conflict, which is a slow very memory
 
5510
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
5511
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
5512
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
5513
      _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'
 
5514
      _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'
 
5515
      ;;
 
5516
 
 
5517
    linux* | k*bsd*-gnu)
 
5518
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5519
        tmp_addflag=
 
5520
        case $cc_basename,$host_cpu in
 
5521
        pgcc*)                          # Portland Group C compiler
 
5522
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5523
          tmp_addflag=' $pic_flag'
 
5524
          ;;
 
5525
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
5526
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5527
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
5528
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
5529
          tmp_addflag=' -i_dynamic' ;;
 
5530
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
5531
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
5532
        ifc* | ifort*)                  # Intel Fortran compiler
 
5533
          tmp_addflag=' -nofor_main' ;;
 
5534
        esac
 
5535
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5536
 
 
5537
        if test $supports_anon_versioning = yes; then
 
5538
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
5539
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5540
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
5541
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5542
        fi
 
5543
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
5544
      else
 
5545
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5546
      fi
 
5547
      ;;
 
5548
 
 
5549
    netbsd* | netbsdelf*-gnu)
5121
5550
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5122
5551
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5123
5552
        wlarc=
5127
5556
      fi
5128
5557
      ;;
5129
5558
 
5130
 
    solaris* | sysv5*)
 
5559
    solaris*)
5131
5560
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5132
5561
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5133
5562
        cat <<EOF 1>&2
5148
5577
      fi
5149
5578
      ;;
5150
5579
 
 
5580
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
5581
      case `$LD -v 2>&1` in
 
5582
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
 
5583
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5584
        cat <<_LT_EOF 1>&2
 
5585
 
 
5586
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
5587
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
5588
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
5589
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
5590
*** your PATH or compiler configuration so that the native linker is
 
5591
*** used, and then restart.
 
5592
 
 
5593
_LT_EOF
 
5594
        ;;
 
5595
        *)
 
5596
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5597
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
5598
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
5599
            _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'
 
5600
          else
 
5601
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5602
          fi
 
5603
        ;;
 
5604
      esac
 
5605
      ;;
 
5606
 
5151
5607
    sunos4*)
5152
5608
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5153
5609
      wlarc=
5155
5611
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5156
5612
      ;;
5157
5613
 
5158
 
  linux*)
5159
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5160
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5161
 
        _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
5162
 
      supports_anon_versioning=no
5163
 
      case `$LD -v 2>/dev/null` in
5164
 
        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5165
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5166
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5167
 
        *\ 2.11.*) ;; # other 2.11 versions
5168
 
        *) supports_anon_versioning=yes ;;
5169
 
      esac
5170
 
      if test $supports_anon_versioning = yes; then
5171
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5172
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5173
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
5174
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5175
 
      else
5176
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
5177
 
      fi
5178
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5179
 
    else
5180
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5181
 
    fi
5182
 
    ;;
5183
 
 
5184
5614
    *)
5185
5615
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5186
5616
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5191
5621
      ;;
5192
5622
    esac
5193
5623
 
5194
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
5195
 
      runpath_var=LD_RUN_PATH
5196
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5197
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5198
 
      # ancient GNU ld didn't support --whole-archive et. al.
5199
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5200
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5201
 
      else
5202
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5203
 
      fi
 
5624
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
5625
      runpath_var=
 
5626
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5627
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
5628
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5204
5629
    fi
5205
5630
  else
5206
5631
    # PORTME fill in a description of your system's linker (not GNU ld)
5212
5637
      # Note: this linker hardcodes the directories in LIBPATH if there
5213
5638
      # are no directories specified by -L.
5214
5639
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5215
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
5640
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5216
5641
        # Neither direct hardcoding nor static linking is supported with a
5217
5642
        # broken collect2.
5218
5643
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5246
5671
            break
5247
5672
          fi
5248
5673
          done
 
5674
          ;;
5249
5675
        esac
5250
5676
 
5251
5677
        exp_sym_flag='-bexport'
5264
5690
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5265
5691
 
5266
5692
      if test "$GCC" = yes; then
5267
 
        case $host_os in aix4.[012]|aix4.[012].*)
 
5693
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
5268
5694
        # We only want to do this on AIX 4.2 and lower, the check
5269
5695
        # below for broken collect2 doesn't work under 4.3+
5270
5696
          collect2name=`${CC} -print-prog-name=collect2`
5283
5709
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5284
5710
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5285
5711
          fi
 
5712
          ;;
5286
5713
        esac
5287
5714
        shared_flag='-shared'
 
5715
        if test "$aix_use_runtimelinking" = yes; then
 
5716
          shared_flag="$shared_flag "'${wl}-G'
 
5717
        fi
5288
5718
      else
5289
5719
        # not using gcc
5290
5720
        if test "$host_cpu" = ia64; then
5292
5722
        # chokes on -Wl,-G. The following line is correct:
5293
5723
          shared_flag='-G'
5294
5724
        else
5295
 
        if test "$aix_use_runtimelinking" = yes; then
 
5725
          if test "$aix_use_runtimelinking" = yes; then
5296
5726
            shared_flag='${wl}-G'
5297
5727
          else
5298
5728
            shared_flag='${wl}-bM:SRE'
5299
 
        fi
 
5729
          fi
5300
5730
        fi
5301
5731
      fi
5302
5732
 
5310
5740
       # Determine the default libpath from the value encoded in an empty executable.
5311
5741
       _LT_AC_SYS_LIBPATH_AIX
5312
5742
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5313
 
        _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"
 
5743
        _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"
5314
5744
       else
5315
5745
        if test "$host_cpu" = ia64; then
5316
5746
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5317
5747
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5318
 
          _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"
 
5748
          _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"
5319
5749
        else
5320
5750
         # Determine the default libpath from the value encoded in an empty executable.
5321
5751
         _LT_AC_SYS_LIBPATH_AIX
5324
5754
          # -berok will link without error, but may produce a broken library.
5325
5755
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5326
5756
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5327
 
          # -bexpall does not export symbols beginning with underscore (_)
5328
 
          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5329
5757
          # Exported symbols can be pulled into shared objects from archives
5330
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
5758
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5331
5759
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5332
 
          # This is similar to how AIX traditionally builds it's shared libraries.
5333
 
          _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'
 
5760
          # This is similar to how AIX traditionally builds its shared libraries.
 
5761
          _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'
5334
5762
        fi
5335
5763
      fi
5336
5764
      ;;
5343
5771
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5344
5772
      ;;
5345
5773
 
5346
 
    bsdi4*)
 
5774
    bsdi[[45]]*)
5347
5775
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5348
5776
      ;;
5349
5777
 
5364
5792
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5365
5793
      # FIXME: Should let the user specify the lib program.
5366
5794
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5367
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
5795
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5368
5796
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5369
5797
      ;;
5370
5798
 
5371
5799
    darwin* | rhapsody*)
5372
 
    if test "$GXX" = yes ; then
 
5800
      case $host_os in
 
5801
        rhapsody* | darwin1.[[012]])
 
5802
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
5803
         ;;
 
5804
       *) # Darwin 1.3 on
 
5805
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
5806
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
5807
         else
 
5808
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
5809
             10.[[012]])
 
5810
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
5811
               ;;
 
5812
             10.*)
 
5813
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
5814
               ;;
 
5815
           esac
 
5816
         fi
 
5817
         ;;
 
5818
      esac
5373
5819
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5374
 
      case "$host_os" in
5375
 
      rhapsody* | darwin1.[[012]])
5376
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
5377
 
        ;;
5378
 
      *) # Darwin 1.3 on
5379
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5380
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5381
 
      else
5382
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
5383
 
          10.[[012]])
5384
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5385
 
            ;;
5386
 
          10.*)
5387
 
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
5388
 
            ;;
5389
 
        esac
5390
 
      fi
5391
 
        ;;
5392
 
      esac
5393
 
        lt_int_apple_cc_single_mod=no
 
5820
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5821
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
5822
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5823
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
5824
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5825
    if test "$GCC" = yes ; then
5394
5826
        output_verbose_link_cmd='echo'
5395
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
5396
 
          lt_int_apple_cc_single_mod=yes
5397
 
        fi
5398
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5399
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5400
 
        else
5401
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5402
 
      fi
5403
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5404
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5405
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5406
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5407
 
        else
5408
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5409
 
        fi
 
5827
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
5828
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
5829
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
5830
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
5831
      _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}'
 
5832
    else
 
5833
      case $cc_basename in
 
5834
        xlc*)
 
5835
         output_verbose_link_cmd='echo'
 
5836
         _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'
 
5837
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
5838
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
5839
         _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}'
5410
5840
          _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}'
5411
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5412
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5413
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5414
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
5415
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5416
 
    else
5417
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5841
          ;;
 
5842
       *)
 
5843
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5844
          ;;
 
5845
      esac
5418
5846
    fi
5419
5847
      ;;
5420
5848
 
5448
5876
      ;;
5449
5877
 
5450
5878
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5451
 
    freebsd* | kfreebsd*-gnu)
 
5879
    freebsd* | dragonfly*)
5452
5880
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5453
5881
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5454
5882
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5471
5899
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5472
5900
      ;;
5473
5901
 
5474
 
    hpux10* | hpux11*)
5475
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5476
 
        case "$host_cpu" in
5477
 
        hppa*64*|ia64*)
 
5902
    hpux10*)
 
5903
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5904
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5905
      else
 
5906
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5907
      fi
 
5908
      if test "$with_gnu_ld" = no; then
 
5909
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5910
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5911
 
 
5912
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5913
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5914
 
 
5915
        # hardcode_minus_L: Not really in the search PATH,
 
5916
        # but as the default location of the library.
 
5917
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5918
      fi
 
5919
      ;;
 
5920
 
 
5921
    hpux11*)
 
5922
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
5923
        case $host_cpu in
 
5924
        hppa*64*)
5478
5925
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5479
5926
          ;;
 
5927
        ia64*)
 
5928
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5929
          ;;
5480
5930
        *)
5481
5931
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5482
5932
          ;;
5483
5933
        esac
5484
5934
      else
5485
 
        case "$host_cpu" in
5486
 
        hppa*64*|ia64*)
5487
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5935
        case $host_cpu in
 
5936
        hppa*64*)
 
5937
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5938
          ;;
 
5939
        ia64*)
 
5940
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5488
5941
          ;;
5489
5942
        *)
5490
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5943
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5491
5944
          ;;
5492
5945
        esac
5493
5946
      fi
5494
5947
      if test "$with_gnu_ld" = no; then
5495
 
        case "$host_cpu" in
5496
 
        hppa*64*)
5497
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5948
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5949
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5950
 
 
5951
        case $host_cpu in
 
5952
        hppa*64*|ia64*)
5498
5953
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5499
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5500
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5501
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5502
 
          ;;
5503
 
        ia64*)
5504
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5505
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5506
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5507
 
 
5508
 
          # hardcode_minus_L: Not really in the search PATH,
5509
 
          # but as the default location of the library.
5510
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5954
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5955
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5511
5956
          ;;
5512
5957
        *)
5513
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5514
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5515
5958
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5516
5959
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5517
5960
 
5535
5978
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5536
5979
      ;;
5537
5980
 
5538
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
5981
    netbsd* | netbsdelf*-gnu)
5539
5982
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5540
5983
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5541
5984
      else
5559
6002
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5560
6003
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5561
6004
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6005
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5562
6006
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5563
6007
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5564
6008
      else
5604
6048
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5605
6049
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5606
6050
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5607
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
6051
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
5608
6052
 
5609
6053
        # Both c and cxx compiler support -rpath directly
5610
6054
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5612
6056
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5613
6057
      ;;
5614
6058
 
5615
 
    sco3.2v5*)
5616
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5617
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5618
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5619
 
      runpath_var=LD_RUN_PATH
5620
 
      hardcode_runpath_var=yes
5621
 
      ;;
5622
 
 
5623
6059
    solaris*)
5624
6060
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5625
6061
      if test "$GCC" = yes; then
 
6062
        wlarc='${wl}'
5626
6063
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5627
6064
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5628
6065
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5629
6066
      else
 
6067
        wlarc=''
5630
6068
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5631
6069
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5632
6070
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5635
6073
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5636
6074
      case $host_os in
5637
6075
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5638
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5639
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
6076
      *)
 
6077
        # The compiler driver will combine linker options so we
 
6078
        # cannot just pass the convience library names through
 
6079
        # without $wl, iff we do not link with $LD.
 
6080
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6081
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6082
        case $wlarc in
 
6083
        '')
 
6084
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
6085
        *)
 
6086
          _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' ;;
 
6087
        esac ;;
5640
6088
      esac
5641
6089
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5642
6090
      ;;
5693
6141
      fi
5694
6142
      ;;
5695
6143
 
5696
 
    sysv4.2uw2*)
5697
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5698
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5699
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5700
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5701
 
      hardcode_runpath_var=yes
5702
 
      runpath_var=LD_RUN_PATH
5703
 
      ;;
5704
 
 
5705
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
5706
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5707
 
      if test "$GCC" = yes; then
5708
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5709
 
      else
5710
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5711
 
      fi
5712
 
      runpath_var='LD_RUN_PATH'
5713
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5714
 
      ;;
5715
 
 
5716
 
    sysv5*)
5717
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5718
 
      # $CC -shared without GNU ld will not create a library from C++
5719
 
      # object files and a static libstdc++, better avoid it by now
5720
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5721
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5722
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5723
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5724
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5725
 
      runpath_var='LD_RUN_PATH'
 
6144
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
 
6145
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6146
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6147
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6148
      runpath_var='LD_RUN_PATH'
 
6149
 
 
6150
      if test "$GCC" = yes; then
 
6151
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6152
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6153
      else
 
6154
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6155
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6156
      fi
 
6157
      ;;
 
6158
 
 
6159
    sysv5* | sco3.2v5* | sco5v6*)
 
6160
      # Note: We can NOT use -z defs as we might desire, because we do not
 
6161
      # link with -lc, and that would cause any symbols used from libc to
 
6162
      # always be unresolved, which means just about no library would
 
6163
      # ever link correctly.  If we're not using GNU ld we use -z text
 
6164
      # though, which does catch some bad symbols but isn't as heavy-handed
 
6165
      # as -z defs.
 
6166
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6167
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6168
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6169
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6170
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
6171
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6172
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6173
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6174
      runpath_var='LD_RUN_PATH'
 
6175
 
 
6176
      if test "$GCC" = yes; then
 
6177
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6178
        _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'
 
6179
      else
 
6180
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6181
        _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'
 
6182
      fi
5726
6183
      ;;
5727
6184
 
5728
6185
    uts4*)
5740
6197
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5741
6198
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5742
6199
 
5743
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5744
 
if test "$GCC" = yes; then
5745
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5746
 
fi
5747
 
 
5748
6200
#
5749
6201
# Do we need to explicitly link libc?
5750
6202
#
5772
6224
        libobjs=conftest.$ac_objext
5773
6225
        deplibs=
5774
6226
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
6227
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5775
6228
        compiler_flags=-v
5776
6229
        linker_flags=-v
5777
6230
        verstring=
5897
6350
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5898
6351
# along with /bin/sed that truncates output.
5899
6352
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5900
 
  test ! -f $lt_ac_sed && break
 
6353
  test ! -f $lt_ac_sed && continue
5901
6354
  cat /dev/null > conftest.in
5902
6355
  lt_ac_count=0
5903
6356
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5922
6375
    fi
5923
6376
  done
5924
6377
done
 
6378
])
5925
6379
SED=$lt_cv_path_SED
5926
 
])
5927
6380
AC_MSG_RESULT([$SED])
5928
6381
])
5929
6382
 
5944
6397
# Call AM_AUTOMAKE_VERSION so it can be traced.
5945
6398
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
5946
6399
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
5947
 
         [AM_AUTOMAKE_VERSION([1.9.5])])
 
6400
         [AM_AUTOMAKE_VERSION([1.9.6])])
5948
6401
 
5949
6402
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
5950
6403